Skip to content

Commit f0c397d

Browse files
committed
docs: clarify FFT limits
1 parent bfe7d12 commit f0c397d

3 files changed

Lines changed: 6 additions & 9 deletions

File tree

‎src/UserGuide/Master/Table/SQL-Manual/Featured-Functions_apache.md‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -693,8 +693,6 @@ IoTDB> SELECT window_start, window_end, stock_id, avg(price) as avg FROM CUMULAT
693693
|2021-01-01T09:00:00.000+08:00|2021-01-01T09:10:00.000+08:00| AAPL|101.66666666666667|
694694
+-----------------------------+-----------------------------+--------+------------------+
695695
```
696-
+-----------------------------+-----------------------------+--------+------------------+
697-
```
698696

699697
## 4. `FFT` Function
700698

@@ -730,11 +728,12 @@ FFT(
730728

731729
### 4.4 Input Requirements and Limitations
732730

733-
* Supported FFT input types are `INT32`, `INT64`, `FLOAT`, and `DOUBLE`. Other non-partition columns are ignored.
731+
* Supported FFT input types are `INT32`, `INT64`, `FLOAT`, and `DOUBLE`. Other non-partition, non-time columns are ignored.
734732
* Every numeric input value must be non-`NULL`.
735733
* Timestamps must be strictly ascending within each partition.
736734
* If `SAMPLE_INTERVAL` is omitted, each partition must contain at least two rows. For regularly sampled data, explicitly specifying the interval is recommended.
737735
* FFT assumes equally spaced samples. For irregular timestamps, the implementation uses the average interval (or the supplied interval), so the frequency axis is an approximation.
736+
* The total number of spectrum values (`2 × N × number of numeric columns`) is limited to 16,777,216 in addition to the `N <= 65,536` limit.
738737

739738
### 4.5 Returned Results
740739

‎src/UserGuide/latest-Table/SQL-Manual/Featured-Functions_apache.md‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -693,8 +693,6 @@ IoTDB> SELECT window_start, window_end, stock_id, avg(price) as avg FROM CUMULAT
693693
|2021-01-01T09:00:00.000+08:00|2021-01-01T09:10:00.000+08:00| AAPL|101.66666666666667|
694694
+-----------------------------+-----------------------------+--------+------------------+
695695
```
696-
+-----------------------------+-----------------------------+--------+------------------+
697-
```
698696

699697
## 4. `FFT` Function
700698

@@ -730,11 +728,12 @@ FFT(
730728

731729
### 4.4 Input Requirements and Limitations
732730

733-
* Supported FFT input types are `INT32`, `INT64`, `FLOAT`, and `DOUBLE`. Other non-partition columns are ignored.
731+
* Supported FFT input types are `INT32`, `INT64`, `FLOAT`, and `DOUBLE`. Other non-partition, non-time columns are ignored.
734732
* Every numeric input value must be non-`NULL`.
735733
* Timestamps must be strictly ascending within each partition.
736734
* If `SAMPLE_INTERVAL` is omitted, each partition must contain at least two rows. For regularly sampled data, explicitly specifying the interval is recommended.
737735
* FFT assumes equally spaced samples. For irregular timestamps, the implementation uses the average interval (or the supplied interval), so the frequency axis is an approximation.
736+
* The total number of spectrum values (`2 × N × number of numeric columns`) is limited to 16,777,216 in addition to the `N <= 65,536` limit.
738737

739738
### 4.5 Returned Results
740739

‎src/zh/UserGuide/latest-Table/SQL-Manual/Featured-Functions_apache.md‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -694,8 +694,6 @@ IoTDB> SELECT window_start, window_end, stock_id, avg(price) as avg FROM CUMULAT
694694
|2021-01-01T09:00:00.000+08:00|2021-01-01T09:10:00.000+08:00| AAPL|101.66666666666667|
695695
+-----------------------------+-----------------------------+--------+------------------+
696696
```
697-
+-----------------------------+-----------------------------+--------+------------------+
698-
```
699697

700698
## 4. `FFT` 函数
701699

@@ -731,11 +729,12 @@ FFT(
731729

732730
### 4.4 输入要求与限制
733731

734-
* 支持的 FFT 输入类型为 `INT32`、`INT64`、`FLOAT` 和 `DOUBLE`,其他非分区列会被忽略。
732+
* 支持的 FFT 输入类型为 `INT32`、`INT64`、`FLOAT` 和 `DOUBLE`,其他非分区、非时间列会被忽略。
735733
* 所有数值输入都不能为 `NULL`。
736734
* 每个分区内的时间戳必须严格递增。
737735
* 省略 `SAMPLE_INTERVAL` 时,每个分区至少需要两行数据。对于等间隔采样数据,建议显式指定采样间隔。
738736
* FFT 假设样本等间隔。对于时间戳不规则的数据,函数使用平均间隔(或用户提供的间隔),因此频率轴结果是近似值。
737+
* 除了 `N <= 65,536` 的限制外,频谱值总数(`2 × N × 数值列数`)不能超过 16,777,216。
739738

740739
### 4.5 返回结果
741740

0 commit comments

Comments
 (0)