Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/.vuepress/config_check_links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { defineUserConfig } from 'vuepress';
import config from './config.js';

if(config.plugins === undefined) config.plugins = [];

config.plugins = [...config.plugins,linksCheckPlugin({build: 'error'})];

export default defineUserConfig(config);
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ In order to make it easier and faster to express multiple timeseries paths, IoTD

### Timestamp

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).
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).

### Data point

Expand Down Expand Up @@ -147,6 +147,6 @@ In the following chapters of data definition language, data operation language a

## Schema Template

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).
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).

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.
2 changes: 1 addition & 1 deletion src/UserGuide/Master/Tree/Basic-Concept/Query-Data.md
Original file line number Diff line number Diff line change
Expand Up @@ -3002,7 +3002,7 @@ The user must have the following permissions to execute a query write-back state
* All `WRITE_SCHEMA` permissions for the source series in the `select` clause.
* All `WRITE_DATA` permissions for the target series in the `into` clause.

For more user permissions related content, please refer to [Account Management Statements](./Authority-Management.md).
For more user permissions related content, please refer to [Account Management Statements](../User-Manual/Authority-Management.md).

### Configurable Properties

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ Timecho provides a more diverse range of product features, stronger performance

- Timecho Official website:https://www.timecho.com/

- TimechoDB installation, deployment and usage documentation:[QuickStart](../QuickStart/QuickStart_timecho.md)
- TimechoDB installation, deployment and usage documentation:[QuickStart](https://www.timecho.com/docs/UserGuide/latest/QuickStart/QuickStart_timecho.html)
4 changes: 2 additions & 2 deletions src/UserGuide/Master/Tree/Reference/UDF-Libraries_apache.md
Original file line number Diff line number Diff line change
Expand Up @@ -606,14 +606,14 @@ create function acf as 'org.apache.iotdb.library.dprofile.UDTFACF'

This function is used to calculate the auto-correlation factor of the input time series,
which equals to cross correlation between the same series.
For more information, please refer to [XCorr](./UDF-Libraries.md#xcorr) function.
For more information, please refer to [XCorr](#XCorr) function.

**Name:** ACF

**Input Series:** Only support a single input numeric series. The type is INT32 / INT64 / FLOAT / DOUBLE.

**Output Series:** Output a single series. The type is DOUBLE.
There are $2N-1$ data points in the series, and the values are interpreted in details in [XCorr](./UDF-Libraries.md#XCorr) function.
There are $2N-1$ data points in the series, and the values are interpreted in details in [XCorr](#XCorr) function.

**Note:**

Expand Down
38 changes: 19 additions & 19 deletions src/UserGuide/Master/Tree/SQL-Manual/Operator-and-Expression.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@

# Operator and Expression

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).
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).

A list of all available functions, both built-in and custom, can be displayed with `SHOW FUNCTIONS` command.

See the documentation [Select-Expression](../Reference/Function-and-Expression.md#selector-functions) for the behavior of operators and functions in SQL.
See the documentation [Select-Expression](../SQL-Manual/Function-and-Expression.md#selector-functions) for the behavior of operators and functions in SQL.

## OPERATORS

Expand All @@ -41,7 +41,7 @@ See the documentation [Select-Expression](../Reference/Function-and-Expression.m
| `+` | addition |
| `-` | subtraction |

For details and examples, see the document [Arithmetic Operators and Functions](../Reference/Function-and-Expression.md#arithmetic-functions).
For details and examples, see the document [Arithmetic Operators and Functions](../SQL-Manual/Function-and-Expression.md#arithmetic-functions).

### Comparison Operators

Expand All @@ -64,7 +64,7 @@ For details and examples, see the document [Arithmetic Operators and Functions](
| `IN` / `CONTAINS` | is a value in the specified list |
| `NOT IN` / `NOT CONTAINS` | is not a value in the specified list |

For details and examples, see the document [Comparison Operators and Functions](../Reference/Function-and-Expression.md#comparison-operators-and-functions).
For details and examples, see the document [Comparison Operators and Functions](../SQL-Manual/Function-and-Expression.md#comparison-operators-and-functions).

### Logical Operators

Expand All @@ -74,7 +74,7 @@ For details and examples, see the document [Comparison Operators and Functions](
| `AND` / `&` / `&&` | logical AND |
| `OR`/ | / || | logical OR |

For details and examples, see the document [Logical Operators](../Reference/Function-and-Expression.md#logical-operators).
For details and examples, see the document [Logical Operators](../SQL-Manual/Function-and-Expression.md#logical-operators).

### Operator Precedence

Expand Down Expand Up @@ -123,7 +123,7 @@ The built-in functions can be used in IoTDB without registration, and the functi
| 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. |
| 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. |

For details and examples, see the document [Aggregate Functions](../Reference/Function-and-Expression.md#aggregate-functions).
For details and examples, see the document [Aggregate Functions](../SQL-Manual/Function-and-Expression.md#aggregate-functions).

### Arithmetic Functions

Expand All @@ -150,7 +150,7 @@ For details and examples, see the document [Aggregate Functions](../Reference/Fu
| LOG10 | INT32 / INT64 / FLOAT / DOUBLE | DOUBLE | / | Math#log10(double) |
| SQRT | INT32 / INT64 / FLOAT / DOUBLE | DOUBLE | / | Math#sqrt(double) |

For details and examples, see the document [Arithmetic Operators and Functions](../Reference/Function-and-Expression.md#arithmetic-operators-and-functions).
For details and examples, see the document [Arithmetic Operators and Functions](../SQL-Manual/Function-and-Expression.md#arithmetic-operators-and-functions).

### Comparison Functions

Expand All @@ -159,7 +159,7 @@ For details and examples, see the document [Arithmetic Operators and Functions](
| ON_OFF | INT32 / INT64 / FLOAT / DOUBLE | `threshold`: a double type variate | BOOLEAN | Return `ts_value >= threshold`. |
| IN_RANGR | INT32 / INT64 / FLOAT / DOUBLE | `lower`: DOUBLE type `upper`: DOUBLE type | BOOLEAN | Return `ts_value >= lower && value <= upper`. |

For details and examples, see the document [Comparison Operators and Functions](../Reference/Function-and-Expression.md#comparison-operators-and-functions).
For details and examples, see the document [Comparison Operators and Functions](../SQL-Manual/Function-and-Expression.md#comparison-operators-and-functions).

### String Processing Functions

Expand All @@ -179,15 +179,15 @@ For details and examples, see the document [Comparison Operators and Functions](
| TRIM | TEXT STRING | / | TEXT | Get the string whose value is same to input series, with all leading and trailing space removed. |
| 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. |

For details and examples, see the document [String Processing](../Reference/Function-and-Expression.md#string-processing).
For details and examples, see the document [String Processing](../SQL-Manual/Function-and-Expression.md#string-processing).

### Data Type Conversion Function

| 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. |

For details and examples, see the document [Data Type Conversion Function](../Reference/Function-and-Expression.md#data-type-conversion-function).
For details and examples, see the document [Data Type Conversion Function](../SQL-Manual/Function-and-Expression.md#data-type-conversion-function).

### Constant Timeseries Generating Functions

Expand All @@ -197,7 +197,7 @@ For details and examples, see the document [Data Type Conversion Function](../Re
| 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*. |
| 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*. |

For details and examples, see the document [Constant Timeseries Generating Functions](../Reference/Function-and-Expression.md#constant-timeseries-generating-functions).
For details and examples, see the document [Constant Timeseries Generating Functions](../SQL-Manual/Function-and-Expression.md#constant-timeseries-generating-functions).

### Selector Functions

Expand All @@ -206,7 +206,7 @@ For details and examples, see the document [Constant Timeseries Generating Funct
| 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. |
| 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. |

For details and examples, see the document [Selector Functions](../Reference/Function-and-Expression.md#selector-functions).
For details and examples, see the document [Selector Functions](../SQL-Manual/Function-and-Expression.md#selector-functions).

### Continuous Interval Functions

Expand All @@ -217,7 +217,7 @@ For details and examples, see the document [Selector Functions](../Reference/Fun
| 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` |
| 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` |

For details and examples, see the document [Continuous Interval Functions](../Reference/Function-and-Expression.md#continuous-interval-functions).
For details and examples, see the document [Continuous Interval Functions](../SQL-Manual/Function-and-Expression.md#continuous-interval-functions).

### Variation Trend Calculation Functions

Expand All @@ -230,7 +230,7 @@ For details and examples, see the document [Continuous Interval Functions](../Re
| 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. |
| 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 |

For details and examples, see the document [Variation Trend Calculation Functions](../Reference/Function-and-Expression.md#variation-trend-calculation-functions).
For details and examples, see the document [Variation Trend Calculation Functions](../SQL-Manual/Function-and-Expression.md#variation-trend-calculation-functions).

### Sample Functions

Expand All @@ -250,7 +250,7 @@ For details and examples, see the document [Sample Functions](../SQL-Manual/Func
| ------------- | ------------------------------- | ------------------- | ----------------------------- | ----------------------------------------------------------- |
| CHANGE_POINTS | INT32 / INT64 / FLOAT / DOUBLE | / | Same type as the input series | Remove consecutive identical values from an input sequence. |

For details and examples, see the document [Time-Series](../Reference/Function-and-Expression.md#time-series-processing).
For details and examples, see the document [Time-Series](../SQL-Manual/Function-and-Expression.md#time-series-processing).


## LAMBDA EXPRESSION
Expand All @@ -259,15 +259,15 @@ For details and examples, see the document [Time-Series](../Reference/Function-a
| ------------- | ----------------------------------------------- | ------------------------------------------------------------ | ----------------------------------------------- | ------------------------------------------------------------ |
| 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 |

For details and examples, see the document [Lambda](../Reference/Function-and-Expression.md#lambda-expression).
For details and examples, see the document [Lambda](../SQL-Manual/Function-and-Expression.md#lambda-expression).

## CONDITIONAL EXPRESSION

| Expression Name | Description |
| --------------- | -------------------- |
| `CASE` | similar to "if else" |

For details and examples, see the document [Conditional Expressions](../Reference/Function-and-Expression.md#conditional-expressions).
For details and examples, see the document [Conditional Expressions](../SQL-Manual/Function-and-Expression.md#conditional-expressions).

## SELECT EXPRESSION

Expand Down Expand Up @@ -322,7 +322,7 @@ Aggregate functions are many-to-one functions. They perform aggregate calculatio
> select a, count(a) from root.sg group by ([10,100),10ms)
> ```

For the aggregation functions supported by IoTDB, see the document [Aggregate Functions](../Reference/Function-and-Expression.md#aggregate-functions).
For the aggregation functions supported by IoTDB, see the document [Aggregate Functions](../SQL-Manual/Function-and-Expression.md#aggregate-functions).


#### Time Series Generation Function
Expand All @@ -337,7 +337,7 @@ See this documentation for a list of built-in functions supported in IoTDB.

##### User-Defined Time Series Generation Functions

IoTDB supports function extension through User Defined Function (click for [User-Defined Function](./Database-Programming.md#udtfuser-defined-timeseries-generating-function)) capability.
IoTDB supports function extension through User Defined Function (click for [User-Defined Function](../User-Manual/Database-Programming.md#udtfuser-defined-timeseries-generating-function)) capability.

### Nested Expressions

Expand Down
Loading
Loading