Cpaulyz opened a new pull request, #15333:
URL: https://github.com/apache/iotdb/pull/15333
## Description
Support invoke table function without TABLE keyword.
```sql
-- recommended usage --
SELECT window_start, window_end, stock_id, avg(price) as avg
FROM session(
DATA => table_0 PARTITION BY stock_d ORDER BY time,
TIMECOL => 'time',
GAP => 2m)
GROUP BY window_start, window_end, stock_id;
-- also support to invoke with TABLE keyword to be compatible with ISO/IEC
19075-7 --
SELECT window_start, window_end, stock_id, avg(price) as avg
FROM TABLE(
session(
DATA => TABLE(table_0) PARTITION BY stock_d ORDER BY time,
TIMECOL => 'time',
GAP => 2m))
GROUP BY window_start, window_end, stock_id;
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]