You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/UserGuide/Master/Tree/Basic-Concept/Data-Model-and-Terminology.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,7 +109,7 @@ In order to make it easier and faster to express multiple timeseries paths, IoTD
109
109
110
110
### Timestamp
111
111
112
-
The timestamp is the time point at which data is produced. It includes absolute timestamps and relative timestamps. For detailed description, please go to [Data Type doc](./Data-Type.md).
112
+
The timestamp is the time point at which data is produced. It includes absolute timestamps and relative timestamps. For detailed description, please go to [Data Type doc](../Background-knowledge/Data-Type.md).
113
113
114
114
### Data point
115
115
@@ -147,6 +147,6 @@ In the following chapters of data definition language, data operation language a
147
147
148
148
## Schema Template
149
149
150
-
In the actual scenario, many entities collect the same measurements, that is, they have the same measurements name and type. A **schema template** can be declared to define the collectable measurements set. Schema template helps save memory by implementing schema sharing. For detailed description, please refer to [Schema Template doc](../User-Manual/Operate-Metadata_timecho.md#Device-Template).
150
+
In the actual scenario, many entities collect the same measurements, that is, they have the same measurements name and type. A **schema template** can be declared to define the collectable measurements set. Schema template helps save memory by implementing schema sharing. For detailed description, please refer to [Schema Template doc](../Basic-Concept/Operate-Metadata.md#Device-Template).
151
151
152
152
In the following chapters of, data definition language, data operation language and Java Native Interface, various operations related to schema template will be introduced one by one.
Copy file name to clipboardExpand all lines: src/UserGuide/Master/Tree/SQL-Manual/Operator-and-Expression.md
+19-19Lines changed: 19 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,11 +21,11 @@
21
21
22
22
# Operator and Expression
23
23
24
-
This chapter describes the operators and functions supported by IoTDB. IoTDB provides a wealth of built-in operators and functions to meet your computing needs, and supports extensions through the [User-Defined Function](../Reference/UDF-Libraries.md).
24
+
This chapter describes the operators and functions supported by IoTDB. IoTDB provides a wealth of built-in operators and functions to meet your computing needs, and supports extensions through the [User-Defined Function](../SQL-Manual/UDF-Libraries.md).
25
25
26
26
A list of all available functions, both built-in and custom, can be displayed with `SHOW FUNCTIONS` command.
27
27
28
-
See the documentation [Select-Expression](../Reference/Function-and-Expression.md#selector-functions) for the behavior of operators and functions in SQL.
28
+
See the documentation [Select-Expression](../SQL-Manual/Function-and-Expression.md#selector-functions) for the behavior of operators and functions in SQL.
29
29
30
30
## OPERATORS
31
31
@@ -41,7 +41,7 @@ See the documentation [Select-Expression](../Reference/Function-and-Expression.m
41
41
|`+`| addition |
42
42
|`-`| subtraction |
43
43
44
-
For details and examples, see the document [Arithmetic Operators and Functions](../Reference/Function-and-Expression.md#arithmetic-functions).
44
+
For details and examples, see the document [Arithmetic Operators and Functions](../SQL-Manual/Function-and-Expression.md#arithmetic-functions).
45
45
46
46
### Comparison Operators
47
47
@@ -64,7 +64,7 @@ For details and examples, see the document [Arithmetic Operators and Functions](
64
64
|`IN` / `CONTAINS`| is a value in the specified list |
65
65
|`NOT IN` / `NOT CONTAINS`| is not a value in the specified list |
66
66
67
-
For details and examples, see the document [Comparison Operators and Functions](../Reference/Function-and-Expression.md#comparison-operators-and-functions).
67
+
For details and examples, see the document [Comparison Operators and Functions](../SQL-Manual/Function-and-Expression.md#comparison-operators-and-functions).
68
68
69
69
### Logical Operators
70
70
@@ -74,7 +74,7 @@ For details and examples, see the document [Comparison Operators and Functions](
74
74
|`AND` / `&` / `&&`| logical AND |
75
75
|`OR`/ | / ||| logical OR |
76
76
77
-
For details and examples, see the document [Logical Operators](../Reference/Function-and-Expression.md#logical-operators).
77
+
For details and examples, see the document [Logical Operators](../SQL-Manual/Function-and-Expression.md#logical-operators).
78
78
79
79
### Operator Precedence
80
80
@@ -123,7 +123,7 @@ The built-in functions can be used in IoTDB without registration, and the functi
123
123
| MAX_BY | MAX_BY(x, y) returns the value of x corresponding to the maximum value of the input y. MAX_BY(time, x) returns the timestamp when x is at its maximum value. | The first input x can be of any type, while the second input y must be of type INT32, INT64, FLOAT, DOUBLE, STRING, TIMESTAMP or DATE. | / | Consistent with the data type of the first input x. |
124
124
| MIN_BY | MIN_BY(x, y) returns the value of x corresponding to the minimum value of the input y. MIN_BY(time, x) returns the timestamp when x is at its minimum value. | The first input x can be of any type, while the second input y must be of type INT32, INT64, FLOAT, DOUBLE, STRING, TIMESTAMP or DATE. | / | Consistent with the data type of the first input x. |
125
125
126
-
For details and examples, see the document [Aggregate Functions](../Reference/Function-and-Expression.md#aggregate-functions).
126
+
For details and examples, see the document [Aggregate Functions](../SQL-Manual/Function-and-Expression.md#aggregate-functions).
127
127
128
128
### Arithmetic Functions
129
129
@@ -150,7 +150,7 @@ For details and examples, see the document [Aggregate Functions](../Reference/Fu
For details and examples, see the document [Arithmetic Operators and Functions](../Reference/Function-and-Expression.md#arithmetic-operators-and-functions).
153
+
For details and examples, see the document [Arithmetic Operators and Functions](../SQL-Manual/Function-and-Expression.md#arithmetic-operators-and-functions).
154
154
155
155
### Comparison Functions
156
156
@@ -159,7 +159,7 @@ For details and examples, see the document [Arithmetic Operators and Functions](
| IN_RANGR | INT32 / INT64 / FLOAT / DOUBLE |`lower`: DOUBLE type `upper`: DOUBLE type | BOOLEAN | Return `ts_value >= lower && value <= upper`. |
161
161
162
-
For details and examples, see the document [Comparison Operators and Functions](../Reference/Function-and-Expression.md#comparison-operators-and-functions).
162
+
For details and examples, see the document [Comparison Operators and Functions](../SQL-Manual/Function-and-Expression.md#comparison-operators-and-functions).
163
163
164
164
### String Processing Functions
165
165
@@ -179,15 +179,15 @@ For details and examples, see the document [Comparison Operators and Functions](
179
179
| TRIM | TEXT STRING | / | TEXT | Get the string whose value is same to input series, with all leading and trailing space removed. |
180
180
| STRCMP | TEXT STRING | / | TEXT | Get the compare result of two input series. Returns `0` if series value are the same, a `negative integer` if value of series1 is smaller than series2, <br/>a `positive integer` if value of series1 is more than series2. |
181
181
182
-
For details and examples, see the document [String Processing](../Reference/Function-and-Expression.md#string-processing).
182
+
For details and examples, see the document [String Processing](../SQL-Manual/Function-and-Expression.md#string-processing).
183
183
184
184
### Data Type Conversion Function
185
185
186
186
| Function Name | Required Attributes | Output Series Data Type | Description |
| CAST |`type`: Output data type, INT32 / INT64 / FLOAT / DOUBLE / BOOLEAN / TEXT | determined by `type`| Convert the data to the type specified by the `type` parameter. |
189
189
190
-
For details and examples, see the document [Data Type Conversion Function](../Reference/Function-and-Expression.md#data-type-conversion-function).
190
+
For details and examples, see the document [Data Type Conversion Function](../SQL-Manual/Function-and-Expression.md#data-type-conversion-function).
191
191
192
192
### Constant Timeseries Generating Functions
193
193
@@ -197,7 +197,7 @@ For details and examples, see the document [Data Type Conversion Function](../Re
197
197
| PI | None | DOUBLE | Data point value: a `double` value of `π`, the ratio of the circumference of a circle to its diameter, which is equals to `Math.PI` in the *Java Standard Library*. |
198
198
| E | None | DOUBLE | Data point value: a `double` value of `e`, the base of the natural logarithms, which is equals to `Math.E` in the *Java Standard Library*. |
199
199
200
-
For details and examples, see the document [Constant Timeseries Generating Functions](../Reference/Function-and-Expression.md#constant-timeseries-generating-functions).
200
+
For details and examples, see the document [Constant Timeseries Generating Functions](../SQL-Manual/Function-and-Expression.md#constant-timeseries-generating-functions).
201
201
202
202
### Selector Functions
203
203
@@ -206,7 +206,7 @@ For details and examples, see the document [Constant Timeseries Generating Funct
206
206
| TOP_K | INT32 / INT64 / FLOAT / DOUBLE / TEXT / STRING / DATE / TIEMSTAMP |`k`: the maximum number of selected data points, must be greater than 0 and less than or equal to 1000 | Same type as the input series | Returns `k` data points with the largest values in a time series. |
207
207
| BOTTOM_K | INT32 / INT64 / FLOAT / DOUBLE / TEXT / STRING / DATE / TIEMSTAMP |`k`: the maximum number of selected data points, must be greater than 0 and less than or equal to 1000 | Same type as the input series | Returns `k` data points with the smallest values in a time series. |
208
208
209
-
For details and examples, see the document [Selector Functions](../Reference/Function-and-Expression.md#selector-functions).
209
+
For details and examples, see the document [Selector Functions](../SQL-Manual/Function-and-Expression.md#selector-functions).
210
210
211
211
### Continuous Interval Functions
212
212
@@ -217,7 +217,7 @@ For details and examples, see the document [Selector Functions](../Reference/Fun
217
217
| ZERO_COUNT | INT32/ INT64/ FLOAT/ DOUBLE/ BOOLEAN |`min`:Optional with default value `1L``max`:Optional with default value `Long.MAX_VALUE`| Long | Return intervals' start times and the number of data points in the interval in which the value is always 0(false). Data points number `n` satisfy `n >= min && n <= max`|
218
218
| NON_ZERO_COUNT | INT32/ INT64/ FLOAT/ DOUBLE/ BOOLEAN |`min`:Optional with default value `1L``max`:Optional with default value `Long.MAX_VALUE`| Long | Return intervals' start times and the number of data points in the interval in which the value is always not 0(false). Data points number `n` satisfy `n >= min && n <= max`|
219
219
220
-
For details and examples, see the document [Continuous Interval Functions](../Reference/Function-and-Expression.md#continuous-interval-functions).
220
+
For details and examples, see the document [Continuous Interval Functions](../SQL-Manual/Function-and-Expression.md#continuous-interval-functions).
221
221
222
222
### Variation Trend Calculation Functions
223
223
@@ -230,7 +230,7 @@ For details and examples, see the document [Continuous Interval Functions](../Re
230
230
| NON_NEGATIVE_DERIVATIVE | INT32 / INT64 / FLOAT / DOUBLE | / | DOUBLE | Calculates the absolute value of the rate of change of a data point compared to the previous data point, the result is equals to NON_NEGATIVE_DIFFERENCE / TIME_DIFFERENCE. There is no corresponding output for the first data point. |
231
231
| DIFF | INT32 / INT64 / FLOAT / DOUBLE |`ignoreNull`:optional,default is true. If is true, the previous data point is ignored when it is null and continues to find the first non-null value forwardly. If the value is false, previous data point is not ignored when it is null, the result is also null because null is used for subtraction | DOUBLE | Calculates the difference between the value of a data point and the value of the previous data point. There is no corresponding output for the first data point, so output is null |
232
232
233
-
For details and examples, see the document [Variation Trend Calculation Functions](../Reference/Function-and-Expression.md#variation-trend-calculation-functions).
233
+
For details and examples, see the document [Variation Trend Calculation Functions](../SQL-Manual/Function-and-Expression.md#variation-trend-calculation-functions).
234
234
235
235
### Sample Functions
236
236
@@ -250,7 +250,7 @@ For details and examples, see the document [Sample Functions](../SQL-Manual/Func
| JEXL | INT32 / INT64 / FLOAT / DOUBLE / TEXT / BOOLEAN |`expr` is a lambda expression that supports standard one or multi arguments in the form `x -> {...}` or `(x, y, z) -> {...}`, e.g. `x -> {x * 2}`, `(x, y, z) -> {x + y * z}`| INT32 / INT64 / FLOAT / DOUBLE / TEXT / BOOLEAN | Returns the input time series transformed by a lambda expression |
261
261
262
-
For details and examples, see the document [Lambda](../Reference/Function-and-Expression.md#lambda-expression).
262
+
For details and examples, see the document [Lambda](../SQL-Manual/Function-and-Expression.md#lambda-expression).
263
263
264
264
## CONDITIONAL EXPRESSION
265
265
266
266
| Expression Name | Description |
267
267
| --------------- | -------------------- |
268
268
|`CASE`| similar to "if else" |
269
269
270
-
For details and examples, see the document [Conditional Expressions](../Reference/Function-and-Expression.md#conditional-expressions).
270
+
For details and examples, see the document [Conditional Expressions](../SQL-Manual/Function-and-Expression.md#conditional-expressions).
271
271
272
272
## SELECT EXPRESSION
273
273
@@ -322,7 +322,7 @@ Aggregate functions are many-to-one functions. They perform aggregate calculatio
322
322
> select a, count(a) from root.sg group by ([10,100),10ms)
323
323
> ```
324
324
325
-
For the aggregation functions supported by IoTDB, see the document [Aggregate Functions](../Reference/Function-and-Expression.md#aggregate-functions).
325
+
For the aggregation functions supported by IoTDB, see the document [Aggregate Functions](../SQL-Manual/Function-and-Expression.md#aggregate-functions).
326
326
327
327
328
328
#### Time Series Generation Function
@@ -337,7 +337,7 @@ See this documentation for a list of built-in functions supported in IoTDB.
337
337
338
338
##### User-Defined Time Series Generation Functions
339
339
340
-
IoTDB supports function extension through User Defined Function (click for [User-Defined Function](./Database-Programming.md#udtfuser-defined-timeseries-generating-function)) capability.
340
+
IoTDB supports function extension through User Defined Function (click for [User-Defined Function](../User-Manual/Database-Programming.md#udtfuser-defined-timeseries-generating-function)) capability.
0 commit comments