Skip to content

Commit 431d664

Browse files
authored
Cleanup
1 parent eed4a1c commit 431d664

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/api/public-api/query-language.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ The following tables list the query languages's available functions.
6262
| Syntax | `trait({s: String})` <br> `s` - the name of the the trait to reference |
6363
| Return Type | `ScalarExtractor` |
6464
| Description | Similar to the event operator, the trait operator is used to specify profile trait filter criteria. |
65-
| Notes | You can reference other audiences by using the audience key as the trait name |
65+
| Notes | You can reference other audiences by using the audience key as the trait name. |
6666
| Example | `trait('total_spend')` |
6767

6868
| `property` | |
@@ -144,23 +144,23 @@ The following tables list the query languages's available functions.
144144
| ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
145145
| Syntax | `max({s: EventPropertyExtractor})` or `max({s: EventPropertyExtractor} as type)`<br>`s` - property to get the maximum value of <br>`type` - number, string |
146146
| Return Type | `Scalar` |
147-
| Notes | If no type is passed, we assume `number` as the `type` and will select the greatest value. You can override the behavior to select the max based on lexicographical ordering by specifying `as string`. |
147+
| Notes | If no type is passed, Segment assumes `number` as the `type` and selects the greatest value. You can override the behavior to select the max based on lexicographical ordering by specifying `as string`. |
148148
| Example | `max(property('spend'))`<br>`max(property('spend') as string)` |
149149

150150
| `min` | |
151151
| ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
152152
| Syntax | `min({s: EventPropertyExtractor})` or `min({s: EventPropertyExtractor} as type)`<br>`s` - property to get the minimum value of <br>`type` - number, string |
153153
| Return Type | `Scalar`
154154
|
155-
| Notes | If no type is passed, we assume `number` as the `type` and will select the smallest value. You can override the behavior to select the max based on lexicographical ordering by specifying `as string`. |
155+
| Notes | If no type is passed, Segment assumes `number` as the `type` and selects the smallest value. You can override the behavior to select the max based on lexicographical ordering by specifying `as string`. |
156156
| Example | `min(property('spend'))`<br>`min(property('spend') as string)` |
157157

158158
| `mode` | |
159159
| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
160160
| Syntax | `mode({s: EventPropertyExtractor}, {d: Integer})` or `mode({s: EventPropertyExtractor} as type, {d: Integer})`<br>`s` - the property to find the most frequent value of <br>`d` - minimum frequency expected <br>`type` - number, string, array |
161161
| Return Type | `Scalar` |
162162
| Description | Find the most frequent value for a given property name. |
163-
| Notes | If no type is passed, we assume `string` as the `type` and will select the most frequent value assuming all data is a string. `number` will behave the same as `string`. `array` will also behave the same way, except when used in combination with the `$` operator where instead of treating each individual value within the array separately we will instead treat the whole array as a string. |
163+
| Notes | If no type is passed, Segment assumes `string` as the `type` and selects the most frequent value assuming all data is a string. `number` will behave the same as `string`. `array` will also behave the same way, except when used in combination with the `$` operator where instead of treating each individual value within the array separately Segment will instead treat the whole array as a string. |
164164
| Example | `mode(property('spend'), 2)`<br>`mode(property('spend') as array, 2)` |
165165

166166
| `first` | |

0 commit comments

Comments
 (0)