diff --git a/README.md b/README.md
index 05c1c075f0..885f91cb4e 100644
--- a/README.md
+++ b/README.md
@@ -14,6 +14,12 @@
[](https://ci.appveyor.com/project/sangshuduo/tdengine-2n8ge/branch/master)
[](https://coveralls.io/github/taosdata/TDengine?branch=develop)
[](https://bestpractices.coreinfrastructure.org/projects/4201)
+
+[](https://twitter.com/tdenginedb)
+[](https://www.youtube.com/@tdengine)
+[](https://discord.com/invite/VZdSuUg4pS)
+[](https://www.linkedin.com/company/tdengine)
+[](https://stackoverflow.com/questions/tagged/tdengine)
English | [简体中文](README-CN.md) | [TDengine Cloud](https://cloud.tdengine.com) | [Learn more about TSDB](https://tdengine.com/tsdb/)
diff --git a/cmake/cmake.version b/cmake/cmake.version
index a4c783b6c8..a30618157b 100644
--- a/cmake/cmake.version
+++ b/cmake/cmake.version
@@ -2,7 +2,7 @@
IF (DEFINED VERNUMBER)
SET(TD_VER_NUMBER ${VERNUMBER})
ELSE ()
- SET(TD_VER_NUMBER "3.0.2.4")
+ SET(TD_VER_NUMBER "3.0.2.5")
ENDIF ()
IF (DEFINED VERCOMPATIBLE)
diff --git a/cmake/taostools_CMakeLists.txt.in b/cmake/taostools_CMakeLists.txt.in
index 37dd448b87..48f31c6daf 100644
--- a/cmake/taostools_CMakeLists.txt.in
+++ b/cmake/taostools_CMakeLists.txt.in
@@ -2,7 +2,7 @@
# taos-tools
ExternalProject_Add(taos-tools
GIT_REPOSITORY https://github.com/taosdata/taos-tools.git
- GIT_TAG 6a2d9fc
+ GIT_TAG e04f39b
SOURCE_DIR "${TD_SOURCE_DIR}/tools/taos-tools"
BINARY_DIR ""
#BUILD_IN_SOURCE TRUE
diff --git a/docs/en/12-taos-sql/06-select.md b/docs/en/12-taos-sql/06-select.md
index c087a9e9fb..485779f55f 100644
--- a/docs/en/12-taos-sql/06-select.md
+++ b/docs/en/12-taos-sql/06-select.md
@@ -12,6 +12,7 @@ SELECT [DISTINCT] select_list
from_clause
[WHERE condition]
[partition_by_clause]
+ [interp_clause]
[window_clause]
[group_by_clause]
[order_by_clasue]
@@ -52,8 +53,11 @@ window_clause: {
| STATE_WINDOW(col)
| INTERVAL(interval_val [, interval_offset]) [SLIDING (sliding_val)] [WATERMARK(watermark_val)] [FILL(fill_mod_and_val)]
+interp_clause:
+ RANGE(ts_val, ts_val), EVERY(every_val), FILL(fill_mod_and_val)
+
partition_by_clause:
- PARTITION BY expr [, expr] ...
+ PARTITION BY expr [, expr] ...
group_by_clause:
GROUP BY expr [, expr] ... HAVING condition
diff --git a/docs/en/12-taos-sql/10-function.md b/docs/en/12-taos-sql/10-function.md
index 1d1a4560f1..8ab5176aab 100644
--- a/docs/en/12-taos-sql/10-function.md
+++ b/docs/en/12-taos-sql/10-function.md
@@ -872,9 +872,9 @@ INTERP(expr)
- `INTERP` is used to get the value that matches the specified time slice from a column. If no such value exists an interpolation value will be returned based on `FILL` parameter.
- The input data of `INTERP` is the value of the specified column and a `where` clause can be used to filter the original data. If no `where` condition is specified then all original data is the input.
- `INTERP` must be used along with `RANGE`, `EVERY`, `FILL` keywords.
-- The output time range of `INTERP` is specified by `RANGE(timestamp1,timestamp2)` parameter, with timestamp1 < timestamp2. timestamp1 is the starting point of the output time range and must be specified. timestamp2 is the ending point of the output time range and must be specified.
+- The output time range of `INTERP` is specified by `RANGE(timestamp1,timestamp2)` parameter, with timestamp1 <= timestamp2. timestamp1 is the starting point of the output time range and must be specified. timestamp2 is the ending point of the output time range and must be specified.
- The number of rows in the result set of `INTERP` is determined by the parameter `EVERY(time_unit)`. Starting from timestamp1, one interpolation is performed for every time interval specified `time_unit` parameter. The parameter `time_unit` must be an integer, with no quotes, with a time unit of: a(millisecond)), s(second), m(minute), h(hour), d(day), or w(week). For example, `EVERY(500a)` will interpolate every 500 milliseconds.
-- Interpolation is performed based on `FILL` parameter. For more information about FILL clause, see [FILL Clause](./distinguished/#fill-clause).
+- Interpolation is performed based on `FILL` parameter. For more information about FILL clause, see [FILL Clause](../distinguished/#fill-clause).
- `INTERP` can only be used to interpolate in single timeline. So it must be used with `partition by tbname` when it's used on a STable.
- Pseudo column `_irowts` can be used along with `INTERP` to return the timestamps associated with interpolation points(support after version 3.0.1.4).
diff --git a/docs/zh/12-taos-sql/06-select.md b/docs/zh/12-taos-sql/06-select.md
index 3b681f401c..b9b26279e6 100644
--- a/docs/zh/12-taos-sql/06-select.md
+++ b/docs/zh/12-taos-sql/06-select.md
@@ -13,6 +13,7 @@ SELECT [DISTINCT] select_list
from_clause
[WHERE condition]
[partition_by_clause]
+ [interp_clause]
[window_clause]
[group_by_clause]
[order_by_clasue]
@@ -53,8 +54,11 @@ window_clause: {
| STATE_WINDOW(col)
| INTERVAL(interval_val [, interval_offset]) [SLIDING (sliding_val)] [WATERMARK(watermark_val)] [FILL(fill_mod_and_val)]
+interp_clause:
+ RANGE(ts_val, ts_val), EVERY(every_val), FILL(fill_mod_and_val)
+
partition_by_clause:
- PARTITION BY expr [, expr] ...
+ PARTITION BY expr [, expr] ...
group_by_clause:
GROUP BY expr [, expr] ... HAVING condition
diff --git a/docs/zh/12-taos-sql/10-function.md b/docs/zh/12-taos-sql/10-function.md
index c2fe0f0cb6..c44c09d10c 100644
--- a/docs/zh/12-taos-sql/10-function.md
+++ b/docs/zh/12-taos-sql/10-function.md
@@ -875,9 +875,9 @@ INTERP(expr)
- INTERP 用于在指定时间断面获取指定列的记录值,如果该时间断面不存在符合条件的行数据,那么会根据 FILL 参数的设定进行插值。
- INTERP 的输入数据为指定列的数据,可以通过条件语句(where 子句)来对原始列数据进行过滤,如果没有指定过滤条件则输入为全部数据。
- INTERP 需要同时与 RANGE,EVERY 和 FILL 关键字一起使用。
-- INTERP 的输出时间范围根据 RANGE(timestamp1,timestamp2)字段来指定,需满足 timestamp1 < timestamp2。其中 timestamp1(必选值)为输出时间范围的起始值,即如果 timestamp1 时刻符合插值条件则 timestamp1 为输出的第一条记录,timestamp2(必选值)为输出时间范围的结束值,即输出的最后一条记录的 timestamp 不能大于 timestamp2。
+- INTERP 的输出时间范围根据 RANGE(timestamp1,timestamp2)字段来指定,需满足 timestamp1 <= timestamp2。其中 timestamp1(必选值)为输出时间范围的起始值,即如果 timestamp1 时刻符合插值条件则 timestamp1 为输出的第一条记录,timestamp2(必选值)为输出时间范围的结束值,即输出的最后一条记录的 timestamp 不能大于 timestamp2。
- INTERP 根据 EVERY(time_unit) 字段来确定输出时间范围内的结果条数,即从 timestamp1 开始每隔固定长度的时间(time_unit 值)进行插值,time_unit 可取值时间单位:1a(毫秒),1s(秒),1m(分),1h(小时),1d(天),1w(周)。例如 EVERY(500a) 将对于指定数据每500毫秒间隔进行一次插值.
-- INTERP 根据 FILL 字段来决定在每个符合输出条件的时刻如何进行插值。关于 FILL 子句如何使用请参考 [FILL 子句](./distinguished/#fill-子句)
+- INTERP 根据 FILL 字段来决定在每个符合输出条件的时刻如何进行插值。关于 FILL 子句如何使用请参考 [FILL 子句](../distinguished/#fill-子句)
- INTERP 只能在一个时间序列内进行插值,因此当作用于超级表时必须跟 partition by tbname 一起使用。
- INTERP 可以与伪列 _irowts 一起使用,返回插值点所对应的时间戳(3.0.1.4版本以后支持)。
diff --git a/include/common/tmsg.h b/include/common/tmsg.h
index a764f79a5b..8dcadf47b6 100644
--- a/include/common/tmsg.h
+++ b/include/common/tmsg.h
@@ -144,12 +144,14 @@ typedef enum _mgmt_table {
#define TSDB_ALTER_TABLE_UPDATE_OPTIONS 9
#define TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME 10
-#define TSDB_FILL_NONE 0
-#define TSDB_FILL_NULL 1
-#define TSDB_FILL_SET_VALUE 2
-#define TSDB_FILL_LINEAR 3
-#define TSDB_FILL_PREV 4
-#define TSDB_FILL_NEXT 5
+#define TSDB_FILL_NONE 0
+#define TSDB_FILL_NULL 1
+#define TSDB_FILL_NULL_F 2
+#define TSDB_FILL_SET_VALUE 3
+#define TSDB_FILL_SET_VALUE_F 4
+#define TSDB_FILL_LINEAR 5
+#define TSDB_FILL_PREV 6
+#define TSDB_FILL_NEXT 7
#define TSDB_ALTER_USER_PASSWD 0x1
#define TSDB_ALTER_USER_SUPERUSER 0x2
@@ -1752,6 +1754,7 @@ typedef struct {
#define STREAM_FILL_HISTORY_ON 1
#define STREAM_FILL_HISTORY_OFF 0
#define STREAM_DEFAULT_FILL_HISTORY STREAM_FILL_HISTORY_OFF
+#define STREAM_DEFAULT_IGNORE_UPDATE 0
typedef struct {
char name[TSDB_STREAM_FNAME_LEN];
@@ -1770,6 +1773,7 @@ typedef struct {
// 3.0.20
int64_t checkpointFreq; // ms
int64_t deleteMark;
+ int8_t igUpdate;
} SCMCreateStreamReq;
typedef struct {
diff --git a/include/common/ttokendef.h b/include/common/ttokendef.h
index 0192bbf486..1d69e129f4 100644
--- a/include/common/ttokendef.h
+++ b/include/common/ttokendef.h
@@ -209,134 +209,136 @@
#define TK_IGNORE 191
#define TK_EXPIRED 192
#define TK_FILL_HISTORY 193
-#define TK_SUBTABLE 194
-#define TK_KILL 195
-#define TK_CONNECTION 196
-#define TK_TRANSACTION 197
-#define TK_BALANCE 198
-#define TK_VGROUP 199
-#define TK_MERGE 200
-#define TK_REDISTRIBUTE 201
-#define TK_SPLIT 202
-#define TK_DELETE 203
-#define TK_INSERT 204
-#define TK_NULL 205
-#define TK_NK_QUESTION 206
-#define TK_NK_ARROW 207
-#define TK_ROWTS 208
-#define TK_QSTART 209
-#define TK_QEND 210
-#define TK_QDURATION 211
-#define TK_WSTART 212
-#define TK_WEND 213
-#define TK_WDURATION 214
-#define TK_IROWTS 215
-#define TK_CAST 216
-#define TK_NOW 217
-#define TK_TODAY 218
-#define TK_TIMEZONE 219
-#define TK_CLIENT_VERSION 220
-#define TK_SERVER_VERSION 221
-#define TK_SERVER_STATUS 222
-#define TK_CURRENT_USER 223
-#define TK_COUNT 224
-#define TK_LAST_ROW 225
-#define TK_CASE 226
-#define TK_END 227
-#define TK_WHEN 228
-#define TK_THEN 229
-#define TK_ELSE 230
-#define TK_BETWEEN 231
-#define TK_IS 232
-#define TK_NK_LT 233
-#define TK_NK_GT 234
-#define TK_NK_LE 235
-#define TK_NK_GE 236
-#define TK_NK_NE 237
-#define TK_MATCH 238
-#define TK_NMATCH 239
-#define TK_CONTAINS 240
-#define TK_IN 241
-#define TK_JOIN 242
-#define TK_INNER 243
-#define TK_SELECT 244
-#define TK_DISTINCT 245
-#define TK_WHERE 246
-#define TK_PARTITION 247
-#define TK_BY 248
-#define TK_SESSION 249
-#define TK_STATE_WINDOW 250
-#define TK_SLIDING 251
-#define TK_FILL 252
-#define TK_VALUE 253
-#define TK_NONE 254
-#define TK_PREV 255
-#define TK_LINEAR 256
-#define TK_NEXT 257
-#define TK_HAVING 258
-#define TK_RANGE 259
-#define TK_EVERY 260
-#define TK_ORDER 261
-#define TK_SLIMIT 262
-#define TK_SOFFSET 263
-#define TK_LIMIT 264
-#define TK_OFFSET 265
-#define TK_ASC 266
-#define TK_NULLS 267
-#define TK_ABORT 268
-#define TK_AFTER 269
-#define TK_ATTACH 270
-#define TK_BEFORE 271
-#define TK_BEGIN 272
-#define TK_BITAND 273
-#define TK_BITNOT 274
-#define TK_BITOR 275
-#define TK_BLOCKS 276
-#define TK_CHANGE 277
-#define TK_COMMA 278
-#define TK_COMPACT 279
-#define TK_CONCAT 280
-#define TK_CONFLICT 281
-#define TK_COPY 282
-#define TK_DEFERRED 283
-#define TK_DELIMITERS 284
-#define TK_DETACH 285
-#define TK_DIVIDE 286
-#define TK_DOT 287
-#define TK_EACH 288
-#define TK_FAIL 289
-#define TK_FILE 290
-#define TK_FOR 291
-#define TK_GLOB 292
-#define TK_ID 293
-#define TK_IMMEDIATE 294
-#define TK_IMPORT 295
-#define TK_INITIALLY 296
-#define TK_INSTEAD 297
-#define TK_ISNULL 298
-#define TK_KEY 299
-#define TK_MODULES 300
-#define TK_NK_BITNOT 301
-#define TK_NK_SEMI 302
-#define TK_NOTNULL 303
-#define TK_OF 304
-#define TK_PLUS 305
-#define TK_PRIVILEGE 306
-#define TK_RAISE 307
-#define TK_REPLACE 308
-#define TK_RESTRICT 309
-#define TK_ROW 310
-#define TK_SEMI 311
-#define TK_STAR 312
-#define TK_STATEMENT 313
-#define TK_STRICT 314
-#define TK_STRING 315
-#define TK_TIMES 316
-#define TK_UPDATE 317
-#define TK_VALUES 318
-#define TK_VARIABLE 319
-#define TK_VIEW 320
-#define TK_WAL 321
+#define TK_UPDATE 194
+#define TK_SUBTABLE 195
+#define TK_KILL 196
+#define TK_CONNECTION 197
+#define TK_TRANSACTION 198
+#define TK_BALANCE 199
+#define TK_VGROUP 200
+#define TK_MERGE 201
+#define TK_REDISTRIBUTE 202
+#define TK_SPLIT 203
+#define TK_DELETE 204
+#define TK_INSERT 205
+#define TK_NULL 206
+#define TK_NK_QUESTION 207
+#define TK_NK_ARROW 208
+#define TK_ROWTS 209
+#define TK_QSTART 210
+#define TK_QEND 211
+#define TK_QDURATION 212
+#define TK_WSTART 213
+#define TK_WEND 214
+#define TK_WDURATION 215
+#define TK_IROWTS 216
+#define TK_CAST 217
+#define TK_NOW 218
+#define TK_TODAY 219
+#define TK_TIMEZONE 220
+#define TK_CLIENT_VERSION 221
+#define TK_SERVER_VERSION 222
+#define TK_SERVER_STATUS 223
+#define TK_CURRENT_USER 224
+#define TK_COUNT 225
+#define TK_LAST_ROW 226
+#define TK_CASE 227
+#define TK_END 228
+#define TK_WHEN 229
+#define TK_THEN 230
+#define TK_ELSE 231
+#define TK_BETWEEN 232
+#define TK_IS 233
+#define TK_NK_LT 234
+#define TK_NK_GT 235
+#define TK_NK_LE 236
+#define TK_NK_GE 237
+#define TK_NK_NE 238
+#define TK_MATCH 239
+#define TK_NMATCH 240
+#define TK_CONTAINS 241
+#define TK_IN 242
+#define TK_JOIN 243
+#define TK_INNER 244
+#define TK_SELECT 245
+#define TK_DISTINCT 246
+#define TK_WHERE 247
+#define TK_PARTITION 248
+#define TK_BY 249
+#define TK_SESSION 250
+#define TK_STATE_WINDOW 251
+#define TK_SLIDING 252
+#define TK_FILL 253
+#define TK_VALUE 254
+#define TK_VALUE_F 255
+#define TK_NONE 256
+#define TK_PREV 257
+#define TK_NULL_F 258
+#define TK_LINEAR 259
+#define TK_NEXT 260
+#define TK_HAVING 261
+#define TK_RANGE 262
+#define TK_EVERY 263
+#define TK_ORDER 264
+#define TK_SLIMIT 265
+#define TK_SOFFSET 266
+#define TK_LIMIT 267
+#define TK_OFFSET 268
+#define TK_ASC 269
+#define TK_NULLS 270
+#define TK_ABORT 271
+#define TK_AFTER 272
+#define TK_ATTACH 273
+#define TK_BEFORE 274
+#define TK_BEGIN 275
+#define TK_BITAND 276
+#define TK_BITNOT 277
+#define TK_BITOR 278
+#define TK_BLOCKS 279
+#define TK_CHANGE 280
+#define TK_COMMA 281
+#define TK_COMPACT 282
+#define TK_CONCAT 283
+#define TK_CONFLICT 284
+#define TK_COPY 285
+#define TK_DEFERRED 286
+#define TK_DELIMITERS 287
+#define TK_DETACH 288
+#define TK_DIVIDE 289
+#define TK_DOT 290
+#define TK_EACH 291
+#define TK_FAIL 292
+#define TK_FILE 293
+#define TK_FOR 294
+#define TK_GLOB 295
+#define TK_ID 296
+#define TK_IMMEDIATE 297
+#define TK_IMPORT 298
+#define TK_INITIALLY 299
+#define TK_INSTEAD 300
+#define TK_ISNULL 301
+#define TK_KEY 302
+#define TK_MODULES 303
+#define TK_NK_BITNOT 304
+#define TK_NK_SEMI 305
+#define TK_NOTNULL 306
+#define TK_OF 307
+#define TK_PLUS 308
+#define TK_PRIVILEGE 309
+#define TK_RAISE 310
+#define TK_REPLACE 311
+#define TK_RESTRICT 312
+#define TK_ROW 313
+#define TK_SEMI 314
+#define TK_STAR 315
+#define TK_STATEMENT 316
+#define TK_STRICT 317
+#define TK_STRING 318
+#define TK_TIMES 319
+#define TK_VALUES 320
+#define TK_VARIABLE 321
+#define TK_VIEW 322
+#define TK_WAL 323
#define TK_NK_SPACE 600
#define TK_NK_COMMENT 601
diff --git a/include/libs/nodes/cmdnodes.h b/include/libs/nodes/cmdnodes.h
index b1054e7b85..de27806912 100644
--- a/include/libs/nodes/cmdnodes.h
+++ b/include/libs/nodes/cmdnodes.h
@@ -389,6 +389,7 @@ typedef struct SStreamOptions {
SNode* pDeleteMark;
int8_t fillHistory;
int8_t ignoreExpired;
+ int8_t ignoreUpdate;
} SStreamOptions;
typedef struct SCreateStreamStmt {
diff --git a/include/libs/nodes/plannodes.h b/include/libs/nodes/plannodes.h
index d885665117..80fa0d3e78 100644
--- a/include/libs/nodes/plannodes.h
+++ b/include/libs/nodes/plannodes.h
@@ -93,6 +93,7 @@ typedef struct SScanLogicNode {
int64_t watermark;
int64_t deleteMark;
int8_t igExpired;
+ int8_t igCheckUpdate;
SArray* pSmaIndexes;
SNodeList* pGroupTags;
bool groupSort;
@@ -217,6 +218,7 @@ typedef struct SWindowLogicNode {
int64_t watermark;
int64_t deleteMark;
int8_t igExpired;
+ int8_t igCheckUpdate;
EWindowAlgorithm windowAlgo;
EOrder inputTsOrder;
EOrder outputTsOrder;
@@ -357,6 +359,7 @@ typedef struct STableScanPhysiNode {
int64_t watermark;
int8_t igExpired;
bool assignBlockUid;
+ int8_t igCheckUpdate;
} STableScanPhysiNode;
typedef STableScanPhysiNode STableSeqScanPhysiNode;
diff --git a/include/libs/nodes/querynodes.h b/include/libs/nodes/querynodes.h
index 48b98fcf33..e291051351 100644
--- a/include/libs/nodes/querynodes.h
+++ b/include/libs/nodes/querynodes.h
@@ -226,8 +226,10 @@ typedef struct SIntervalWindowNode {
typedef enum EFillMode {
FILL_MODE_NONE = 1,
FILL_MODE_VALUE,
+ FILL_MODE_VALUE_F,
FILL_MODE_PREV,
FILL_MODE_NULL,
+ FILL_MODE_NULL_F,
FILL_MODE_LINEAR,
FILL_MODE_NEXT
} EFillMode;
diff --git a/include/libs/planner/planner.h b/include/libs/planner/planner.h
index f7bd68393e..41c0e98084 100644
--- a/include/libs/planner/planner.h
+++ b/include/libs/planner/planner.h
@@ -36,6 +36,7 @@ typedef struct SPlanContext {
int64_t watermark;
int64_t deleteMark;
int8_t igExpired;
+ int8_t igCheckUpdate;
char* pMsg;
int32_t msgLen;
const char* pUser;
diff --git a/include/libs/wal/wal.h b/include/libs/wal/wal.h
index a0f421212a..1eed342f8c 100644
--- a/include/libs/wal/wal.h
+++ b/include/libs/wal/wal.h
@@ -191,6 +191,7 @@ int32_t walApplyVer(SWal *, int64_t ver);
// read
SWalReader *walOpenReader(SWal *, SWalFilterCond *pCond);
void walCloseReader(SWalReader *pRead);
+void walReadReset(SWalReader *pReader);
int32_t walReadVer(SWalReader *pRead, int64_t ver);
int32_t walReadSeekVer(SWalReader *pRead, int64_t ver);
int32_t walNextValidMsg(SWalReader *pRead);
diff --git a/include/os/osFile.h b/include/os/osFile.h
index ae77e0f27a..0e93002706 100644
--- a/include/os/osFile.h
+++ b/include/os/osFile.h
@@ -110,6 +110,8 @@ bool taosValidFile(TdFilePtr pFile);
int32_t taosGetErrorFile(TdFilePtr pFile);
+int32_t taosCompressFile(char *srcFileName, char *destFileName);
+
#ifdef __cplusplus
}
#endif
diff --git a/packaging/tools/make_install.bat b/packaging/tools/make_install.bat
index c19519f9a1..993a8a19ee 100644
--- a/packaging/tools/make_install.bat
+++ b/packaging/tools/make_install.bat
@@ -2,12 +2,20 @@
for /F %%a in ('echo prompt $E ^| cmd') do set "ESC=%%a"
-goto %1
+if "%1" NEQ "" goto %1
+
:needAdmin
if exist C:\\TDengine\\data\\dnode\\dnodeCfg.json (
echo The default data directory C:/TDengine/data contains old data of tdengine 2.x, please clear it before installing!
)
+
+rem // stop and delete service
+mshta vbscript:createobject("shell.application").shellexecute("%~s0",":stop_delete","","runas",1)(window.close)
+echo This might take a few moment to accomplish deleting service taosd/taosadapter ...
+call :check_svc taosd
+call :check_svc taosadapter
+
set source_dir=%2
set source_dir=%source_dir:/=\\%
set binary_dir=%3
@@ -60,7 +68,6 @@ if exist %binary_dir%\\build\\bin\\taosdump.exe (
copy %binary_dir%\\build\\bin\\taosd.exe %target_dir% > nul
copy %binary_dir%\\build\\bin\\udfd.exe %target_dir% > nul
-
if exist %binary_dir%\\build\\bin\\taosadapter.exe (
copy %binary_dir%\\build\\bin\\taosadapter.exe %target_dir% > nul
)
@@ -80,22 +87,23 @@ goto :eof
:hasAdmin
-sc query "taosd" && sc stop taosd && sc delete taosd
-sc query "taosadapter" && sc stop taosadapter && sc delete taosd
+call :stop_delete
+call :check_svc taosd
+call :check_svc taosadapter
copy /y C:\\TDengine\\driver\\taos.dll C:\\Windows\\System32 > nul
if exist C:\\TDengine\\driver\\taosws.dll (
copy /y C:\\TDengine\\driver\\taosws.dll C:\\Windows\\System32 > nul
)
-sc query "taosd" >nul || sc create "taosd" binPath= "C:\\TDengine\\taosd.exe --win_service" start= DEMAND
-sc query "taosadapter" >nul || sc create "taosadapter" binPath= "C:\\TDengine\\taosadapter.exe" start= DEMAND
+rem // create services
+sc create "taosd" binPath= "C:\\TDengine\\taosd.exe --win_service" start= DEMAND
+sc create "taosadapter" binPath= "C:\\TDengine\\taosadapter.exe" start= DEMAND
set "env=HKLM\System\CurrentControlSet\Control\Session Manager\Environment"
for /f "tokens=2*" %%I in ('reg query "%env%" /v Path ^| findstr /i "\"') do (
- rem // make addition persistent through reboots
- reg add "%env%" /f /v Path /t REG_EXPAND_SZ /d "%%J;C:\TDengine"
+ call :append_if_not_exists %%J
rem // apply change to the current process
for %%a in ("%%J;C:\TDengine") do path %%~a
@@ -105,3 +113,36 @@ rem // use setx to set a temporary throwaway value to trigger a WM_SETTINGCHANGE
rem // applies change to new console windows without requiring a reboot
(setx /m foo bar & reg delete "%env%" /f /v foo) >NUL 2>NUL
+goto :end
+
+:append_if_not_exists
+set "_origin_paths=%*"
+set "_paths=%*"
+set "_found=0"
+:loop
+for /f "tokens=1* delims=;" %%x in ("%_paths%") do (
+ if "%%x" EQU "C:\TDengine" (
+ set "_found=1"
+ ) else (
+ set "_paths=%%y"
+ goto :loop
+ )
+)
+if "%_found%" == "0" (
+ rem // make addition persistent through reboots
+ reg add "%env%" /f /v Path /t REG_EXPAND_SZ /d "%_origin_paths%;C:\TDengine"
+)
+exit /B 0
+
+:stop_delete
+sc stop taosd
+sc delete taosd
+sc stop taosadapter
+sc delete taosadapter
+exit /B 0
+
+:check_svc
+sc query %1 >nul 2>nul && goto :check_svc %1
+exit /B 0
+
+:end
diff --git a/source/client/CMakeLists.txt b/source/client/CMakeLists.txt
index 0c445c7fbf..d0cfd38fb9 100644
--- a/source/client/CMakeLists.txt
+++ b/source/client/CMakeLists.txt
@@ -62,4 +62,4 @@ target_link_libraries(
if(${BUILD_TEST})
ADD_SUBDIRECTORY(test)
-endif(${BUILD_TEST})
\ No newline at end of file
+endif(${BUILD_TEST})
diff --git a/source/client/src/clientSml.c b/source/client/src/clientSml.c
index c24aa536c2..0694f4c457 100644
--- a/source/client/src/clientSml.c
+++ b/source/client/src/clientSml.c
@@ -149,17 +149,8 @@ typedef struct {
int64_t endTime;
} SSmlCostInfo;
-typedef struct {
- SRequestObj *request;
- tsem_t sem;
- int32_t cnt;
- int32_t total;
- TdThreadSpinlock lock;
-} Params;
-
typedef struct {
int64_t id;
- Params *params;
SMLProtocolType protocol;
int8_t precision;
@@ -178,7 +169,6 @@ typedef struct {
SQuery *pQuery;
SSmlCostInfo cost;
- int32_t affectedRows;
SSmlMsgBuf msgBuf;
SHashObj *dumplicateKey; // for dumplicate key
SArray *colsContainer; // for cols parse, if dataFormat == false
@@ -1513,7 +1503,6 @@ static void smlDestroyInfo(SSmlHandle *info) {
if (!info->dataFormat) {
taosArrayDestroy(info->colsContainer);
}
- destroyRequest(info->pRequest);
cJSON_Delete(info->root);
taosMemoryFreeClear(info);
@@ -2351,20 +2340,11 @@ static int32_t smlInsertData(SSmlHandle *info) {
}
info->cost.insertRpcTime = taosGetTimestampUs();
- // launchQueryImpl(info->pRequest, info->pQuery, false, NULL);
- // info->affectedRows = taos_affected_rows(info->pRequest);
- // return info->pRequest->code;
-
SAppClusterSummary *pActivity = &info->taos->pAppInfo->summary;
atomic_add_fetch_64((int64_t *)&pActivity->numOfInsertsReq, 1);
- SSqlCallbackWrapper *pWrapper = (SSqlCallbackWrapper *)taosMemoryCalloc(1, sizeof(SSqlCallbackWrapper));
- if (pWrapper == NULL) {
- return TSDB_CODE_OUT_OF_MEMORY;
- }
- pWrapper->pRequest = info->pRequest;
- launchAsyncQuery(info->pRequest, info->pQuery, NULL, pWrapper);
- return TSDB_CODE_SUCCESS;
+ launchQueryImpl(info->pRequest, info->pQuery, true, NULL);
+ return info->pRequest->code;
}
static void smlPrintStatisticInfo(SSmlHandle *info) {
@@ -2498,48 +2478,13 @@ static int32_t isSchemalessDb(STscObj *taos, SRequestObj *request) {
return TSDB_CODE_SUCCESS;
}
-static void smlInsertCallback(void *param, void *res, int32_t code) {
- SRequestObj *pRequest = (SRequestObj *)res;
- SSmlHandle *info = (SSmlHandle *)param;
- int32_t rows = taos_affected_rows(pRequest);
-
- uDebug("SML:0x%" PRIx64 " result. code:%d, msg:%s", info->id, pRequest->code, pRequest->msgBuf);
- Params *pParam = info->params;
- // lock
- taosThreadSpinLock(&pParam->lock);
- pParam->cnt++;
- if (code != TSDB_CODE_SUCCESS) {
- pParam->request->code = code;
- pParam->request->body.resInfo.numOfRows += rows;
- } else {
- pParam->request->body.resInfo.numOfRows += info->affectedRows;
- }
- // unlock
- taosThreadSpinUnlock(&pParam->lock);
-
- if (pParam->cnt == pParam->total) {
- tsem_post(&pParam->sem);
- }
- uDebug("SML:0x%" PRIx64 " insert finished, code: %d, rows: %d, total: %d", info->id, code, rows, info->affectedRows);
- info->cost.endTime = taosGetTimestampUs();
- info->cost.code = code;
- smlPrintStatisticInfo(info);
- smlDestroyInfo(info);
-}
-
TAOS_RES *taos_schemaless_insert_inner(SRequestObj *request, char *lines[], char *rawLine, char *rawLineEnd,
int numLines, int protocol, int precision, int32_t ttl) {
- int batchs = 0;
STscObj *pTscObj = request->pTscObj;
-
+ SSmlHandle *info = NULL;
pTscObj->schemalessType = 1;
SSmlMsgBuf msg = {ERROR_MSG_BUF_DEFAULT_SIZE, request->msgBuf};
- Params params = {0};
- params.request = request;
- tsem_init(¶ms.sem, 0, 0);
- taosThreadSpinInit(&(params.lock), 0);
-
if (request->pDb == NULL) {
request->code = TSDB_CODE_PAR_DB_NOT_SPECIFIED;
smlBuildInvalidDataMsg(&msg, "Database not specified", NULL);
@@ -2573,65 +2518,24 @@ TAOS_RES *taos_schemaless_insert_inner(SRequestObj *request, char *lines[], char
goto end;
}
- batchs = ceil(((double)numLines) / tsSmlBatchSize);
- params.total = batchs;
- for (int i = 0; i < batchs; ++i) {
- SRequestObj *req = (SRequestObj *)createRequest(pTscObj->id, TSDB_SQL_INSERT, 0);
- if (!req) {
- request->code = TSDB_CODE_OUT_OF_MEMORY;
- uError("SML:taos_schemaless_insert error request is null");
- goto end;
- }
- SSmlHandle *info = smlBuildSmlInfo(pTscObj, req, (SMLProtocolType)protocol, precision);
- if (!info) {
- request->code = TSDB_CODE_OUT_OF_MEMORY;
- uError("SML:taos_schemaless_insert error SSmlHandle is null");
- goto end;
- }
-
- info->isRawLine = (rawLine == NULL);
- info->ttl = ttl;
-
- int32_t perBatch = tsSmlBatchSize;
-
- if (numLines > perBatch) {
- numLines -= perBatch;
- } else {
- perBatch = numLines;
- numLines = 0;
- }
-
- info->params = ¶ms;
- info->affectedRows = perBatch;
- info->pRequest->body.queryFp = smlInsertCallback;
- info->pRequest->body.param = info;
- int32_t code = smlProcess(info, lines, rawLine, rawLineEnd, perBatch);
- if (lines) {
- lines += perBatch;
- }
- if (rawLine) {
- int num = 0;
- while (rawLine < rawLineEnd) {
- if (*(rawLine++) == '\n') {
- num++;
- }
- if (num == perBatch) {
- break;
- }
- }
- }
- if (code != TSDB_CODE_SUCCESS) {
- info->pRequest->body.queryFp(info, req, code);
- }
+ info = smlBuildSmlInfo(pTscObj, request, (SMLProtocolType)protocol, precision);
+ if (!info) {
+ request->code = TSDB_CODE_OUT_OF_MEMORY;
+ uError("SML:taos_schemaless_insert error SSmlHandle is null");
+ goto end;
}
- tsem_wait(¶ms.sem);
+
+ info->isRawLine = (rawLine == NULL);
+ info->ttl = ttl;
+ request->code = smlProcess(info, lines, rawLine, rawLineEnd, numLines);
end:
- taosThreadSpinDestroy(¶ms.lock);
- tsem_destroy(¶ms.sem);
- // ((STscObj *)taos)->schemalessType = 0;
- pTscObj->schemalessType = 1;
- uDebug("resultend:%s", request->msgBuf);
+ uDebug("SML:0x%" PRIx64 " insert finished, code: %d", info->id, request->code);
+ info->cost.endTime = taosGetTimestampUs();
+ info->cost.code = request->code;
+ smlPrintStatisticInfo(info);
+ smlDestroyInfo(info);
+
return (TAOS_RES *)request;
}
diff --git a/source/client/test/clientTests.cpp b/source/client/test/clientTests.cpp
index 82202b8820..a75411a854 100644
--- a/source/client/test/clientTests.cpp
+++ b/source/client/test/clientTests.cpp
@@ -112,7 +112,7 @@ void createNewTable(TAOS* pConn, int32_t index) {
}
taos_free_result(pRes);
- for(int32_t i = 0; i < 20; i += 20) {
+ for(int32_t i = 0; i < 2000; i += 20) {
char sql[1024] = {0};
sprintf(sql,
"insert into tu%d values(now+%da, %d)(now+%da, %d)(now+%da, %d)(now+%da, %d)"
@@ -692,6 +692,7 @@ TEST(testCase, insert_test) {
taos_free_result(pRes);
taos_close(pConn);
}
+#endif
TEST(testCase, projection_query_tables) {
TAOS* pConn = taos_connect("localhost", "root", "taosdata", NULL, 0);
@@ -725,7 +726,7 @@ TEST(testCase, projection_query_tables) {
}
taos_free_result(pRes);
- for (int32_t i = 0; i < 200000; ++i) {
+ for (int32_t i = 0; i < 2; ++i) {
printf("create table :%d\n", i);
createNewTable(pConn, i);
}
@@ -751,6 +752,7 @@ TEST(testCase, projection_query_tables) {
taos_close(pConn);
}
+#if 0
TEST(testCase, tsbs_perf_test) {
TdThread qid[20] = {0};
@@ -760,8 +762,6 @@ TEST(testCase, tsbs_perf_test) {
getchar();
}
-#endif
-
TEST(testCase, projection_query_stables) {
TAOS* pConn = taos_connect("localhost", "root", "taosdata", NULL, 0);
ASSERT_NE(pConn, nullptr);
@@ -790,7 +790,6 @@ TEST(testCase, projection_query_stables) {
taos_close(pConn);
}
-#if 0
TEST(testCase, agg_query_tables) {
TAOS* pConn = taos_connect("localhost", "root", "taosdata", NULL, 0);
ASSERT_NE(pConn, nullptr);
@@ -831,7 +830,7 @@ TEST(testCase, async_api_test) {
ASSERT_NE(pConn, nullptr);
taos_query(pConn, "use abc1");
-#if 0
+
TAOS_RES* pRes = taos_query(pConn, "insert into tu(ts) values('2022-02-27 12:12:61')");
if (taos_errno(pRes) != 0) {
printf("failed, reason:%s\n", taos_errstr(pRes));
@@ -854,7 +853,6 @@ TEST(testCase, async_api_test) {
printf("%s\n", str);
memset(str, 0, sizeof(str));
}
-#endif
taos_query_a(pConn, "select count(*) from tu", queryCallback, pConn);
getchar();
diff --git a/source/common/src/tmsg.c b/source/common/src/tmsg.c
index f053a18188..44d3f7be25 100644
--- a/source/common/src/tmsg.c
+++ b/source/common/src/tmsg.c
@@ -5426,6 +5426,7 @@ int32_t tSerializeSCMCreateStreamReq(void *buf, int32_t bufLen, const SCMCreateS
if (tEncodeCStr(&encoder, pField->name) < 0) return -1;
}
if (tEncodeI64(&encoder, pReq->deleteMark) < 0) return -1;
+ if (tEncodeI8(&encoder, pReq->igUpdate) < 0) return -1;
tEndEncode(&encoder);
@@ -5488,6 +5489,7 @@ int32_t tDeserializeSCMCreateStreamReq(void *buf, int32_t bufLen, SCMCreateStrea
}
if (tDecodeI64(&decoder, &pReq->deleteMark) < 0) return -1;
+ if (tDecodeI8(&decoder, &pReq->igUpdate) < 0) return -1;
tEndDecode(&decoder);
diff --git a/source/dnode/mnode/impl/inc/mndDef.h b/source/dnode/mnode/impl/inc/mndDef.h
index 2f824b48b4..6f6f801c39 100644
--- a/source/dnode/mnode/impl/inc/mndDef.h
+++ b/source/dnode/mnode/impl/inc/mndDef.h
@@ -648,6 +648,7 @@ typedef struct {
int64_t checkpointFreq; // ms
int64_t currentTick; // do not serialize
int64_t deleteMark;
+ int8_t igCheckUpdate;
} SStreamObj;
int32_t tEncodeSStreamObj(SEncoder* pEncoder, const SStreamObj* pObj);
diff --git a/source/dnode/mnode/impl/src/mndDef.c b/source/dnode/mnode/impl/src/mndDef.c
index a5f77513de..75177f4158 100644
--- a/source/dnode/mnode/impl/src/mndDef.c
+++ b/source/dnode/mnode/impl/src/mndDef.c
@@ -78,6 +78,7 @@ int32_t tEncodeSStreamObj(SEncoder *pEncoder, const SStreamObj *pObj) {
// 3.0.20
if (tEncodeI64(pEncoder, pObj->checkpointFreq) < 0) return -1;
+ if (tEncodeI8(pEncoder, pObj->igCheckUpdate) < 0) return -1;
tEndEncode(pEncoder);
return pEncoder->pos;
@@ -145,6 +146,7 @@ int32_t tDecodeSStreamObj(SDecoder *pDecoder, SStreamObj *pObj, int32_t sver) {
// 3.0.20
if (sver >= 2) {
if (tDecodeI64(pDecoder, &pObj->checkpointFreq) < 0) return -1;
+ if (tDecodeI8(pDecoder, &pObj->igCheckUpdate) < 0) return -1;
}
tEndDecode(pDecoder);
return 0;
@@ -489,7 +491,7 @@ int32_t tEncodeSubscribeObj(void **buf, const SMqSubscribeObj *pSub) {
tlen += tEncodeSMqConsumerEp(buf, pConsumerEp);
cnt++;
}
- if(cnt != sz) return -1;
+ if (cnt != sz) return -1;
tlen += taosEncodeArray(buf, pSub->unassignedVgs, (FEncode)tEncodeSMqVgEp);
tlen += taosEncodeString(buf, pSub->dbName);
return tlen;
diff --git a/source/dnode/mnode/impl/src/mndStream.c b/source/dnode/mnode/impl/src/mndStream.c
index dd9848518f..b53d1211e9 100644
--- a/source/dnode/mnode/impl/src/mndStream.c
+++ b/source/dnode/mnode/impl/src/mndStream.c
@@ -298,6 +298,7 @@ static int32_t mndBuildStreamObjFromCreateReq(SMnode *pMnode, SStreamObj *pObj,
pObj->watermark = pCreate->watermark;
pObj->fillHistory = pCreate->fillHistory;
pObj->deleteMark = pCreate->deleteMark;
+ pObj->igCheckUpdate = pCreate->igUpdate;
memcpy(pObj->sourceDb, pCreate->sourceDB, TSDB_DB_FNAME_LEN);
SDbObj *pSourceDb = mndAcquireDb(pMnode, pCreate->sourceDB);
@@ -347,6 +348,7 @@ static int32_t mndBuildStreamObjFromCreateReq(SMnode *pMnode, SStreamObj *pObj,
.watermark = pObj->watermark,
.igExpired = pObj->igExpired,
.deleteMark = pObj->deleteMark,
+ .igCheckUpdate = pObj->igCheckUpdate,
};
// using ast and param to build physical plan
diff --git a/source/dnode/vnode/inc/vnode.h b/source/dnode/vnode/inc/vnode.h
index a4cbfe60f7..3b7687359c 100644
--- a/source/dnode/vnode/inc/vnode.h
+++ b/source/dnode/vnode/inc/vnode.h
@@ -178,7 +178,6 @@ int32_t tsdbReaderOpen(SVnode *pVnode, SQueryTableDataCond *pCond, void *pTableL
void tsdbReaderClose(STsdbReader *pReader);
bool tsdbNextDataBlock(STsdbReader *pReader);
-void tsdbRetrieveDataBlockInfo(const STsdbReader *pReader, int32_t *rows, uint64_t *uid, STimeWindow *pWindow);
int32_t tsdbRetrieveDatablockSMA(STsdbReader *pReader, SSDataBlock *pDataBlock, bool *allHave);
SSDataBlock *tsdbRetrieveDataBlock(STsdbReader *pTsdbReadHandle, SArray *pColumnIdList);
int32_t tsdbReaderReset(STsdbReader *pReader, SQueryTableDataCond *pCond);
diff --git a/source/dnode/vnode/src/meta/metaTable.c b/source/dnode/vnode/src/meta/metaTable.c
index 60a27bec10..7406f51d4b 100644
--- a/source/dnode/vnode/src/meta/metaTable.c
+++ b/source/dnode/vnode/src/meta/metaTable.c
@@ -1343,6 +1343,9 @@ static int metaUpdateTagIdx(SMeta *pMeta, const SMetaEntry *pCtbEntry) {
int32_t ret = 0;
// get super table
if (tdbTbGet(pMeta->pUidIdx, &pCtbEntry->ctbEntry.suid, sizeof(tb_uid_t), &pData, &nData) != 0) {
+ metaError("vgId:%d, failed to get stable suid for update. version:%" PRId64, TD_VID(pMeta->pVnode),
+ pCtbEntry->version);
+ terrno = TSDB_CODE_TDB_INVALID_TABLE_ID;
ret = -1;
goto end;
}
diff --git a/source/dnode/vnode/src/tsdb/tsdbMergeTree.c b/source/dnode/vnode/src/tsdb/tsdbMergeTree.c
index af1a42d018..132b7c797c 100644
--- a/source/dnode/vnode/src/tsdb/tsdbMergeTree.c
+++ b/source/dnode/vnode/src/tsdb/tsdbMergeTree.c
@@ -515,7 +515,7 @@ bool tLDataIterNextRow(SLDataIter *pIter, const char *idStr) {
pIter->rInfo.row = tsdbRowFromBlockData(pBlockData, pIter->iRow);
_exit:
- return (terrno == TSDB_CODE_SUCCESS) && (pIter->pSttBlk != NULL);
+ return (terrno == TSDB_CODE_SUCCESS) && (pIter->pSttBlk != NULL) && (pBlockData != NULL);
}
SRowInfo *tLDataIterGet(SLDataIter *pIter) { return &pIter->rInfo; }
diff --git a/source/dnode/vnode/src/tsdb/tsdbRead.c b/source/dnode/vnode/src/tsdb/tsdbRead.c
index 717b76046a..53e5cd7a88 100644
--- a/source/dnode/vnode/src/tsdb/tsdbRead.c
+++ b/source/dnode/vnode/src/tsdb/tsdbRead.c
@@ -220,6 +220,8 @@ static bool hasDataInFileBlock(const SBlockData* pBlockData, const SFil
static void initBlockDumpInfo(STsdbReader* pReader, SDataBlockIter* pBlockIter);
static int32_t getInitialDelIndex(const SArray* pDelSkyline, int32_t order);
+static FORCE_INLINE STSchema* getLatestTableSchema(STsdbReader* pReader, uint64_t uid);
+
static bool outOfTimeWindow(int64_t ts, STimeWindow* pWindow) { return (ts > pWindow->ekey) || (ts < pWindow->skey); }
static int32_t setColumnIdSlotList(SBlockLoadSuppInfo* pSupInfo, SColumnInfo* pCols, const int32_t* pSlotIdList,
@@ -998,7 +1000,7 @@ static void copyNumericCols(const SColData* pData, SFileBlockDumpInfo* pDumpInfo
}
}
-static int32_t copyBlockDataToSDataBlock(STsdbReader* pReader, STableBlockScanInfo* pBlockScanInfo) {
+static int32_t copyBlockDataToSDataBlock(STsdbReader* pReader) {
SReaderStatus* pStatus = &pReader->status;
SDataBlockIter* pBlockIter = &pStatus->blockIter;
SBlockLoadSuppInfo* pSupInfo = &pReader->suppInfo;
@@ -1015,6 +1017,14 @@ static int32_t copyBlockDataToSDataBlock(STsdbReader* pReader, STableBlockScanIn
bool asc = ASCENDING_TRAVERSE(pReader->order);
int32_t step = asc ? 1 : -1;
+ // no data exists, return directly.
+ if (pBlockData->nRow == 0 || pBlockData->aTSKEY == 0) {
+ tsdbWarn("%p no need to copy since no data in blockData, table uid:%" PRIu64 " has been dropped, %s", pReader, pBlockInfo->uid,
+ pReader->idStr);
+ pResBlock->info.rows = 0;
+ return 0;
+ }
+
if ((pDumpInfo->rowIndex == 0 && asc) || (pDumpInfo->rowIndex == pBlock->nRow - 1 && (!asc))) {
if (asc && pReader->window.skey <= pBlock->minKey.ts) {
// pDumpInfo->rowIndex = 0;
@@ -1128,12 +1138,19 @@ static int32_t copyBlockDataToSDataBlock(STsdbReader* pReader, STableBlockScanIn
static int32_t doLoadFileBlockData(STsdbReader* pReader, SDataBlockIter* pBlockIter, SBlockData* pBlockData,
uint64_t uid) {
+ int32_t code = 0;
int64_t st = taosGetTimestampUs();
tBlockDataReset(pBlockData);
+ STSchema* pSchema = getLatestTableSchema(pReader, uid);
+ if (pSchema == NULL) {
+ tsdbDebug("%p table uid:%"PRIu64" has been dropped, no data existed, %s", pReader, uid, pReader->idStr);
+ return code;
+ }
+
+ SBlockLoadSuppInfo* pSup = &pReader->suppInfo;
TABLEID tid = {.suid = pReader->suid, .uid = uid};
- int32_t code =
- tBlockDataInit(pBlockData, &tid, pReader->pSchema, &pReader->suppInfo.colId[1], pReader->suppInfo.numOfCols - 1);
+ code = tBlockDataInit(pBlockData, &tid, pSchema, &pSup->colId[1], pSup->numOfCols - 1);
if (code != TSDB_CODE_SUCCESS) {
return code;
}
@@ -1656,6 +1673,19 @@ static bool tryCopyDistinctRowFromSttBlock(TSDBROW* fRow, SLastBlockReader* pLas
return false;
}
+static FORCE_INLINE STSchema* getLatestTableSchema(STsdbReader* pReader, uint64_t uid) {
+ if (pReader->pSchema != NULL) {
+ return pReader->pSchema;
+ }
+
+ pReader->pSchema = metaGetTbTSchema(pReader->pTsdb->pVnode->pMeta, uid, -1, 1);
+ if (pReader->pSchema == NULL) {
+ tsdbError("failed to get table schema, uid:%" PRIu64 ", it may have been dropped, ver:-1, %s", uid, pReader->idStr);
+ }
+
+ return pReader->pSchema;
+}
+
static FORCE_INLINE STSchema* doGetSchemaForTSRow(int32_t sversion, STsdbReader* pReader, uint64_t uid) {
// always set the newest schema version in pReader->pSchema
if (pReader->pSchema == NULL) {
@@ -2459,7 +2489,7 @@ static int32_t buildComposedDataBlock(STsdbReader* pReader) {
if (isCleanFileDataBlock(pReader, pBlockInfo, pBlock, pBlockScanInfo, keyInBuf, pLastBlockReader) &&
pBlock->nRow <= pReader->capacity) {
if (asc || ((!asc) && (!hasDataInLastBlock(pLastBlockReader)))) {
- copyBlockDataToSDataBlock(pReader, pBlockScanInfo);
+ copyBlockDataToSDataBlock(pReader);
// record the last key value
pBlockScanInfo->lastKey = asc ? pBlock->maxKey.ts : pBlock->minKey.ts;
@@ -2930,14 +2960,14 @@ static int32_t doBuildDataBlock(STsdbReader* pReader) {
SDataBlockInfo* pInfo = &pReader->pResBlock->info;
pInfo->rows = pBlock->nRow;
pInfo->id.uid = pScanInfo->uid;
+ pInfo->dataLoad = 0;
pInfo->window = (STimeWindow){.skey = pBlock->minKey.ts, .ekey = pBlock->maxKey.ts};
setComposedBlockFlag(pReader, false);
setBlockAllDumped(&pStatus->fBlockDumpInfo, pBlock->maxKey.ts, pReader->order);
// update the last key for the corresponding table
pScanInfo->lastKey = ASCENDING_TRAVERSE(pReader->order) ? pInfo->window.ekey : pInfo->window.skey;
- tsdbDebug("%p uid:%" PRIu64
- " clean file block retrieved from file, global index:%d, "
+ tsdbDebug("%p uid:%" PRIu64 " clean file block retrieved from file, global index:%d, "
"table index:%d, rows:%d, brange:%" PRId64 "-%" PRId64 ", %s",
pReader, pScanInfo->uid, pBlockIter->index, pBlockInfo->tbBlockIdx, pBlock->nRow, pBlock->minKey.ts,
pBlock->maxKey.ts, pReader->idStr);
@@ -4029,9 +4059,11 @@ void tsdbReaderClose(STsdbReader* pReader) {
taosMemoryFree(pReader->idStr);
taosMemoryFree(pReader->pSchema);
+
if (pReader->pMemSchema != pReader->pSchema) {
taosMemoryFree(pReader->pMemSchema);
}
+
taosMemoryFreeClear(pReader);
}
@@ -4111,26 +4143,6 @@ bool tsdbNextDataBlock(STsdbReader* pReader) {
return false;
}
-static void setBlockInfo(const STsdbReader* pReader, int32_t* rows, uint64_t* uid, STimeWindow* pWindow) {
- *rows = pReader->pResBlock->info.rows;
- *uid = pReader->pResBlock->info.id.uid;
- *pWindow = pReader->pResBlock->info.window;
-}
-
-void tsdbRetrieveDataBlockInfo(const STsdbReader* pReader, int32_t* rows, uint64_t* uid, STimeWindow* pWindow) {
- if (pReader->type == TIMEWINDOW_RANGE_EXTERNAL) {
- if (pReader->step == EXTERNAL_ROWS_MAIN) {
- setBlockInfo(pReader, rows, uid, pWindow);
- } else if (pReader->step == EXTERNAL_ROWS_PREV) {
- setBlockInfo(pReader->innerReader[0], rows, uid, pWindow);
- } else {
- setBlockInfo(pReader->innerReader[1], rows, uid, pWindow);
- }
- } else {
- setBlockInfo(pReader, rows, uid, pWindow);
- }
-}
-
static void doFillNullColSMA(SBlockLoadSuppInfo* pSup, int32_t numOfRows, int32_t numOfCols, SColumnDataAgg* pTsAgg) {
// do fill all null column value SMA info
int32_t i = 0, j = 0;
@@ -4266,7 +4278,7 @@ static SSDataBlock* doRetrieveDataBlock(STsdbReader* pReader) {
return NULL;
}
- copyBlockDataToSDataBlock(pReader, pBlockScanInfo);
+ copyBlockDataToSDataBlock(pReader);
return pReader->pResBlock;
}
diff --git a/source/dnode/vnode/src/vnd/vnodeSnapshot.c b/source/dnode/vnode/src/vnd/vnodeSnapshot.c
index 43f903dc48..4487261617 100644
--- a/source/dnode/vnode/src/vnd/vnodeSnapshot.c
+++ b/source/dnode/vnode/src/vnd/vnodeSnapshot.c
@@ -426,7 +426,13 @@ int32_t vnodeSnapWrite(SVSnapWriter *pWriter, uint8_t *pData, uint32_t nData) {
SVnode *pVnode = pWriter->pVnode;
ASSERT(pHdr->size + sizeof(SSnapDataHdr) == nData);
- ASSERT(pHdr->index == pWriter->index + 1);
+
+ if (pHdr->index != pWriter->index + 1) {
+ vError("vgId:%d, unexpected vnode snapshot msg. index:%" PRId64 ", expected index:%" PRId64, TD_VID(pVnode),
+ pHdr->index, pWriter->index + 1);
+ return -1;
+ }
+
pWriter->index = pHdr->index;
vDebug("vgId:%d, vnode snapshot write data, index:%" PRId64 " type:%d blockLen:%d", TD_VID(pVnode), pHdr->index,
diff --git a/source/dnode/vnode/src/vnd/vnodeSvr.c b/source/dnode/vnode/src/vnd/vnodeSvr.c
index b1a84c572a..67990bc8c9 100644
--- a/source/dnode/vnode/src/vnd/vnodeSvr.c
+++ b/source/dnode/vnode/src/vnd/vnodeSvr.c
@@ -1188,7 +1188,7 @@ static int32_t vnodeProcessBatchDeleteReq(SVnode *pVnode, int64_t version, void
tDecodeSBatchDeleteReq(&decoder, &deleteReq);
SMetaReader mr = {0};
- metaReaderInit(&mr, pVnode->pMeta, 0);
+ metaReaderInit(&mr, pVnode->pMeta, META_READER_NOLOCK);
int32_t sz = taosArrayGetSize(deleteReq.deleteReqs);
for (int32_t i = 0; i < sz; i++) {
diff --git a/source/libs/executor/inc/executorimpl.h b/source/libs/executor/inc/executorimpl.h
index 4ae178d508..999a7965fb 100644
--- a/source/libs/executor/inc/executorimpl.h
+++ b/source/libs/executor/inc/executorimpl.h
@@ -474,6 +474,8 @@ typedef struct SStreamScanInfo {
int32_t blockRecoverContiCnt;
int32_t blockRecoverTotCnt;
+ int8_t igCheckUpdate;
+ int8_t igExpired;
} SStreamScanInfo;
typedef struct {
diff --git a/source/libs/executor/src/executil.c b/source/libs/executor/src/executil.c
index 92d52fbb0a..3c4cafb753 100644
--- a/source/libs/executor/src/executil.c
+++ b/source/libs/executor/src/executil.c
@@ -1658,12 +1658,18 @@ int32_t convertFillType(int32_t mode) {
case FILL_MODE_NULL:
type = TSDB_FILL_NULL;
break;
+ case FILL_MODE_NULL_F:
+ type = TSDB_FILL_NULL_F;
+ break;
case FILL_MODE_NEXT:
type = TSDB_FILL_NEXT;
break;
case FILL_MODE_VALUE:
type = TSDB_FILL_SET_VALUE;
break;
+ case FILL_MODE_VALUE_F:
+ type = TSDB_FILL_SET_VALUE_F;
+ break;
case FILL_MODE_LINEAR:
type = TSDB_FILL_LINEAR;
break;
@@ -1812,28 +1818,30 @@ int32_t tableListAddTableInfo(STableListInfo* pTableList, uint64_t uid, uint64_t
int32_t tableListGetGroupList(const STableListInfo* pTableList, int32_t ordinalGroupIndex, STableKeyInfo** pKeyInfo,
int32_t* size) {
- int32_t total = tableListGetOutputGroups(pTableList);
- if (ordinalGroupIndex < 0 || ordinalGroupIndex >= total) {
+ int32_t totalGroups = tableListGetOutputGroups(pTableList);
+ int32_t numOfTables = tableListGetSize(pTableList);
+
+ if (ordinalGroupIndex < 0 || ordinalGroupIndex >= totalGroups) {
return TSDB_CODE_INVALID_PARA;
}
// here handle two special cases:
// 1. only one group exists, and 2. one table exists for each group.
- if (total == 1) {
- *size = tableListGetSize(pTableList);
+ if (totalGroups == 1) {
+ *size = numOfTables;
*pKeyInfo = (*size == 0) ? NULL : taosArrayGet(pTableList->pTableList, 0);
return TSDB_CODE_SUCCESS;
- } else if (total == tableListGetSize(pTableList)) {
+ } else if (totalGroups == numOfTables) {
*size = 1;
*pKeyInfo = taosArrayGet(pTableList->pTableList, ordinalGroupIndex);
return TSDB_CODE_SUCCESS;
}
int32_t offset = pTableList->groupOffset[ordinalGroupIndex];
- if (ordinalGroupIndex < total - 1) {
- *size = pTableList->groupOffset[offset + 1] - pTableList->groupOffset[offset];
+ if (ordinalGroupIndex < totalGroups - 1) {
+ *size = pTableList->groupOffset[ordinalGroupIndex + 1] - offset;
} else {
- *size = total - pTableList->groupOffset[offset] - 1;
+ *size = numOfTables - offset;
}
*pKeyInfo = taosArrayGet(pTableList->pTableList, offset);
diff --git a/source/libs/executor/src/filloperator.c b/source/libs/executor/src/filloperator.c
index 187c8f582a..41e4c990f8 100644
--- a/source/libs/executor/src/filloperator.c
+++ b/source/libs/executor/src/filloperator.c
@@ -140,7 +140,7 @@ static SSDataBlock* doFillImpl(SOperatorInfo* pOperator) {
while (1) {
SSDataBlock* pBlock = pDownstream->fpSet.getNextFn(pDownstream);
if (pBlock == NULL) {
- if (pInfo->totalInputRows == 0) {
+ if (pInfo->totalInputRows == 0 && (pInfo->pFillInfo->type != TSDB_FILL_NULL_F && pInfo->pFillInfo->type != TSDB_FILL_SET_VALUE_F)) {
setOperatorCompleted(pOperator);
return NULL;
}
@@ -456,7 +456,8 @@ void* destroyStreamFillLinearInfo(SStreamFillLinearInfo* pFillLinear) {
return NULL;
}
void* destroyStreamFillInfo(SStreamFillInfo* pFillInfo) {
- if (pFillInfo->type == TSDB_FILL_SET_VALUE || pFillInfo->type == TSDB_FILL_NULL) {
+ if (pFillInfo->type == TSDB_FILL_SET_VALUE || pFillInfo->type == TSDB_FILL_SET_VALUE_F ||
+ pFillInfo->type == TSDB_FILL_NULL || pFillInfo->type == TSDB_FILL_NULL_F) {
taosMemoryFreeClear(pFillInfo->pResRow->pRowVal);
taosMemoryFreeClear(pFillInfo->pResRow);
}
@@ -661,7 +662,9 @@ void setDeleteFillValueInfo(TSKEY start, TSKEY end, SStreamFillSupporter* pFillS
pFillInfo->pos = FILL_POS_INVALID;
switch (pFillInfo->type) {
case TSDB_FILL_NULL:
+ case TSDB_FILL_NULL_F:
case TSDB_FILL_SET_VALUE:
+ case TSDB_FILL_SET_VALUE_F:
break;
case TSDB_FILL_PREV:
pFillInfo->pResRow = &pFillSup->prev;
@@ -720,7 +723,9 @@ void setFillValueInfo(SSDataBlock* pBlock, TSKEY ts, int32_t rowId, SStreamFillS
pFillInfo->pos = FILL_POS_INVALID;
switch (pFillInfo->type) {
case TSDB_FILL_NULL:
- case TSDB_FILL_SET_VALUE: {
+ case TSDB_FILL_NULL_F:
+ case TSDB_FILL_SET_VALUE:
+ case TSDB_FILL_SET_VALUE_F: {
if (pFillSup->prev.key == pFillInfo->preRowKey) {
resetFillWindow(&pFillSup->prev);
}
@@ -1360,7 +1365,8 @@ SStreamFillInfo* initStreamFillInfo(SStreamFillSupporter* pFillSup, SSDataBlock*
pFillInfo->pLinearInfo->winIndex = 0;
pFillInfo->pResRow = NULL;
- if (pFillSup->type == TSDB_FILL_SET_VALUE || pFillSup->type == TSDB_FILL_NULL) {
+ if (pFillSup->type == TSDB_FILL_SET_VALUE || pFillSup->type == TSDB_FILL_SET_VALUE_F
+ || pFillSup->type == TSDB_FILL_NULL || pFillSup->type == TSDB_FILL_NULL_F) {
pFillInfo->pResRow = taosMemoryCalloc(1, sizeof(SResultRowData));
pFillInfo->pResRow->key = INT64_MIN;
pFillInfo->pResRow->pRowVal = taosMemoryCalloc(1, pFillSup->rowSize);
@@ -1405,7 +1411,7 @@ SOperatorInfo* createStreamFillOperatorInfo(SOperatorInfo* downstream, SStreamFi
goto _error;
}
- if (pInfo->pFillInfo->type == TSDB_FILL_SET_VALUE) {
+ if (pInfo->pFillInfo->type == TSDB_FILL_SET_VALUE || pInfo->pFillInfo->type == TSDB_FILL_SET_VALUE_F) {
for (int32_t i = 0; i < pInfo->pFillSup->numOfAllCols; ++i) {
SFillColInfo* pFillCol = pInfo->pFillSup->pAllColInfo + i;
int32_t slotId = GET_DEST_SLOT_ID(pFillCol);
@@ -1427,7 +1433,7 @@ SOperatorInfo* createStreamFillOperatorInfo(SOperatorInfo* downstream, SStreamFi
pCell->isNull = true;
}
}
- } else if (pInfo->pFillInfo->type == TSDB_FILL_NULL) {
+ } else if (pInfo->pFillInfo->type == TSDB_FILL_NULL || pInfo->pFillInfo->type == TSDB_FILL_NULL_F) {
for (int32_t i = 0; i < pInfo->pFillSup->numOfAllCols; ++i) {
SFillColInfo* pFillCol = pInfo->pFillSup->pAllColInfo + i;
int32_t slotId = GET_DEST_SLOT_ID(pFillCol);
diff --git a/source/libs/executor/src/groupoperator.c b/source/libs/executor/src/groupoperator.c
index 5febfbb2f3..9d88126220 100644
--- a/source/libs/executor/src/groupoperator.c
+++ b/source/libs/executor/src/groupoperator.c
@@ -1109,7 +1109,7 @@ void initParDownStream(SOperatorInfo* downstream, SPartitionBySupporter* pParSup
SStreamScanInfo* pScanInfo = downstream->info;
pScanInfo->partitionSup = *pParSup;
pScanInfo->pPartScalarSup = pExpr;
- if (!pScanInfo->pUpdateInfo) {
+ if (!pScanInfo->igCheckUpdate && !pScanInfo->pUpdateInfo) {
pScanInfo->pUpdateInfo = updateInfoInit(60000, TSDB_TIME_PRECISION_MILLI, 0);
}
}
diff --git a/source/libs/executor/src/scanoperator.c b/source/libs/executor/src/scanoperator.c
index 6d3eb67f16..f90cc6699b 100644
--- a/source/libs/executor/src/scanoperator.c
+++ b/source/libs/executor/src/scanoperator.c
@@ -1435,7 +1435,12 @@ static void checkUpdateData(SStreamScanInfo* pInfo, bool invertible, SSDataBlock
dumyInfo.cur.pageId = -1;
bool isClosed = false;
STimeWindow win = {.skey = INT64_MIN, .ekey = INT64_MAX};
- if (tableInserted && isOverdue(tsCol[rowId], &pInfo->twAggSup)) {
+ bool overDue = isOverdue(tsCol[rowId], &pInfo->twAggSup);
+ if (pInfo->igExpired && overDue) {
+ continue;
+ }
+
+ if (tableInserted && overDue) {
win = getActiveTimeWindow(NULL, &dumyInfo, tsCol[rowId], &pInfo->interval, TSDB_ORDER_ASC);
isClosed = isCloseWindow(&win, &pInfo->twAggSup);
}
@@ -1701,41 +1706,6 @@ static SSDataBlock* doStreamScan(SOperatorInfo* pOperator) {
SStreamScanInfo* pInfo = pOperator->info;
qDebug("stream scan called");
-#if 0
- SStreamState* pState = pTaskInfo->streamInfo.pState;
- if (pState) {
- printf(">>>>>>>> stream write backend\n");
- SWinKey key = {
- .ts = 1,
- .groupId = 2,
- };
- char tmp[100] = "abcdefg1";
- if (streamStatePut(pState, &key, &tmp, strlen(tmp) + 1) < 0) {
- ASSERT(0);
- }
-
- key.ts = 2;
- char tmp2[100] = "abcdefg2";
- if (streamStatePut(pState, &key, &tmp2, strlen(tmp2) + 1) < 0) {
- ASSERT(0);
- }
-
- key.groupId = 5;
- key.ts = 1;
- char tmp3[100] = "abcdefg3";
- if (streamStatePut(pState, &key, &tmp3, strlen(tmp3) + 1) < 0) {
- ASSERT(0);
- }
-
- char* val2 = NULL;
- int32_t sz;
- if (streamStateGet(pState, &key, (void**)&val2, &sz) < 0) {
- ASSERT(0);
- }
- printf("stream read %s %d\n", val2, sz);
- streamFreeVal(val2);
- }
-#endif
if (pTaskInfo->streamInfo.recoverStep == STREAM_RECOVER_STEP__PREPARE1 ||
pTaskInfo->streamInfo.recoverStep == STREAM_RECOVER_STEP__PREPARE2) {
@@ -2368,6 +2338,9 @@ SOperatorInfo* createStreamScanOperatorInfo(SReadHandle* pHandle, STableScanPhys
pInfo->pUpdateDataRes = createSpecialDataBlock(STREAM_CLEAR);
pInfo->assignBlockUid = pTableScanNode->assignBlockUid;
pInfo->partitionSup.needCalc = false;
+ pInfo->igCheckUpdate = pTableScanNode->igCheckUpdate;
+ pInfo->igExpired = pTableScanNode->igExpired;
+ pInfo->twAggSup.maxTs = INT64_MIN;
setOperatorInfo(pOperator, "StreamScanOperator", QUERY_NODE_PHYSICAL_PLAN_STREAM_SCAN, false, OP_NOT_OPENED, pInfo,
pTaskInfo);
diff --git a/source/libs/executor/src/tfill.c b/source/libs/executor/src/tfill.c
index 826af20224..778281f9b4 100644
--- a/source/libs/executor/src/tfill.c
+++ b/source/libs/executor/src/tfill.c
@@ -186,7 +186,7 @@ static void doFillOneRow(SFillInfo* pFillInfo, SSDataBlock* pBlock, SSDataBlock*
}
}
}
- } else if (pFillInfo->type == TSDB_FILL_NULL) { // fill with NULL
+ } else if (pFillInfo->type == TSDB_FILL_NULL || pFillInfo->type == TSDB_FILL_NULL_F) { // fill with NULL
setNullRow(pBlock, pFillInfo, index);
} else { // fill with user specified value for each column
for (int32_t i = 0; i < pFillInfo->numOfCols; ++i) {
@@ -349,7 +349,7 @@ static int32_t fillResultImpl(SFillInfo* pFillInfo, SSDataBlock* pBlock, int32_t
bool isNull = colDataIsNull_s(pSrc, pFillInfo->index);
colDataAppend(pDst, index, src, isNull);
saveColData(pFillInfo->prev.pRowVal, i, src, isNull); // todo:
- } else if (pFillInfo->type == TSDB_FILL_NULL) {
+ } else if (pFillInfo->type == TSDB_FILL_NULL || pFillInfo->type == TSDB_FILL_NULL_F) {
colDataAppendNULL(pDst, index);
} else if (pFillInfo->type == TSDB_FILL_NEXT) {
SArray* p = FILL_IS_ASC_FILL(pFillInfo) ? pFillInfo->next.pRowVal : pFillInfo->prev.pRowVal;
@@ -546,15 +546,14 @@ bool taosFillHasMoreResults(SFillInfo* pFillInfo) {
}
int64_t getNumOfResultsAfterFillGap(SFillInfo* pFillInfo, TSKEY ekey, int32_t maxNumOfRows) {
- SColumnInfoData* pCol = taosArrayGet(pFillInfo->pSrcBlock->pDataBlock, pFillInfo->srcTsSlotId);
-
- int64_t* tsList = (int64_t*)pCol->pData;
int32_t numOfRows = taosNumOfRemainRows(pFillInfo);
TSKEY ekey1 = ekey;
int64_t numOfRes = -1;
if (numOfRows > 0) { // still fill gap within current data block, not generating data after the result set.
+ SColumnInfoData* pCol = taosArrayGet(pFillInfo->pSrcBlock->pDataBlock, pFillInfo->srcTsSlotId);
+ int64_t* tsList = (int64_t*)pCol->pData;
TSKEY lastKey = tsList[pFillInfo->numOfRows - 1];
numOfRes = taosTimeCountInterval(lastKey, pFillInfo->currentKey, pFillInfo->interval.sliding,
pFillInfo->interval.slidingUnit, pFillInfo->interval.precision);
diff --git a/source/libs/executor/src/timesliceoperator.c b/source/libs/executor/src/timesliceoperator.c
index bca87079ec..3bf597f3b3 100644
--- a/source/libs/executor/src/timesliceoperator.c
+++ b/source/libs/executor/src/timesliceoperator.c
@@ -181,12 +181,14 @@ static bool genInterpolationResult(STimeSliceOperatorInfo* pSliceInfo, SExprSupp
int32_t srcSlot = pExprInfo->base.pParam[0].pCol->slotId;
switch (pSliceInfo->fillType) {
- case TSDB_FILL_NULL: {
+ case TSDB_FILL_NULL:
+ case TSDB_FILL_NULL_F: {
colDataAppendNULL(pDst, rows);
break;
}
- case TSDB_FILL_SET_VALUE: {
+ case TSDB_FILL_SET_VALUE:
+ case TSDB_FILL_SET_VALUE_F: {
SVariant* pVar = &pSliceInfo->pFillColInfo[j].fillVal;
if (pDst->info.type == TSDB_DATA_TYPE_FLOAT) {
diff --git a/source/libs/executor/src/timewindowoperator.c b/source/libs/executor/src/timewindowoperator.c
index edbeaad959..ee172fceca 100644
--- a/source/libs/executor/src/timewindowoperator.c
+++ b/source/libs/executor/src/timewindowoperator.c
@@ -1726,7 +1726,7 @@ void initIntervalDownStream(SOperatorInfo* downstream, uint16_t type, SAggSuppor
SStreamScanInfo* pScanInfo = downstream->info;
pScanInfo->windowSup.parentType = type;
pScanInfo->windowSup.pIntervalAggSup = pSup;
- if (!pScanInfo->pUpdateInfo) {
+ if (!pScanInfo->igCheckUpdate && !pScanInfo->pUpdateInfo) {
pScanInfo->pUpdateInfo = updateInfoInitP(pInterval, pTwSup->waterMark);
}
pScanInfo->interval = *pInterval;
@@ -2893,7 +2893,7 @@ void initDownStream(SOperatorInfo* downstream, SStreamAggSupporter* pAggSup, uin
}
SStreamScanInfo* pScanInfo = downstream->info;
pScanInfo->windowSup = (SWindowSupporter){.pStreamAggSup = pAggSup, .gap = pAggSup->gap, .parentType = type};
- if (!pScanInfo->pUpdateInfo) {
+ if (!pScanInfo->igCheckUpdate && !pScanInfo->pUpdateInfo) {
pScanInfo->pUpdateInfo = updateInfoInit(60000, TSDB_TIME_PRECISION_MILLI, pTwSup->waterMark);
}
pScanInfo->twAggSup = *pTwSup;
diff --git a/source/libs/nodes/src/nodesCloneFuncs.c b/source/libs/nodes/src/nodesCloneFuncs.c
index 7b9c54ab2c..2b1819d5c0 100644
--- a/source/libs/nodes/src/nodesCloneFuncs.c
+++ b/source/libs/nodes/src/nodesCloneFuncs.c
@@ -380,6 +380,7 @@ static int32_t logicScanCopy(const SScanLogicNode* pSrc, SScanLogicNode* pDst) {
COPY_SCALAR_FIELD(watermark);
COPY_SCALAR_FIELD(deleteMark);
COPY_SCALAR_FIELD(igExpired);
+ COPY_SCALAR_FIELD(igCheckUpdate);
CLONE_NODE_LIST_FIELD(pGroupTags);
COPY_SCALAR_FIELD(groupSort);
CLONE_NODE_LIST_FIELD(pTags);
@@ -467,6 +468,7 @@ static int32_t logicWindowCopy(const SWindowLogicNode* pSrc, SWindowLogicNode* p
COPY_SCALAR_FIELD(watermark);
COPY_SCALAR_FIELD(deleteMark);
COPY_SCALAR_FIELD(igExpired);
+ COPY_SCALAR_FIELD(igCheckUpdate);
COPY_SCALAR_FIELD(windowAlgo);
COPY_SCALAR_FIELD(inputTsOrder);
COPY_SCALAR_FIELD(outputTsOrder);
diff --git a/source/libs/nodes/src/nodesCodeFuncs.c b/source/libs/nodes/src/nodesCodeFuncs.c
index 1a4ba8e43e..c19f64bb3a 100644
--- a/source/libs/nodes/src/nodesCodeFuncs.c
+++ b/source/libs/nodes/src/nodesCodeFuncs.c
@@ -1553,6 +1553,7 @@ static const char* jkTableScanPhysiPlanGroupSort = "GroupSort";
static const char* jkTableScanPhysiPlanTags = "Tags";
static const char* jkTableScanPhysiPlanSubtable = "Subtable";
static const char* jkTableScanPhysiPlanAssignBlockUid = "AssignBlockUid";
+static const char* jkTableScanPhysiPlanIgnoreUpdate = "IgnoreUpdate";
static int32_t physiTableScanNodeToJson(const void* pObj, SJson* pJson) {
const STableScanPhysiNode* pNode = (const STableScanPhysiNode*)pObj;
@@ -1618,6 +1619,9 @@ static int32_t physiTableScanNodeToJson(const void* pObj, SJson* pJson) {
if (TSDB_CODE_SUCCESS == code) {
code = tjsonAddBoolToObject(pJson, jkTableScanPhysiPlanAssignBlockUid, pNode->assignBlockUid);
}
+ if (TSDB_CODE_SUCCESS == code) {
+ code = tjsonAddIntegerToObject(pJson, jkTableScanPhysiPlanIgnoreUpdate, pNode->igCheckUpdate);
+ }
return code;
}
@@ -1686,6 +1690,9 @@ static int32_t jsonToPhysiTableScanNode(const SJson* pJson, void* pObj) {
if (TSDB_CODE_SUCCESS == code) {
code = tjsonGetBoolValue(pJson, jkTableScanPhysiPlanAssignBlockUid, &pNode->assignBlockUid);
}
+ if (TSDB_CODE_SUCCESS == code) {
+ code = tjsonGetTinyIntValue(pJson, jkTableScanPhysiPlanIgnoreUpdate, &pNode->igCheckUpdate);
+ }
return code;
}
diff --git a/source/libs/nodes/src/nodesMsgFuncs.c b/source/libs/nodes/src/nodesMsgFuncs.c
index dfe2f6c8b9..274cac405d 100644
--- a/source/libs/nodes/src/nodesMsgFuncs.c
+++ b/source/libs/nodes/src/nodesMsgFuncs.c
@@ -2078,6 +2078,9 @@ static int32_t physiTableScanNodeInlineToMsg(const void* pObj, STlvEncoder* pEnc
if (TSDB_CODE_SUCCESS == code) {
code = tlvEncodeValueBool(pEncoder, pNode->assignBlockUid);
}
+ if (TSDB_CODE_SUCCESS == code) {
+ code = tlvEncodeValueI8(pEncoder, pNode->igCheckUpdate);
+ }
return code;
}
@@ -2154,6 +2157,9 @@ static int32_t msgToPhysiTableScanNodeInline(STlvDecoder* pDecoder, void* pObj)
if (TSDB_CODE_SUCCESS == code) {
code = tlvDecodeValueBool(pDecoder, &pNode->assignBlockUid);
}
+ if (TSDB_CODE_SUCCESS == code) {
+ code = tlvDecodeValueI8(pDecoder, &pNode->igCheckUpdate);
+ }
return code;
}
diff --git a/source/libs/nodes/src/nodesUtilFuncs.c b/source/libs/nodes/src/nodesUtilFuncs.c
index cd5ae7ad6e..e28486e0b6 100644
--- a/source/libs/nodes/src/nodesUtilFuncs.c
+++ b/source/libs/nodes/src/nodesUtilFuncs.c
@@ -1990,10 +1990,14 @@ char* nodesGetFillModeString(EFillMode mode) {
return "none";
case FILL_MODE_VALUE:
return "value";
+ case FILL_MODE_VALUE_F:
+ return "value_f";
case FILL_MODE_PREV:
return "prev";
case FILL_MODE_NULL:
return "null";
+ case FILL_MODE_NULL_F:
+ return "null_f";
case FILL_MODE_LINEAR:
return "linear";
case FILL_MODE_NEXT:
diff --git a/source/libs/parser/inc/sql.y b/source/libs/parser/inc/sql.y
index 06211658ea..faa908021e 100644
--- a/source/libs/parser/inc/sql.y
+++ b/source/libs/parser/inc/sql.y
@@ -545,6 +545,7 @@ stream_options(A) ::= stream_options(B) WATERMARK duration_literal(C).
stream_options(A) ::= stream_options(B) IGNORE EXPIRED NK_INTEGER(C). { ((SStreamOptions*)B)->ignoreExpired = taosStr2Int8(C.z, NULL, 10); A = B; }
stream_options(A) ::= stream_options(B) FILL_HISTORY NK_INTEGER(C). { ((SStreamOptions*)B)->fillHistory = taosStr2Int8(C.z, NULL, 10); A = B; }
stream_options(A) ::= stream_options(B) DELETE_MARK duration_literal(C). { ((SStreamOptions*)B)->pDeleteMark = releaseRawExprNode(pCxt, C); A = B; }
+stream_options(A) ::= stream_options(B) IGNORE UPDATE NK_INTEGER(C). { ((SStreamOptions*)B)->ignoreUpdate = taosStr2Int8(C.z, NULL, 10); A = B; }
subtable_opt(A) ::= . { A = NULL; }
subtable_opt(A) ::= SUBTABLE NK_LP expression(B) NK_RP. { A = releaseRawExprNode(pCxt, B); }
@@ -979,12 +980,14 @@ sliding_opt(A) ::= SLIDING NK_LP duration_literal(B) NK_RP.
fill_opt(A) ::= . { A = NULL; }
fill_opt(A) ::= FILL NK_LP fill_mode(B) NK_RP. { A = createFillNode(pCxt, B, NULL); }
fill_opt(A) ::= FILL NK_LP VALUE NK_COMMA literal_list(B) NK_RP. { A = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, B)); }
+fill_opt(A) ::= FILL NK_LP VALUE_F NK_COMMA literal_list(B) NK_RP. { A = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, B)); }
%type fill_mode { EFillMode }
%destructor fill_mode { }
fill_mode(A) ::= NONE. { A = FILL_MODE_NONE; }
fill_mode(A) ::= PREV. { A = FILL_MODE_PREV; }
fill_mode(A) ::= NULL. { A = FILL_MODE_NULL; }
+fill_mode(A) ::= NULL_F. { A = FILL_MODE_NULL_F; }
fill_mode(A) ::= LINEAR. { A = FILL_MODE_LINEAR; }
fill_mode(A) ::= NEXT. { A = FILL_MODE_NEXT; }
@@ -1076,4 +1079,4 @@ null_ordering_opt(A) ::= NULLS LAST.
%fallback ABORT AFTER ATTACH BEFORE BEGIN BITAND BITNOT BITOR BLOCKS CHANGE COMMA COMPACT CONCAT CONFLICT COPY DEFERRED DELIMITERS DETACH DIVIDE DOT EACH END FAIL
FILE FOR GLOB ID IMMEDIATE IMPORT INITIALLY INSTEAD ISNULL KEY MODULES NK_BITNOT NK_SEMI NOTNULL OF PLUS PRIVILEGE RAISE REPLACE RESTRICT ROW SEMI STAR STATEMENT
- STRICT STRING TIMES UPDATE VALUES VARIABLE VIEW WAL.
+ STRICT STRING TIMES VALUES VARIABLE VIEW WAL.
diff --git a/source/libs/parser/src/parAstCreater.c b/source/libs/parser/src/parAstCreater.c
index eaa72b1377..d1f861a5fc 100644
--- a/source/libs/parser/src/parAstCreater.c
+++ b/source/libs/parser/src/parAstCreater.c
@@ -1763,6 +1763,7 @@ SNode* createStreamOptions(SAstCreateContext* pCxt) {
pOptions->triggerType = STREAM_TRIGGER_AT_ONCE;
pOptions->fillHistory = STREAM_DEFAULT_FILL_HISTORY;
pOptions->ignoreExpired = STREAM_DEFAULT_IGNORE_EXPIRED;
+ pOptions->ignoreUpdate = STREAM_DEFAULT_IGNORE_UPDATE;
return (SNode*)pOptions;
}
diff --git a/source/libs/parser/src/parTokenizer.c b/source/libs/parser/src/parTokenizer.c
index 6a96ff9c50..b248efee59 100644
--- a/source/libs/parser/src/parTokenizer.c
+++ b/source/libs/parser/src/parTokenizer.c
@@ -148,6 +148,7 @@ static SKeyword keywordTable[] = {
{"NOT", TK_NOT},
{"NOW", TK_NOW},
{"NULL", TK_NULL},
+ {"NULL_F", TK_NULL_F},
{"NULLS", TK_NULLS},
{"OFFSET", TK_OFFSET},
{"ON", TK_ON},
@@ -232,11 +233,13 @@ static SKeyword keywordTable[] = {
{"TTL", TK_TTL},
{"UNION", TK_UNION},
{"UNSIGNED", TK_UNSIGNED},
+ {"UPDATE", TK_UPDATE},
{"USE", TK_USE},
{"USER", TK_USER},
{"USERS", TK_USERS},
{"USING", TK_USING},
{"VALUE", TK_VALUE},
+ {"VALUE_F", TK_VALUE_F},
{"VALUES", TK_VALUES},
{"VARCHAR", TK_VARCHAR},
{"VARIABLES", TK_VARIABLES},
diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c
index 819dab9546..57b13f0218 100644
--- a/source/libs/parser/src/parTranslater.c
+++ b/source/libs/parser/src/parTranslater.c
@@ -1579,7 +1579,8 @@ static int32_t translateBlockDistFunc(STranslateContext* pCtx, SFunctionNode* pF
TSDB_CHILD_TABLE != ((SRealTableNode*)pTable)->pMeta->tableType &&
TSDB_NORMAL_TABLE != ((SRealTableNode*)pTable)->pMeta->tableType))) {
return generateSyntaxErrMsgExt(&pCtx->msgBuf, TSDB_CODE_PAR_NOT_ALLOWED_FUNC,
- "%s is only supported on super table, child table or normal table", pFunc->functionName);
+ "%s is only supported on super table, child table or normal table",
+ pFunc->functionName);
}
return TSDB_CODE_SUCCESS;
}
@@ -1607,6 +1608,7 @@ static int32_t translateMultiResFunc(STranslateContext* pCxt, SFunctionNode* pFu
}
if (tsKeepColumnName && 1 == LIST_LENGTH(pFunc->pParameterList) && !pFunc->node.asAlias) {
strcpy(pFunc->node.userAlias, ((SExprNode*)nodesListGetNode(pFunc->pParameterList, 0))->userAlias);
+ strcpy(pFunc->node.aliasName, pFunc->node.userAlias);
}
return TSDB_CODE_SUCCESS;
}
@@ -2549,11 +2551,12 @@ static SNode* createMultiResFunc(SFunctionNode* pSrcFunc, SExprNode* pExpr) {
int32_t len = 0;
if (QUERY_NODE_COLUMN == nodeType(pExpr)) {
SColumnNode* pCol = (SColumnNode*)pExpr;
- len = snprintf(buf, sizeof(buf), "%s(%s.%s)", pSrcFunc->functionName, pCol->tableAlias, pCol->colName);
- strncpy(pFunc->node.aliasName, buf, TMIN(len, sizeof(pFunc->node.aliasName) - 1));
if (tsKeepColumnName) {
strcpy(pFunc->node.userAlias, pCol->colName);
+ strcpy(pFunc->node.aliasName, pCol->colName);
} else {
+ len = snprintf(buf, sizeof(buf), "%s(%s.%s)", pSrcFunc->functionName, pCol->tableAlias, pCol->colName);
+ strncpy(pFunc->node.aliasName, buf, TMIN(len, sizeof(pFunc->node.aliasName) - 1));
len = snprintf(buf, sizeof(buf), "%s(%s)", pSrcFunc->functionName, pCol->colName);
strncpy(pFunc->node.userAlias, buf, TMIN(len, sizeof(pFunc->node.userAlias) - 1));
}
@@ -2820,7 +2823,7 @@ static int32_t convertFillValue(STranslateContext* pCxt, SDataType dt, SNodeList
}
static int32_t checkFillValues(STranslateContext* pCxt, SFillNode* pFill, SNodeList* pProjectionList) {
- if (FILL_MODE_VALUE != pFill->mode) {
+ if (FILL_MODE_VALUE != pFill->mode && FILL_MODE_VALUE_F != pFill->mode) {
return TSDB_CODE_SUCCESS;
}
@@ -5748,6 +5751,7 @@ static int32_t buildCreateStreamReq(STranslateContext* pCxt, SCreateStreamStmt*
(NULL != pStmt->pOptions->pDeleteMark ? ((SValueNode*)pStmt->pOptions->pDeleteMark)->datum.i : 0);
pReq->fillHistory = pStmt->pOptions->fillHistory;
pReq->igExpired = pStmt->pOptions->ignoreExpired;
+ pReq->igUpdate = pStmt->pOptions->ignoreUpdate;
columnDefNodeToField(pStmt->pTags, &pReq->pTags);
pReq->numOfTags = LIST_LENGTH(pStmt->pTags);
}
diff --git a/source/libs/parser/src/sql.c b/source/libs/parser/src/sql.c
index 6a7fc010d0..98368d3806 100644
--- a/source/libs/parser/src/sql.c
+++ b/source/libs/parser/src/sql.c
@@ -104,26 +104,26 @@
#endif
/************* Begin control #defines *****************************************/
#define YYCODETYPE unsigned short int
-#define YYNOCODE 459
+#define YYNOCODE 461
#define YYACTIONTYPE unsigned short int
#define ParseTOKENTYPE SToken
typedef union {
int yyinit;
ParseTOKENTYPE yy0;
- EOperatorType yy20;
- SNode* yy74;
- ENullOrder yy109;
- SToken yy317;
- EOrder yy326;
- bool yy335;
- int8_t yy449;
- int64_t yy531;
- EJoinType yy630;
- SAlterOption yy767;
- EFillMode yy828;
- int32_t yy856;
- SNodeList* yy874;
- SDataType yy898;
+ EOrder yy32;
+ SToken yy77;
+ int32_t yy248;
+ int8_t yy287;
+ ENullOrder yy385;
+ EJoinType yy560;
+ SNode* yy600;
+ SNodeList* yy601;
+ SAlterOption yy661;
+ EOperatorType yy666;
+ int64_t yy717;
+ EFillMode yy798;
+ bool yy841;
+ SDataType yy888;
} YYMINORTYPE;
#ifndef YYSTACKDEPTH
#define YYSTACKDEPTH 100
@@ -139,17 +139,17 @@ typedef union {
#define ParseCTX_FETCH
#define ParseCTX_STORE
#define YYFALLBACK 1
-#define YYNSTATE 712
-#define YYNRULE 542
-#define YYNTOKEN 322
-#define YY_MAX_SHIFT 711
-#define YY_MIN_SHIFTREDUCE 1056
-#define YY_MAX_SHIFTREDUCE 1597
-#define YY_ERROR_ACTION 1598
-#define YY_ACCEPT_ACTION 1599
-#define YY_NO_ACTION 1600
-#define YY_MIN_REDUCE 1601
-#define YY_MAX_REDUCE 2142
+#define YYNSTATE 716
+#define YYNRULE 545
+#define YYNTOKEN 324
+#define YY_MAX_SHIFT 715
+#define YY_MIN_SHIFTREDUCE 1063
+#define YY_MAX_SHIFTREDUCE 1607
+#define YY_ERROR_ACTION 1608
+#define YY_ACCEPT_ACTION 1609
+#define YY_NO_ACTION 1610
+#define YY_MIN_REDUCE 1611
+#define YY_MAX_REDUCE 2155
/************* End control #defines *******************************************/
#define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0])))
@@ -216,742 +216,744 @@ typedef union {
** yy_default[] Default action for each state.
**
*********** Begin parsing tables **********************************************/
-#define YY_ACTTAB_COUNT (2723)
+#define YY_ACTTAB_COUNT (2733)
static const YYACTIONTYPE yy_action[] = {
- /* 0 */ 460, 354, 461, 1637, 567, 601, 579, 2118, 2113, 155,
- /* 10 */ 1944, 2113, 43, 41, 1528, 39, 38, 37, 1756, 123,
- /* 20 */ 362, 1940, 1378, 566, 173, 600, 499, 2117, 2114, 568,
- /* 30 */ 1958, 2114, 2116, 1458, 1403, 1376, 1754, 131, 469, 407,
- /* 40 */ 461, 1637, 36, 35, 1944, 587, 42, 40, 39, 38,
- /* 50 */ 37, 1936, 1942, 345, 542, 1940, 167, 579, 1453, 466,
- /* 60 */ 586, 1976, 611, 16, 367, 462, 1807, 1800, 1802, 582,
- /* 70 */ 1384, 600, 1404, 331, 1926, 158, 617, 334, 1854, 320,
- /* 80 */ 1708, 1976, 1805, 43, 41, 1936, 1942, 357, 131, 561,
- /* 90 */ 478, 362, 476, 1378, 1863, 12, 611, 327, 172, 2053,
- /* 100 */ 2054, 1957, 129, 2058, 1458, 1992, 1376, 2117, 100, 1959,
- /* 110 */ 621, 1961, 1962, 616, 601, 611, 1108, 708, 1107, 655,
- /* 120 */ 170, 459, 2045, 600, 464, 1643, 356, 2041, 123, 1453,
- /* 130 */ 560, 210, 1460, 1461, 16, 504, 33, 276, 1487, 567,
- /* 140 */ 175, 1384, 157, 2113, 1613, 1754, 46, 1109, 2071, 256,
- /* 150 */ 2053, 578, 579, 124, 577, 1624, 1958, 2113, 566, 173,
- /* 160 */ 601, 1434, 1443, 2114, 568, 579, 12, 42, 40, 39,
- /* 170 */ 38, 37, 566, 173, 52, 1311, 1312, 2114, 568, 97,
- /* 180 */ 1379, 587, 1377, 131, 1258, 1259, 468, 1976, 708, 464,
- /* 190 */ 1643, 1754, 1405, 132, 1488, 615, 131, 562, 46, 1926,
- /* 200 */ 1926, 1746, 617, 1460, 1461, 1382, 1383, 62, 1433, 1436,
- /* 210 */ 1437, 1438, 1439, 1440, 1441, 1442, 613, 609, 1451, 1452,
- /* 220 */ 1454, 1455, 1456, 1457, 1459, 1462, 2, 1957, 596, 58,
- /* 230 */ 1863, 1992, 1434, 1443, 312, 1959, 621, 1961, 1962, 616,
- /* 240 */ 614, 611, 602, 2010, 174, 2053, 2054, 1403, 129, 2058,
- /* 250 */ 339, 1379, 2060, 1377, 1801, 1802, 581, 171, 2053, 2054,
- /* 260 */ 557, 129, 2058, 1623, 58, 32, 360, 1482, 1483, 1484,
- /* 270 */ 1485, 1486, 1490, 1491, 1492, 1493, 1382, 1383, 2057, 1433,
- /* 280 */ 1436, 1437, 1438, 1439, 1440, 1441, 1442, 613, 609, 1451,
- /* 290 */ 1452, 1454, 1455, 1456, 1457, 1459, 1462, 2, 58, 9,
- /* 300 */ 43, 41, 1670, 47, 1554, 1599, 1850, 1926, 362, 1532,
- /* 310 */ 1378, 340, 1732, 338, 337, 1403, 501, 181, 1958, 1622,
- /* 320 */ 503, 1458, 58, 1376, 1215, 643, 642, 641, 1219, 640,
- /* 330 */ 1221, 1222, 639, 1224, 636, 258, 1230, 633, 1232, 1233,
- /* 340 */ 630, 627, 502, 563, 558, 259, 1453, 176, 400, 1976,
- /* 350 */ 399, 16, 554, 1552, 1553, 1555, 1556, 618, 1384, 1108,
- /* 360 */ 1175, 1107, 1926, 1926, 617, 570, 396, 514, 513, 512,
- /* 370 */ 377, 43, 41, 1463, 478, 128, 508, 401, 176, 362,
- /* 380 */ 507, 1378, 58, 12, 85, 506, 511, 398, 394, 1957,
- /* 390 */ 1109, 505, 1458, 1992, 1376, 1177, 100, 1959, 621, 1961,
- /* 400 */ 1962, 616, 1958, 611, 80, 708, 134, 1621, 141, 2016,
- /* 410 */ 2045, 601, 547, 176, 356, 2041, 2113, 1453, 127, 547,
- /* 420 */ 1460, 1461, 169, 2113, 1404, 178, 227, 1749, 574, 1384,
- /* 430 */ 1620, 2119, 173, 1976, 1602, 1794, 2114, 568, 2119, 173,
- /* 440 */ 1378, 618, 1754, 2114, 568, 167, 1926, 176, 617, 1434,
- /* 450 */ 1443, 1926, 176, 1376, 44, 113, 1435, 588, 112, 111,
- /* 460 */ 110, 109, 108, 107, 106, 105, 104, 1855, 1379, 353,
- /* 470 */ 1377, 176, 1867, 1957, 1926, 228, 708, 1992, 1784, 1807,
- /* 480 */ 160, 1959, 621, 1961, 1962, 616, 355, 611, 1384, 1354,
- /* 490 */ 1355, 1460, 1461, 1382, 1383, 1805, 1433, 1436, 1437, 1438,
- /* 500 */ 1439, 1440, 1441, 1442, 613, 609, 1451, 1452, 1454, 1455,
- /* 510 */ 1456, 1457, 1459, 1462, 2, 510, 509, 679, 677, 113,
- /* 520 */ 1434, 1443, 112, 111, 110, 109, 108, 107, 106, 105,
- /* 530 */ 104, 176, 569, 2134, 365, 708, 514, 513, 512, 1379,
- /* 540 */ 368, 1377, 155, 1807, 128, 508, 1468, 1913, 155, 507,
- /* 550 */ 366, 1756, 1403, 1406, 506, 511, 1731, 1756, 1958, 1805,
- /* 560 */ 505, 267, 268, 1403, 1382, 1383, 266, 1433, 1436, 1437,
- /* 570 */ 1438, 1439, 1440, 1441, 1442, 613, 609, 1451, 1452, 1454,
- /* 580 */ 1455, 1456, 1457, 1459, 1462, 2, 43, 41, 1601, 1976,
- /* 590 */ 1619, 601, 185, 528, 362, 384, 1378, 582, 1379, 1730,
- /* 600 */ 1377, 1618, 1926, 646, 617, 405, 526, 1458, 524, 1376,
- /* 610 */ 1745, 601, 122, 121, 120, 119, 118, 117, 116, 115,
- /* 620 */ 114, 1940, 1754, 1382, 1383, 406, 11, 10, 77, 1957,
- /* 630 */ 1617, 76, 1453, 1992, 1926, 1616, 100, 1959, 621, 1961,
- /* 640 */ 1962, 616, 1754, 611, 1384, 1926, 91, 80, 170, 575,
- /* 650 */ 2045, 1936, 1942, 133, 356, 2041, 2016, 43, 41, 601,
- /* 660 */ 519, 655, 611, 653, 2118, 362, 1958, 1378, 1747, 44,
- /* 670 */ 1750, 443, 1615, 415, 1926, 529, 2072, 588, 1458, 1926,
- /* 680 */ 1376, 1405, 146, 145, 650, 649, 648, 143, 29, 224,
- /* 690 */ 1754, 708, 1868, 1435, 36, 35, 182, 1976, 42, 40,
- /* 700 */ 39, 38, 37, 1453, 522, 618, 1460, 1461, 1612, 516,
- /* 710 */ 1926, 1611, 617, 2060, 223, 1384, 1926, 1610, 2118, 36,
- /* 720 */ 35, 1501, 2113, 42, 40, 39, 38, 37, 1402, 189,
- /* 730 */ 188, 1406, 1644, 1489, 2060, 1434, 1443, 1957, 2117, 2056,
- /* 740 */ 12, 1992, 2114, 2115, 101, 1959, 621, 1961, 1962, 616,
- /* 750 */ 64, 611, 1926, 63, 1379, 1926, 1377, 1587, 2045, 31,
- /* 760 */ 2055, 1926, 708, 2042, 1609, 36, 35, 1608, 1607, 42,
- /* 770 */ 40, 39, 38, 37, 9, 1606, 1089, 1460, 1461, 1382,
- /* 780 */ 1383, 703, 1433, 1436, 1437, 1438, 1439, 1440, 1441, 1442,
- /* 790 */ 613, 609, 1451, 1452, 1454, 1455, 1456, 1457, 1459, 1462,
- /* 800 */ 2, 319, 234, 1401, 30, 1605, 1434, 1443, 1926, 711,
- /* 810 */ 437, 1926, 1926, 450, 1494, 1091, 449, 1094, 1095, 1926,
- /* 820 */ 603, 1837, 2017, 283, 258, 1379, 1667, 1377, 1604, 1850,
- /* 830 */ 9, 421, 7, 451, 155, 605, 423, 2017, 166, 647,
- /* 840 */ 183, 83, 1798, 1757, 701, 697, 693, 689, 281, 1926,
- /* 850 */ 1382, 1383, 1729, 1433, 1436, 1437, 1438, 1439, 1440, 1441,
- /* 860 */ 1442, 613, 609, 1451, 1452, 1454, 1455, 1456, 1457, 1459,
- /* 870 */ 1462, 2, 1926, 1406, 236, 36, 35, 335, 6, 42,
- /* 880 */ 40, 39, 38, 37, 98, 1850, 668, 274, 1724, 411,
- /* 890 */ 1525, 685, 684, 683, 682, 372, 187, 681, 680, 135,
- /* 900 */ 675, 674, 673, 672, 671, 670, 669, 148, 665, 664,
- /* 910 */ 663, 371, 370, 660, 659, 658, 657, 656, 651, 447,
- /* 920 */ 597, 1798, 442, 441, 440, 439, 436, 435, 434, 433,
- /* 930 */ 432, 428, 427, 426, 425, 336, 418, 417, 416, 1807,
- /* 940 */ 413, 412, 333, 156, 1094, 1095, 36, 35, 296, 1384,
- /* 950 */ 42, 40, 39, 38, 37, 1806, 144, 261, 1958, 653,
- /* 960 */ 667, 652, 294, 66, 1798, 290, 65, 1403, 1784, 2065,
- /* 970 */ 1521, 48, 424, 3, 1348, 1743, 230, 503, 146, 145,
- /* 980 */ 650, 649, 648, 143, 193, 456, 454, 36, 35, 1976,
- /* 990 */ 571, 42, 40, 39, 38, 37, 226, 618, 1739, 502,
- /* 1000 */ 225, 601, 1926, 653, 617, 408, 36, 35, 51, 1657,
- /* 1010 */ 42, 40, 39, 38, 37, 429, 235, 137, 409, 125,
- /* 1020 */ 58, 601, 146, 145, 650, 649, 648, 143, 1741, 1957,
- /* 1030 */ 154, 515, 1754, 1992, 1564, 430, 100, 1959, 621, 1961,
- /* 1040 */ 1962, 616, 25, 611, 216, 1614, 67, 214, 2133, 1737,
- /* 1050 */ 2045, 608, 1754, 1650, 356, 2041, 82, 322, 60, 99,
- /* 1060 */ 532, 1958, 530, 36, 35, 2079, 231, 42, 40, 39,
- /* 1070 */ 38, 37, 36, 35, 612, 517, 42, 40, 39, 38,
- /* 1080 */ 37, 601, 1521, 218, 1387, 220, 217, 601, 219, 1648,
- /* 1090 */ 1947, 222, 1976, 2085, 221, 477, 75, 74, 73, 404,
- /* 1100 */ 618, 1751, 180, 601, 240, 1926, 1958, 617, 1435, 1386,
- /* 1110 */ 1551, 520, 1754, 1945, 1596, 1597, 50, 139, 1754, 645,
- /* 1120 */ 318, 546, 45, 392, 1940, 390, 386, 382, 379, 376,
- /* 1130 */ 264, 1524, 1957, 601, 1754, 601, 1992, 1976, 1949, 100,
- /* 1140 */ 1959, 621, 1961, 1962, 616, 618, 611, 543, 140, 583,
- /* 1150 */ 1926, 2133, 617, 2045, 1936, 1942, 242, 356, 2041, 1709,
- /* 1160 */ 1544, 601, 142, 96, 1754, 611, 1754, 253, 2107, 176,
- /* 1170 */ 11, 10, 555, 93, 1324, 271, 209, 1957, 247, 1958,
- /* 1180 */ 144, 1992, 269, 1977, 100, 1959, 621, 1961, 1962, 616,
- /* 1190 */ 373, 611, 1754, 1479, 359, 358, 2133, 601, 2045, 60,
- /* 1200 */ 593, 45, 356, 2041, 1392, 601, 1638, 661, 601, 572,
- /* 1210 */ 1976, 598, 1859, 2064, 273, 1458, 601, 1385, 618, 599,
- /* 1220 */ 211, 585, 277, 1926, 375, 617, 1795, 1594, 1754, 1156,
- /* 1230 */ 369, 1390, 1208, 662, 1958, 162, 1754, 45, 2075, 1754,
- /* 1240 */ 1453, 495, 491, 487, 483, 208, 625, 1754, 142, 144,
- /* 1250 */ 1957, 1495, 1384, 1444, 1992, 1154, 1389, 100, 1959, 621,
- /* 1260 */ 1961, 1962, 616, 547, 611, 1976, 547, 2113, 126, 2020,
- /* 1270 */ 2113, 2045, 1137, 618, 580, 356, 2041, 142, 1926, 255,
- /* 1280 */ 617, 81, 2119, 173, 206, 2119, 173, 2114, 568, 289,
- /* 1290 */ 2114, 568, 4, 378, 374, 1, 252, 383, 1236, 607,
- /* 1300 */ 1240, 1247, 332, 1341, 284, 1957, 186, 1138, 410, 1992,
- /* 1310 */ 1406, 414, 100, 1959, 621, 1961, 1962, 616, 1860, 611,
- /* 1320 */ 1245, 1593, 445, 419, 2018, 1401, 2045, 431, 1852, 147,
- /* 1330 */ 356, 2041, 438, 444, 452, 446, 547, 453, 190, 455,
- /* 1340 */ 2113, 457, 1407, 458, 467, 1409, 1958, 535, 470, 196,
- /* 1350 */ 198, 205, 199, 1408, 204, 2119, 173, 474, 471, 472,
- /* 1360 */ 2114, 568, 1393, 1410, 1388, 473, 201, 475, 203, 78,
- /* 1370 */ 79, 479, 1111, 197, 207, 496, 1958, 1976, 497, 498,
- /* 1380 */ 500, 103, 1744, 534, 213, 618, 321, 1396, 1398, 547,
- /* 1390 */ 1926, 1905, 617, 2113, 536, 285, 1740, 215, 537, 609,
- /* 1400 */ 1451, 1452, 1454, 1455, 1456, 1457, 149, 1976, 2119, 173,
- /* 1410 */ 150, 538, 1742, 2114, 568, 618, 1902, 1957, 1738, 151,
- /* 1420 */ 1926, 1992, 617, 152, 100, 1959, 621, 1961, 1962, 616,
- /* 1430 */ 1901, 611, 1958, 229, 232, 544, 604, 541, 2045, 551,
- /* 1440 */ 556, 591, 356, 2041, 2076, 2067, 2091, 1957, 2086, 553,
- /* 1450 */ 5, 1992, 1958, 346, 101, 1959, 621, 1961, 1962, 616,
- /* 1460 */ 238, 611, 2090, 1976, 559, 241, 565, 552, 2045, 550,
- /* 1470 */ 248, 618, 2044, 2041, 249, 246, 1926, 549, 617, 347,
- /* 1480 */ 250, 251, 576, 1976, 163, 573, 1521, 130, 1405, 2061,
- /* 1490 */ 350, 618, 584, 1411, 2136, 260, 1926, 1864, 617, 589,
- /* 1500 */ 286, 590, 1873, 1957, 1872, 287, 1871, 1992, 352, 2112,
- /* 1510 */ 101, 1959, 621, 1961, 1962, 616, 594, 611, 88, 595,
- /* 1520 */ 1958, 90, 254, 619, 2045, 288, 57, 1992, 606, 2041,
- /* 1530 */ 101, 1959, 621, 1961, 1962, 616, 1958, 611, 1755, 2026,
- /* 1540 */ 92, 1799, 1725, 623, 2045, 280, 704, 291, 326, 2041,
- /* 1550 */ 705, 1976, 707, 49, 315, 323, 324, 295, 1920, 618,
- /* 1560 */ 71, 1918, 1917, 72, 1926, 300, 617, 1976, 1919, 314,
- /* 1570 */ 293, 304, 1914, 380, 381, 618, 1370, 1371, 179, 385,
- /* 1580 */ 1926, 1912, 617, 387, 388, 389, 1911, 391, 1910, 393,
- /* 1590 */ 1909, 1957, 395, 1908, 397, 1992, 1344, 1958, 159, 1959,
- /* 1600 */ 621, 1961, 1962, 616, 1343, 611, 1884, 1957, 1883, 402,
- /* 1610 */ 403, 1992, 1882, 1881, 159, 1959, 621, 1961, 1962, 616,
- /* 1620 */ 1302, 611, 1845, 1844, 1842, 136, 1841, 1840, 1976, 184,
- /* 1630 */ 420, 1833, 422, 1832, 1831, 1830, 618, 1843, 1839, 548,
- /* 1640 */ 2082, 1926, 1958, 617, 1838, 1836, 1835, 1834, 1829, 1828,
- /* 1650 */ 1827, 1826, 1825, 1824, 1823, 1822, 2083, 1821, 1820, 1819,
- /* 1660 */ 1818, 138, 1817, 1816, 1815, 1814, 1813, 1812, 1957, 1811,
- /* 1670 */ 1810, 448, 1992, 1976, 1183, 306, 1959, 621, 1961, 1962,
- /* 1680 */ 616, 618, 611, 1304, 1809, 1808, 1926, 1672, 617, 1671,
- /* 1690 */ 191, 1669, 1633, 1097, 192, 1632, 1897, 1096, 194, 1891,
- /* 1700 */ 1880, 202, 1879, 1958, 1862, 1733, 1130, 69, 1668, 1666,
- /* 1710 */ 1664, 480, 195, 1957, 70, 168, 200, 1992, 1662, 564,
- /* 1720 */ 160, 1959, 621, 1961, 1962, 616, 1958, 611, 1946, 463,
- /* 1730 */ 1660, 1647, 482, 465, 1976, 1646, 481, 486, 484, 351,
- /* 1740 */ 490, 488, 618, 212, 59, 485, 492, 1926, 1629, 617,
- /* 1750 */ 1735, 1252, 494, 1734, 1251, 489, 1174, 1976, 1173, 1172,
- /* 1760 */ 493, 1171, 1166, 676, 678, 615, 1658, 341, 1168, 1167,
- /* 1770 */ 1926, 1165, 617, 2135, 1957, 1651, 342, 1649, 1992, 518,
- /* 1780 */ 343, 313, 1959, 621, 1961, 1962, 616, 1958, 611, 1628,
- /* 1790 */ 521, 523, 1627, 1626, 525, 527, 102, 1957, 1359, 1358,
- /* 1800 */ 1896, 1992, 531, 1350, 312, 1959, 621, 1961, 1962, 616,
- /* 1810 */ 1362, 611, 24, 2011, 1890, 1878, 539, 1958, 1976, 1876,
- /* 1820 */ 2118, 1566, 17, 361, 239, 14, 618, 56, 244, 245,
- /* 1830 */ 28, 1926, 26, 617, 237, 18, 53, 1550, 1543, 161,
- /* 1840 */ 1958, 540, 243, 1947, 27, 233, 84, 61, 1976, 19,
- /* 1850 */ 15, 1581, 55, 363, 257, 1580, 618, 344, 1957, 348,
- /* 1860 */ 1585, 1926, 1992, 617, 1584, 313, 1959, 621, 1961, 1962,
- /* 1870 */ 616, 1976, 611, 153, 349, 1586, 1587, 1518, 164, 618,
- /* 1880 */ 1877, 1517, 1875, 1874, 1926, 1958, 617, 262, 1957, 1861,
- /* 1890 */ 20, 545, 1992, 263, 1548, 313, 1959, 621, 1961, 1962,
- /* 1900 */ 616, 1958, 611, 87, 265, 270, 86, 89, 93, 275,
- /* 1910 */ 21, 533, 592, 10, 1394, 1992, 1976, 1995, 308, 1959,
- /* 1920 */ 621, 1961, 1962, 616, 618, 611, 272, 1426, 1448, 1926,
- /* 1930 */ 610, 617, 1976, 1446, 1445, 165, 622, 34, 13, 624,
- /* 1940 */ 618, 22, 177, 1480, 1418, 1926, 23, 617, 1237, 364,
- /* 1950 */ 626, 628, 1234, 629, 1958, 1231, 1957, 54, 631, 620,
- /* 1960 */ 1992, 1225, 632, 297, 1959, 621, 1961, 1962, 616, 634,
- /* 1970 */ 611, 635, 1957, 1223, 637, 1214, 1992, 278, 644, 298,
- /* 1980 */ 1959, 621, 1961, 1962, 616, 1976, 611, 1470, 638, 1229,
- /* 1990 */ 8, 1228, 1469, 618, 1227, 94, 95, 1226, 1926, 1958,
- /* 2000 */ 617, 1246, 68, 1242, 1128, 654, 1162, 1161, 1160, 1159,
- /* 2010 */ 1158, 1157, 1155, 1153, 1152, 1151, 1181, 1146, 666, 1149,
- /* 2020 */ 1148, 1147, 1145, 1144, 1143, 1957, 279, 1178, 1176, 1992,
- /* 2030 */ 1976, 1140, 299, 1959, 621, 1961, 1962, 616, 618, 611,
- /* 2040 */ 1139, 1136, 1135, 1926, 1134, 617, 1133, 1665, 686, 687,
- /* 2050 */ 1663, 688, 1958, 690, 692, 1661, 691, 695, 694, 696,
- /* 2060 */ 1659, 698, 699, 700, 1645, 702, 1625, 1086, 1958, 706,
- /* 2070 */ 1957, 282, 710, 1380, 1992, 1600, 292, 305, 1959, 621,
- /* 2080 */ 1961, 1962, 616, 1976, 611, 1600, 709, 1600, 1600, 1600,
- /* 2090 */ 1600, 618, 1600, 1600, 1600, 1600, 1926, 1600, 617, 1976,
- /* 2100 */ 1600, 1600, 1600, 1600, 1600, 1600, 1600, 618, 1600, 1600,
- /* 2110 */ 1600, 1600, 1926, 1958, 617, 1600, 1600, 1600, 1600, 1600,
- /* 2120 */ 1600, 1600, 1600, 1957, 1600, 1600, 1600, 1992, 1600, 1600,
- /* 2130 */ 309, 1959, 621, 1961, 1962, 616, 1600, 611, 1600, 1957,
- /* 2140 */ 1600, 1600, 1600, 1992, 1976, 1600, 301, 1959, 621, 1961,
- /* 2150 */ 1962, 616, 618, 611, 1600, 1600, 1600, 1926, 1600, 617,
- /* 2160 */ 1600, 1600, 1600, 1600, 1600, 1600, 1958, 1600, 1600, 1600,
- /* 2170 */ 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1600,
- /* 2180 */ 1600, 1600, 1958, 1600, 1957, 1600, 1600, 1600, 1992, 1600,
- /* 2190 */ 1600, 310, 1959, 621, 1961, 1962, 616, 1976, 611, 1600,
- /* 2200 */ 1600, 1600, 1600, 1600, 1600, 618, 1600, 1600, 1600, 1600,
- /* 2210 */ 1926, 1600, 617, 1976, 1600, 1600, 1600, 1600, 1600, 1600,
- /* 2220 */ 1600, 618, 1600, 1600, 1600, 1600, 1926, 1958, 617, 1600,
- /* 2230 */ 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1957, 1600, 1600,
- /* 2240 */ 1600, 1992, 1600, 1600, 302, 1959, 621, 1961, 1962, 616,
- /* 2250 */ 1958, 611, 1600, 1957, 1600, 1600, 1600, 1992, 1976, 1600,
- /* 2260 */ 311, 1959, 621, 1961, 1962, 616, 618, 611, 1600, 1600,
- /* 2270 */ 1600, 1926, 1600, 617, 1600, 1600, 1600, 1600, 1600, 1600,
- /* 2280 */ 1958, 1976, 1600, 1600, 1600, 1600, 1600, 1600, 1600, 618,
- /* 2290 */ 1600, 1600, 1600, 1600, 1926, 1600, 617, 1600, 1957, 1600,
- /* 2300 */ 1600, 1600, 1992, 1600, 1600, 303, 1959, 621, 1961, 1962,
- /* 2310 */ 616, 1976, 611, 1600, 1600, 1600, 1600, 1600, 1600, 618,
- /* 2320 */ 1600, 1957, 1600, 1600, 1926, 1992, 617, 1600, 316, 1959,
- /* 2330 */ 621, 1961, 1962, 616, 1600, 611, 1600, 1600, 1600, 1600,
- /* 2340 */ 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1600,
- /* 2350 */ 1600, 1957, 1600, 1600, 1600, 1992, 1958, 1600, 317, 1959,
- /* 2360 */ 621, 1961, 1962, 616, 1600, 611, 1600, 1600, 1600, 1600,
- /* 2370 */ 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1958, 1600,
- /* 2380 */ 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1976, 1600, 1600,
- /* 2390 */ 1600, 1600, 1600, 1600, 1600, 618, 1600, 1600, 1600, 1600,
- /* 2400 */ 1926, 1600, 617, 1600, 1600, 1600, 1600, 1600, 1600, 1976,
- /* 2410 */ 1600, 1600, 1600, 1600, 1600, 1600, 1600, 618, 1600, 1600,
- /* 2420 */ 1600, 1600, 1926, 1600, 617, 1600, 1600, 1957, 1600, 1600,
- /* 2430 */ 1600, 1992, 1600, 1958, 1970, 1959, 621, 1961, 1962, 616,
- /* 2440 */ 1600, 611, 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1957,
- /* 2450 */ 1600, 1600, 1600, 1992, 1600, 1600, 1969, 1959, 621, 1961,
- /* 2460 */ 1962, 616, 1600, 611, 1976, 1600, 1600, 1600, 1600, 1600,
- /* 2470 */ 1600, 1600, 618, 1600, 1600, 1600, 1600, 1926, 1958, 617,
- /* 2480 */ 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1600,
- /* 2490 */ 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1600,
- /* 2500 */ 1600, 1600, 1600, 1600, 1957, 1600, 1600, 1600, 1992, 1976,
- /* 2510 */ 1600, 1968, 1959, 621, 1961, 1962, 616, 618, 611, 1600,
- /* 2520 */ 1600, 1600, 1926, 1958, 617, 1600, 1600, 1600, 1600, 1600,
- /* 2530 */ 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1958,
- /* 2540 */ 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1957,
- /* 2550 */ 1600, 1600, 1600, 1992, 1976, 1600, 328, 1959, 621, 1961,
- /* 2560 */ 1962, 616, 618, 611, 1600, 1600, 1600, 1926, 1600, 617,
- /* 2570 */ 1976, 1600, 1600, 1600, 1600, 1600, 1600, 1600, 618, 1600,
- /* 2580 */ 1600, 1600, 1600, 1926, 1958, 617, 1600, 1600, 1600, 1600,
- /* 2590 */ 1600, 1600, 1600, 1600, 1957, 1600, 1600, 1600, 1992, 1600,
- /* 2600 */ 1600, 329, 1959, 621, 1961, 1962, 616, 1958, 611, 1600,
- /* 2610 */ 1957, 1600, 1600, 1600, 1992, 1976, 1600, 325, 1959, 621,
- /* 2620 */ 1961, 1962, 616, 618, 611, 1600, 1600, 1600, 1926, 1600,
- /* 2630 */ 617, 1600, 1600, 1600, 1600, 1600, 1600, 1958, 1976, 1600,
- /* 2640 */ 1600, 1600, 1600, 1600, 1600, 1600, 618, 1600, 1600, 1600,
- /* 2650 */ 1600, 1926, 1600, 617, 1600, 1957, 1600, 1600, 1600, 1992,
- /* 2660 */ 1600, 1600, 330, 1959, 621, 1961, 1962, 616, 1976, 611,
- /* 2670 */ 1600, 1600, 1600, 1600, 1600, 1600, 618, 1600, 619, 1600,
- /* 2680 */ 1600, 1926, 1992, 617, 1600, 308, 1959, 621, 1961, 1962,
- /* 2690 */ 616, 1600, 611, 1600, 1600, 1600, 1600, 1600, 1600, 1600,
- /* 2700 */ 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1600, 1957, 1600,
- /* 2710 */ 1600, 1600, 1992, 1600, 1600, 307, 1959, 621, 1961, 1962,
- /* 2720 */ 616, 1600, 611,
+ /* 0 */ 463, 370, 464, 1647, 1810, 1812, 404, 1969, 1755, 33,
+ /* 10 */ 277, 170, 43, 41, 1536, 1634, 1753, 571, 168, 1951,
+ /* 20 */ 365, 2126, 1386, 1955, 1804, 42, 40, 39, 38, 37,
+ /* 30 */ 1969, 605, 1609, 1466, 1951, 1384, 570, 174, 1987, 335,
+ /* 40 */ 1864, 2127, 572, 1811, 1812, 52, 622, 591, 550, 1947,
+ /* 50 */ 1953, 1937, 2126, 621, 11, 10, 1411, 589, 1461, 1937,
+ /* 60 */ 615, 1987, 1764, 16, 1947, 1953, 347, 2132, 174, 586,
+ /* 70 */ 1392, 1412, 2127, 572, 1937, 615, 621, 462, 1968, 604,
+ /* 80 */ 467, 1653, 2003, 43, 41, 161, 1970, 625, 1972, 1973,
+ /* 90 */ 620, 365, 615, 1386, 479, 12, 1873, 380, 604, 550,
+ /* 100 */ 605, 1968, 159, 2126, 1466, 2003, 1384, 1718, 101, 1970,
+ /* 110 */ 625, 1972, 1973, 620, 124, 615, 260, 712, 2132, 174,
+ /* 120 */ 171, 502, 2056, 2127, 572, 229, 359, 2052, 1794, 1461,
+ /* 130 */ 604, 1764, 1468, 1469, 16, 97, 605, 573, 2147, 550,
+ /* 140 */ 176, 1392, 583, 2126, 472, 94, 464, 1647, 2082, 1509,
+ /* 150 */ 124, 157, 1182, 59, 46, 86, 297, 507, 2132, 174,
+ /* 160 */ 592, 1442, 1451, 2127, 572, 471, 12, 1764, 467, 1653,
+ /* 170 */ 295, 67, 356, 132, 66, 1877, 2071, 517, 516, 515,
+ /* 180 */ 1387, 1680, 1385, 1265, 1266, 129, 511, 1184, 712, 1956,
+ /* 190 */ 510, 357, 194, 459, 457, 509, 514, 1318, 1319, 156,
+ /* 200 */ 1951, 508, 2068, 1468, 1469, 46, 1390, 1391, 1766, 1441,
+ /* 210 */ 1444, 1445, 1446, 1447, 1448, 1449, 1450, 617, 613, 1459,
+ /* 220 */ 1460, 1462, 1463, 1464, 1465, 1467, 1470, 2, 59, 605,
+ /* 230 */ 1947, 1953, 1442, 1451, 257, 2064, 582, 590, 125, 581,
+ /* 240 */ 1413, 615, 2126, 179, 469, 1411, 517, 516, 515, 168,
+ /* 250 */ 465, 1387, 227, 1385, 129, 511, 226, 570, 174, 510,
+ /* 260 */ 1764, 50, 2127, 572, 509, 514, 549, 100, 36, 35,
+ /* 270 */ 508, 1865, 42, 40, 39, 38, 37, 1390, 1391, 378,
+ /* 280 */ 1441, 1444, 1445, 1446, 1447, 1448, 1449, 1450, 617, 613,
+ /* 290 */ 1459, 1460, 1462, 1463, 1464, 1465, 1467, 1470, 2, 522,
+ /* 300 */ 9, 43, 41, 177, 177, 75, 74, 407, 92, 365,
+ /* 310 */ 181, 1386, 83, 323, 532, 1987, 345, 98, 533, 1969,
+ /* 320 */ 59, 550, 1466, 565, 1384, 2126, 1817, 145, 225, 319,
+ /* 330 */ 1757, 133, 395, 358, 393, 389, 385, 382, 379, 1756,
+ /* 340 */ 2132, 174, 1815, 525, 1955, 2127, 572, 1461, 519, 368,
+ /* 350 */ 1987, 63, 16, 224, 371, 1951, 1574, 156, 622, 1392,
+ /* 360 */ 2131, 481, 156, 1937, 564, 621, 1766, 39, 38, 37,
+ /* 370 */ 591, 1766, 43, 41, 1471, 566, 59, 1413, 177, 51,
+ /* 380 */ 365, 1969, 1386, 259, 12, 1947, 1953, 348, 59, 65,
+ /* 390 */ 1968, 81, 64, 1466, 2003, 1384, 615, 101, 1970, 625,
+ /* 400 */ 1972, 1973, 620, 9, 615, 128, 712, 135, 1497, 142,
+ /* 410 */ 2027, 2056, 1987, 1742, 1759, 359, 2052, 600, 1461, 1873,
+ /* 420 */ 622, 1468, 1469, 268, 269, 1937, 1096, 621, 267, 1740,
+ /* 430 */ 1392, 1222, 647, 646, 645, 1226, 644, 1228, 1229, 643,
+ /* 440 */ 1231, 640, 59, 1237, 637, 1239, 1240, 634, 631, 650,
+ /* 450 */ 1442, 1451, 1968, 1597, 1412, 44, 2003, 1611, 186, 102,
+ /* 460 */ 1970, 625, 1972, 1973, 620, 1098, 615, 1101, 1102, 1387,
+ /* 470 */ 177, 1385, 403, 2056, 402, 481, 1411, 712, 2053, 410,
+ /* 480 */ 30, 123, 122, 121, 120, 119, 118, 117, 116, 115,
+ /* 490 */ 1502, 659, 1468, 1469, 78, 1390, 1391, 77, 1441, 1444,
+ /* 500 */ 1445, 1446, 1447, 1448, 1449, 1450, 617, 613, 1459, 1460,
+ /* 510 */ 1462, 1463, 1464, 1465, 1467, 1470, 2, 513, 512, 321,
+ /* 520 */ 259, 1442, 1451, 1612, 114, 605, 177, 113, 112, 111,
+ /* 530 */ 110, 109, 108, 107, 106, 105, 81, 659, 177, 408,
+ /* 540 */ 1387, 158, 1385, 1623, 114, 1410, 1633, 113, 112, 111,
+ /* 550 */ 110, 109, 108, 107, 106, 105, 1764, 36, 35, 1760,
+ /* 560 */ 1969, 42, 40, 39, 38, 37, 1390, 1391, 47, 1441,
+ /* 570 */ 1444, 1445, 1446, 1447, 1448, 1449, 1450, 617, 613, 1459,
+ /* 580 */ 1460, 1462, 1463, 1464, 1465, 1467, 1470, 2, 43, 41,
+ /* 590 */ 1937, 1987, 177, 25, 411, 446, 365, 592, 1386, 586,
+ /* 600 */ 340, 1115, 1392, 1114, 1937, 561, 621, 412, 9, 1466,
+ /* 610 */ 7, 1384, 1878, 1817, 1817, 607, 211, 2028, 36, 35,
+ /* 620 */ 369, 332, 42, 40, 39, 38, 37, 6, 1632, 1815,
+ /* 630 */ 1815, 1968, 1116, 1955, 1461, 2003, 531, 583, 101, 1970,
+ /* 640 */ 625, 1972, 1973, 620, 1951, 615, 1392, 1563, 605, 529,
+ /* 650 */ 171, 527, 2056, 190, 189, 583, 359, 2052, 2071, 43,
+ /* 660 */ 41, 341, 409, 339, 338, 671, 504, 365, 132, 1386,
+ /* 670 */ 506, 44, 1937, 328, 1947, 1953, 360, 1749, 2083, 1764,
+ /* 680 */ 1466, 399, 1384, 1414, 2067, 615, 132, 571, 1540, 567,
+ /* 690 */ 562, 2126, 505, 712, 1411, 558, 557, 1561, 1562, 1564,
+ /* 700 */ 1565, 1566, 545, 401, 397, 1461, 570, 174, 1468, 1469,
+ /* 710 */ 1631, 2127, 572, 228, 1495, 2131, 1630, 1392, 177, 2126,
+ /* 720 */ 36, 35, 605, 1751, 42, 40, 39, 38, 37, 173,
+ /* 730 */ 2064, 2065, 1414, 130, 2069, 2130, 418, 1442, 1451, 2127,
+ /* 740 */ 2129, 2131, 12, 2071, 1476, 2126, 585, 172, 2064, 2065,
+ /* 750 */ 1411, 130, 2069, 1764, 1937, 1747, 1387, 609, 1385, 2028,
+ /* 760 */ 1937, 2130, 506, 1629, 712, 2127, 2128, 36, 35, 2066,
+ /* 770 */ 1496, 42, 40, 39, 38, 37, 1361, 1362, 134, 1468,
+ /* 780 */ 1469, 2027, 1390, 1391, 505, 1441, 1444, 1445, 1446, 1447,
+ /* 790 */ 1448, 1449, 1450, 617, 613, 1459, 1460, 1462, 1463, 1464,
+ /* 800 */ 1465, 1467, 1470, 2, 320, 2130, 1409, 1937, 1442, 1451,
+ /* 810 */ 1115, 232, 1114, 440, 683, 681, 453, 36, 35, 452,
+ /* 820 */ 1860, 42, 40, 39, 38, 37, 183, 1387, 1677, 1385,
+ /* 830 */ 651, 182, 1529, 1808, 424, 1443, 454, 1628, 1533, 426,
+ /* 840 */ 1627, 1116, 32, 363, 1490, 1491, 1492, 1493, 1494, 1498,
+ /* 850 */ 1499, 1500, 1501, 1390, 1391, 1552, 1441, 1444, 1445, 1446,
+ /* 860 */ 1447, 1448, 1449, 1450, 617, 613, 1459, 1460, 1462, 1463,
+ /* 870 */ 1464, 1465, 1467, 1470, 2, 237, 29, 1626, 616, 1625,
+ /* 880 */ 336, 1937, 36, 35, 1937, 649, 42, 40, 39, 38,
+ /* 890 */ 37, 1443, 414, 689, 688, 687, 686, 375, 1622, 685,
+ /* 900 */ 684, 136, 679, 678, 677, 676, 675, 674, 673, 149,
+ /* 910 */ 669, 668, 667, 374, 373, 664, 663, 662, 661, 660,
+ /* 920 */ 1621, 1937, 450, 1937, 1969, 445, 444, 443, 442, 439,
+ /* 930 */ 438, 437, 436, 435, 431, 430, 429, 428, 337, 421,
+ /* 940 */ 420, 419, 1937, 416, 415, 334, 1620, 1969, 1619, 1860,
+ /* 950 */ 1860, 291, 362, 361, 1794, 1987, 1618, 605, 605, 1414,
+ /* 960 */ 184, 188, 1400, 622, 1937, 605, 605, 1617, 1937, 1741,
+ /* 970 */ 621, 432, 433, 1466, 156, 1393, 1411, 583, 1987, 372,
+ /* 980 */ 480, 1604, 672, 1767, 1734, 1817, 622, 1624, 1764, 1764,
+ /* 990 */ 1937, 1937, 1937, 621, 377, 1968, 1764, 1764, 1461, 2003,
+ /* 1000 */ 1937, 1816, 101, 1970, 625, 1972, 1973, 620, 132, 615,
+ /* 1010 */ 1392, 1937, 1101, 1102, 2146, 1616, 2056, 1719, 1968, 1615,
+ /* 1020 */ 359, 2052, 2003, 1847, 1614, 101, 1970, 625, 1972, 1973,
+ /* 1030 */ 620, 2090, 615, 1969, 575, 31, 550, 2146, 2096, 2056,
+ /* 1040 */ 2126, 36, 35, 359, 2052, 42, 40, 39, 38, 37,
+ /* 1050 */ 655, 2076, 1529, 1808, 2120, 2132, 174, 611, 1924, 1937,
+ /* 1060 */ 2127, 572, 656, 1937, 1987, 1808, 574, 212, 1937, 175,
+ /* 1070 */ 2064, 2065, 622, 130, 2069, 210, 657, 1937, 1603, 621,
+ /* 1080 */ 1532, 1667, 163, 1660, 48, 138, 3, 126, 498, 494,
+ /* 1090 */ 490, 486, 209, 68, 254, 147, 146, 654, 653, 652,
+ /* 1100 */ 144, 578, 236, 518, 1968, 520, 387, 535, 2003, 534,
+ /* 1110 */ 1969, 101, 1970, 625, 1972, 1973, 620, 1443, 615, 605,
+ /* 1120 */ 1401, 217, 1396, 2146, 215, 2056, 1606, 1607, 82, 359,
+ /* 1130 */ 2052, 207, 1395, 1761, 1969, 665, 219, 235, 1386, 218,
+ /* 1140 */ 2075, 1987, 61, 76, 61, 241, 1404, 1406, 657, 622,
+ /* 1150 */ 1764, 1384, 605, 1658, 1937, 1394, 621, 1163, 613, 1459,
+ /* 1160 */ 1460, 1462, 1463, 1464, 1465, 1987, 140, 147, 146, 654,
+ /* 1170 */ 653, 652, 144, 622, 427, 523, 84, 612, 1937, 1969,
+ /* 1180 */ 621, 1968, 559, 1764, 221, 2003, 1392, 220, 101, 1970,
+ /* 1190 */ 625, 1972, 1973, 620, 1560, 615, 1559, 243, 206, 200,
+ /* 1200 */ 2031, 205, 2056, 45, 477, 1968, 359, 2052, 248, 2003,
+ /* 1210 */ 1987, 1739, 101, 1970, 625, 1972, 1973, 620, 622, 615,
+ /* 1220 */ 198, 11, 10, 1937, 2029, 621, 2056, 1988, 376, 265,
+ /* 1230 */ 359, 2052, 605, 712, 1969, 36, 35, 605, 1869, 42,
+ /* 1240 */ 40, 39, 38, 37, 1648, 141, 546, 143, 145, 61,
+ /* 1250 */ 1968, 587, 605, 605, 2003, 1331, 576, 101, 1970, 625,
+ /* 1260 */ 1972, 1973, 620, 1764, 615, 1987, 272, 602, 1764, 608,
+ /* 1270 */ 1805, 2056, 605, 622, 223, 359, 2052, 222, 1937, 1398,
+ /* 1280 */ 621, 270, 538, 1764, 1764, 2086, 603, 36, 35, 584,
+ /* 1290 */ 1969, 42, 40, 39, 38, 37, 1387, 597, 1385, 274,
+ /* 1300 */ 1215, 1503, 1397, 1764, 45, 1968, 1958, 45, 629, 2003,
+ /* 1310 */ 143, 145, 102, 1970, 625, 1972, 1973, 620, 657, 615,
+ /* 1320 */ 1487, 1987, 1390, 1391, 550, 579, 2056, 1654, 2126, 622,
+ /* 1330 */ 2055, 2052, 127, 605, 1937, 1969, 621, 147, 146, 654,
+ /* 1340 */ 653, 652, 144, 2132, 174, 666, 143, 278, 2127, 572,
+ /* 1350 */ 1144, 256, 253, 4, 1960, 1, 1452, 381, 1969, 290,
+ /* 1360 */ 1243, 1968, 1247, 1254, 1764, 2003, 1987, 1161, 102, 1970,
+ /* 1370 */ 625, 1972, 1973, 620, 622, 615, 707, 386, 333, 1937,
+ /* 1380 */ 1348, 621, 2056, 285, 1252, 1145, 610, 2052, 187, 1987,
+ /* 1390 */ 155, 413, 1414, 1870, 417, 448, 422, 619, 148, 1409,
+ /* 1400 */ 434, 1862, 1937, 441, 621, 447, 623, 455, 449, 191,
+ /* 1410 */ 2003, 456, 458, 102, 1970, 625, 1972, 1973, 620, 460,
+ /* 1420 */ 615, 1415, 461, 470, 1417, 473, 474, 2056, 197, 1968,
+ /* 1430 */ 199, 327, 2052, 2003, 1416, 475, 313, 1970, 625, 1972,
+ /* 1440 */ 1973, 620, 618, 615, 606, 2021, 1969, 1418, 202, 476,
+ /* 1450 */ 204, 478, 79, 80, 208, 1118, 482, 501, 539, 1915,
+ /* 1460 */ 503, 499, 1969, 500, 537, 322, 1754, 104, 214, 540,
+ /* 1470 */ 286, 2087, 541, 230, 1912, 1750, 216, 1987, 544, 233,
+ /* 1480 */ 547, 560, 150, 595, 151, 622, 2102, 1752, 1748, 152,
+ /* 1490 */ 1937, 153, 621, 1987, 5, 2101, 2078, 569, 1911, 247,
+ /* 1500 */ 555, 622, 553, 164, 249, 552, 1937, 251, 621, 250,
+ /* 1510 */ 554, 350, 556, 349, 563, 2149, 580, 1968, 1969, 2097,
+ /* 1520 */ 577, 2003, 1529, 239, 160, 1970, 625, 1972, 1973, 620,
+ /* 1530 */ 242, 615, 131, 1968, 2125, 255, 1413, 2003, 261, 1419,
+ /* 1540 */ 160, 1970, 625, 1972, 1973, 620, 1969, 615, 252, 1987,
+ /* 1550 */ 2072, 588, 1874, 353, 593, 287, 288, 622, 594, 1883,
+ /* 1560 */ 1882, 1881, 1937, 355, 621, 551, 2093, 598, 89, 599,
+ /* 1570 */ 58, 91, 289, 1765, 2037, 93, 627, 1987, 1735, 1809,
+ /* 1580 */ 292, 281, 2094, 709, 708, 622, 49, 711, 301, 1968,
+ /* 1590 */ 1937, 316, 621, 2003, 294, 315, 307, 1970, 625, 1972,
+ /* 1600 */ 1973, 620, 324, 615, 305, 296, 1931, 1930, 1969, 325,
+ /* 1610 */ 72, 1929, 1928, 73, 1925, 383, 384, 1968, 1378, 1379,
+ /* 1620 */ 715, 2003, 180, 1923, 161, 1970, 625, 1972, 1973, 620,
+ /* 1630 */ 388, 615, 390, 391, 284, 392, 1922, 394, 1921, 1987,
+ /* 1640 */ 568, 1920, 398, 396, 354, 1919, 1351, 622, 400, 167,
+ /* 1650 */ 1350, 1894, 1937, 1893, 621, 705, 701, 697, 693, 282,
+ /* 1660 */ 405, 1892, 406, 1969, 1309, 1855, 1854, 1852, 137, 1851,
+ /* 1670 */ 1850, 1853, 1849, 1848, 1846, 1845, 1844, 2148, 1891, 1968,
+ /* 1680 */ 185, 423, 1843, 2003, 425, 1842, 314, 1970, 625, 1972,
+ /* 1690 */ 1973, 620, 1841, 615, 1987, 99, 1840, 1839, 275, 1838,
+ /* 1700 */ 1837, 1836, 619, 1835, 1834, 1833, 1832, 1937, 1831, 621,
+ /* 1710 */ 1830, 1829, 1828, 1827, 1826, 1825, 1824, 1823, 1822, 139,
+ /* 1720 */ 1311, 1821, 1820, 451, 1819, 1969, 1190, 1682, 1681, 1679,
+ /* 1730 */ 1643, 601, 1818, 70, 1968, 195, 1957, 192, 2003, 193,
+ /* 1740 */ 1642, 313, 1970, 625, 1972, 1973, 620, 1104, 615, 466,
+ /* 1750 */ 2022, 169, 1103, 1907, 1901, 1969, 1987, 1890, 1889, 1872,
+ /* 1760 */ 196, 364, 71, 203, 622, 1743, 468, 1678, 262, 1937,
+ /* 1770 */ 201, 621, 1676, 1137, 483, 485, 1674, 487, 1672, 491,
+ /* 1780 */ 489, 1670, 484, 488, 1657, 1355, 1987, 231, 493, 497,
+ /* 1790 */ 495, 366, 1656, 492, 622, 496, 1968, 1639, 1745, 1937,
+ /* 1800 */ 2003, 621, 1258, 314, 1970, 625, 1972, 1973, 620, 1259,
+ /* 1810 */ 615, 1744, 1181, 1969, 1180, 680, 1173, 1179, 1178, 682,
+ /* 1820 */ 1175, 1174, 1172, 1668, 342, 1661, 1968, 213, 343, 1969,
+ /* 1830 */ 2003, 1659, 344, 314, 1970, 625, 1972, 1973, 620, 521,
+ /* 1840 */ 615, 60, 524, 1638, 1987, 1637, 1636, 526, 528, 530,
+ /* 1850 */ 1366, 1368, 622, 103, 1365, 1906, 1370, 1937, 24, 621,
+ /* 1860 */ 1987, 1357, 1900, 154, 542, 1888, 1886, 2131, 622, 1576,
+ /* 1870 */ 14, 18, 17, 1937, 1969, 621, 56, 62, 57, 245,
+ /* 1880 */ 15, 28, 19, 26, 536, 238, 246, 240, 2003, 1558,
+ /* 1890 */ 1969, 309, 1970, 625, 1972, 1973, 620, 1551, 615, 162,
+ /* 1900 */ 1968, 1958, 1591, 244, 2003, 1987, 53, 298, 1970, 625,
+ /* 1910 */ 1972, 1973, 620, 622, 615, 543, 234, 548, 1937, 27,
+ /* 1920 */ 621, 1987, 1590, 351, 346, 1596, 258, 1595, 1594, 622,
+ /* 1930 */ 352, 85, 165, 54, 1937, 1887, 621, 1597, 55, 1885,
+ /* 1940 */ 1526, 1884, 1871, 1525, 263, 1968, 20, 88, 264, 2003,
+ /* 1950 */ 276, 266, 299, 1970, 625, 1972, 1973, 620, 271, 615,
+ /* 1960 */ 21, 1968, 596, 273, 1556, 2003, 87, 1969, 300, 1970,
+ /* 1970 */ 625, 1972, 1973, 620, 94, 615, 90, 10, 1402, 2006,
+ /* 1980 */ 166, 178, 1456, 1434, 614, 628, 1454, 367, 626, 632,
+ /* 1990 */ 1478, 1969, 1453, 34, 8, 13, 1477, 22, 1987, 635,
+ /* 2000 */ 1426, 1488, 23, 1221, 638, 1244, 622, 630, 624, 1241,
+ /* 2010 */ 633, 1937, 636, 621, 1238, 1232, 639, 641, 1230, 642,
+ /* 2020 */ 1236, 648, 1987, 95, 1235, 1234, 96, 279, 1253, 1233,
+ /* 2030 */ 622, 69, 1249, 1169, 1135, 1937, 658, 621, 1968, 1168,
+ /* 2040 */ 1167, 1166, 2003, 1165, 1164, 306, 1970, 625, 1972, 1973,
+ /* 2050 */ 620, 1162, 615, 1969, 1160, 1159, 1158, 1188, 670, 280,
+ /* 2060 */ 1156, 1155, 1968, 1154, 1153, 1152, 2003, 1151, 1150, 310,
+ /* 2070 */ 1970, 625, 1972, 1973, 620, 1183, 615, 1185, 1147, 1146,
+ /* 2080 */ 1143, 1142, 1141, 1969, 1987, 1140, 1675, 690, 692, 691,
+ /* 2090 */ 1673, 694, 622, 1671, 696, 695, 698, 1937, 700, 621,
+ /* 2100 */ 1669, 699, 702, 704, 1655, 703, 706, 1093, 1635, 283,
+ /* 2110 */ 710, 1610, 714, 1388, 1987, 1610, 293, 713, 1610, 1610,
+ /* 2120 */ 1610, 1610, 622, 1610, 1968, 1610, 1610, 1937, 2003, 621,
+ /* 2130 */ 1610, 302, 1970, 625, 1972, 1973, 620, 1610, 615, 1610,
+ /* 2140 */ 1610, 1969, 1610, 1610, 1610, 1610, 1610, 1610, 1610, 1610,
+ /* 2150 */ 1610, 1610, 1610, 1610, 1968, 1610, 1610, 1969, 2003, 1610,
+ /* 2160 */ 1610, 311, 1970, 625, 1972, 1973, 620, 1610, 615, 1610,
+ /* 2170 */ 1610, 1610, 1987, 1610, 1610, 1610, 1610, 1610, 1610, 1610,
+ /* 2180 */ 622, 1610, 1610, 1610, 1610, 1937, 1610, 621, 1987, 1610,
+ /* 2190 */ 1610, 1610, 1610, 1610, 1610, 1610, 622, 1610, 1610, 1610,
+ /* 2200 */ 1610, 1937, 1969, 621, 1610, 1610, 1610, 1610, 1610, 1610,
+ /* 2210 */ 1610, 1610, 1968, 1610, 1610, 1610, 2003, 1610, 1969, 303,
+ /* 2220 */ 1970, 625, 1972, 1973, 620, 1610, 615, 1610, 1968, 1610,
+ /* 2230 */ 1610, 1610, 2003, 1987, 1610, 312, 1970, 625, 1972, 1973,
+ /* 2240 */ 620, 622, 615, 1610, 1610, 1610, 1937, 1610, 621, 1987,
+ /* 2250 */ 1610, 1610, 1610, 1610, 1610, 1610, 1610, 622, 1610, 1610,
+ /* 2260 */ 1610, 1610, 1937, 1610, 621, 1610, 1610, 1610, 1610, 1610,
+ /* 2270 */ 1610, 1610, 1610, 1968, 1610, 1610, 1610, 2003, 1610, 1610,
+ /* 2280 */ 304, 1970, 625, 1972, 1973, 620, 1610, 615, 1610, 1968,
+ /* 2290 */ 1610, 1610, 1610, 2003, 1610, 1969, 317, 1970, 625, 1972,
+ /* 2300 */ 1973, 620, 1610, 615, 1610, 1610, 1610, 1610, 1610, 1610,
+ /* 2310 */ 1610, 1610, 1610, 1610, 1610, 1610, 1610, 1610, 1610, 1969,
+ /* 2320 */ 1610, 1610, 1610, 1610, 1610, 1610, 1987, 1610, 1610, 1610,
+ /* 2330 */ 1610, 1610, 1610, 1610, 622, 1610, 1610, 1610, 1610, 1937,
+ /* 2340 */ 1610, 621, 1610, 1610, 1610, 1610, 1610, 1610, 1610, 1610,
+ /* 2350 */ 1987, 1610, 1610, 1610, 1610, 1610, 1610, 1610, 622, 1610,
+ /* 2360 */ 1610, 1610, 1610, 1937, 1610, 621, 1968, 1610, 1610, 1610,
+ /* 2370 */ 2003, 1610, 1610, 318, 1970, 625, 1972, 1973, 620, 1610,
+ /* 2380 */ 615, 1969, 1610, 1610, 1610, 1610, 1610, 1610, 1610, 1610,
+ /* 2390 */ 1968, 1610, 1610, 1610, 2003, 1610, 1610, 1981, 1970, 625,
+ /* 2400 */ 1972, 1973, 620, 1610, 615, 1610, 1610, 1610, 1610, 1610,
+ /* 2410 */ 1610, 1969, 1987, 1610, 1610, 1610, 1610, 1610, 1610, 1610,
+ /* 2420 */ 622, 1610, 1610, 1610, 1610, 1937, 1610, 621, 1610, 1610,
+ /* 2430 */ 1610, 1610, 1610, 1610, 1610, 1610, 1610, 1610, 1610, 1610,
+ /* 2440 */ 1610, 1610, 1987, 1610, 1610, 1610, 1610, 1610, 1610, 1610,
+ /* 2450 */ 622, 1610, 1968, 1610, 1610, 1937, 2003, 621, 1610, 1980,
+ /* 2460 */ 1970, 625, 1972, 1973, 620, 1610, 615, 1610, 1610, 1969,
+ /* 2470 */ 1610, 1610, 1610, 1610, 1610, 1610, 1610, 1610, 1610, 1610,
+ /* 2480 */ 1610, 1610, 1968, 1610, 1610, 1969, 2003, 1610, 1610, 1979,
+ /* 2490 */ 1970, 625, 1972, 1973, 620, 1610, 615, 1610, 1610, 1610,
+ /* 2500 */ 1987, 1610, 1610, 1610, 1610, 1610, 1610, 1610, 622, 1610,
+ /* 2510 */ 1610, 1610, 1610, 1937, 1610, 621, 1987, 1610, 1610, 1610,
+ /* 2520 */ 1610, 1610, 1610, 1610, 622, 1610, 1610, 1610, 1610, 1937,
+ /* 2530 */ 1969, 621, 1610, 1610, 1610, 1610, 1610, 1610, 1610, 1610,
+ /* 2540 */ 1968, 1610, 1610, 1610, 2003, 1610, 1969, 329, 1970, 625,
+ /* 2550 */ 1972, 1973, 620, 1610, 615, 1610, 1968, 1610, 1610, 1610,
+ /* 2560 */ 2003, 1987, 1610, 330, 1970, 625, 1972, 1973, 620, 622,
+ /* 2570 */ 615, 1610, 1610, 1610, 1937, 1610, 621, 1987, 1610, 1610,
+ /* 2580 */ 1610, 1610, 1610, 1610, 1610, 622, 1610, 1610, 1610, 1610,
+ /* 2590 */ 1937, 1610, 621, 1610, 1610, 1610, 1610, 1610, 1610, 1610,
+ /* 2600 */ 1610, 1968, 1610, 1610, 1610, 2003, 1610, 1610, 326, 1970,
+ /* 2610 */ 625, 1972, 1973, 620, 1610, 615, 1610, 1968, 1610, 1610,
+ /* 2620 */ 1610, 2003, 1610, 1969, 331, 1970, 625, 1972, 1973, 620,
+ /* 2630 */ 1610, 615, 1610, 1610, 1610, 1610, 1610, 1610, 1610, 1610,
+ /* 2640 */ 1610, 1610, 1610, 1610, 1610, 1610, 1610, 1969, 1610, 1610,
+ /* 2650 */ 1610, 1610, 1610, 1610, 1987, 1610, 1610, 1610, 1610, 1610,
+ /* 2660 */ 1610, 1610, 622, 1610, 1610, 1610, 1610, 1937, 1610, 621,
+ /* 2670 */ 1610, 1610, 1610, 1610, 1610, 1610, 1610, 1610, 1987, 1610,
+ /* 2680 */ 1610, 1610, 1610, 1610, 1610, 1610, 622, 1610, 1610, 1610,
+ /* 2690 */ 1610, 1937, 1610, 621, 623, 1610, 1610, 1610, 2003, 1610,
+ /* 2700 */ 1610, 309, 1970, 625, 1972, 1973, 620, 1610, 615, 1610,
+ /* 2710 */ 1610, 1610, 1610, 1610, 1610, 1610, 1610, 1610, 1968, 1610,
+ /* 2720 */ 1610, 1610, 2003, 1610, 1610, 308, 1970, 625, 1972, 1973,
+ /* 2730 */ 620, 1610, 615,
};
static const YYCODETYPE yy_lookahead[] = {
- /* 0 */ 329, 348, 331, 332, 429, 333, 333, 429, 433, 356,
- /* 10 */ 358, 433, 12, 13, 14, 14, 15, 16, 365, 347,
- /* 20 */ 20, 369, 22, 448, 449, 20, 354, 449, 453, 454,
- /* 30 */ 325, 453, 454, 33, 20, 35, 364, 364, 329, 333,
- /* 40 */ 331, 332, 8, 9, 358, 333, 12, 13, 14, 15,
- /* 50 */ 16, 399, 400, 401, 391, 369, 356, 333, 58, 14,
- /* 60 */ 20, 356, 410, 63, 367, 20, 356, 370, 371, 364,
- /* 70 */ 70, 20, 20, 363, 369, 340, 371, 377, 378, 373,
- /* 80 */ 345, 356, 372, 12, 13, 399, 400, 401, 364, 364,
- /* 90 */ 62, 20, 380, 22, 382, 95, 410, 63, 425, 426,
- /* 100 */ 427, 396, 429, 430, 33, 400, 35, 3, 403, 404,
- /* 110 */ 405, 406, 407, 408, 333, 410, 20, 117, 22, 62,
- /* 120 */ 415, 330, 417, 20, 333, 334, 421, 422, 347, 58,
- /* 130 */ 405, 35, 132, 133, 63, 354, 418, 419, 104, 429,
- /* 140 */ 435, 70, 324, 433, 326, 364, 95, 51, 443, 425,
- /* 150 */ 426, 427, 333, 429, 430, 325, 325, 433, 448, 449,
- /* 160 */ 333, 161, 162, 453, 454, 333, 95, 12, 13, 14,
- /* 170 */ 15, 16, 448, 449, 347, 161, 162, 453, 454, 337,
- /* 180 */ 180, 333, 182, 364, 132, 133, 330, 356, 117, 333,
- /* 190 */ 334, 364, 20, 351, 160, 364, 364, 20, 95, 369,
- /* 200 */ 369, 359, 371, 132, 133, 205, 206, 4, 208, 209,
+ /* 0 */ 331, 369, 333, 334, 372, 373, 389, 327, 360, 420,
+ /* 10 */ 421, 357, 12, 13, 14, 327, 359, 431, 358, 371,
+ /* 20 */ 20, 435, 22, 360, 370, 12, 13, 14, 15, 16,
+ /* 30 */ 327, 335, 324, 33, 371, 35, 450, 451, 358, 379,
+ /* 40 */ 380, 455, 456, 372, 373, 349, 366, 335, 431, 401,
+ /* 50 */ 402, 371, 435, 373, 1, 2, 20, 389, 58, 371,
+ /* 60 */ 412, 358, 366, 63, 401, 402, 403, 450, 451, 366,
+ /* 70 */ 70, 20, 455, 456, 371, 412, 373, 332, 398, 20,
+ /* 80 */ 335, 336, 402, 12, 13, 405, 406, 407, 408, 409,
+ /* 90 */ 410, 20, 412, 22, 382, 95, 384, 389, 20, 431,
+ /* 100 */ 335, 398, 342, 435, 33, 402, 35, 347, 405, 406,
+ /* 110 */ 407, 408, 409, 410, 349, 412, 58, 117, 450, 451,
+ /* 120 */ 417, 356, 419, 455, 456, 351, 423, 424, 354, 58,
+ /* 130 */ 20, 366, 132, 133, 63, 95, 335, 457, 458, 431,
+ /* 140 */ 437, 70, 335, 435, 331, 105, 333, 334, 445, 96,
+ /* 150 */ 349, 18, 35, 95, 95, 97, 23, 356, 450, 451,
+ /* 160 */ 373, 161, 162, 455, 456, 332, 95, 366, 335, 336,
+ /* 170 */ 37, 38, 385, 366, 41, 388, 404, 65, 66, 67,
+ /* 180 */ 180, 0, 182, 132, 133, 73, 74, 70, 117, 360,
+ /* 190 */ 78, 350, 59, 60, 61, 83, 84, 161, 162, 358,
+ /* 200 */ 371, 89, 430, 132, 133, 95, 206, 207, 367, 209,
/* 210 */ 210, 211, 212, 213, 214, 215, 216, 217, 218, 219,
- /* 220 */ 220, 221, 222, 223, 224, 225, 226, 396, 380, 95,
- /* 230 */ 382, 400, 161, 162, 403, 404, 405, 406, 407, 408,
- /* 240 */ 409, 410, 411, 412, 425, 426, 427, 20, 429, 430,
- /* 250 */ 37, 180, 402, 182, 370, 371, 424, 425, 426, 427,
- /* 260 */ 166, 429, 430, 325, 95, 231, 232, 233, 234, 235,
- /* 270 */ 236, 237, 238, 239, 240, 241, 205, 206, 428, 208,
+ /* 220 */ 220, 221, 222, 223, 224, 225, 226, 227, 95, 335,
+ /* 230 */ 401, 402, 161, 162, 427, 428, 429, 20, 431, 432,
+ /* 240 */ 20, 412, 435, 349, 14, 20, 65, 66, 67, 358,
+ /* 250 */ 20, 180, 127, 182, 73, 74, 131, 450, 451, 78,
+ /* 260 */ 366, 163, 455, 456, 83, 84, 168, 134, 8, 9,
+ /* 270 */ 89, 380, 12, 13, 14, 15, 16, 206, 207, 389,
/* 280 */ 209, 210, 211, 212, 213, 214, 215, 216, 217, 218,
- /* 290 */ 219, 220, 221, 222, 223, 224, 225, 226, 95, 228,
- /* 300 */ 12, 13, 0, 95, 205, 322, 364, 369, 20, 14,
- /* 310 */ 22, 98, 0, 100, 101, 20, 103, 375, 325, 325,
- /* 320 */ 107, 33, 95, 35, 108, 109, 110, 111, 112, 113,
- /* 330 */ 114, 115, 116, 117, 118, 163, 120, 121, 122, 123,
- /* 340 */ 124, 125, 129, 249, 250, 58, 58, 244, 179, 356,
- /* 350 */ 181, 63, 253, 254, 255, 256, 257, 364, 70, 20,
- /* 360 */ 35, 22, 369, 369, 371, 261, 175, 65, 66, 67,
- /* 370 */ 387, 12, 13, 14, 62, 73, 74, 387, 244, 20,
- /* 380 */ 78, 22, 95, 95, 97, 83, 84, 196, 197, 396,
- /* 390 */ 51, 89, 33, 400, 35, 70, 403, 404, 405, 406,
- /* 400 */ 407, 408, 325, 410, 339, 117, 413, 325, 415, 416,
- /* 410 */ 417, 333, 429, 244, 421, 422, 433, 58, 353, 429,
- /* 420 */ 132, 133, 355, 433, 20, 347, 126, 362, 44, 70,
- /* 430 */ 325, 448, 449, 356, 0, 368, 453, 454, 448, 449,
- /* 440 */ 22, 364, 364, 453, 454, 356, 369, 244, 371, 161,
- /* 450 */ 162, 369, 244, 35, 95, 21, 161, 371, 24, 25,
- /* 460 */ 26, 27, 28, 29, 30, 31, 32, 378, 180, 383,
- /* 470 */ 182, 244, 386, 396, 369, 349, 117, 400, 352, 356,
- /* 480 */ 403, 404, 405, 406, 407, 408, 363, 410, 70, 189,
- /* 490 */ 190, 132, 133, 205, 206, 372, 208, 209, 210, 211,
- /* 500 */ 212, 213, 214, 215, 216, 217, 218, 219, 220, 221,
- /* 510 */ 222, 223, 224, 225, 226, 342, 343, 342, 343, 21,
- /* 520 */ 161, 162, 24, 25, 26, 27, 28, 29, 30, 31,
- /* 530 */ 32, 244, 455, 456, 348, 117, 65, 66, 67, 180,
- /* 540 */ 348, 182, 356, 356, 73, 74, 14, 0, 356, 78,
- /* 550 */ 363, 365, 20, 20, 83, 84, 0, 365, 325, 372,
- /* 560 */ 89, 126, 127, 20, 205, 206, 131, 208, 209, 210,
- /* 570 */ 211, 212, 213, 214, 215, 216, 217, 218, 219, 220,
- /* 580 */ 221, 222, 223, 224, 225, 226, 12, 13, 0, 356,
- /* 590 */ 325, 333, 58, 21, 20, 48, 22, 364, 180, 0,
- /* 600 */ 182, 325, 369, 106, 371, 347, 34, 33, 36, 35,
- /* 610 */ 358, 333, 24, 25, 26, 27, 28, 29, 30, 31,
- /* 620 */ 32, 369, 364, 205, 206, 347, 1, 2, 94, 396,
- /* 630 */ 325, 97, 58, 400, 369, 325, 403, 404, 405, 406,
- /* 640 */ 407, 408, 364, 410, 70, 369, 337, 339, 415, 265,
- /* 650 */ 417, 399, 400, 413, 421, 422, 416, 12, 13, 333,
- /* 660 */ 4, 62, 410, 107, 3, 20, 325, 22, 359, 95,
- /* 670 */ 362, 79, 325, 347, 369, 19, 443, 371, 33, 369,
- /* 680 */ 35, 20, 126, 127, 128, 129, 130, 131, 2, 33,
- /* 690 */ 364, 117, 386, 161, 8, 9, 163, 356, 12, 13,
- /* 700 */ 14, 15, 16, 58, 48, 364, 132, 133, 325, 53,
- /* 710 */ 369, 325, 371, 402, 58, 70, 369, 325, 429, 8,
- /* 720 */ 9, 96, 433, 12, 13, 14, 15, 16, 20, 137,
- /* 730 */ 138, 20, 0, 160, 402, 161, 162, 396, 449, 428,
- /* 740 */ 95, 400, 453, 454, 403, 404, 405, 406, 407, 408,
- /* 750 */ 94, 410, 369, 97, 180, 369, 182, 96, 417, 2,
- /* 760 */ 428, 369, 117, 422, 325, 8, 9, 325, 325, 12,
- /* 770 */ 13, 14, 15, 16, 228, 325, 4, 132, 133, 205,
- /* 780 */ 206, 49, 208, 209, 210, 211, 212, 213, 214, 215,
- /* 790 */ 216, 217, 218, 219, 220, 221, 222, 223, 224, 225,
- /* 800 */ 226, 18, 58, 20, 231, 325, 161, 162, 369, 19,
- /* 810 */ 27, 369, 369, 30, 241, 43, 33, 45, 46, 369,
- /* 820 */ 414, 0, 416, 33, 163, 180, 0, 182, 325, 364,
- /* 830 */ 228, 48, 230, 50, 356, 414, 53, 416, 48, 366,
- /* 840 */ 375, 97, 369, 365, 54, 55, 56, 57, 58, 369,
- /* 850 */ 205, 206, 0, 208, 209, 210, 211, 212, 213, 214,
- /* 860 */ 215, 216, 217, 218, 219, 220, 221, 222, 223, 224,
- /* 870 */ 225, 226, 369, 20, 163, 8, 9, 94, 39, 12,
- /* 880 */ 13, 14, 15, 16, 94, 364, 344, 97, 346, 106,
- /* 890 */ 4, 65, 66, 67, 68, 69, 375, 71, 72, 73,
- /* 900 */ 74, 75, 76, 77, 78, 79, 80, 81, 82, 83,
- /* 910 */ 84, 85, 86, 87, 88, 89, 90, 91, 366, 136,
- /* 920 */ 130, 369, 139, 140, 141, 142, 143, 144, 145, 146,
- /* 930 */ 147, 148, 149, 150, 151, 152, 153, 154, 155, 356,
- /* 940 */ 157, 158, 159, 18, 45, 46, 8, 9, 23, 70,
- /* 950 */ 12, 13, 14, 15, 16, 372, 44, 167, 325, 107,
- /* 960 */ 70, 366, 37, 38, 369, 349, 41, 20, 352, 242,
- /* 970 */ 243, 42, 151, 44, 184, 357, 186, 107, 126, 127,
- /* 980 */ 128, 129, 130, 131, 59, 60, 61, 8, 9, 356,
- /* 990 */ 44, 12, 13, 14, 15, 16, 127, 364, 357, 129,
- /* 1000 */ 131, 333, 369, 107, 371, 22, 8, 9, 96, 0,
- /* 1010 */ 12, 13, 14, 15, 16, 347, 163, 42, 35, 44,
- /* 1020 */ 95, 333, 126, 127, 128, 129, 130, 131, 357, 396,
- /* 1030 */ 163, 22, 364, 400, 96, 347, 403, 404, 405, 406,
- /* 1040 */ 407, 408, 44, 410, 99, 326, 106, 102, 415, 357,
- /* 1050 */ 417, 63, 364, 0, 421, 422, 187, 188, 44, 134,
- /* 1060 */ 191, 325, 193, 8, 9, 432, 357, 12, 13, 14,
- /* 1070 */ 15, 16, 8, 9, 357, 22, 12, 13, 14, 15,
- /* 1080 */ 16, 333, 243, 99, 35, 99, 102, 333, 102, 0,
- /* 1090 */ 47, 99, 356, 379, 102, 347, 156, 172, 173, 174,
- /* 1100 */ 364, 347, 177, 333, 44, 369, 325, 371, 161, 35,
- /* 1110 */ 96, 22, 364, 358, 132, 133, 163, 347, 364, 357,
- /* 1120 */ 195, 168, 44, 198, 369, 200, 201, 202, 203, 204,
- /* 1130 */ 44, 245, 396, 333, 364, 333, 400, 356, 95, 403,
- /* 1140 */ 404, 405, 406, 407, 408, 364, 410, 347, 44, 347,
- /* 1150 */ 369, 415, 371, 417, 399, 400, 96, 421, 422, 345,
- /* 1160 */ 96, 333, 44, 95, 364, 410, 364, 457, 432, 244,
- /* 1170 */ 1, 2, 446, 105, 96, 347, 335, 396, 440, 325,
- /* 1180 */ 44, 400, 96, 356, 403, 404, 405, 406, 407, 408,
- /* 1190 */ 335, 410, 364, 205, 12, 13, 415, 333, 417, 44,
- /* 1200 */ 96, 44, 421, 422, 22, 333, 332, 13, 333, 263,
- /* 1210 */ 356, 347, 379, 432, 96, 33, 333, 35, 364, 347,
- /* 1220 */ 33, 387, 347, 369, 387, 371, 368, 172, 364, 35,
- /* 1230 */ 347, 182, 96, 13, 325, 48, 364, 44, 379, 364,
- /* 1240 */ 58, 54, 55, 56, 57, 58, 44, 364, 44, 44,
- /* 1250 */ 396, 96, 70, 96, 400, 35, 182, 403, 404, 405,
- /* 1260 */ 406, 407, 408, 429, 410, 356, 429, 433, 44, 415,
- /* 1270 */ 433, 417, 35, 364, 431, 421, 422, 44, 369, 450,
- /* 1280 */ 371, 94, 448, 449, 97, 448, 449, 453, 454, 96,
- /* 1290 */ 453, 454, 246, 398, 387, 434, 423, 48, 96, 117,
- /* 1300 */ 96, 96, 397, 178, 389, 396, 42, 70, 376, 400,
- /* 1310 */ 20, 376, 403, 404, 405, 406, 407, 408, 379, 410,
- /* 1320 */ 96, 266, 160, 374, 415, 20, 417, 333, 333, 96,
- /* 1330 */ 421, 422, 376, 374, 93, 374, 429, 341, 333, 333,
- /* 1340 */ 433, 333, 20, 327, 327, 20, 325, 387, 393, 339,
- /* 1350 */ 339, 164, 165, 20, 167, 448, 449, 170, 371, 334,
- /* 1360 */ 453, 454, 180, 20, 182, 388, 339, 334, 339, 339,
- /* 1370 */ 339, 333, 52, 186, 339, 336, 325, 356, 336, 327,
- /* 1380 */ 356, 333, 356, 194, 356, 364, 327, 205, 206, 429,
- /* 1390 */ 369, 369, 371, 433, 395, 393, 356, 356, 185, 217,
- /* 1400 */ 218, 219, 220, 221, 222, 223, 356, 356, 448, 449,
- /* 1410 */ 356, 392, 356, 453, 454, 364, 369, 396, 356, 356,
- /* 1420 */ 369, 400, 371, 356, 403, 404, 405, 406, 407, 408,
- /* 1430 */ 369, 410, 325, 337, 337, 333, 415, 371, 417, 369,
- /* 1440 */ 252, 251, 421, 422, 379, 442, 439, 396, 379, 369,
- /* 1450 */ 258, 400, 325, 369, 403, 404, 405, 406, 407, 408,
- /* 1460 */ 384, 410, 439, 356, 369, 384, 171, 260, 417, 259,
- /* 1470 */ 438, 364, 421, 422, 437, 441, 369, 247, 371, 267,
- /* 1480 */ 436, 398, 264, 356, 439, 262, 243, 364, 20, 402,
- /* 1490 */ 334, 364, 333, 20, 458, 337, 369, 382, 371, 369,
- /* 1500 */ 384, 369, 369, 396, 369, 384, 369, 400, 369, 452,
- /* 1510 */ 403, 404, 405, 406, 407, 408, 165, 410, 337, 381,
- /* 1520 */ 325, 337, 451, 396, 417, 352, 95, 400, 421, 422,
- /* 1530 */ 403, 404, 405, 406, 407, 408, 325, 410, 364, 420,
- /* 1540 */ 95, 369, 346, 360, 417, 337, 36, 333, 421, 422,
- /* 1550 */ 328, 356, 327, 390, 394, 385, 385, 323, 0, 364,
- /* 1560 */ 187, 0, 0, 42, 369, 350, 371, 356, 0, 350,
- /* 1570 */ 338, 350, 0, 35, 199, 364, 35, 35, 35, 199,
- /* 1580 */ 369, 0, 371, 35, 35, 199, 0, 199, 0, 35,
- /* 1590 */ 0, 396, 22, 0, 35, 400, 182, 325, 403, 404,
- /* 1600 */ 405, 406, 407, 408, 180, 410, 0, 396, 0, 176,
- /* 1610 */ 175, 400, 0, 0, 403, 404, 405, 406, 407, 408,
- /* 1620 */ 47, 410, 0, 0, 0, 42, 0, 0, 356, 151,
- /* 1630 */ 35, 0, 151, 0, 0, 0, 364, 0, 0, 444,
- /* 1640 */ 445, 369, 325, 371, 0, 0, 0, 0, 0, 0,
- /* 1650 */ 0, 0, 0, 0, 0, 0, 445, 0, 0, 0,
- /* 1660 */ 0, 42, 0, 0, 0, 0, 0, 0, 396, 0,
- /* 1670 */ 0, 135, 400, 356, 35, 403, 404, 405, 406, 407,
- /* 1680 */ 408, 364, 410, 22, 0, 0, 369, 0, 371, 0,
- /* 1690 */ 58, 0, 0, 14, 58, 0, 0, 14, 42, 0,
- /* 1700 */ 0, 171, 0, 325, 0, 0, 64, 39, 0, 0,
- /* 1710 */ 0, 35, 40, 396, 39, 44, 39, 400, 0, 447,
- /* 1720 */ 403, 404, 405, 406, 407, 408, 325, 410, 47, 47,
- /* 1730 */ 0, 0, 39, 47, 356, 0, 48, 39, 35, 361,
- /* 1740 */ 39, 35, 364, 102, 104, 48, 35, 369, 0, 371,
- /* 1750 */ 0, 35, 39, 0, 22, 48, 35, 356, 35, 35,
- /* 1760 */ 48, 35, 22, 44, 44, 364, 0, 22, 35, 35,
- /* 1770 */ 369, 35, 371, 456, 396, 0, 22, 0, 400, 50,
- /* 1780 */ 22, 403, 404, 405, 406, 407, 408, 325, 410, 0,
- /* 1790 */ 35, 35, 0, 0, 35, 22, 20, 396, 35, 35,
- /* 1800 */ 0, 400, 192, 35, 403, 404, 405, 406, 407, 408,
- /* 1810 */ 96, 410, 95, 412, 0, 0, 22, 325, 356, 0,
- /* 1820 */ 3, 96, 44, 361, 96, 248, 364, 44, 44, 47,
- /* 1830 */ 44, 369, 95, 371, 95, 248, 163, 96, 96, 95,
- /* 1840 */ 325, 163, 95, 47, 95, 165, 95, 3, 356, 44,
- /* 1850 */ 248, 35, 44, 361, 47, 35, 364, 163, 396, 35,
- /* 1860 */ 35, 369, 400, 371, 35, 403, 404, 405, 406, 407,
- /* 1870 */ 408, 356, 410, 183, 35, 96, 96, 96, 47, 364,
- /* 1880 */ 0, 96, 0, 0, 369, 325, 371, 47, 396, 0,
- /* 1890 */ 95, 169, 400, 96, 96, 403, 404, 405, 406, 407,
- /* 1900 */ 408, 325, 410, 39, 95, 95, 95, 95, 105, 47,
- /* 1910 */ 44, 396, 166, 2, 22, 400, 356, 95, 403, 404,
- /* 1920 */ 405, 406, 407, 408, 364, 410, 164, 22, 96, 369,
- /* 1930 */ 95, 371, 356, 96, 96, 47, 106, 95, 95, 35,
- /* 1940 */ 364, 95, 47, 205, 96, 369, 95, 371, 96, 35,
- /* 1950 */ 95, 35, 96, 95, 325, 96, 396, 242, 35, 207,
- /* 1960 */ 400, 96, 95, 403, 404, 405, 406, 407, 408, 35,
- /* 1970 */ 410, 95, 396, 96, 35, 22, 400, 44, 107, 403,
- /* 1980 */ 404, 405, 406, 407, 408, 356, 410, 227, 95, 119,
- /* 1990 */ 229, 119, 227, 364, 119, 95, 95, 119, 369, 325,
- /* 2000 */ 371, 35, 95, 22, 64, 63, 35, 35, 35, 35,
- /* 2010 */ 35, 35, 35, 35, 35, 35, 70, 22, 92, 35,
- /* 2020 */ 35, 35, 35, 35, 35, 396, 44, 70, 35, 400,
- /* 2030 */ 356, 35, 403, 404, 405, 406, 407, 408, 364, 410,
- /* 2040 */ 35, 35, 35, 369, 22, 371, 35, 0, 35, 48,
- /* 2050 */ 0, 39, 325, 35, 39, 0, 48, 48, 35, 39,
- /* 2060 */ 0, 35, 48, 39, 0, 35, 0, 35, 325, 21,
- /* 2070 */ 396, 22, 20, 22, 400, 459, 22, 403, 404, 405,
- /* 2080 */ 406, 407, 408, 356, 410, 459, 21, 459, 459, 459,
- /* 2090 */ 459, 364, 459, 459, 459, 459, 369, 459, 371, 356,
- /* 2100 */ 459, 459, 459, 459, 459, 459, 459, 364, 459, 459,
- /* 2110 */ 459, 459, 369, 325, 371, 459, 459, 459, 459, 459,
- /* 2120 */ 459, 459, 459, 396, 459, 459, 459, 400, 459, 459,
- /* 2130 */ 403, 404, 405, 406, 407, 408, 459, 410, 459, 396,
- /* 2140 */ 459, 459, 459, 400, 356, 459, 403, 404, 405, 406,
- /* 2150 */ 407, 408, 364, 410, 459, 459, 459, 369, 459, 371,
- /* 2160 */ 459, 459, 459, 459, 459, 459, 325, 459, 459, 459,
- /* 2170 */ 459, 459, 459, 459, 459, 459, 459, 459, 459, 459,
- /* 2180 */ 459, 459, 325, 459, 396, 459, 459, 459, 400, 459,
- /* 2190 */ 459, 403, 404, 405, 406, 407, 408, 356, 410, 459,
- /* 2200 */ 459, 459, 459, 459, 459, 364, 459, 459, 459, 459,
- /* 2210 */ 369, 459, 371, 356, 459, 459, 459, 459, 459, 459,
- /* 2220 */ 459, 364, 459, 459, 459, 459, 369, 325, 371, 459,
- /* 2230 */ 459, 459, 459, 459, 459, 459, 459, 396, 459, 459,
- /* 2240 */ 459, 400, 459, 459, 403, 404, 405, 406, 407, 408,
- /* 2250 */ 325, 410, 459, 396, 459, 459, 459, 400, 356, 459,
- /* 2260 */ 403, 404, 405, 406, 407, 408, 364, 410, 459, 459,
- /* 2270 */ 459, 369, 459, 371, 459, 459, 459, 459, 459, 459,
- /* 2280 */ 325, 356, 459, 459, 459, 459, 459, 459, 459, 364,
- /* 2290 */ 459, 459, 459, 459, 369, 459, 371, 459, 396, 459,
- /* 2300 */ 459, 459, 400, 459, 459, 403, 404, 405, 406, 407,
- /* 2310 */ 408, 356, 410, 459, 459, 459, 459, 459, 459, 364,
- /* 2320 */ 459, 396, 459, 459, 369, 400, 371, 459, 403, 404,
- /* 2330 */ 405, 406, 407, 408, 459, 410, 459, 459, 459, 459,
- /* 2340 */ 459, 459, 459, 459, 459, 459, 459, 459, 459, 459,
- /* 2350 */ 459, 396, 459, 459, 459, 400, 325, 459, 403, 404,
- /* 2360 */ 405, 406, 407, 408, 459, 410, 459, 459, 459, 459,
- /* 2370 */ 459, 459, 459, 459, 459, 459, 459, 459, 325, 459,
- /* 2380 */ 459, 459, 459, 459, 459, 459, 459, 356, 459, 459,
- /* 2390 */ 459, 459, 459, 459, 459, 364, 459, 459, 459, 459,
- /* 2400 */ 369, 459, 371, 459, 459, 459, 459, 459, 459, 356,
- /* 2410 */ 459, 459, 459, 459, 459, 459, 459, 364, 459, 459,
- /* 2420 */ 459, 459, 369, 459, 371, 459, 459, 396, 459, 459,
- /* 2430 */ 459, 400, 459, 325, 403, 404, 405, 406, 407, 408,
- /* 2440 */ 459, 410, 459, 459, 459, 459, 459, 459, 459, 396,
- /* 2450 */ 459, 459, 459, 400, 459, 459, 403, 404, 405, 406,
- /* 2460 */ 407, 408, 459, 410, 356, 459, 459, 459, 459, 459,
- /* 2470 */ 459, 459, 364, 459, 459, 459, 459, 369, 325, 371,
- /* 2480 */ 459, 459, 459, 459, 459, 459, 459, 459, 459, 459,
- /* 2490 */ 459, 459, 459, 459, 459, 459, 459, 459, 459, 459,
- /* 2500 */ 459, 459, 459, 459, 396, 459, 459, 459, 400, 356,
- /* 2510 */ 459, 403, 404, 405, 406, 407, 408, 364, 410, 459,
- /* 2520 */ 459, 459, 369, 325, 371, 459, 459, 459, 459, 459,
- /* 2530 */ 459, 459, 459, 459, 459, 459, 459, 459, 459, 325,
- /* 2540 */ 459, 459, 459, 459, 459, 459, 459, 459, 459, 396,
- /* 2550 */ 459, 459, 459, 400, 356, 459, 403, 404, 405, 406,
- /* 2560 */ 407, 408, 364, 410, 459, 459, 459, 369, 459, 371,
- /* 2570 */ 356, 459, 459, 459, 459, 459, 459, 459, 364, 459,
- /* 2580 */ 459, 459, 459, 369, 325, 371, 459, 459, 459, 459,
- /* 2590 */ 459, 459, 459, 459, 396, 459, 459, 459, 400, 459,
- /* 2600 */ 459, 403, 404, 405, 406, 407, 408, 325, 410, 459,
- /* 2610 */ 396, 459, 459, 459, 400, 356, 459, 403, 404, 405,
- /* 2620 */ 406, 407, 408, 364, 410, 459, 459, 459, 369, 459,
- /* 2630 */ 371, 459, 459, 459, 459, 459, 459, 325, 356, 459,
- /* 2640 */ 459, 459, 459, 459, 459, 459, 364, 459, 459, 459,
- /* 2650 */ 459, 369, 459, 371, 459, 396, 459, 459, 459, 400,
- /* 2660 */ 459, 459, 403, 404, 405, 406, 407, 408, 356, 410,
- /* 2670 */ 459, 459, 459, 459, 459, 459, 364, 459, 396, 459,
- /* 2680 */ 459, 369, 400, 371, 459, 403, 404, 405, 406, 407,
- /* 2690 */ 408, 459, 410, 459, 459, 459, 459, 459, 459, 459,
- /* 2700 */ 459, 459, 459, 459, 459, 459, 459, 459, 396, 459,
- /* 2710 */ 459, 459, 400, 459, 459, 403, 404, 405, 406, 407,
- /* 2720 */ 408, 459, 410,
+ /* 290 */ 219, 220, 221, 222, 223, 224, 225, 226, 227, 4,
+ /* 300 */ 229, 12, 13, 245, 245, 172, 173, 174, 339, 20,
+ /* 310 */ 177, 22, 187, 188, 19, 358, 191, 339, 193, 327,
+ /* 320 */ 95, 431, 33, 366, 35, 435, 358, 44, 33, 196,
+ /* 330 */ 361, 353, 199, 365, 201, 202, 203, 204, 205, 361,
+ /* 340 */ 450, 451, 374, 48, 360, 455, 456, 58, 53, 350,
+ /* 350 */ 358, 4, 63, 58, 350, 371, 96, 358, 366, 70,
+ /* 360 */ 3, 62, 358, 371, 407, 373, 367, 14, 15, 16,
+ /* 370 */ 335, 367, 12, 13, 14, 20, 95, 20, 245, 96,
+ /* 380 */ 20, 327, 22, 163, 95, 401, 402, 403, 95, 94,
+ /* 390 */ 398, 341, 97, 33, 402, 35, 412, 405, 406, 407,
+ /* 400 */ 408, 409, 410, 229, 412, 355, 117, 415, 160, 417,
+ /* 410 */ 418, 419, 358, 0, 364, 423, 424, 382, 58, 384,
+ /* 420 */ 366, 132, 133, 126, 127, 371, 4, 373, 131, 0,
+ /* 430 */ 70, 108, 109, 110, 111, 112, 113, 114, 115, 116,
+ /* 440 */ 117, 118, 95, 120, 121, 122, 123, 124, 125, 106,
+ /* 450 */ 161, 162, 398, 96, 20, 95, 402, 0, 58, 405,
+ /* 460 */ 406, 407, 408, 409, 410, 43, 412, 45, 46, 180,
+ /* 470 */ 245, 182, 179, 419, 181, 62, 20, 117, 424, 335,
+ /* 480 */ 232, 24, 25, 26, 27, 28, 29, 30, 31, 32,
+ /* 490 */ 242, 62, 132, 133, 94, 206, 207, 97, 209, 210,
+ /* 500 */ 211, 212, 213, 214, 215, 216, 217, 218, 219, 220,
+ /* 510 */ 221, 222, 223, 224, 225, 226, 227, 344, 345, 375,
+ /* 520 */ 163, 161, 162, 0, 21, 335, 245, 24, 25, 26,
+ /* 530 */ 27, 28, 29, 30, 31, 32, 341, 62, 245, 349,
+ /* 540 */ 180, 326, 182, 328, 21, 20, 327, 24, 25, 26,
+ /* 550 */ 27, 28, 29, 30, 31, 32, 366, 8, 9, 364,
+ /* 560 */ 327, 12, 13, 14, 15, 16, 206, 207, 95, 209,
+ /* 570 */ 210, 211, 212, 213, 214, 215, 216, 217, 218, 219,
+ /* 580 */ 220, 221, 222, 223, 224, 225, 226, 227, 12, 13,
+ /* 590 */ 371, 358, 245, 44, 22, 79, 20, 373, 22, 366,
+ /* 600 */ 37, 20, 70, 22, 371, 166, 373, 35, 229, 33,
+ /* 610 */ 231, 35, 388, 358, 358, 416, 35, 418, 8, 9,
+ /* 620 */ 365, 365, 12, 13, 14, 15, 16, 39, 327, 374,
+ /* 630 */ 374, 398, 51, 360, 58, 402, 21, 335, 405, 406,
+ /* 640 */ 407, 408, 409, 410, 371, 412, 70, 206, 335, 34,
+ /* 650 */ 417, 36, 419, 137, 138, 335, 423, 424, 404, 12,
+ /* 660 */ 13, 98, 349, 100, 101, 70, 103, 20, 366, 22,
+ /* 670 */ 107, 95, 371, 63, 401, 402, 403, 359, 445, 366,
+ /* 680 */ 33, 175, 35, 20, 430, 412, 366, 431, 14, 250,
+ /* 690 */ 251, 435, 129, 117, 20, 254, 255, 256, 257, 258,
+ /* 700 */ 259, 260, 393, 197, 198, 58, 450, 451, 132, 133,
+ /* 710 */ 327, 455, 456, 126, 104, 431, 327, 70, 245, 435,
+ /* 720 */ 8, 9, 335, 359, 12, 13, 14, 15, 16, 427,
+ /* 730 */ 428, 429, 20, 431, 432, 451, 349, 161, 162, 455,
+ /* 740 */ 456, 431, 95, 404, 14, 435, 426, 427, 428, 429,
+ /* 750 */ 20, 431, 432, 366, 371, 359, 180, 416, 182, 418,
+ /* 760 */ 371, 451, 107, 327, 117, 455, 456, 8, 9, 430,
+ /* 770 */ 160, 12, 13, 14, 15, 16, 189, 190, 415, 132,
+ /* 780 */ 133, 418, 206, 207, 129, 209, 210, 211, 212, 213,
+ /* 790 */ 214, 215, 216, 217, 218, 219, 220, 221, 222, 223,
+ /* 800 */ 224, 225, 226, 227, 18, 3, 20, 371, 161, 162,
+ /* 810 */ 20, 359, 22, 27, 344, 345, 30, 8, 9, 33,
+ /* 820 */ 366, 12, 13, 14, 15, 16, 163, 180, 0, 182,
+ /* 830 */ 368, 377, 244, 371, 48, 161, 50, 327, 4, 53,
+ /* 840 */ 327, 51, 232, 233, 234, 235, 236, 237, 238, 239,
+ /* 850 */ 240, 241, 242, 206, 207, 96, 209, 210, 211, 212,
+ /* 860 */ 213, 214, 215, 216, 217, 218, 219, 220, 221, 222,
+ /* 870 */ 223, 224, 225, 226, 227, 163, 2, 327, 359, 327,
+ /* 880 */ 94, 371, 8, 9, 371, 359, 12, 13, 14, 15,
+ /* 890 */ 16, 161, 106, 65, 66, 67, 68, 69, 327, 71,
+ /* 900 */ 72, 73, 74, 75, 76, 77, 78, 79, 80, 81,
+ /* 910 */ 82, 83, 84, 85, 86, 87, 88, 89, 90, 91,
+ /* 920 */ 327, 371, 136, 371, 327, 139, 140, 141, 142, 143,
+ /* 930 */ 144, 145, 146, 147, 148, 149, 150, 151, 152, 153,
+ /* 940 */ 154, 155, 371, 157, 158, 159, 327, 327, 327, 366,
+ /* 950 */ 366, 351, 12, 13, 354, 358, 327, 335, 335, 20,
+ /* 960 */ 377, 377, 22, 366, 371, 335, 335, 327, 371, 0,
+ /* 970 */ 373, 349, 349, 33, 358, 35, 20, 335, 358, 349,
+ /* 980 */ 349, 172, 346, 367, 348, 358, 366, 328, 366, 366,
+ /* 990 */ 371, 371, 371, 373, 389, 398, 366, 366, 58, 402,
+ /* 1000 */ 371, 374, 405, 406, 407, 408, 409, 410, 366, 412,
+ /* 1010 */ 70, 371, 45, 46, 417, 327, 419, 347, 398, 327,
+ /* 1020 */ 423, 424, 402, 0, 327, 405, 406, 407, 408, 409,
+ /* 1030 */ 410, 434, 412, 327, 44, 2, 431, 417, 381, 419,
+ /* 1040 */ 435, 8, 9, 423, 424, 12, 13, 14, 15, 16,
+ /* 1050 */ 368, 243, 244, 371, 434, 450, 451, 117, 0, 371,
+ /* 1060 */ 455, 456, 368, 371, 358, 371, 264, 33, 371, 427,
+ /* 1070 */ 428, 429, 366, 431, 432, 337, 107, 371, 269, 373,
+ /* 1080 */ 246, 0, 48, 0, 42, 42, 44, 44, 54, 55,
+ /* 1090 */ 56, 57, 58, 106, 459, 126, 127, 128, 129, 130,
+ /* 1100 */ 131, 44, 163, 22, 398, 22, 48, 192, 402, 194,
+ /* 1110 */ 327, 405, 406, 407, 408, 409, 410, 161, 412, 335,
+ /* 1120 */ 180, 99, 182, 417, 102, 419, 132, 133, 94, 423,
+ /* 1130 */ 424, 97, 35, 349, 327, 13, 99, 58, 22, 102,
+ /* 1140 */ 434, 358, 44, 156, 44, 44, 206, 207, 107, 366,
+ /* 1150 */ 366, 35, 335, 0, 371, 35, 373, 35, 218, 219,
+ /* 1160 */ 220, 221, 222, 223, 224, 358, 349, 126, 127, 128,
+ /* 1170 */ 129, 130, 131, 366, 151, 22, 97, 63, 371, 327,
+ /* 1180 */ 373, 398, 448, 366, 99, 402, 70, 102, 405, 406,
+ /* 1190 */ 407, 408, 409, 410, 96, 412, 96, 96, 164, 165,
+ /* 1200 */ 417, 167, 419, 44, 170, 398, 423, 424, 442, 402,
+ /* 1210 */ 358, 0, 405, 406, 407, 408, 409, 410, 366, 412,
+ /* 1220 */ 186, 1, 2, 371, 417, 373, 419, 358, 337, 44,
+ /* 1230 */ 423, 424, 335, 117, 327, 8, 9, 335, 381, 12,
+ /* 1240 */ 13, 14, 15, 16, 334, 44, 349, 44, 44, 44,
+ /* 1250 */ 398, 349, 335, 335, 402, 96, 266, 405, 406, 407,
+ /* 1260 */ 408, 409, 410, 366, 412, 358, 349, 349, 366, 417,
+ /* 1270 */ 370, 419, 335, 366, 99, 423, 424, 102, 371, 182,
+ /* 1280 */ 373, 96, 389, 366, 366, 381, 349, 8, 9, 433,
+ /* 1290 */ 327, 12, 13, 14, 15, 16, 180, 96, 182, 96,
+ /* 1300 */ 96, 96, 182, 366, 44, 398, 47, 44, 44, 402,
+ /* 1310 */ 44, 44, 405, 406, 407, 408, 409, 410, 107, 412,
+ /* 1320 */ 206, 358, 206, 207, 431, 268, 419, 0, 435, 366,
+ /* 1330 */ 423, 424, 44, 335, 371, 327, 373, 126, 127, 128,
+ /* 1340 */ 129, 130, 131, 450, 451, 13, 44, 349, 455, 456,
+ /* 1350 */ 35, 452, 425, 247, 95, 436, 96, 400, 327, 96,
+ /* 1360 */ 96, 398, 96, 96, 366, 402, 358, 35, 405, 406,
+ /* 1370 */ 407, 408, 409, 410, 366, 412, 49, 48, 399, 371,
+ /* 1380 */ 178, 373, 419, 391, 96, 70, 423, 424, 42, 358,
+ /* 1390 */ 163, 378, 20, 381, 378, 160, 376, 366, 96, 20,
+ /* 1400 */ 335, 335, 371, 378, 373, 376, 398, 93, 376, 335,
+ /* 1410 */ 402, 343, 335, 405, 406, 407, 408, 409, 410, 335,
+ /* 1420 */ 412, 20, 329, 329, 20, 395, 373, 419, 341, 398,
+ /* 1430 */ 341, 423, 424, 402, 20, 336, 405, 406, 407, 408,
+ /* 1440 */ 409, 410, 411, 412, 413, 414, 327, 20, 341, 390,
+ /* 1450 */ 341, 336, 341, 341, 341, 52, 335, 329, 397, 371,
+ /* 1460 */ 358, 338, 327, 338, 195, 329, 358, 335, 358, 185,
+ /* 1470 */ 395, 381, 394, 339, 371, 358, 358, 358, 373, 339,
+ /* 1480 */ 335, 253, 358, 252, 358, 366, 441, 358, 358, 358,
+ /* 1490 */ 371, 358, 373, 358, 261, 441, 444, 171, 371, 443,
+ /* 1500 */ 263, 366, 262, 441, 440, 248, 371, 438, 373, 439,
+ /* 1510 */ 371, 270, 371, 371, 371, 460, 267, 398, 327, 381,
+ /* 1520 */ 265, 402, 244, 386, 405, 406, 407, 408, 409, 410,
+ /* 1530 */ 386, 412, 366, 398, 454, 453, 20, 402, 339, 20,
+ /* 1540 */ 405, 406, 407, 408, 409, 410, 327, 412, 400, 358,
+ /* 1550 */ 404, 335, 384, 336, 371, 386, 386, 366, 371, 371,
+ /* 1560 */ 371, 371, 371, 371, 373, 446, 447, 165, 339, 383,
+ /* 1570 */ 95, 339, 354, 366, 422, 95, 362, 358, 348, 371,
+ /* 1580 */ 335, 339, 447, 330, 36, 366, 392, 329, 352, 398,
+ /* 1590 */ 371, 396, 373, 402, 340, 352, 405, 406, 407, 408,
+ /* 1600 */ 409, 410, 387, 412, 352, 325, 0, 0, 327, 387,
+ /* 1610 */ 187, 0, 0, 42, 0, 35, 200, 398, 35, 35,
+ /* 1620 */ 19, 402, 35, 0, 405, 406, 407, 408, 409, 410,
+ /* 1630 */ 200, 412, 35, 35, 33, 200, 0, 200, 0, 358,
+ /* 1640 */ 449, 0, 22, 35, 363, 0, 182, 366, 35, 48,
+ /* 1650 */ 180, 0, 371, 0, 373, 54, 55, 56, 57, 58,
+ /* 1660 */ 176, 0, 175, 327, 47, 0, 0, 0, 42, 0,
+ /* 1670 */ 0, 0, 0, 0, 0, 0, 0, 458, 0, 398,
+ /* 1680 */ 151, 35, 0, 402, 151, 0, 405, 406, 407, 408,
+ /* 1690 */ 409, 410, 0, 412, 358, 94, 0, 0, 97, 0,
+ /* 1700 */ 0, 0, 366, 0, 0, 0, 0, 371, 0, 373,
+ /* 1710 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 42,
+ /* 1720 */ 22, 0, 0, 135, 0, 327, 35, 0, 0, 0,
+ /* 1730 */ 0, 130, 0, 39, 398, 42, 47, 58, 402, 58,
+ /* 1740 */ 0, 405, 406, 407, 408, 409, 410, 14, 412, 47,
+ /* 1750 */ 414, 44, 14, 0, 0, 327, 358, 0, 0, 0,
+ /* 1760 */ 40, 363, 39, 171, 366, 0, 47, 0, 167, 371,
+ /* 1770 */ 39, 373, 0, 64, 35, 39, 0, 35, 0, 35,
+ /* 1780 */ 39, 0, 48, 48, 0, 184, 358, 186, 39, 39,
+ /* 1790 */ 35, 363, 0, 48, 366, 48, 398, 0, 0, 371,
+ /* 1800 */ 402, 373, 22, 405, 406, 407, 408, 409, 410, 35,
+ /* 1810 */ 412, 0, 35, 327, 35, 44, 22, 35, 35, 44,
+ /* 1820 */ 35, 35, 35, 0, 22, 0, 398, 102, 22, 327,
+ /* 1830 */ 402, 0, 22, 405, 406, 407, 408, 409, 410, 50,
+ /* 1840 */ 412, 104, 35, 0, 358, 0, 0, 35, 35, 22,
+ /* 1850 */ 35, 35, 366, 20, 35, 0, 96, 371, 95, 373,
+ /* 1860 */ 358, 35, 0, 183, 22, 0, 0, 3, 366, 96,
+ /* 1870 */ 249, 249, 44, 371, 327, 373, 44, 3, 44, 44,
+ /* 1880 */ 249, 44, 44, 95, 398, 95, 47, 96, 402, 96,
+ /* 1890 */ 327, 405, 406, 407, 408, 409, 410, 96, 412, 95,
+ /* 1900 */ 398, 47, 35, 95, 402, 358, 163, 405, 406, 407,
+ /* 1910 */ 408, 409, 410, 366, 412, 163, 165, 169, 371, 95,
+ /* 1920 */ 373, 358, 35, 35, 163, 96, 47, 35, 35, 366,
+ /* 1930 */ 35, 95, 47, 243, 371, 0, 373, 96, 44, 0,
+ /* 1940 */ 96, 0, 0, 96, 47, 398, 95, 39, 96, 402,
+ /* 1950 */ 47, 95, 405, 406, 407, 408, 409, 410, 95, 412,
+ /* 1960 */ 44, 398, 166, 164, 96, 402, 95, 327, 405, 406,
+ /* 1970 */ 407, 408, 409, 410, 105, 412, 95, 2, 22, 95,
+ /* 1980 */ 47, 47, 96, 22, 95, 35, 96, 35, 106, 35,
+ /* 1990 */ 228, 327, 96, 95, 230, 95, 228, 95, 358, 35,
+ /* 2000 */ 96, 206, 95, 22, 35, 96, 366, 95, 208, 96,
+ /* 2010 */ 95, 371, 95, 373, 96, 96, 95, 35, 96, 95,
+ /* 2020 */ 119, 107, 358, 95, 119, 119, 95, 44, 35, 119,
+ /* 2030 */ 366, 95, 22, 35, 64, 371, 63, 373, 398, 35,
+ /* 2040 */ 35, 35, 402, 35, 35, 405, 406, 407, 408, 409,
+ /* 2050 */ 410, 35, 412, 327, 35, 35, 35, 70, 92, 44,
+ /* 2060 */ 35, 35, 398, 35, 22, 35, 402, 35, 35, 405,
+ /* 2070 */ 406, 407, 408, 409, 410, 35, 412, 70, 35, 35,
+ /* 2080 */ 35, 35, 22, 327, 358, 35, 0, 35, 39, 48,
+ /* 2090 */ 0, 35, 366, 0, 39, 48, 35, 371, 39, 373,
+ /* 2100 */ 0, 48, 35, 39, 0, 48, 35, 35, 0, 22,
+ /* 2110 */ 21, 461, 20, 22, 358, 461, 22, 21, 461, 461,
+ /* 2120 */ 461, 461, 366, 461, 398, 461, 461, 371, 402, 373,
+ /* 2130 */ 461, 405, 406, 407, 408, 409, 410, 461, 412, 461,
+ /* 2140 */ 461, 327, 461, 461, 461, 461, 461, 461, 461, 461,
+ /* 2150 */ 461, 461, 461, 461, 398, 461, 461, 327, 402, 461,
+ /* 2160 */ 461, 405, 406, 407, 408, 409, 410, 461, 412, 461,
+ /* 2170 */ 461, 461, 358, 461, 461, 461, 461, 461, 461, 461,
+ /* 2180 */ 366, 461, 461, 461, 461, 371, 461, 373, 358, 461,
+ /* 2190 */ 461, 461, 461, 461, 461, 461, 366, 461, 461, 461,
+ /* 2200 */ 461, 371, 327, 373, 461, 461, 461, 461, 461, 461,
+ /* 2210 */ 461, 461, 398, 461, 461, 461, 402, 461, 327, 405,
+ /* 2220 */ 406, 407, 408, 409, 410, 461, 412, 461, 398, 461,
+ /* 2230 */ 461, 461, 402, 358, 461, 405, 406, 407, 408, 409,
+ /* 2240 */ 410, 366, 412, 461, 461, 461, 371, 461, 373, 358,
+ /* 2250 */ 461, 461, 461, 461, 461, 461, 461, 366, 461, 461,
+ /* 2260 */ 461, 461, 371, 461, 373, 461, 461, 461, 461, 461,
+ /* 2270 */ 461, 461, 461, 398, 461, 461, 461, 402, 461, 461,
+ /* 2280 */ 405, 406, 407, 408, 409, 410, 461, 412, 461, 398,
+ /* 2290 */ 461, 461, 461, 402, 461, 327, 405, 406, 407, 408,
+ /* 2300 */ 409, 410, 461, 412, 461, 461, 461, 461, 461, 461,
+ /* 2310 */ 461, 461, 461, 461, 461, 461, 461, 461, 461, 327,
+ /* 2320 */ 461, 461, 461, 461, 461, 461, 358, 461, 461, 461,
+ /* 2330 */ 461, 461, 461, 461, 366, 461, 461, 461, 461, 371,
+ /* 2340 */ 461, 373, 461, 461, 461, 461, 461, 461, 461, 461,
+ /* 2350 */ 358, 461, 461, 461, 461, 461, 461, 461, 366, 461,
+ /* 2360 */ 461, 461, 461, 371, 461, 373, 398, 461, 461, 461,
+ /* 2370 */ 402, 461, 461, 405, 406, 407, 408, 409, 410, 461,
+ /* 2380 */ 412, 327, 461, 461, 461, 461, 461, 461, 461, 461,
+ /* 2390 */ 398, 461, 461, 461, 402, 461, 461, 405, 406, 407,
+ /* 2400 */ 408, 409, 410, 461, 412, 461, 461, 461, 461, 461,
+ /* 2410 */ 461, 327, 358, 461, 461, 461, 461, 461, 461, 461,
+ /* 2420 */ 366, 461, 461, 461, 461, 371, 461, 373, 461, 461,
+ /* 2430 */ 461, 461, 461, 461, 461, 461, 461, 461, 461, 461,
+ /* 2440 */ 461, 461, 358, 461, 461, 461, 461, 461, 461, 461,
+ /* 2450 */ 366, 461, 398, 461, 461, 371, 402, 373, 461, 405,
+ /* 2460 */ 406, 407, 408, 409, 410, 461, 412, 461, 461, 327,
+ /* 2470 */ 461, 461, 461, 461, 461, 461, 461, 461, 461, 461,
+ /* 2480 */ 461, 461, 398, 461, 461, 327, 402, 461, 461, 405,
+ /* 2490 */ 406, 407, 408, 409, 410, 461, 412, 461, 461, 461,
+ /* 2500 */ 358, 461, 461, 461, 461, 461, 461, 461, 366, 461,
+ /* 2510 */ 461, 461, 461, 371, 461, 373, 358, 461, 461, 461,
+ /* 2520 */ 461, 461, 461, 461, 366, 461, 461, 461, 461, 371,
+ /* 2530 */ 327, 373, 461, 461, 461, 461, 461, 461, 461, 461,
+ /* 2540 */ 398, 461, 461, 461, 402, 461, 327, 405, 406, 407,
+ /* 2550 */ 408, 409, 410, 461, 412, 461, 398, 461, 461, 461,
+ /* 2560 */ 402, 358, 461, 405, 406, 407, 408, 409, 410, 366,
+ /* 2570 */ 412, 461, 461, 461, 371, 461, 373, 358, 461, 461,
+ /* 2580 */ 461, 461, 461, 461, 461, 366, 461, 461, 461, 461,
+ /* 2590 */ 371, 461, 373, 461, 461, 461, 461, 461, 461, 461,
+ /* 2600 */ 461, 398, 461, 461, 461, 402, 461, 461, 405, 406,
+ /* 2610 */ 407, 408, 409, 410, 461, 412, 461, 398, 461, 461,
+ /* 2620 */ 461, 402, 461, 327, 405, 406, 407, 408, 409, 410,
+ /* 2630 */ 461, 412, 461, 461, 461, 461, 461, 461, 461, 461,
+ /* 2640 */ 461, 461, 461, 461, 461, 461, 461, 327, 461, 461,
+ /* 2650 */ 461, 461, 461, 461, 358, 461, 461, 461, 461, 461,
+ /* 2660 */ 461, 461, 366, 461, 461, 461, 461, 371, 461, 373,
+ /* 2670 */ 461, 461, 461, 461, 461, 461, 461, 461, 358, 461,
+ /* 2680 */ 461, 461, 461, 461, 461, 461, 366, 461, 461, 461,
+ /* 2690 */ 461, 371, 461, 373, 398, 461, 461, 461, 402, 461,
+ /* 2700 */ 461, 405, 406, 407, 408, 409, 410, 461, 412, 461,
+ /* 2710 */ 461, 461, 461, 461, 461, 461, 461, 461, 398, 461,
+ /* 2720 */ 461, 461, 402, 461, 461, 405, 406, 407, 408, 409,
+ /* 2730 */ 410, 461, 412,
};
-#define YY_SHIFT_COUNT (711)
+#define YY_SHIFT_COUNT (715)
#define YY_SHIFT_MIN (0)
-#define YY_SHIFT_MAX (2066)
+#define YY_SHIFT_MAX (2108)
static const unsigned short int yy_shift_ofst[] = {
- /* 0 */ 925, 0, 71, 0, 288, 288, 288, 288, 288, 288,
- /* 10 */ 288, 288, 288, 359, 574, 574, 645, 574, 574, 574,
- /* 20 */ 574, 574, 574, 574, 574, 574, 574, 574, 574, 574,
- /* 30 */ 574, 574, 574, 574, 574, 574, 574, 574, 574, 574,
- /* 40 */ 574, 574, 574, 574, 574, 574, 103, 227, 51, 169,
- /* 50 */ 287, 134, 208, 134, 51, 51, 1182, 1182, 134, 1182,
- /* 60 */ 1182, 203, 134, 5, 5, 772, 772, 14, 52, 45,
- /* 70 */ 45, 5, 5, 5, 5, 5, 5, 5, 40, 5,
- /* 80 */ 5, 28, 5, 5, 177, 5, 404, 5, 40, 543,
- /* 90 */ 5, 5, 543, 5, 543, 543, 543, 5, 57, 783,
- /* 100 */ 34, 34, 498, 471, 418, 418, 418, 418, 418, 418,
- /* 110 */ 418, 418, 418, 418, 418, 418, 418, 418, 418, 418,
- /* 120 */ 418, 418, 418, 213, 661, 14, 52, 312, 325, 172,
- /* 130 */ 172, 172, 599, 602, 602, 325, 708, 708, 708, 497,
- /* 140 */ 404, 546, 543, 879, 543, 879, 879, 497, 890, 216,
- /* 150 */ 216, 216, 216, 216, 216, 216, 790, 434, 302, 711,
- /* 160 */ 1055, 99, 96, 94, 295, 532, 339, 533, 899, 870,
- /* 170 */ 853, 727, 839, 104, 727, 929, 886, 947, 1046, 1249,
- /* 180 */ 1125, 1264, 1290, 1264, 1162, 1305, 1305, 1264, 1162, 1162,
- /* 190 */ 1241, 1305, 1305, 1305, 1322, 1322, 1325, 28, 404, 28,
- /* 200 */ 1333, 1343, 28, 1333, 28, 28, 28, 1305, 28, 1320,
- /* 210 */ 1320, 1322, 543, 543, 543, 543, 543, 543, 543, 543,
- /* 220 */ 543, 543, 543, 1305, 1322, 879, 879, 879, 1189, 1325,
- /* 230 */ 57, 1213, 404, 57, 1305, 1290, 1290, 879, 1188, 1190,
- /* 240 */ 879, 1188, 1190, 879, 879, 543, 1192, 1295, 1188, 1207,
- /* 250 */ 1210, 1230, 1046, 1212, 1218, 1223, 1243, 708, 1468, 1305,
- /* 260 */ 1333, 57, 1473, 1190, 879, 879, 879, 879, 879, 1190,
- /* 270 */ 879, 1351, 57, 497, 57, 708, 1431, 1445, 879, 890,
- /* 280 */ 1305, 57, 1510, 1322, 2723, 2723, 2723, 2723, 2723, 2723,
- /* 290 */ 2723, 2723, 2723, 826, 1187, 588, 656, 938, 998, 1064,
- /* 300 */ 556, 686, 757, 867, 852, 979, 979, 979, 979, 979,
- /* 310 */ 979, 979, 979, 979, 896, 869, 155, 155, 191, 534,
- /* 320 */ 592, 572, 300, 435, 435, 1, 625, 573, 1, 1,
- /* 330 */ 1, 912, 547, 983, 975, 940, 821, 945, 984, 986,
- /* 340 */ 992, 1009, 1053, 1089, 744, 1014, 1060, 982, 946, 384,
- /* 350 */ 953, 1078, 1086, 1104, 1118, 1136, 1169, 1155, 1049, 1074,
- /* 360 */ 988, 1157, 1043, 1193, 1202, 1204, 1205, 1224, 1233, 1068,
- /* 370 */ 1194, 1220, 1237, 732, 1558, 1568, 1373, 1561, 1562, 1521,
- /* 380 */ 1572, 1538, 1375, 1541, 1542, 1543, 1380, 1581, 1548, 1549,
- /* 390 */ 1386, 1586, 1388, 1588, 1554, 1590, 1570, 1593, 1559, 1414,
- /* 400 */ 1424, 1606, 1608, 1433, 1435, 1612, 1613, 1573, 1622, 1623,
- /* 410 */ 1624, 1583, 1626, 1627, 1637, 1638, 1644, 1645, 1646, 1647,
- /* 420 */ 1478, 1595, 1631, 1481, 1633, 1634, 1635, 1648, 1649, 1650,
- /* 430 */ 1651, 1652, 1653, 1654, 1655, 1657, 1658, 1659, 1660, 1619,
- /* 440 */ 1662, 1663, 1664, 1665, 1666, 1661, 1667, 1669, 1670, 1536,
- /* 450 */ 1684, 1685, 1639, 1687, 1632, 1689, 1636, 1691, 1692, 1656,
- /* 460 */ 1668, 1671, 1681, 1679, 1682, 1683, 1686, 1695, 1672, 1675,
- /* 470 */ 1696, 1699, 1700, 1677, 1530, 1702, 1704, 1705, 1642, 1708,
- /* 480 */ 1709, 1676, 1688, 1693, 1710, 1703, 1697, 1698, 1718, 1706,
- /* 490 */ 1707, 1701, 1730, 1711, 1712, 1713, 1731, 1735, 1748, 1750,
- /* 500 */ 1640, 1641, 1716, 1732, 1753, 1721, 1723, 1724, 1726, 1719,
- /* 510 */ 1720, 1733, 1734, 1740, 1736, 1766, 1745, 1775, 1754, 1729,
- /* 520 */ 1777, 1758, 1755, 1789, 1756, 1792, 1759, 1793, 1773, 1776,
- /* 530 */ 1763, 1764, 1610, 1714, 1717, 1800, 1673, 1768, 1814, 1690,
- /* 540 */ 1794, 1678, 1680, 1815, 1819, 1694, 1722, 1817, 1778, 1577,
- /* 550 */ 1737, 1725, 1739, 1728, 1783, 1741, 1744, 1747, 1749, 1742,
- /* 560 */ 1784, 1782, 1796, 1751, 1786, 1587, 1779, 1780, 1844, 1805,
- /* 570 */ 1602, 1816, 1820, 1824, 1825, 1829, 1839, 1781, 1785, 1807,
- /* 580 */ 1715, 1808, 1831, 1880, 1882, 1883, 1681, 1840, 1795, 1797,
- /* 590 */ 1798, 1809, 1810, 1746, 1811, 1889, 1864, 1762, 1812, 1803,
- /* 600 */ 1681, 1862, 1866, 1760, 1761, 1765, 1911, 1892, 1738, 1822,
- /* 610 */ 1832, 1835, 1837, 1842, 1838, 1888, 1843, 1846, 1895, 1848,
- /* 620 */ 1905, 1752, 1851, 1830, 1852, 1904, 1914, 1855, 1856, 1916,
- /* 630 */ 1858, 1859, 1923, 1867, 1865, 1934, 1876, 1877, 1939, 1893,
- /* 640 */ 1870, 1872, 1875, 1878, 1953, 1871, 1900, 1933, 1901, 1966,
- /* 650 */ 1907, 1933, 1933, 1981, 1940, 1942, 1971, 1972, 1973, 1974,
- /* 660 */ 1975, 1976, 1977, 1978, 1979, 1980, 1946, 1926, 1982, 1984,
- /* 670 */ 1985, 1986, 1995, 1987, 1988, 1989, 1957, 1719, 1993, 1720,
- /* 680 */ 1996, 2005, 2006, 2007, 2022, 2011, 2047, 2013, 2001, 2012,
- /* 690 */ 2050, 2018, 2008, 2015, 2055, 2023, 2009, 2020, 2060, 2026,
- /* 700 */ 2014, 2024, 2064, 2030, 2032, 2066, 2049, 2048, 2051, 2054,
- /* 710 */ 2065, 2052,
+ /* 0 */ 133, 0, 71, 0, 289, 289, 289, 289, 289, 289,
+ /* 10 */ 289, 289, 289, 360, 576, 576, 647, 576, 576, 576,
+ /* 20 */ 576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
+ /* 30 */ 576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
+ /* 40 */ 576, 576, 576, 576, 576, 576, 59, 225, 110, 293,
+ /* 50 */ 58, 281, 473, 281, 110, 110, 940, 940, 940, 281,
+ /* 60 */ 940, 940, 347, 281, 78, 78, 422, 422, 36, 51,
+ /* 70 */ 230, 230, 78, 78, 78, 78, 78, 78, 78, 217,
+ /* 80 */ 78, 78, 299, 78, 78, 355, 78, 434, 78, 217,
+ /* 90 */ 456, 78, 78, 456, 78, 456, 456, 456, 78, 475,
+ /* 100 */ 786, 610, 610, 503, 112, 1116, 1116, 1116, 1116, 1116,
+ /* 110 */ 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116,
+ /* 120 */ 1116, 1116, 1116, 1116, 563, 357, 36, 51, 413, 117,
+ /* 130 */ 220, 220, 220, 429, 379, 379, 117, 525, 525, 525,
+ /* 140 */ 343, 434, 174, 456, 532, 456, 532, 532, 343, 595,
+ /* 150 */ 323, 323, 323, 323, 323, 323, 323, 1601, 523, 181,
+ /* 160 */ 712, 809, 441, 581, 439, 674, 730, 790, 663, 967,
+ /* 170 */ 655, 939, 808, 588, 802, 808, 1042, 834, 956, 1106,
+ /* 180 */ 1329, 1202, 1346, 1372, 1346, 1235, 1379, 1379, 1346, 1235,
+ /* 190 */ 1235, 1314, 1379, 1379, 1379, 1401, 1401, 1404, 299, 434,
+ /* 200 */ 299, 1414, 1427, 299, 1414, 299, 299, 299, 1379, 299,
+ /* 210 */ 1403, 1403, 1401, 456, 456, 456, 456, 456, 456, 456,
+ /* 220 */ 456, 456, 456, 456, 1379, 1401, 532, 532, 532, 1269,
+ /* 230 */ 1404, 475, 1284, 434, 475, 1379, 1372, 1372, 532, 1228,
+ /* 240 */ 1231, 532, 1228, 1231, 532, 532, 456, 1233, 1326, 1228,
+ /* 250 */ 1237, 1240, 1257, 1106, 1241, 1249, 1255, 1278, 525, 1516,
+ /* 260 */ 1379, 1414, 475, 1519, 1231, 532, 532, 532, 532, 532,
+ /* 270 */ 1231, 532, 1402, 475, 343, 475, 525, 1475, 1480, 532,
+ /* 280 */ 595, 1379, 475, 1548, 1401, 2733, 2733, 2733, 2733, 2733,
+ /* 290 */ 2733, 2733, 2733, 2733, 828, 1034, 457, 295, 260, 549,
+ /* 300 */ 759, 969, 874, 1033, 1227, 1211, 1279, 1279, 1279, 1279,
+ /* 310 */ 1279, 1279, 1279, 1279, 1279, 1041, 125, 13, 13, 506,
+ /* 320 */ 400, 516, 615, 587, 297, 297, 353, 53, 248, 353,
+ /* 330 */ 353, 353, 283, 1058, 572, 1043, 987, 1023, 1022, 1037,
+ /* 340 */ 1085, 1175, 1081, 1083, 1153, 915, 1079, 1098, 1100, 1101,
+ /* 350 */ 994, 990, 1057, 98, 1159, 1185, 1201, 1203, 1204, 1220,
+ /* 360 */ 1205, 1097, 1120, 1114, 1260, 1259, 1263, 1264, 1266, 1267,
+ /* 370 */ 1288, 1302, 40, 1122, 1332, 1315, 1327, 1606, 1607, 1423,
+ /* 380 */ 1611, 1612, 1571, 1614, 1580, 1416, 1583, 1584, 1587, 1430,
+ /* 390 */ 1623, 1597, 1598, 1435, 1636, 1437, 1638, 1608, 1641, 1620,
+ /* 400 */ 1645, 1613, 1464, 1470, 1651, 1653, 1484, 1487, 1661, 1678,
+ /* 410 */ 1617, 1665, 1666, 1667, 1626, 1669, 1670, 1671, 1672, 1673,
+ /* 420 */ 1674, 1675, 1676, 1529, 1646, 1682, 1533, 1685, 1692, 1696,
+ /* 430 */ 1697, 1699, 1700, 1701, 1703, 1704, 1705, 1706, 1708, 1710,
+ /* 440 */ 1711, 1712, 1677, 1713, 1714, 1715, 1716, 1717, 1698, 1718,
+ /* 450 */ 1721, 1722, 1588, 1724, 1732, 1691, 1727, 1679, 1728, 1681,
+ /* 460 */ 1729, 1730, 1693, 1694, 1707, 1689, 1733, 1702, 1738, 1719,
+ /* 470 */ 1740, 1720, 1723, 1753, 1754, 1757, 1731, 1592, 1758, 1759,
+ /* 480 */ 1765, 1709, 1767, 1772, 1739, 1734, 1736, 1776, 1742, 1735,
+ /* 490 */ 1741, 1778, 1744, 1745, 1749, 1781, 1755, 1747, 1750, 1784,
+ /* 500 */ 1792, 1797, 1798, 1737, 1725, 1774, 1780, 1811, 1777, 1779,
+ /* 510 */ 1782, 1783, 1771, 1775, 1785, 1786, 1794, 1787, 1823, 1802,
+ /* 520 */ 1825, 1806, 1789, 1831, 1810, 1807, 1843, 1812, 1845, 1813,
+ /* 530 */ 1846, 1827, 1833, 1815, 1816, 1819, 1760, 1763, 1855, 1743,
+ /* 540 */ 1826, 1862, 1680, 1842, 1752, 1751, 1865, 1866, 1761, 1748,
+ /* 550 */ 1864, 1828, 1621, 1788, 1773, 1790, 1791, 1832, 1834, 1793,
+ /* 560 */ 1804, 1808, 1824, 1801, 1835, 1839, 1854, 1836, 1837, 1622,
+ /* 570 */ 1829, 1841, 1874, 1838, 1631, 1867, 1887, 1888, 1892, 1893,
+ /* 580 */ 1895, 1844, 1847, 1879, 1690, 1894, 1885, 1935, 1939, 1941,
+ /* 590 */ 1689, 1897, 1851, 1852, 1868, 1856, 1863, 1796, 1871, 1942,
+ /* 600 */ 1908, 1799, 1881, 1869, 1689, 1903, 1916, 1762, 1764, 1768,
+ /* 610 */ 1975, 1956, 1795, 1884, 1886, 1889, 1890, 1898, 1896, 1933,
+ /* 620 */ 1900, 1902, 1934, 1904, 1961, 1800, 1907, 1882, 1909, 1950,
+ /* 630 */ 1952, 1912, 1913, 1954, 1915, 1918, 1964, 1917, 1919, 1969,
+ /* 640 */ 1921, 1922, 1982, 1924, 1901, 1905, 1906, 1910, 1981, 1914,
+ /* 650 */ 1928, 1983, 1931, 1993, 1936, 1983, 1983, 2010, 1970, 1973,
+ /* 660 */ 1998, 2004, 2005, 2006, 2008, 2009, 2016, 2019, 2020, 2021,
+ /* 670 */ 1987, 1966, 2015, 2025, 2026, 2028, 2042, 2030, 2032, 2033,
+ /* 680 */ 2007, 1771, 2040, 1775, 2043, 2044, 2045, 2046, 2060, 2050,
+ /* 690 */ 2086, 2052, 2041, 2049, 2090, 2056, 2047, 2055, 2093, 2061,
+ /* 700 */ 2053, 2059, 2100, 2067, 2057, 2064, 2104, 2071, 2072, 2108,
+ /* 710 */ 2087, 2089, 2091, 2094, 2096, 2092,
};
-#define YY_REDUCE_COUNT (292)
-#define YY_REDUCE_MIN (-425)
-#define YY_REDUCE_MAX (2312)
+#define YY_REDUCE_COUNT (293)
+#define YY_REDUCE_MIN (-414)
+#define YY_REDUCE_MAX (2320)
static const short yy_reduce_ofst[] = {
- /* 0 */ -17, -295, -7, 233, 633, 736, 781, 854, 909, 1021,
- /* 10 */ 1051, 1107, 1127, -169, 1195, 77, 341, 1211, 1272, 1317,
- /* 20 */ 1378, 1401, 1462, 1492, 1515, 1560, 1576, 1629, 1674, 1727,
- /* 30 */ 1743, 1788, 1841, 1857, 1902, 1925, 1955, 2031, 2053, 2108,
- /* 40 */ 2153, 2198, 2214, 2259, 2282, 2312, -276, -290, -168, -10,
- /* 50 */ 834, 837, 907, 960, -327, -181, -348, -314, -425, 252,
- /* 60 */ 755, -422, 289, -328, -219, -329, -291, -300, -303, -209,
- /* 70 */ -144, -173, 78, 258, 278, 326, 668, 688, -288, 748,
- /* 80 */ 754, 65, 770, 800, -275, 802, 86, 828, -152, -347,
- /* 90 */ 864, 872, 123, 875, 186, 187, 192, 883, -158, -294,
- /* 100 */ -282, -282, -182, -265, -170, -62, -6, 82, 105, 265,
- /* 110 */ 276, 305, 310, 347, 383, 386, 392, 439, 442, 443,
- /* 120 */ 450, 480, 503, 67, -150, 89, -116, 308, 173, -150,
- /* 130 */ 311, 332, 309, 406, 421, 175, -58, 465, 521, 126,
- /* 140 */ 306, 240, 478, 473, 583, 552, 595, 616, 542, 618,
- /* 150 */ 641, 671, 692, 709, 717, 762, -337, 719, 814, 714,
- /* 160 */ 710, 726, 841, 738, 827, 827, 855, 833, 874, 858,
- /* 170 */ 859, 843, 843, 829, 843, 873, 861, 827, 895, 905,
- /* 180 */ 915, 932, 939, 935, 949, 994, 995, 956, 959, 961,
- /* 190 */ 996, 1005, 1006, 1008, 1016, 1017, 955, 1010, 987, 1011,
- /* 200 */ 1025, 977, 1027, 1033, 1029, 1030, 1031, 1038, 1035, 1039,
- /* 210 */ 1042, 1052, 1024, 1026, 1028, 1040, 1041, 1050, 1054, 1056,
- /* 220 */ 1062, 1063, 1067, 1048, 1059, 1022, 1047, 1061, 999, 1002,
- /* 230 */ 1096, 1019, 1066, 1097, 1102, 1065, 1069, 1070, 1007, 1076,
- /* 240 */ 1080, 1023, 1081, 1084, 1095, 827, 1003, 1034, 1045, 1032,
- /* 250 */ 1037, 1044, 1083, 1036, 1057, 1071, 843, 1123, 1087, 1159,
- /* 260 */ 1156, 1158, 1115, 1116, 1130, 1132, 1133, 1135, 1137, 1121,
- /* 270 */ 1139, 1138, 1181, 1173, 1184, 1174, 1119, 1183, 1172, 1196,
- /* 280 */ 1214, 1208, 1222, 1225, 1163, 1160, 1170, 1171, 1215, 1219,
- /* 290 */ 1221, 1232, 1234,
+ /* 0 */ -292, -297, -8, 233, 597, 620, 706, 783, 807, 852,
+ /* 10 */ 907, 963, 1008, 1031, 1119, -320, 54, 1135, 1191, 1219,
+ /* 20 */ 1281, 1336, 1398, 1428, 1486, 1502, 1547, 1563, 1640, 1664,
+ /* 30 */ 1726, 1756, 1814, 1830, 1875, 1891, 1968, 1992, 2054, 2084,
+ /* 40 */ 2142, 2158, 2203, 2219, 2296, 2320, -193, 256, 320, -383,
+ /* 50 */ -332, -110, 605, 893, 302, 642, -337, -16, 273, -414,
+ /* 60 */ -352, -171, 284, 310, -235, -199, -331, -187, -340, -368,
+ /* 70 */ -255, -167, -304, -106, 190, 313, 387, 622, 623, -288,
+ /* 80 */ 631, 784, 50, 817, 897, -43, 902, -213, 917, 35,
+ /* 90 */ -159, 918, 937, -32, 998, -1, 255, 4, 630, -22,
+ /* 100 */ 144, -411, -411, 215, -240, -312, 219, 301, 383, 389,
+ /* 110 */ 436, 510, 513, 550, 552, 571, 593, 619, 621, 629,
+ /* 120 */ 640, 688, 692, 697, -346, -228, -109, -329, 195, 173,
+ /* 130 */ -228, 254, 339, -31, 199, 341, 470, 454, 583, 584,
+ /* 140 */ -226, 224, 363, 616, 462, 627, 682, 694, 600, 636,
+ /* 150 */ -343, 318, 364, 396, 452, 519, 526, 309, 659, 670,
+ /* 160 */ 657, 635, 734, 738, 766, 869, 869, 891, 857, 910,
+ /* 170 */ 900, 904, 856, 856, 899, 856, 927, 919, 869, 957,
+ /* 180 */ 979, 992, 1013, 1012, 1016, 1020, 1065, 1066, 1025, 1029,
+ /* 190 */ 1032, 1068, 1074, 1077, 1084, 1093, 1094, 1030, 1087, 1053,
+ /* 200 */ 1089, 1099, 1059, 1107, 1115, 1109, 1111, 1112, 1121, 1113,
+ /* 210 */ 1123, 1125, 1128, 1102, 1108, 1110, 1117, 1118, 1124, 1126,
+ /* 220 */ 1129, 1130, 1131, 1133, 1132, 1136, 1088, 1103, 1127, 1061,
+ /* 230 */ 1075, 1134, 1078, 1105, 1140, 1145, 1090, 1138, 1139, 1045,
+ /* 240 */ 1137, 1141, 1054, 1144, 1142, 1143, 869, 1052, 1056, 1062,
+ /* 250 */ 1064, 1070, 1069, 1148, 1055, 1080, 1082, 856, 1166, 1146,
+ /* 260 */ 1216, 1217, 1199, 1168, 1169, 1183, 1187, 1188, 1189, 1190,
+ /* 270 */ 1170, 1192, 1186, 1229, 1218, 1232, 1207, 1152, 1214, 1208,
+ /* 280 */ 1230, 1245, 1242, 1253, 1258, 1194, 1195, 1215, 1222, 1236,
+ /* 290 */ 1243, 1252, 1254, 1280,
};
static const YYACTIONTYPE yy_default[] = {
- /* 0 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 10 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 20 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 30 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 40 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 50 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 60 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1853, 1598, 1598,
- /* 70 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 80 */ 1598, 1676, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 90 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1674, 1846,
- /* 100 */ 2047, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 110 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 120 */ 1598, 1598, 1598, 1598, 2059, 1598, 1598, 1676, 1598, 2059,
- /* 130 */ 2059, 2059, 1674, 2019, 2019, 1598, 1598, 1598, 1598, 1783,
- /* 140 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1783, 1598, 1598,
- /* 150 */ 1598, 1598, 1598, 1598, 1598, 1598, 1892, 1598, 1598, 2084,
- /* 160 */ 2137, 1598, 1598, 2087, 1598, 1598, 1598, 1858, 1598, 1736,
- /* 170 */ 2074, 2051, 2065, 2121, 2052, 2049, 2068, 1598, 2078, 1598,
- /* 180 */ 1885, 1851, 1598, 1851, 1848, 1598, 1598, 1851, 1848, 1848,
- /* 190 */ 1727, 1598, 1598, 1598, 1598, 1598, 1598, 1676, 1598, 1676,
- /* 200 */ 1598, 1598, 1676, 1598, 1676, 1676, 1676, 1598, 1676, 1655,
- /* 210 */ 1655, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 220 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1906, 1598,
- /* 230 */ 1674, 1894, 1598, 1674, 1598, 1598, 1598, 1598, 2094, 2092,
- /* 240 */ 1598, 2094, 2092, 1598, 1598, 1598, 2106, 2102, 2094, 2110,
- /* 250 */ 2108, 2080, 2078, 2140, 2127, 2123, 2065, 1598, 1598, 1598,
- /* 260 */ 1598, 1674, 1598, 2092, 1598, 1598, 1598, 1598, 1598, 2092,
- /* 270 */ 1598, 1598, 1674, 1598, 1674, 1598, 1598, 1752, 1598, 1598,
- /* 280 */ 1598, 1674, 1630, 1598, 1887, 1898, 1870, 1870, 1786, 1786,
- /* 290 */ 1786, 1677, 1603, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 300 */ 1598, 1598, 1598, 1598, 1598, 2105, 2104, 1975, 1598, 2023,
- /* 310 */ 2022, 2021, 2012, 1974, 1748, 1598, 1973, 1972, 1598, 1598,
- /* 320 */ 1598, 1598, 1598, 1866, 1865, 1966, 1598, 1598, 1967, 1965,
- /* 330 */ 1964, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 340 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 2124, 2128,
- /* 350 */ 1598, 1598, 1598, 1598, 1598, 1598, 2048, 1598, 1598, 1598,
- /* 360 */ 1598, 1598, 1948, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 370 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 380 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 390 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 400 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 410 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 420 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 430 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 440 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 450 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 460 */ 1598, 1635, 1953, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 470 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 480 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 490 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 500 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1715,
- /* 510 */ 1714, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 520 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 530 */ 1598, 1598, 1598, 1957, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 540 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 2120, 2081, 1598,
- /* 550 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 560 */ 1598, 1598, 1948, 1598, 2103, 1598, 1598, 2118, 1598, 2122,
- /* 570 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 2058, 2054, 1598,
- /* 580 */ 1598, 2050, 1598, 1598, 1598, 1598, 1956, 1598, 1598, 1598,
- /* 590 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 600 */ 1947, 1598, 2009, 1598, 1598, 1598, 2043, 1598, 1598, 1994,
- /* 610 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1957,
- /* 620 */ 1598, 1960, 1598, 1598, 1598, 1598, 1598, 1780, 1598, 1598,
- /* 630 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 640 */ 1765, 1763, 1762, 1761, 1598, 1758, 1598, 1793, 1598, 1598,
- /* 650 */ 1598, 1789, 1788, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 660 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1695, 1598,
- /* 670 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1687, 1598, 1686,
- /* 680 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 690 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 700 */ 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598, 1598,
- /* 710 */ 1598, 1598,
+ /* 0 */ 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 10 */ 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 20 */ 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 30 */ 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 40 */ 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 50 */ 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 60 */ 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1863, 1608,
+ /* 70 */ 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 80 */ 1608, 1608, 1686, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 90 */ 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1684,
+ /* 100 */ 1856, 2058, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 110 */ 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 120 */ 1608, 1608, 1608, 1608, 1608, 2070, 1608, 1608, 1686, 1608,
+ /* 130 */ 2070, 2070, 2070, 1684, 2030, 2030, 1608, 1608, 1608, 1608,
+ /* 140 */ 1793, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1793, 1608,
+ /* 150 */ 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1902, 1608, 1608,
+ /* 160 */ 2095, 2150, 1608, 1608, 2098, 1608, 1608, 1608, 1868, 1608,
+ /* 170 */ 1746, 2085, 2062, 2076, 2134, 2063, 2060, 2079, 1608, 2089,
+ /* 180 */ 1608, 1895, 1861, 1608, 1861, 1858, 1608, 1608, 1861, 1858,
+ /* 190 */ 1858, 1737, 1608, 1608, 1608, 1608, 1608, 1608, 1686, 1608,
+ /* 200 */ 1686, 1608, 1608, 1686, 1608, 1686, 1686, 1686, 1608, 1686,
+ /* 210 */ 1665, 1665, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 220 */ 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1917,
+ /* 230 */ 1608, 1684, 1904, 1608, 1684, 1608, 1608, 1608, 1608, 2105,
+ /* 240 */ 2103, 1608, 2105, 2103, 1608, 1608, 1608, 2119, 2115, 2105,
+ /* 250 */ 2123, 2121, 2091, 2089, 2153, 2140, 2136, 2076, 1608, 1608,
+ /* 260 */ 1608, 1608, 1684, 1608, 2103, 1608, 1608, 1608, 1608, 1608,
+ /* 270 */ 2103, 1608, 1608, 1684, 1608, 1684, 1608, 1608, 1762, 1608,
+ /* 280 */ 1608, 1608, 1684, 1640, 1608, 1897, 1908, 1880, 1880, 1796,
+ /* 290 */ 1796, 1796, 1687, 1613, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 300 */ 1608, 1608, 1608, 1608, 1608, 1608, 2118, 2117, 1986, 1608,
+ /* 310 */ 2034, 2033, 2032, 2023, 1985, 1758, 1608, 1984, 1983, 1608,
+ /* 320 */ 1608, 1608, 1608, 1608, 1876, 1875, 1977, 1608, 1608, 1978,
+ /* 330 */ 1976, 1975, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 340 */ 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 350 */ 1608, 2137, 2141, 1608, 1608, 1608, 1608, 1608, 1608, 2059,
+ /* 360 */ 1608, 1608, 1608, 1608, 1608, 1959, 1608, 1608, 1608, 1608,
+ /* 370 */ 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 380 */ 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 390 */ 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 400 */ 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 410 */ 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 420 */ 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 430 */ 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 440 */ 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 450 */ 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 460 */ 1608, 1608, 1608, 1608, 1645, 1964, 1608, 1608, 1608, 1608,
+ /* 470 */ 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 480 */ 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 490 */ 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 500 */ 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 510 */ 1608, 1608, 1725, 1724, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 520 */ 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 530 */ 1608, 1608, 1608, 1608, 1608, 1608, 1968, 1608, 1608, 1608,
+ /* 540 */ 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 550 */ 2133, 2092, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 560 */ 1608, 1608, 1608, 1608, 1608, 1608, 1959, 1608, 2116, 1608,
+ /* 570 */ 1608, 2131, 1608, 2135, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 580 */ 1608, 2069, 2065, 1608, 1608, 2061, 1608, 1608, 1608, 1608,
+ /* 590 */ 1967, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 600 */ 1608, 1608, 1608, 1608, 1958, 1608, 2020, 1608, 1608, 1608,
+ /* 610 */ 2054, 1608, 1608, 2005, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 620 */ 1608, 1608, 1608, 1968, 1608, 1971, 1608, 1608, 1608, 1608,
+ /* 630 */ 1608, 1790, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 640 */ 1608, 1608, 1608, 1608, 1775, 1773, 1772, 1771, 1608, 1768,
+ /* 650 */ 1608, 1803, 1608, 1608, 1608, 1799, 1798, 1608, 1608, 1608,
+ /* 660 */ 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 670 */ 1608, 1608, 1705, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 680 */ 1608, 1697, 1608, 1696, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 690 */ 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 700 */ 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608, 1608,
+ /* 710 */ 1608, 1608, 1608, 1608, 1608, 1608,
};
/********** End of lemon-generated parsing tables *****************************/
@@ -1165,6 +1167,7 @@ static const YYCODETYPE yyFallback[] = {
0, /* IGNORE => nothing */
0, /* EXPIRED => nothing */
0, /* FILL_HISTORY => nothing */
+ 0, /* UPDATE => nothing */
0, /* SUBTABLE => nothing */
0, /* KILL => nothing */
0, /* CONNECTION => nothing */
@@ -1198,7 +1201,7 @@ static const YYCODETYPE yyFallback[] = {
0, /* COUNT => nothing */
0, /* LAST_ROW => nothing */
0, /* CASE => nothing */
- 268, /* END => ABORT */
+ 271, /* END => ABORT */
0, /* WHEN => nothing */
0, /* THEN => nothing */
0, /* ELSE => nothing */
@@ -1225,8 +1228,10 @@ static const YYCODETYPE yyFallback[] = {
0, /* SLIDING => nothing */
0, /* FILL => nothing */
0, /* VALUE => nothing */
+ 0, /* VALUE_F => nothing */
0, /* NONE => nothing */
0, /* PREV => nothing */
+ 0, /* NULL_F => nothing */
0, /* LINEAR => nothing */
0, /* NEXT => nothing */
0, /* HAVING => nothing */
@@ -1240,59 +1245,58 @@ static const YYCODETYPE yyFallback[] = {
0, /* ASC => nothing */
0, /* NULLS => nothing */
0, /* ABORT => nothing */
- 268, /* AFTER => ABORT */
- 268, /* ATTACH => ABORT */
- 268, /* BEFORE => ABORT */
- 268, /* BEGIN => ABORT */
- 268, /* BITAND => ABORT */
- 268, /* BITNOT => ABORT */
- 268, /* BITOR => ABORT */
- 268, /* BLOCKS => ABORT */
- 268, /* CHANGE => ABORT */
- 268, /* COMMA => ABORT */
- 268, /* COMPACT => ABORT */
- 268, /* CONCAT => ABORT */
- 268, /* CONFLICT => ABORT */
- 268, /* COPY => ABORT */
- 268, /* DEFERRED => ABORT */
- 268, /* DELIMITERS => ABORT */
- 268, /* DETACH => ABORT */
- 268, /* DIVIDE => ABORT */
- 268, /* DOT => ABORT */
- 268, /* EACH => ABORT */
- 268, /* FAIL => ABORT */
- 268, /* FILE => ABORT */
- 268, /* FOR => ABORT */
- 268, /* GLOB => ABORT */
- 268, /* ID => ABORT */
- 268, /* IMMEDIATE => ABORT */
- 268, /* IMPORT => ABORT */
- 268, /* INITIALLY => ABORT */
- 268, /* INSTEAD => ABORT */
- 268, /* ISNULL => ABORT */
- 268, /* KEY => ABORT */
- 268, /* MODULES => ABORT */
- 268, /* NK_BITNOT => ABORT */
- 268, /* NK_SEMI => ABORT */
- 268, /* NOTNULL => ABORT */
- 268, /* OF => ABORT */
- 268, /* PLUS => ABORT */
- 268, /* PRIVILEGE => ABORT */
- 268, /* RAISE => ABORT */
- 268, /* REPLACE => ABORT */
- 268, /* RESTRICT => ABORT */
- 268, /* ROW => ABORT */
- 268, /* SEMI => ABORT */
- 268, /* STAR => ABORT */
- 268, /* STATEMENT => ABORT */
- 268, /* STRICT => ABORT */
- 268, /* STRING => ABORT */
- 268, /* TIMES => ABORT */
- 268, /* UPDATE => ABORT */
- 268, /* VALUES => ABORT */
- 268, /* VARIABLE => ABORT */
- 268, /* VIEW => ABORT */
- 268, /* WAL => ABORT */
+ 271, /* AFTER => ABORT */
+ 271, /* ATTACH => ABORT */
+ 271, /* BEFORE => ABORT */
+ 271, /* BEGIN => ABORT */
+ 271, /* BITAND => ABORT */
+ 271, /* BITNOT => ABORT */
+ 271, /* BITOR => ABORT */
+ 271, /* BLOCKS => ABORT */
+ 271, /* CHANGE => ABORT */
+ 271, /* COMMA => ABORT */
+ 271, /* COMPACT => ABORT */
+ 271, /* CONCAT => ABORT */
+ 271, /* CONFLICT => ABORT */
+ 271, /* COPY => ABORT */
+ 271, /* DEFERRED => ABORT */
+ 271, /* DELIMITERS => ABORT */
+ 271, /* DETACH => ABORT */
+ 271, /* DIVIDE => ABORT */
+ 271, /* DOT => ABORT */
+ 271, /* EACH => ABORT */
+ 271, /* FAIL => ABORT */
+ 271, /* FILE => ABORT */
+ 271, /* FOR => ABORT */
+ 271, /* GLOB => ABORT */
+ 271, /* ID => ABORT */
+ 271, /* IMMEDIATE => ABORT */
+ 271, /* IMPORT => ABORT */
+ 271, /* INITIALLY => ABORT */
+ 271, /* INSTEAD => ABORT */
+ 271, /* ISNULL => ABORT */
+ 271, /* KEY => ABORT */
+ 271, /* MODULES => ABORT */
+ 271, /* NK_BITNOT => ABORT */
+ 271, /* NK_SEMI => ABORT */
+ 271, /* NOTNULL => ABORT */
+ 271, /* OF => ABORT */
+ 271, /* PLUS => ABORT */
+ 271, /* PRIVILEGE => ABORT */
+ 271, /* RAISE => ABORT */
+ 271, /* REPLACE => ABORT */
+ 271, /* RESTRICT => ABORT */
+ 271, /* ROW => ABORT */
+ 271, /* SEMI => ABORT */
+ 271, /* STAR => ABORT */
+ 271, /* STATEMENT => ABORT */
+ 271, /* STRICT => ABORT */
+ 271, /* STRING => ABORT */
+ 271, /* TIMES => ABORT */
+ 271, /* VALUES => ABORT */
+ 271, /* VARIABLE => ABORT */
+ 271, /* VIEW => ABORT */
+ 271, /* WAL => ABORT */
};
#endif /* YYFALLBACK */
@@ -1574,271 +1578,273 @@ static const char *const yyTokenName[] = {
/* 191 */ "IGNORE",
/* 192 */ "EXPIRED",
/* 193 */ "FILL_HISTORY",
- /* 194 */ "SUBTABLE",
- /* 195 */ "KILL",
- /* 196 */ "CONNECTION",
- /* 197 */ "TRANSACTION",
- /* 198 */ "BALANCE",
- /* 199 */ "VGROUP",
- /* 200 */ "MERGE",
- /* 201 */ "REDISTRIBUTE",
- /* 202 */ "SPLIT",
- /* 203 */ "DELETE",
- /* 204 */ "INSERT",
- /* 205 */ "NULL",
- /* 206 */ "NK_QUESTION",
- /* 207 */ "NK_ARROW",
- /* 208 */ "ROWTS",
- /* 209 */ "QSTART",
- /* 210 */ "QEND",
- /* 211 */ "QDURATION",
- /* 212 */ "WSTART",
- /* 213 */ "WEND",
- /* 214 */ "WDURATION",
- /* 215 */ "IROWTS",
- /* 216 */ "CAST",
- /* 217 */ "NOW",
- /* 218 */ "TODAY",
- /* 219 */ "TIMEZONE",
- /* 220 */ "CLIENT_VERSION",
- /* 221 */ "SERVER_VERSION",
- /* 222 */ "SERVER_STATUS",
- /* 223 */ "CURRENT_USER",
- /* 224 */ "COUNT",
- /* 225 */ "LAST_ROW",
- /* 226 */ "CASE",
- /* 227 */ "END",
- /* 228 */ "WHEN",
- /* 229 */ "THEN",
- /* 230 */ "ELSE",
- /* 231 */ "BETWEEN",
- /* 232 */ "IS",
- /* 233 */ "NK_LT",
- /* 234 */ "NK_GT",
- /* 235 */ "NK_LE",
- /* 236 */ "NK_GE",
- /* 237 */ "NK_NE",
- /* 238 */ "MATCH",
- /* 239 */ "NMATCH",
- /* 240 */ "CONTAINS",
- /* 241 */ "IN",
- /* 242 */ "JOIN",
- /* 243 */ "INNER",
- /* 244 */ "SELECT",
- /* 245 */ "DISTINCT",
- /* 246 */ "WHERE",
- /* 247 */ "PARTITION",
- /* 248 */ "BY",
- /* 249 */ "SESSION",
- /* 250 */ "STATE_WINDOW",
- /* 251 */ "SLIDING",
- /* 252 */ "FILL",
- /* 253 */ "VALUE",
- /* 254 */ "NONE",
- /* 255 */ "PREV",
- /* 256 */ "LINEAR",
- /* 257 */ "NEXT",
- /* 258 */ "HAVING",
- /* 259 */ "RANGE",
- /* 260 */ "EVERY",
- /* 261 */ "ORDER",
- /* 262 */ "SLIMIT",
- /* 263 */ "SOFFSET",
- /* 264 */ "LIMIT",
- /* 265 */ "OFFSET",
- /* 266 */ "ASC",
- /* 267 */ "NULLS",
- /* 268 */ "ABORT",
- /* 269 */ "AFTER",
- /* 270 */ "ATTACH",
- /* 271 */ "BEFORE",
- /* 272 */ "BEGIN",
- /* 273 */ "BITAND",
- /* 274 */ "BITNOT",
- /* 275 */ "BITOR",
- /* 276 */ "BLOCKS",
- /* 277 */ "CHANGE",
- /* 278 */ "COMMA",
- /* 279 */ "COMPACT",
- /* 280 */ "CONCAT",
- /* 281 */ "CONFLICT",
- /* 282 */ "COPY",
- /* 283 */ "DEFERRED",
- /* 284 */ "DELIMITERS",
- /* 285 */ "DETACH",
- /* 286 */ "DIVIDE",
- /* 287 */ "DOT",
- /* 288 */ "EACH",
- /* 289 */ "FAIL",
- /* 290 */ "FILE",
- /* 291 */ "FOR",
- /* 292 */ "GLOB",
- /* 293 */ "ID",
- /* 294 */ "IMMEDIATE",
- /* 295 */ "IMPORT",
- /* 296 */ "INITIALLY",
- /* 297 */ "INSTEAD",
- /* 298 */ "ISNULL",
- /* 299 */ "KEY",
- /* 300 */ "MODULES",
- /* 301 */ "NK_BITNOT",
- /* 302 */ "NK_SEMI",
- /* 303 */ "NOTNULL",
- /* 304 */ "OF",
- /* 305 */ "PLUS",
- /* 306 */ "PRIVILEGE",
- /* 307 */ "RAISE",
- /* 308 */ "REPLACE",
- /* 309 */ "RESTRICT",
- /* 310 */ "ROW",
- /* 311 */ "SEMI",
- /* 312 */ "STAR",
- /* 313 */ "STATEMENT",
- /* 314 */ "STRICT",
- /* 315 */ "STRING",
- /* 316 */ "TIMES",
- /* 317 */ "UPDATE",
- /* 318 */ "VALUES",
- /* 319 */ "VARIABLE",
- /* 320 */ "VIEW",
- /* 321 */ "WAL",
- /* 322 */ "cmd",
- /* 323 */ "account_options",
- /* 324 */ "alter_account_options",
- /* 325 */ "literal",
- /* 326 */ "alter_account_option",
- /* 327 */ "user_name",
- /* 328 */ "sysinfo_opt",
- /* 329 */ "privileges",
- /* 330 */ "priv_level",
- /* 331 */ "priv_type_list",
- /* 332 */ "priv_type",
- /* 333 */ "db_name",
- /* 334 */ "topic_name",
- /* 335 */ "dnode_endpoint",
- /* 336 */ "force_opt",
- /* 337 */ "not_exists_opt",
- /* 338 */ "db_options",
- /* 339 */ "exists_opt",
- /* 340 */ "alter_db_options",
- /* 341 */ "speed_opt",
- /* 342 */ "integer_list",
- /* 343 */ "variable_list",
- /* 344 */ "retention_list",
- /* 345 */ "alter_db_option",
- /* 346 */ "retention",
- /* 347 */ "full_table_name",
- /* 348 */ "column_def_list",
- /* 349 */ "tags_def_opt",
- /* 350 */ "table_options",
- /* 351 */ "multi_create_clause",
- /* 352 */ "tags_def",
- /* 353 */ "multi_drop_clause",
- /* 354 */ "alter_table_clause",
- /* 355 */ "alter_table_options",
- /* 356 */ "column_name",
- /* 357 */ "type_name",
- /* 358 */ "signed_literal",
- /* 359 */ "create_subtable_clause",
- /* 360 */ "specific_cols_opt",
- /* 361 */ "expression_list",
- /* 362 */ "drop_table_clause",
- /* 363 */ "col_name_list",
- /* 364 */ "table_name",
- /* 365 */ "column_def",
- /* 366 */ "duration_list",
- /* 367 */ "rollup_func_list",
- /* 368 */ "alter_table_option",
- /* 369 */ "duration_literal",
- /* 370 */ "rollup_func_name",
- /* 371 */ "function_name",
- /* 372 */ "col_name",
- /* 373 */ "db_name_cond_opt",
- /* 374 */ "like_pattern_opt",
- /* 375 */ "table_name_cond",
- /* 376 */ "from_db_opt",
- /* 377 */ "tag_list_opt",
- /* 378 */ "tag_item",
- /* 379 */ "column_alias",
- /* 380 */ "full_index_name",
- /* 381 */ "index_options",
- /* 382 */ "index_name",
- /* 383 */ "func_list",
- /* 384 */ "sliding_opt",
- /* 385 */ "sma_stream_opt",
- /* 386 */ "func",
- /* 387 */ "query_or_subquery",
- /* 388 */ "cgroup_name",
- /* 389 */ "analyze_opt",
- /* 390 */ "explain_options",
- /* 391 */ "agg_func_opt",
- /* 392 */ "bufsize_opt",
- /* 393 */ "stream_name",
- /* 394 */ "stream_options",
- /* 395 */ "subtable_opt",
- /* 396 */ "expression",
- /* 397 */ "dnode_list",
- /* 398 */ "where_clause_opt",
- /* 399 */ "signed",
- /* 400 */ "literal_func",
- /* 401 */ "literal_list",
- /* 402 */ "table_alias",
- /* 403 */ "expr_or_subquery",
- /* 404 */ "pseudo_column",
- /* 405 */ "column_reference",
- /* 406 */ "function_expression",
- /* 407 */ "case_when_expression",
- /* 408 */ "star_func",
- /* 409 */ "star_func_para_list",
- /* 410 */ "noarg_func",
- /* 411 */ "other_para_list",
- /* 412 */ "star_func_para",
- /* 413 */ "when_then_list",
- /* 414 */ "case_when_else_opt",
- /* 415 */ "common_expression",
- /* 416 */ "when_then_expr",
- /* 417 */ "predicate",
- /* 418 */ "compare_op",
- /* 419 */ "in_op",
- /* 420 */ "in_predicate_value",
- /* 421 */ "boolean_value_expression",
- /* 422 */ "boolean_primary",
- /* 423 */ "from_clause_opt",
- /* 424 */ "table_reference_list",
- /* 425 */ "table_reference",
- /* 426 */ "table_primary",
- /* 427 */ "joined_table",
- /* 428 */ "alias_opt",
- /* 429 */ "subquery",
- /* 430 */ "parenthesized_joined_table",
- /* 431 */ "join_type",
- /* 432 */ "search_condition",
- /* 433 */ "query_specification",
- /* 434 */ "set_quantifier_opt",
- /* 435 */ "select_list",
- /* 436 */ "partition_by_clause_opt",
- /* 437 */ "range_opt",
- /* 438 */ "every_opt",
- /* 439 */ "fill_opt",
- /* 440 */ "twindow_clause_opt",
- /* 441 */ "group_by_clause_opt",
- /* 442 */ "having_clause_opt",
- /* 443 */ "select_item",
- /* 444 */ "partition_list",
- /* 445 */ "partition_item",
- /* 446 */ "fill_mode",
- /* 447 */ "group_by_list",
- /* 448 */ "query_expression",
- /* 449 */ "query_simple",
- /* 450 */ "order_by_clause_opt",
- /* 451 */ "slimit_clause_opt",
- /* 452 */ "limit_clause_opt",
- /* 453 */ "union_query_expression",
- /* 454 */ "query_simple_or_subquery",
- /* 455 */ "sort_specification_list",
- /* 456 */ "sort_specification",
- /* 457 */ "ordering_specification_opt",
- /* 458 */ "null_ordering_opt",
+ /* 194 */ "UPDATE",
+ /* 195 */ "SUBTABLE",
+ /* 196 */ "KILL",
+ /* 197 */ "CONNECTION",
+ /* 198 */ "TRANSACTION",
+ /* 199 */ "BALANCE",
+ /* 200 */ "VGROUP",
+ /* 201 */ "MERGE",
+ /* 202 */ "REDISTRIBUTE",
+ /* 203 */ "SPLIT",
+ /* 204 */ "DELETE",
+ /* 205 */ "INSERT",
+ /* 206 */ "NULL",
+ /* 207 */ "NK_QUESTION",
+ /* 208 */ "NK_ARROW",
+ /* 209 */ "ROWTS",
+ /* 210 */ "QSTART",
+ /* 211 */ "QEND",
+ /* 212 */ "QDURATION",
+ /* 213 */ "WSTART",
+ /* 214 */ "WEND",
+ /* 215 */ "WDURATION",
+ /* 216 */ "IROWTS",
+ /* 217 */ "CAST",
+ /* 218 */ "NOW",
+ /* 219 */ "TODAY",
+ /* 220 */ "TIMEZONE",
+ /* 221 */ "CLIENT_VERSION",
+ /* 222 */ "SERVER_VERSION",
+ /* 223 */ "SERVER_STATUS",
+ /* 224 */ "CURRENT_USER",
+ /* 225 */ "COUNT",
+ /* 226 */ "LAST_ROW",
+ /* 227 */ "CASE",
+ /* 228 */ "END",
+ /* 229 */ "WHEN",
+ /* 230 */ "THEN",
+ /* 231 */ "ELSE",
+ /* 232 */ "BETWEEN",
+ /* 233 */ "IS",
+ /* 234 */ "NK_LT",
+ /* 235 */ "NK_GT",
+ /* 236 */ "NK_LE",
+ /* 237 */ "NK_GE",
+ /* 238 */ "NK_NE",
+ /* 239 */ "MATCH",
+ /* 240 */ "NMATCH",
+ /* 241 */ "CONTAINS",
+ /* 242 */ "IN",
+ /* 243 */ "JOIN",
+ /* 244 */ "INNER",
+ /* 245 */ "SELECT",
+ /* 246 */ "DISTINCT",
+ /* 247 */ "WHERE",
+ /* 248 */ "PARTITION",
+ /* 249 */ "BY",
+ /* 250 */ "SESSION",
+ /* 251 */ "STATE_WINDOW",
+ /* 252 */ "SLIDING",
+ /* 253 */ "FILL",
+ /* 254 */ "VALUE",
+ /* 255 */ "VALUE_F",
+ /* 256 */ "NONE",
+ /* 257 */ "PREV",
+ /* 258 */ "NULL_F",
+ /* 259 */ "LINEAR",
+ /* 260 */ "NEXT",
+ /* 261 */ "HAVING",
+ /* 262 */ "RANGE",
+ /* 263 */ "EVERY",
+ /* 264 */ "ORDER",
+ /* 265 */ "SLIMIT",
+ /* 266 */ "SOFFSET",
+ /* 267 */ "LIMIT",
+ /* 268 */ "OFFSET",
+ /* 269 */ "ASC",
+ /* 270 */ "NULLS",
+ /* 271 */ "ABORT",
+ /* 272 */ "AFTER",
+ /* 273 */ "ATTACH",
+ /* 274 */ "BEFORE",
+ /* 275 */ "BEGIN",
+ /* 276 */ "BITAND",
+ /* 277 */ "BITNOT",
+ /* 278 */ "BITOR",
+ /* 279 */ "BLOCKS",
+ /* 280 */ "CHANGE",
+ /* 281 */ "COMMA",
+ /* 282 */ "COMPACT",
+ /* 283 */ "CONCAT",
+ /* 284 */ "CONFLICT",
+ /* 285 */ "COPY",
+ /* 286 */ "DEFERRED",
+ /* 287 */ "DELIMITERS",
+ /* 288 */ "DETACH",
+ /* 289 */ "DIVIDE",
+ /* 290 */ "DOT",
+ /* 291 */ "EACH",
+ /* 292 */ "FAIL",
+ /* 293 */ "FILE",
+ /* 294 */ "FOR",
+ /* 295 */ "GLOB",
+ /* 296 */ "ID",
+ /* 297 */ "IMMEDIATE",
+ /* 298 */ "IMPORT",
+ /* 299 */ "INITIALLY",
+ /* 300 */ "INSTEAD",
+ /* 301 */ "ISNULL",
+ /* 302 */ "KEY",
+ /* 303 */ "MODULES",
+ /* 304 */ "NK_BITNOT",
+ /* 305 */ "NK_SEMI",
+ /* 306 */ "NOTNULL",
+ /* 307 */ "OF",
+ /* 308 */ "PLUS",
+ /* 309 */ "PRIVILEGE",
+ /* 310 */ "RAISE",
+ /* 311 */ "REPLACE",
+ /* 312 */ "RESTRICT",
+ /* 313 */ "ROW",
+ /* 314 */ "SEMI",
+ /* 315 */ "STAR",
+ /* 316 */ "STATEMENT",
+ /* 317 */ "STRICT",
+ /* 318 */ "STRING",
+ /* 319 */ "TIMES",
+ /* 320 */ "VALUES",
+ /* 321 */ "VARIABLE",
+ /* 322 */ "VIEW",
+ /* 323 */ "WAL",
+ /* 324 */ "cmd",
+ /* 325 */ "account_options",
+ /* 326 */ "alter_account_options",
+ /* 327 */ "literal",
+ /* 328 */ "alter_account_option",
+ /* 329 */ "user_name",
+ /* 330 */ "sysinfo_opt",
+ /* 331 */ "privileges",
+ /* 332 */ "priv_level",
+ /* 333 */ "priv_type_list",
+ /* 334 */ "priv_type",
+ /* 335 */ "db_name",
+ /* 336 */ "topic_name",
+ /* 337 */ "dnode_endpoint",
+ /* 338 */ "force_opt",
+ /* 339 */ "not_exists_opt",
+ /* 340 */ "db_options",
+ /* 341 */ "exists_opt",
+ /* 342 */ "alter_db_options",
+ /* 343 */ "speed_opt",
+ /* 344 */ "integer_list",
+ /* 345 */ "variable_list",
+ /* 346 */ "retention_list",
+ /* 347 */ "alter_db_option",
+ /* 348 */ "retention",
+ /* 349 */ "full_table_name",
+ /* 350 */ "column_def_list",
+ /* 351 */ "tags_def_opt",
+ /* 352 */ "table_options",
+ /* 353 */ "multi_create_clause",
+ /* 354 */ "tags_def",
+ /* 355 */ "multi_drop_clause",
+ /* 356 */ "alter_table_clause",
+ /* 357 */ "alter_table_options",
+ /* 358 */ "column_name",
+ /* 359 */ "type_name",
+ /* 360 */ "signed_literal",
+ /* 361 */ "create_subtable_clause",
+ /* 362 */ "specific_cols_opt",
+ /* 363 */ "expression_list",
+ /* 364 */ "drop_table_clause",
+ /* 365 */ "col_name_list",
+ /* 366 */ "table_name",
+ /* 367 */ "column_def",
+ /* 368 */ "duration_list",
+ /* 369 */ "rollup_func_list",
+ /* 370 */ "alter_table_option",
+ /* 371 */ "duration_literal",
+ /* 372 */ "rollup_func_name",
+ /* 373 */ "function_name",
+ /* 374 */ "col_name",
+ /* 375 */ "db_name_cond_opt",
+ /* 376 */ "like_pattern_opt",
+ /* 377 */ "table_name_cond",
+ /* 378 */ "from_db_opt",
+ /* 379 */ "tag_list_opt",
+ /* 380 */ "tag_item",
+ /* 381 */ "column_alias",
+ /* 382 */ "full_index_name",
+ /* 383 */ "index_options",
+ /* 384 */ "index_name",
+ /* 385 */ "func_list",
+ /* 386 */ "sliding_opt",
+ /* 387 */ "sma_stream_opt",
+ /* 388 */ "func",
+ /* 389 */ "query_or_subquery",
+ /* 390 */ "cgroup_name",
+ /* 391 */ "analyze_opt",
+ /* 392 */ "explain_options",
+ /* 393 */ "agg_func_opt",
+ /* 394 */ "bufsize_opt",
+ /* 395 */ "stream_name",
+ /* 396 */ "stream_options",
+ /* 397 */ "subtable_opt",
+ /* 398 */ "expression",
+ /* 399 */ "dnode_list",
+ /* 400 */ "where_clause_opt",
+ /* 401 */ "signed",
+ /* 402 */ "literal_func",
+ /* 403 */ "literal_list",
+ /* 404 */ "table_alias",
+ /* 405 */ "expr_or_subquery",
+ /* 406 */ "pseudo_column",
+ /* 407 */ "column_reference",
+ /* 408 */ "function_expression",
+ /* 409 */ "case_when_expression",
+ /* 410 */ "star_func",
+ /* 411 */ "star_func_para_list",
+ /* 412 */ "noarg_func",
+ /* 413 */ "other_para_list",
+ /* 414 */ "star_func_para",
+ /* 415 */ "when_then_list",
+ /* 416 */ "case_when_else_opt",
+ /* 417 */ "common_expression",
+ /* 418 */ "when_then_expr",
+ /* 419 */ "predicate",
+ /* 420 */ "compare_op",
+ /* 421 */ "in_op",
+ /* 422 */ "in_predicate_value",
+ /* 423 */ "boolean_value_expression",
+ /* 424 */ "boolean_primary",
+ /* 425 */ "from_clause_opt",
+ /* 426 */ "table_reference_list",
+ /* 427 */ "table_reference",
+ /* 428 */ "table_primary",
+ /* 429 */ "joined_table",
+ /* 430 */ "alias_opt",
+ /* 431 */ "subquery",
+ /* 432 */ "parenthesized_joined_table",
+ /* 433 */ "join_type",
+ /* 434 */ "search_condition",
+ /* 435 */ "query_specification",
+ /* 436 */ "set_quantifier_opt",
+ /* 437 */ "select_list",
+ /* 438 */ "partition_by_clause_opt",
+ /* 439 */ "range_opt",
+ /* 440 */ "every_opt",
+ /* 441 */ "fill_opt",
+ /* 442 */ "twindow_clause_opt",
+ /* 443 */ "group_by_clause_opt",
+ /* 444 */ "having_clause_opt",
+ /* 445 */ "select_item",
+ /* 446 */ "partition_list",
+ /* 447 */ "partition_item",
+ /* 448 */ "fill_mode",
+ /* 449 */ "group_by_list",
+ /* 450 */ "query_expression",
+ /* 451 */ "query_simple",
+ /* 452 */ "order_by_clause_opt",
+ /* 453 */ "slimit_clause_opt",
+ /* 454 */ "limit_clause_opt",
+ /* 455 */ "union_query_expression",
+ /* 456 */ "query_simple_or_subquery",
+ /* 457 */ "sort_specification_list",
+ /* 458 */ "sort_specification",
+ /* 459 */ "ordering_specification_opt",
+ /* 460 */ "null_ordering_opt",
};
#endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */
@@ -2151,243 +2157,246 @@ static const char *const yyRuleName[] = {
/* 302 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER",
/* 303 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER",
/* 304 */ "stream_options ::= stream_options DELETE_MARK duration_literal",
- /* 305 */ "subtable_opt ::=",
- /* 306 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP",
- /* 307 */ "cmd ::= KILL CONNECTION NK_INTEGER",
- /* 308 */ "cmd ::= KILL QUERY NK_STRING",
- /* 309 */ "cmd ::= KILL TRANSACTION NK_INTEGER",
- /* 310 */ "cmd ::= BALANCE VGROUP",
- /* 311 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER",
- /* 312 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list",
- /* 313 */ "cmd ::= SPLIT VGROUP NK_INTEGER",
- /* 314 */ "dnode_list ::= DNODE NK_INTEGER",
- /* 315 */ "dnode_list ::= dnode_list DNODE NK_INTEGER",
- /* 316 */ "cmd ::= DELETE FROM full_table_name where_clause_opt",
- /* 317 */ "cmd ::= query_or_subquery",
- /* 318 */ "cmd ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery",
- /* 319 */ "cmd ::= INSERT INTO full_table_name query_or_subquery",
- /* 320 */ "literal ::= NK_INTEGER",
- /* 321 */ "literal ::= NK_FLOAT",
- /* 322 */ "literal ::= NK_STRING",
- /* 323 */ "literal ::= NK_BOOL",
- /* 324 */ "literal ::= TIMESTAMP NK_STRING",
- /* 325 */ "literal ::= duration_literal",
- /* 326 */ "literal ::= NULL",
- /* 327 */ "literal ::= NK_QUESTION",
- /* 328 */ "duration_literal ::= NK_VARIABLE",
- /* 329 */ "signed ::= NK_INTEGER",
- /* 330 */ "signed ::= NK_PLUS NK_INTEGER",
- /* 331 */ "signed ::= NK_MINUS NK_INTEGER",
- /* 332 */ "signed ::= NK_FLOAT",
- /* 333 */ "signed ::= NK_PLUS NK_FLOAT",
- /* 334 */ "signed ::= NK_MINUS NK_FLOAT",
- /* 335 */ "signed_literal ::= signed",
- /* 336 */ "signed_literal ::= NK_STRING",
- /* 337 */ "signed_literal ::= NK_BOOL",
- /* 338 */ "signed_literal ::= TIMESTAMP NK_STRING",
- /* 339 */ "signed_literal ::= duration_literal",
- /* 340 */ "signed_literal ::= NULL",
- /* 341 */ "signed_literal ::= literal_func",
- /* 342 */ "signed_literal ::= NK_QUESTION",
- /* 343 */ "literal_list ::= signed_literal",
- /* 344 */ "literal_list ::= literal_list NK_COMMA signed_literal",
- /* 345 */ "db_name ::= NK_ID",
- /* 346 */ "table_name ::= NK_ID",
- /* 347 */ "column_name ::= NK_ID",
- /* 348 */ "function_name ::= NK_ID",
- /* 349 */ "table_alias ::= NK_ID",
- /* 350 */ "column_alias ::= NK_ID",
- /* 351 */ "user_name ::= NK_ID",
- /* 352 */ "topic_name ::= NK_ID",
- /* 353 */ "stream_name ::= NK_ID",
- /* 354 */ "cgroup_name ::= NK_ID",
- /* 355 */ "index_name ::= NK_ID",
- /* 356 */ "expr_or_subquery ::= expression",
- /* 357 */ "expression ::= literal",
- /* 358 */ "expression ::= pseudo_column",
- /* 359 */ "expression ::= column_reference",
- /* 360 */ "expression ::= function_expression",
- /* 361 */ "expression ::= case_when_expression",
- /* 362 */ "expression ::= NK_LP expression NK_RP",
- /* 363 */ "expression ::= NK_PLUS expr_or_subquery",
- /* 364 */ "expression ::= NK_MINUS expr_or_subquery",
- /* 365 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery",
- /* 366 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery",
- /* 367 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery",
- /* 368 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery",
- /* 369 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery",
- /* 370 */ "expression ::= column_reference NK_ARROW NK_STRING",
- /* 371 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery",
- /* 372 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery",
- /* 373 */ "expression_list ::= expr_or_subquery",
- /* 374 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery",
- /* 375 */ "column_reference ::= column_name",
- /* 376 */ "column_reference ::= table_name NK_DOT column_name",
- /* 377 */ "pseudo_column ::= ROWTS",
- /* 378 */ "pseudo_column ::= TBNAME",
- /* 379 */ "pseudo_column ::= table_name NK_DOT TBNAME",
- /* 380 */ "pseudo_column ::= QSTART",
- /* 381 */ "pseudo_column ::= QEND",
- /* 382 */ "pseudo_column ::= QDURATION",
- /* 383 */ "pseudo_column ::= WSTART",
- /* 384 */ "pseudo_column ::= WEND",
- /* 385 */ "pseudo_column ::= WDURATION",
- /* 386 */ "pseudo_column ::= IROWTS",
- /* 387 */ "pseudo_column ::= QTAGS",
- /* 388 */ "function_expression ::= function_name NK_LP expression_list NK_RP",
- /* 389 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP",
- /* 390 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP",
- /* 391 */ "function_expression ::= literal_func",
- /* 392 */ "literal_func ::= noarg_func NK_LP NK_RP",
- /* 393 */ "literal_func ::= NOW",
- /* 394 */ "noarg_func ::= NOW",
- /* 395 */ "noarg_func ::= TODAY",
- /* 396 */ "noarg_func ::= TIMEZONE",
- /* 397 */ "noarg_func ::= DATABASE",
- /* 398 */ "noarg_func ::= CLIENT_VERSION",
- /* 399 */ "noarg_func ::= SERVER_VERSION",
- /* 400 */ "noarg_func ::= SERVER_STATUS",
- /* 401 */ "noarg_func ::= CURRENT_USER",
- /* 402 */ "noarg_func ::= USER",
- /* 403 */ "star_func ::= COUNT",
- /* 404 */ "star_func ::= FIRST",
- /* 405 */ "star_func ::= LAST",
- /* 406 */ "star_func ::= LAST_ROW",
- /* 407 */ "star_func_para_list ::= NK_STAR",
- /* 408 */ "star_func_para_list ::= other_para_list",
- /* 409 */ "other_para_list ::= star_func_para",
- /* 410 */ "other_para_list ::= other_para_list NK_COMMA star_func_para",
- /* 411 */ "star_func_para ::= expr_or_subquery",
- /* 412 */ "star_func_para ::= table_name NK_DOT NK_STAR",
- /* 413 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END",
- /* 414 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END",
- /* 415 */ "when_then_list ::= when_then_expr",
- /* 416 */ "when_then_list ::= when_then_list when_then_expr",
- /* 417 */ "when_then_expr ::= WHEN common_expression THEN common_expression",
- /* 418 */ "case_when_else_opt ::=",
- /* 419 */ "case_when_else_opt ::= ELSE common_expression",
- /* 420 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery",
- /* 421 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery",
- /* 422 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery",
- /* 423 */ "predicate ::= expr_or_subquery IS NULL",
- /* 424 */ "predicate ::= expr_or_subquery IS NOT NULL",
- /* 425 */ "predicate ::= expr_or_subquery in_op in_predicate_value",
- /* 426 */ "compare_op ::= NK_LT",
- /* 427 */ "compare_op ::= NK_GT",
- /* 428 */ "compare_op ::= NK_LE",
- /* 429 */ "compare_op ::= NK_GE",
- /* 430 */ "compare_op ::= NK_NE",
- /* 431 */ "compare_op ::= NK_EQ",
- /* 432 */ "compare_op ::= LIKE",
- /* 433 */ "compare_op ::= NOT LIKE",
- /* 434 */ "compare_op ::= MATCH",
- /* 435 */ "compare_op ::= NMATCH",
- /* 436 */ "compare_op ::= CONTAINS",
- /* 437 */ "in_op ::= IN",
- /* 438 */ "in_op ::= NOT IN",
- /* 439 */ "in_predicate_value ::= NK_LP literal_list NK_RP",
- /* 440 */ "boolean_value_expression ::= boolean_primary",
- /* 441 */ "boolean_value_expression ::= NOT boolean_primary",
- /* 442 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression",
- /* 443 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression",
- /* 444 */ "boolean_primary ::= predicate",
- /* 445 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP",
- /* 446 */ "common_expression ::= expr_or_subquery",
- /* 447 */ "common_expression ::= boolean_value_expression",
- /* 448 */ "from_clause_opt ::=",
- /* 449 */ "from_clause_opt ::= FROM table_reference_list",
- /* 450 */ "table_reference_list ::= table_reference",
- /* 451 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference",
- /* 452 */ "table_reference ::= table_primary",
- /* 453 */ "table_reference ::= joined_table",
- /* 454 */ "table_primary ::= table_name alias_opt",
- /* 455 */ "table_primary ::= db_name NK_DOT table_name alias_opt",
- /* 456 */ "table_primary ::= subquery alias_opt",
- /* 457 */ "table_primary ::= parenthesized_joined_table",
- /* 458 */ "alias_opt ::=",
- /* 459 */ "alias_opt ::= table_alias",
- /* 460 */ "alias_opt ::= AS table_alias",
- /* 461 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP",
- /* 462 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP",
- /* 463 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition",
- /* 464 */ "join_type ::=",
- /* 465 */ "join_type ::= INNER",
- /* 466 */ "query_specification ::= SELECT set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt",
- /* 467 */ "set_quantifier_opt ::=",
- /* 468 */ "set_quantifier_opt ::= DISTINCT",
- /* 469 */ "set_quantifier_opt ::= ALL",
- /* 470 */ "select_list ::= select_item",
- /* 471 */ "select_list ::= select_list NK_COMMA select_item",
- /* 472 */ "select_item ::= NK_STAR",
- /* 473 */ "select_item ::= common_expression",
- /* 474 */ "select_item ::= common_expression column_alias",
- /* 475 */ "select_item ::= common_expression AS column_alias",
- /* 476 */ "select_item ::= table_name NK_DOT NK_STAR",
- /* 477 */ "where_clause_opt ::=",
- /* 478 */ "where_clause_opt ::= WHERE search_condition",
- /* 479 */ "partition_by_clause_opt ::=",
- /* 480 */ "partition_by_clause_opt ::= PARTITION BY partition_list",
- /* 481 */ "partition_list ::= partition_item",
- /* 482 */ "partition_list ::= partition_list NK_COMMA partition_item",
- /* 483 */ "partition_item ::= expr_or_subquery",
- /* 484 */ "partition_item ::= expr_or_subquery column_alias",
- /* 485 */ "partition_item ::= expr_or_subquery AS column_alias",
- /* 486 */ "twindow_clause_opt ::=",
- /* 487 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP",
- /* 488 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP",
- /* 489 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt",
- /* 490 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt",
- /* 491 */ "sliding_opt ::=",
- /* 492 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP",
- /* 493 */ "fill_opt ::=",
- /* 494 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP",
- /* 495 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP",
- /* 496 */ "fill_mode ::= NONE",
- /* 497 */ "fill_mode ::= PREV",
- /* 498 */ "fill_mode ::= NULL",
- /* 499 */ "fill_mode ::= LINEAR",
- /* 500 */ "fill_mode ::= NEXT",
- /* 501 */ "group_by_clause_opt ::=",
- /* 502 */ "group_by_clause_opt ::= GROUP BY group_by_list",
- /* 503 */ "group_by_list ::= expr_or_subquery",
- /* 504 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery",
- /* 505 */ "having_clause_opt ::=",
- /* 506 */ "having_clause_opt ::= HAVING search_condition",
- /* 507 */ "range_opt ::=",
- /* 508 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP",
- /* 509 */ "every_opt ::=",
- /* 510 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP",
- /* 511 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt",
- /* 512 */ "query_simple ::= query_specification",
- /* 513 */ "query_simple ::= union_query_expression",
- /* 514 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery",
- /* 515 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery",
- /* 516 */ "query_simple_or_subquery ::= query_simple",
- /* 517 */ "query_simple_or_subquery ::= subquery",
- /* 518 */ "query_or_subquery ::= query_expression",
- /* 519 */ "query_or_subquery ::= subquery",
- /* 520 */ "order_by_clause_opt ::=",
- /* 521 */ "order_by_clause_opt ::= ORDER BY sort_specification_list",
- /* 522 */ "slimit_clause_opt ::=",
- /* 523 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER",
- /* 524 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER",
- /* 525 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER",
- /* 526 */ "limit_clause_opt ::=",
- /* 527 */ "limit_clause_opt ::= LIMIT NK_INTEGER",
- /* 528 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER",
- /* 529 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER",
- /* 530 */ "subquery ::= NK_LP query_expression NK_RP",
- /* 531 */ "subquery ::= NK_LP subquery NK_RP",
- /* 532 */ "search_condition ::= common_expression",
- /* 533 */ "sort_specification_list ::= sort_specification",
- /* 534 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification",
- /* 535 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt",
- /* 536 */ "ordering_specification_opt ::=",
- /* 537 */ "ordering_specification_opt ::= ASC",
- /* 538 */ "ordering_specification_opt ::= DESC",
- /* 539 */ "null_ordering_opt ::=",
- /* 540 */ "null_ordering_opt ::= NULLS FIRST",
- /* 541 */ "null_ordering_opt ::= NULLS LAST",
+ /* 305 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER",
+ /* 306 */ "subtable_opt ::=",
+ /* 307 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP",
+ /* 308 */ "cmd ::= KILL CONNECTION NK_INTEGER",
+ /* 309 */ "cmd ::= KILL QUERY NK_STRING",
+ /* 310 */ "cmd ::= KILL TRANSACTION NK_INTEGER",
+ /* 311 */ "cmd ::= BALANCE VGROUP",
+ /* 312 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER",
+ /* 313 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list",
+ /* 314 */ "cmd ::= SPLIT VGROUP NK_INTEGER",
+ /* 315 */ "dnode_list ::= DNODE NK_INTEGER",
+ /* 316 */ "dnode_list ::= dnode_list DNODE NK_INTEGER",
+ /* 317 */ "cmd ::= DELETE FROM full_table_name where_clause_opt",
+ /* 318 */ "cmd ::= query_or_subquery",
+ /* 319 */ "cmd ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery",
+ /* 320 */ "cmd ::= INSERT INTO full_table_name query_or_subquery",
+ /* 321 */ "literal ::= NK_INTEGER",
+ /* 322 */ "literal ::= NK_FLOAT",
+ /* 323 */ "literal ::= NK_STRING",
+ /* 324 */ "literal ::= NK_BOOL",
+ /* 325 */ "literal ::= TIMESTAMP NK_STRING",
+ /* 326 */ "literal ::= duration_literal",
+ /* 327 */ "literal ::= NULL",
+ /* 328 */ "literal ::= NK_QUESTION",
+ /* 329 */ "duration_literal ::= NK_VARIABLE",
+ /* 330 */ "signed ::= NK_INTEGER",
+ /* 331 */ "signed ::= NK_PLUS NK_INTEGER",
+ /* 332 */ "signed ::= NK_MINUS NK_INTEGER",
+ /* 333 */ "signed ::= NK_FLOAT",
+ /* 334 */ "signed ::= NK_PLUS NK_FLOAT",
+ /* 335 */ "signed ::= NK_MINUS NK_FLOAT",
+ /* 336 */ "signed_literal ::= signed",
+ /* 337 */ "signed_literal ::= NK_STRING",
+ /* 338 */ "signed_literal ::= NK_BOOL",
+ /* 339 */ "signed_literal ::= TIMESTAMP NK_STRING",
+ /* 340 */ "signed_literal ::= duration_literal",
+ /* 341 */ "signed_literal ::= NULL",
+ /* 342 */ "signed_literal ::= literal_func",
+ /* 343 */ "signed_literal ::= NK_QUESTION",
+ /* 344 */ "literal_list ::= signed_literal",
+ /* 345 */ "literal_list ::= literal_list NK_COMMA signed_literal",
+ /* 346 */ "db_name ::= NK_ID",
+ /* 347 */ "table_name ::= NK_ID",
+ /* 348 */ "column_name ::= NK_ID",
+ /* 349 */ "function_name ::= NK_ID",
+ /* 350 */ "table_alias ::= NK_ID",
+ /* 351 */ "column_alias ::= NK_ID",
+ /* 352 */ "user_name ::= NK_ID",
+ /* 353 */ "topic_name ::= NK_ID",
+ /* 354 */ "stream_name ::= NK_ID",
+ /* 355 */ "cgroup_name ::= NK_ID",
+ /* 356 */ "index_name ::= NK_ID",
+ /* 357 */ "expr_or_subquery ::= expression",
+ /* 358 */ "expression ::= literal",
+ /* 359 */ "expression ::= pseudo_column",
+ /* 360 */ "expression ::= column_reference",
+ /* 361 */ "expression ::= function_expression",
+ /* 362 */ "expression ::= case_when_expression",
+ /* 363 */ "expression ::= NK_LP expression NK_RP",
+ /* 364 */ "expression ::= NK_PLUS expr_or_subquery",
+ /* 365 */ "expression ::= NK_MINUS expr_or_subquery",
+ /* 366 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery",
+ /* 367 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery",
+ /* 368 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery",
+ /* 369 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery",
+ /* 370 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery",
+ /* 371 */ "expression ::= column_reference NK_ARROW NK_STRING",
+ /* 372 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery",
+ /* 373 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery",
+ /* 374 */ "expression_list ::= expr_or_subquery",
+ /* 375 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery",
+ /* 376 */ "column_reference ::= column_name",
+ /* 377 */ "column_reference ::= table_name NK_DOT column_name",
+ /* 378 */ "pseudo_column ::= ROWTS",
+ /* 379 */ "pseudo_column ::= TBNAME",
+ /* 380 */ "pseudo_column ::= table_name NK_DOT TBNAME",
+ /* 381 */ "pseudo_column ::= QSTART",
+ /* 382 */ "pseudo_column ::= QEND",
+ /* 383 */ "pseudo_column ::= QDURATION",
+ /* 384 */ "pseudo_column ::= WSTART",
+ /* 385 */ "pseudo_column ::= WEND",
+ /* 386 */ "pseudo_column ::= WDURATION",
+ /* 387 */ "pseudo_column ::= IROWTS",
+ /* 388 */ "pseudo_column ::= QTAGS",
+ /* 389 */ "function_expression ::= function_name NK_LP expression_list NK_RP",
+ /* 390 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP",
+ /* 391 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP",
+ /* 392 */ "function_expression ::= literal_func",
+ /* 393 */ "literal_func ::= noarg_func NK_LP NK_RP",
+ /* 394 */ "literal_func ::= NOW",
+ /* 395 */ "noarg_func ::= NOW",
+ /* 396 */ "noarg_func ::= TODAY",
+ /* 397 */ "noarg_func ::= TIMEZONE",
+ /* 398 */ "noarg_func ::= DATABASE",
+ /* 399 */ "noarg_func ::= CLIENT_VERSION",
+ /* 400 */ "noarg_func ::= SERVER_VERSION",
+ /* 401 */ "noarg_func ::= SERVER_STATUS",
+ /* 402 */ "noarg_func ::= CURRENT_USER",
+ /* 403 */ "noarg_func ::= USER",
+ /* 404 */ "star_func ::= COUNT",
+ /* 405 */ "star_func ::= FIRST",
+ /* 406 */ "star_func ::= LAST",
+ /* 407 */ "star_func ::= LAST_ROW",
+ /* 408 */ "star_func_para_list ::= NK_STAR",
+ /* 409 */ "star_func_para_list ::= other_para_list",
+ /* 410 */ "other_para_list ::= star_func_para",
+ /* 411 */ "other_para_list ::= other_para_list NK_COMMA star_func_para",
+ /* 412 */ "star_func_para ::= expr_or_subquery",
+ /* 413 */ "star_func_para ::= table_name NK_DOT NK_STAR",
+ /* 414 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END",
+ /* 415 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END",
+ /* 416 */ "when_then_list ::= when_then_expr",
+ /* 417 */ "when_then_list ::= when_then_list when_then_expr",
+ /* 418 */ "when_then_expr ::= WHEN common_expression THEN common_expression",
+ /* 419 */ "case_when_else_opt ::=",
+ /* 420 */ "case_when_else_opt ::= ELSE common_expression",
+ /* 421 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery",
+ /* 422 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery",
+ /* 423 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery",
+ /* 424 */ "predicate ::= expr_or_subquery IS NULL",
+ /* 425 */ "predicate ::= expr_or_subquery IS NOT NULL",
+ /* 426 */ "predicate ::= expr_or_subquery in_op in_predicate_value",
+ /* 427 */ "compare_op ::= NK_LT",
+ /* 428 */ "compare_op ::= NK_GT",
+ /* 429 */ "compare_op ::= NK_LE",
+ /* 430 */ "compare_op ::= NK_GE",
+ /* 431 */ "compare_op ::= NK_NE",
+ /* 432 */ "compare_op ::= NK_EQ",
+ /* 433 */ "compare_op ::= LIKE",
+ /* 434 */ "compare_op ::= NOT LIKE",
+ /* 435 */ "compare_op ::= MATCH",
+ /* 436 */ "compare_op ::= NMATCH",
+ /* 437 */ "compare_op ::= CONTAINS",
+ /* 438 */ "in_op ::= IN",
+ /* 439 */ "in_op ::= NOT IN",
+ /* 440 */ "in_predicate_value ::= NK_LP literal_list NK_RP",
+ /* 441 */ "boolean_value_expression ::= boolean_primary",
+ /* 442 */ "boolean_value_expression ::= NOT boolean_primary",
+ /* 443 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression",
+ /* 444 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression",
+ /* 445 */ "boolean_primary ::= predicate",
+ /* 446 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP",
+ /* 447 */ "common_expression ::= expr_or_subquery",
+ /* 448 */ "common_expression ::= boolean_value_expression",
+ /* 449 */ "from_clause_opt ::=",
+ /* 450 */ "from_clause_opt ::= FROM table_reference_list",
+ /* 451 */ "table_reference_list ::= table_reference",
+ /* 452 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference",
+ /* 453 */ "table_reference ::= table_primary",
+ /* 454 */ "table_reference ::= joined_table",
+ /* 455 */ "table_primary ::= table_name alias_opt",
+ /* 456 */ "table_primary ::= db_name NK_DOT table_name alias_opt",
+ /* 457 */ "table_primary ::= subquery alias_opt",
+ /* 458 */ "table_primary ::= parenthesized_joined_table",
+ /* 459 */ "alias_opt ::=",
+ /* 460 */ "alias_opt ::= table_alias",
+ /* 461 */ "alias_opt ::= AS table_alias",
+ /* 462 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP",
+ /* 463 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP",
+ /* 464 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition",
+ /* 465 */ "join_type ::=",
+ /* 466 */ "join_type ::= INNER",
+ /* 467 */ "query_specification ::= SELECT set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt",
+ /* 468 */ "set_quantifier_opt ::=",
+ /* 469 */ "set_quantifier_opt ::= DISTINCT",
+ /* 470 */ "set_quantifier_opt ::= ALL",
+ /* 471 */ "select_list ::= select_item",
+ /* 472 */ "select_list ::= select_list NK_COMMA select_item",
+ /* 473 */ "select_item ::= NK_STAR",
+ /* 474 */ "select_item ::= common_expression",
+ /* 475 */ "select_item ::= common_expression column_alias",
+ /* 476 */ "select_item ::= common_expression AS column_alias",
+ /* 477 */ "select_item ::= table_name NK_DOT NK_STAR",
+ /* 478 */ "where_clause_opt ::=",
+ /* 479 */ "where_clause_opt ::= WHERE search_condition",
+ /* 480 */ "partition_by_clause_opt ::=",
+ /* 481 */ "partition_by_clause_opt ::= PARTITION BY partition_list",
+ /* 482 */ "partition_list ::= partition_item",
+ /* 483 */ "partition_list ::= partition_list NK_COMMA partition_item",
+ /* 484 */ "partition_item ::= expr_or_subquery",
+ /* 485 */ "partition_item ::= expr_or_subquery column_alias",
+ /* 486 */ "partition_item ::= expr_or_subquery AS column_alias",
+ /* 487 */ "twindow_clause_opt ::=",
+ /* 488 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP",
+ /* 489 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP",
+ /* 490 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt",
+ /* 491 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt",
+ /* 492 */ "sliding_opt ::=",
+ /* 493 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP",
+ /* 494 */ "fill_opt ::=",
+ /* 495 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP",
+ /* 496 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP",
+ /* 497 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA literal_list NK_RP",
+ /* 498 */ "fill_mode ::= NONE",
+ /* 499 */ "fill_mode ::= PREV",
+ /* 500 */ "fill_mode ::= NULL",
+ /* 501 */ "fill_mode ::= NULL_F",
+ /* 502 */ "fill_mode ::= LINEAR",
+ /* 503 */ "fill_mode ::= NEXT",
+ /* 504 */ "group_by_clause_opt ::=",
+ /* 505 */ "group_by_clause_opt ::= GROUP BY group_by_list",
+ /* 506 */ "group_by_list ::= expr_or_subquery",
+ /* 507 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery",
+ /* 508 */ "having_clause_opt ::=",
+ /* 509 */ "having_clause_opt ::= HAVING search_condition",
+ /* 510 */ "range_opt ::=",
+ /* 511 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP",
+ /* 512 */ "every_opt ::=",
+ /* 513 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP",
+ /* 514 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt",
+ /* 515 */ "query_simple ::= query_specification",
+ /* 516 */ "query_simple ::= union_query_expression",
+ /* 517 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery",
+ /* 518 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery",
+ /* 519 */ "query_simple_or_subquery ::= query_simple",
+ /* 520 */ "query_simple_or_subquery ::= subquery",
+ /* 521 */ "query_or_subquery ::= query_expression",
+ /* 522 */ "query_or_subquery ::= subquery",
+ /* 523 */ "order_by_clause_opt ::=",
+ /* 524 */ "order_by_clause_opt ::= ORDER BY sort_specification_list",
+ /* 525 */ "slimit_clause_opt ::=",
+ /* 526 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER",
+ /* 527 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER",
+ /* 528 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER",
+ /* 529 */ "limit_clause_opt ::=",
+ /* 530 */ "limit_clause_opt ::= LIMIT NK_INTEGER",
+ /* 531 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER",
+ /* 532 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER",
+ /* 533 */ "subquery ::= NK_LP query_expression NK_RP",
+ /* 534 */ "subquery ::= NK_LP subquery NK_RP",
+ /* 535 */ "search_condition ::= common_expression",
+ /* 536 */ "sort_specification_list ::= sort_specification",
+ /* 537 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification",
+ /* 538 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt",
+ /* 539 */ "ordering_specification_opt ::=",
+ /* 540 */ "ordering_specification_opt ::= ASC",
+ /* 541 */ "ordering_specification_opt ::= DESC",
+ /* 542 */ "null_ordering_opt ::=",
+ /* 543 */ "null_ordering_opt ::= NULLS FIRST",
+ /* 544 */ "null_ordering_opt ::= NULLS LAST",
};
#endif /* NDEBUG */
@@ -2514,195 +2523,195 @@ static void yy_destructor(
*/
/********* Begin destructor definitions ***************************************/
/* Default NON-TERMINAL Destructor */
- case 322: /* cmd */
- case 325: /* literal */
- case 338: /* db_options */
- case 340: /* alter_db_options */
- case 346: /* retention */
- case 347: /* full_table_name */
- case 350: /* table_options */
- case 354: /* alter_table_clause */
- case 355: /* alter_table_options */
- case 358: /* signed_literal */
- case 359: /* create_subtable_clause */
- case 362: /* drop_table_clause */
- case 365: /* column_def */
- case 369: /* duration_literal */
- case 370: /* rollup_func_name */
- case 372: /* col_name */
- case 373: /* db_name_cond_opt */
- case 374: /* like_pattern_opt */
- case 375: /* table_name_cond */
- case 376: /* from_db_opt */
- case 378: /* tag_item */
- case 380: /* full_index_name */
- case 381: /* index_options */
- case 384: /* sliding_opt */
- case 385: /* sma_stream_opt */
- case 386: /* func */
- case 387: /* query_or_subquery */
- case 390: /* explain_options */
- case 394: /* stream_options */
- case 395: /* subtable_opt */
- case 396: /* expression */
- case 398: /* where_clause_opt */
- case 399: /* signed */
- case 400: /* literal_func */
- case 403: /* expr_or_subquery */
- case 404: /* pseudo_column */
- case 405: /* column_reference */
- case 406: /* function_expression */
- case 407: /* case_when_expression */
- case 412: /* star_func_para */
- case 414: /* case_when_else_opt */
- case 415: /* common_expression */
- case 416: /* when_then_expr */
- case 417: /* predicate */
- case 420: /* in_predicate_value */
- case 421: /* boolean_value_expression */
- case 422: /* boolean_primary */
- case 423: /* from_clause_opt */
- case 424: /* table_reference_list */
- case 425: /* table_reference */
- case 426: /* table_primary */
- case 427: /* joined_table */
- case 429: /* subquery */
- case 430: /* parenthesized_joined_table */
- case 432: /* search_condition */
- case 433: /* query_specification */
- case 437: /* range_opt */
- case 438: /* every_opt */
- case 439: /* fill_opt */
- case 440: /* twindow_clause_opt */
- case 442: /* having_clause_opt */
- case 443: /* select_item */
- case 445: /* partition_item */
- case 448: /* query_expression */
- case 449: /* query_simple */
- case 451: /* slimit_clause_opt */
- case 452: /* limit_clause_opt */
- case 453: /* union_query_expression */
- case 454: /* query_simple_or_subquery */
- case 456: /* sort_specification */
+ case 324: /* cmd */
+ case 327: /* literal */
+ case 340: /* db_options */
+ case 342: /* alter_db_options */
+ case 348: /* retention */
+ case 349: /* full_table_name */
+ case 352: /* table_options */
+ case 356: /* alter_table_clause */
+ case 357: /* alter_table_options */
+ case 360: /* signed_literal */
+ case 361: /* create_subtable_clause */
+ case 364: /* drop_table_clause */
+ case 367: /* column_def */
+ case 371: /* duration_literal */
+ case 372: /* rollup_func_name */
+ case 374: /* col_name */
+ case 375: /* db_name_cond_opt */
+ case 376: /* like_pattern_opt */
+ case 377: /* table_name_cond */
+ case 378: /* from_db_opt */
+ case 380: /* tag_item */
+ case 382: /* full_index_name */
+ case 383: /* index_options */
+ case 386: /* sliding_opt */
+ case 387: /* sma_stream_opt */
+ case 388: /* func */
+ case 389: /* query_or_subquery */
+ case 392: /* explain_options */
+ case 396: /* stream_options */
+ case 397: /* subtable_opt */
+ case 398: /* expression */
+ case 400: /* where_clause_opt */
+ case 401: /* signed */
+ case 402: /* literal_func */
+ case 405: /* expr_or_subquery */
+ case 406: /* pseudo_column */
+ case 407: /* column_reference */
+ case 408: /* function_expression */
+ case 409: /* case_when_expression */
+ case 414: /* star_func_para */
+ case 416: /* case_when_else_opt */
+ case 417: /* common_expression */
+ case 418: /* when_then_expr */
+ case 419: /* predicate */
+ case 422: /* in_predicate_value */
+ case 423: /* boolean_value_expression */
+ case 424: /* boolean_primary */
+ case 425: /* from_clause_opt */
+ case 426: /* table_reference_list */
+ case 427: /* table_reference */
+ case 428: /* table_primary */
+ case 429: /* joined_table */
+ case 431: /* subquery */
+ case 432: /* parenthesized_joined_table */
+ case 434: /* search_condition */
+ case 435: /* query_specification */
+ case 439: /* range_opt */
+ case 440: /* every_opt */
+ case 441: /* fill_opt */
+ case 442: /* twindow_clause_opt */
+ case 444: /* having_clause_opt */
+ case 445: /* select_item */
+ case 447: /* partition_item */
+ case 450: /* query_expression */
+ case 451: /* query_simple */
+ case 453: /* slimit_clause_opt */
+ case 454: /* limit_clause_opt */
+ case 455: /* union_query_expression */
+ case 456: /* query_simple_or_subquery */
+ case 458: /* sort_specification */
{
- nodesDestroyNode((yypminor->yy74));
+ nodesDestroyNode((yypminor->yy600));
}
break;
- case 323: /* account_options */
- case 324: /* alter_account_options */
- case 326: /* alter_account_option */
- case 341: /* speed_opt */
- case 392: /* bufsize_opt */
+ case 325: /* account_options */
+ case 326: /* alter_account_options */
+ case 328: /* alter_account_option */
+ case 343: /* speed_opt */
+ case 394: /* bufsize_opt */
{
}
break;
- case 327: /* user_name */
- case 330: /* priv_level */
- case 333: /* db_name */
- case 334: /* topic_name */
- case 335: /* dnode_endpoint */
- case 356: /* column_name */
- case 364: /* table_name */
- case 371: /* function_name */
- case 379: /* column_alias */
- case 382: /* index_name */
- case 388: /* cgroup_name */
- case 393: /* stream_name */
- case 402: /* table_alias */
- case 408: /* star_func */
- case 410: /* noarg_func */
- case 428: /* alias_opt */
+ case 329: /* user_name */
+ case 332: /* priv_level */
+ case 335: /* db_name */
+ case 336: /* topic_name */
+ case 337: /* dnode_endpoint */
+ case 358: /* column_name */
+ case 366: /* table_name */
+ case 373: /* function_name */
+ case 381: /* column_alias */
+ case 384: /* index_name */
+ case 390: /* cgroup_name */
+ case 395: /* stream_name */
+ case 404: /* table_alias */
+ case 410: /* star_func */
+ case 412: /* noarg_func */
+ case 430: /* alias_opt */
{
}
break;
- case 328: /* sysinfo_opt */
+ case 330: /* sysinfo_opt */
{
}
break;
- case 329: /* privileges */
- case 331: /* priv_type_list */
- case 332: /* priv_type */
+ case 331: /* privileges */
+ case 333: /* priv_type_list */
+ case 334: /* priv_type */
{
}
break;
- case 336: /* force_opt */
- case 337: /* not_exists_opt */
- case 339: /* exists_opt */
- case 389: /* analyze_opt */
- case 391: /* agg_func_opt */
- case 434: /* set_quantifier_opt */
+ case 338: /* force_opt */
+ case 339: /* not_exists_opt */
+ case 341: /* exists_opt */
+ case 391: /* analyze_opt */
+ case 393: /* agg_func_opt */
+ case 436: /* set_quantifier_opt */
{
}
break;
- case 342: /* integer_list */
- case 343: /* variable_list */
- case 344: /* retention_list */
- case 348: /* column_def_list */
- case 349: /* tags_def_opt */
- case 351: /* multi_create_clause */
- case 352: /* tags_def */
- case 353: /* multi_drop_clause */
- case 360: /* specific_cols_opt */
- case 361: /* expression_list */
- case 363: /* col_name_list */
- case 366: /* duration_list */
- case 367: /* rollup_func_list */
- case 377: /* tag_list_opt */
- case 383: /* func_list */
- case 397: /* dnode_list */
- case 401: /* literal_list */
- case 409: /* star_func_para_list */
- case 411: /* other_para_list */
- case 413: /* when_then_list */
- case 435: /* select_list */
- case 436: /* partition_by_clause_opt */
- case 441: /* group_by_clause_opt */
- case 444: /* partition_list */
- case 447: /* group_by_list */
- case 450: /* order_by_clause_opt */
- case 455: /* sort_specification_list */
+ case 344: /* integer_list */
+ case 345: /* variable_list */
+ case 346: /* retention_list */
+ case 350: /* column_def_list */
+ case 351: /* tags_def_opt */
+ case 353: /* multi_create_clause */
+ case 354: /* tags_def */
+ case 355: /* multi_drop_clause */
+ case 362: /* specific_cols_opt */
+ case 363: /* expression_list */
+ case 365: /* col_name_list */
+ case 368: /* duration_list */
+ case 369: /* rollup_func_list */
+ case 379: /* tag_list_opt */
+ case 385: /* func_list */
+ case 399: /* dnode_list */
+ case 403: /* literal_list */
+ case 411: /* star_func_para_list */
+ case 413: /* other_para_list */
+ case 415: /* when_then_list */
+ case 437: /* select_list */
+ case 438: /* partition_by_clause_opt */
+ case 443: /* group_by_clause_opt */
+ case 446: /* partition_list */
+ case 449: /* group_by_list */
+ case 452: /* order_by_clause_opt */
+ case 457: /* sort_specification_list */
{
- nodesDestroyList((yypminor->yy874));
+ nodesDestroyList((yypminor->yy601));
}
break;
- case 345: /* alter_db_option */
- case 368: /* alter_table_option */
+ case 347: /* alter_db_option */
+ case 370: /* alter_table_option */
{
}
break;
- case 357: /* type_name */
+ case 359: /* type_name */
{
}
break;
- case 418: /* compare_op */
- case 419: /* in_op */
+ case 420: /* compare_op */
+ case 421: /* in_op */
{
}
break;
- case 431: /* join_type */
+ case 433: /* join_type */
{
}
break;
- case 446: /* fill_mode */
+ case 448: /* fill_mode */
{
}
break;
- case 457: /* ordering_specification_opt */
+ case 459: /* ordering_specification_opt */
{
}
break;
- case 458: /* null_ordering_opt */
+ case 460: /* null_ordering_opt */
{
}
@@ -3001,548 +3010,551 @@ static const struct {
YYCODETYPE lhs; /* Symbol on the left-hand side of the rule */
signed char nrhs; /* Negative of the number of RHS symbols in the rule */
} yyRuleInfo[] = {
- { 322, -6 }, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
- { 322, -4 }, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
- { 323, 0 }, /* (2) account_options ::= */
- { 323, -3 }, /* (3) account_options ::= account_options PPS literal */
- { 323, -3 }, /* (4) account_options ::= account_options TSERIES literal */
- { 323, -3 }, /* (5) account_options ::= account_options STORAGE literal */
- { 323, -3 }, /* (6) account_options ::= account_options STREAMS literal */
- { 323, -3 }, /* (7) account_options ::= account_options QTIME literal */
- { 323, -3 }, /* (8) account_options ::= account_options DBS literal */
- { 323, -3 }, /* (9) account_options ::= account_options USERS literal */
- { 323, -3 }, /* (10) account_options ::= account_options CONNS literal */
- { 323, -3 }, /* (11) account_options ::= account_options STATE literal */
- { 324, -1 }, /* (12) alter_account_options ::= alter_account_option */
- { 324, -2 }, /* (13) alter_account_options ::= alter_account_options alter_account_option */
- { 326, -2 }, /* (14) alter_account_option ::= PASS literal */
- { 326, -2 }, /* (15) alter_account_option ::= PPS literal */
- { 326, -2 }, /* (16) alter_account_option ::= TSERIES literal */
- { 326, -2 }, /* (17) alter_account_option ::= STORAGE literal */
- { 326, -2 }, /* (18) alter_account_option ::= STREAMS literal */
- { 326, -2 }, /* (19) alter_account_option ::= QTIME literal */
- { 326, -2 }, /* (20) alter_account_option ::= DBS literal */
- { 326, -2 }, /* (21) alter_account_option ::= USERS literal */
- { 326, -2 }, /* (22) alter_account_option ::= CONNS literal */
- { 326, -2 }, /* (23) alter_account_option ::= STATE literal */
- { 322, -6 }, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */
- { 322, -5 }, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */
- { 322, -5 }, /* (26) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
- { 322, -5 }, /* (27) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
- { 322, -3 }, /* (28) cmd ::= DROP USER user_name */
- { 328, 0 }, /* (29) sysinfo_opt ::= */
- { 328, -2 }, /* (30) sysinfo_opt ::= SYSINFO NK_INTEGER */
- { 322, -6 }, /* (31) cmd ::= GRANT privileges ON priv_level TO user_name */
- { 322, -6 }, /* (32) cmd ::= REVOKE privileges ON priv_level FROM user_name */
- { 329, -1 }, /* (33) privileges ::= ALL */
- { 329, -1 }, /* (34) privileges ::= priv_type_list */
- { 329, -1 }, /* (35) privileges ::= SUBSCRIBE */
- { 331, -1 }, /* (36) priv_type_list ::= priv_type */
- { 331, -3 }, /* (37) priv_type_list ::= priv_type_list NK_COMMA priv_type */
- { 332, -1 }, /* (38) priv_type ::= READ */
- { 332, -1 }, /* (39) priv_type ::= WRITE */
- { 330, -3 }, /* (40) priv_level ::= NK_STAR NK_DOT NK_STAR */
- { 330, -3 }, /* (41) priv_level ::= db_name NK_DOT NK_STAR */
- { 330, -1 }, /* (42) priv_level ::= topic_name */
- { 322, -3 }, /* (43) cmd ::= CREATE DNODE dnode_endpoint */
- { 322, -5 }, /* (44) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
- { 322, -4 }, /* (45) cmd ::= DROP DNODE NK_INTEGER force_opt */
- { 322, -4 }, /* (46) cmd ::= DROP DNODE dnode_endpoint force_opt */
- { 322, -4 }, /* (47) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
- { 322, -5 }, /* (48) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
- { 322, -4 }, /* (49) cmd ::= ALTER ALL DNODES NK_STRING */
- { 322, -5 }, /* (50) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
- { 335, -1 }, /* (51) dnode_endpoint ::= NK_STRING */
- { 335, -1 }, /* (52) dnode_endpoint ::= NK_ID */
- { 335, -1 }, /* (53) dnode_endpoint ::= NK_IPTOKEN */
- { 336, 0 }, /* (54) force_opt ::= */
- { 336, -1 }, /* (55) force_opt ::= FORCE */
- { 322, -3 }, /* (56) cmd ::= ALTER LOCAL NK_STRING */
- { 322, -4 }, /* (57) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
- { 322, -5 }, /* (58) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
- { 322, -5 }, /* (59) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
- { 322, -5 }, /* (60) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
- { 322, -5 }, /* (61) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
- { 322, -5 }, /* (62) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
- { 322, -5 }, /* (63) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
- { 322, -5 }, /* (64) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
- { 322, -5 }, /* (65) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
- { 322, -5 }, /* (66) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
- { 322, -4 }, /* (67) cmd ::= DROP DATABASE exists_opt db_name */
- { 322, -2 }, /* (68) cmd ::= USE db_name */
- { 322, -4 }, /* (69) cmd ::= ALTER DATABASE db_name alter_db_options */
- { 322, -3 }, /* (70) cmd ::= FLUSH DATABASE db_name */
- { 322, -4 }, /* (71) cmd ::= TRIM DATABASE db_name speed_opt */
- { 337, -3 }, /* (72) not_exists_opt ::= IF NOT EXISTS */
- { 337, 0 }, /* (73) not_exists_opt ::= */
- { 339, -2 }, /* (74) exists_opt ::= IF EXISTS */
- { 339, 0 }, /* (75) exists_opt ::= */
- { 338, 0 }, /* (76) db_options ::= */
- { 338, -3 }, /* (77) db_options ::= db_options BUFFER NK_INTEGER */
- { 338, -3 }, /* (78) db_options ::= db_options CACHEMODEL NK_STRING */
- { 338, -3 }, /* (79) db_options ::= db_options CACHESIZE NK_INTEGER */
- { 338, -3 }, /* (80) db_options ::= db_options COMP NK_INTEGER */
- { 338, -3 }, /* (81) db_options ::= db_options DURATION NK_INTEGER */
- { 338, -3 }, /* (82) db_options ::= db_options DURATION NK_VARIABLE */
- { 338, -3 }, /* (83) db_options ::= db_options MAXROWS NK_INTEGER */
- { 338, -3 }, /* (84) db_options ::= db_options MINROWS NK_INTEGER */
- { 338, -3 }, /* (85) db_options ::= db_options KEEP integer_list */
- { 338, -3 }, /* (86) db_options ::= db_options KEEP variable_list */
- { 338, -3 }, /* (87) db_options ::= db_options PAGES NK_INTEGER */
- { 338, -3 }, /* (88) db_options ::= db_options PAGESIZE NK_INTEGER */
- { 338, -3 }, /* (89) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
- { 338, -3 }, /* (90) db_options ::= db_options PRECISION NK_STRING */
- { 338, -3 }, /* (91) db_options ::= db_options REPLICA NK_INTEGER */
- { 338, -3 }, /* (92) db_options ::= db_options VGROUPS NK_INTEGER */
- { 338, -3 }, /* (93) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
- { 338, -3 }, /* (94) db_options ::= db_options RETENTIONS retention_list */
- { 338, -3 }, /* (95) db_options ::= db_options SCHEMALESS NK_INTEGER */
- { 338, -3 }, /* (96) db_options ::= db_options WAL_LEVEL NK_INTEGER */
- { 338, -3 }, /* (97) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
- { 338, -3 }, /* (98) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
- { 338, -4 }, /* (99) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
- { 338, -3 }, /* (100) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
- { 338, -4 }, /* (101) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
- { 338, -3 }, /* (102) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
- { 338, -3 }, /* (103) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
- { 338, -3 }, /* (104) db_options ::= db_options STT_TRIGGER NK_INTEGER */
- { 338, -3 }, /* (105) db_options ::= db_options TABLE_PREFIX NK_INTEGER */
- { 338, -3 }, /* (106) db_options ::= db_options TABLE_SUFFIX NK_INTEGER */
- { 340, -1 }, /* (107) alter_db_options ::= alter_db_option */
- { 340, -2 }, /* (108) alter_db_options ::= alter_db_options alter_db_option */
- { 345, -2 }, /* (109) alter_db_option ::= BUFFER NK_INTEGER */
- { 345, -2 }, /* (110) alter_db_option ::= CACHEMODEL NK_STRING */
- { 345, -2 }, /* (111) alter_db_option ::= CACHESIZE NK_INTEGER */
- { 345, -2 }, /* (112) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
- { 345, -2 }, /* (113) alter_db_option ::= KEEP integer_list */
- { 345, -2 }, /* (114) alter_db_option ::= KEEP variable_list */
- { 345, -2 }, /* (115) alter_db_option ::= PAGES NK_INTEGER */
- { 345, -2 }, /* (116) alter_db_option ::= REPLICA NK_INTEGER */
- { 345, -2 }, /* (117) alter_db_option ::= WAL_LEVEL NK_INTEGER */
- { 345, -2 }, /* (118) alter_db_option ::= STT_TRIGGER NK_INTEGER */
- { 342, -1 }, /* (119) integer_list ::= NK_INTEGER */
- { 342, -3 }, /* (120) integer_list ::= integer_list NK_COMMA NK_INTEGER */
- { 343, -1 }, /* (121) variable_list ::= NK_VARIABLE */
- { 343, -3 }, /* (122) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
- { 344, -1 }, /* (123) retention_list ::= retention */
- { 344, -3 }, /* (124) retention_list ::= retention_list NK_COMMA retention */
- { 346, -3 }, /* (125) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
- { 341, 0 }, /* (126) speed_opt ::= */
- { 341, -2 }, /* (127) speed_opt ::= MAX_SPEED NK_INTEGER */
- { 322, -9 }, /* (128) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
- { 322, -3 }, /* (129) cmd ::= CREATE TABLE multi_create_clause */
- { 322, -9 }, /* (130) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
- { 322, -3 }, /* (131) cmd ::= DROP TABLE multi_drop_clause */
- { 322, -4 }, /* (132) cmd ::= DROP STABLE exists_opt full_table_name */
- { 322, -3 }, /* (133) cmd ::= ALTER TABLE alter_table_clause */
- { 322, -3 }, /* (134) cmd ::= ALTER STABLE alter_table_clause */
- { 354, -2 }, /* (135) alter_table_clause ::= full_table_name alter_table_options */
- { 354, -5 }, /* (136) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
- { 354, -4 }, /* (137) alter_table_clause ::= full_table_name DROP COLUMN column_name */
- { 354, -5 }, /* (138) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
- { 354, -5 }, /* (139) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
- { 354, -5 }, /* (140) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
- { 354, -4 }, /* (141) alter_table_clause ::= full_table_name DROP TAG column_name */
- { 354, -5 }, /* (142) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
- { 354, -5 }, /* (143) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
- { 354, -6 }, /* (144) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
- { 351, -1 }, /* (145) multi_create_clause ::= create_subtable_clause */
- { 351, -2 }, /* (146) multi_create_clause ::= multi_create_clause create_subtable_clause */
- { 359, -10 }, /* (147) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */
- { 353, -1 }, /* (148) multi_drop_clause ::= drop_table_clause */
- { 353, -2 }, /* (149) multi_drop_clause ::= multi_drop_clause drop_table_clause */
- { 362, -2 }, /* (150) drop_table_clause ::= exists_opt full_table_name */
- { 360, 0 }, /* (151) specific_cols_opt ::= */
- { 360, -3 }, /* (152) specific_cols_opt ::= NK_LP col_name_list NK_RP */
- { 347, -1 }, /* (153) full_table_name ::= table_name */
- { 347, -3 }, /* (154) full_table_name ::= db_name NK_DOT table_name */
- { 348, -1 }, /* (155) column_def_list ::= column_def */
- { 348, -3 }, /* (156) column_def_list ::= column_def_list NK_COMMA column_def */
- { 365, -2 }, /* (157) column_def ::= column_name type_name */
- { 365, -4 }, /* (158) column_def ::= column_name type_name COMMENT NK_STRING */
- { 357, -1 }, /* (159) type_name ::= BOOL */
- { 357, -1 }, /* (160) type_name ::= TINYINT */
- { 357, -1 }, /* (161) type_name ::= SMALLINT */
- { 357, -1 }, /* (162) type_name ::= INT */
- { 357, -1 }, /* (163) type_name ::= INTEGER */
- { 357, -1 }, /* (164) type_name ::= BIGINT */
- { 357, -1 }, /* (165) type_name ::= FLOAT */
- { 357, -1 }, /* (166) type_name ::= DOUBLE */
- { 357, -4 }, /* (167) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
- { 357, -1 }, /* (168) type_name ::= TIMESTAMP */
- { 357, -4 }, /* (169) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
- { 357, -2 }, /* (170) type_name ::= TINYINT UNSIGNED */
- { 357, -2 }, /* (171) type_name ::= SMALLINT UNSIGNED */
- { 357, -2 }, /* (172) type_name ::= INT UNSIGNED */
- { 357, -2 }, /* (173) type_name ::= BIGINT UNSIGNED */
- { 357, -1 }, /* (174) type_name ::= JSON */
- { 357, -4 }, /* (175) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
- { 357, -1 }, /* (176) type_name ::= MEDIUMBLOB */
- { 357, -1 }, /* (177) type_name ::= BLOB */
- { 357, -4 }, /* (178) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
- { 357, -1 }, /* (179) type_name ::= DECIMAL */
- { 357, -4 }, /* (180) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
- { 357, -6 }, /* (181) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
- { 349, 0 }, /* (182) tags_def_opt ::= */
- { 349, -1 }, /* (183) tags_def_opt ::= tags_def */
- { 352, -4 }, /* (184) tags_def ::= TAGS NK_LP column_def_list NK_RP */
- { 350, 0 }, /* (185) table_options ::= */
- { 350, -3 }, /* (186) table_options ::= table_options COMMENT NK_STRING */
- { 350, -3 }, /* (187) table_options ::= table_options MAX_DELAY duration_list */
- { 350, -3 }, /* (188) table_options ::= table_options WATERMARK duration_list */
- { 350, -5 }, /* (189) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
- { 350, -3 }, /* (190) table_options ::= table_options TTL NK_INTEGER */
- { 350, -5 }, /* (191) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
- { 350, -3 }, /* (192) table_options ::= table_options DELETE_MARK duration_list */
- { 355, -1 }, /* (193) alter_table_options ::= alter_table_option */
- { 355, -2 }, /* (194) alter_table_options ::= alter_table_options alter_table_option */
- { 368, -2 }, /* (195) alter_table_option ::= COMMENT NK_STRING */
- { 368, -2 }, /* (196) alter_table_option ::= TTL NK_INTEGER */
- { 366, -1 }, /* (197) duration_list ::= duration_literal */
- { 366, -3 }, /* (198) duration_list ::= duration_list NK_COMMA duration_literal */
- { 367, -1 }, /* (199) rollup_func_list ::= rollup_func_name */
- { 367, -3 }, /* (200) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
- { 370, -1 }, /* (201) rollup_func_name ::= function_name */
- { 370, -1 }, /* (202) rollup_func_name ::= FIRST */
- { 370, -1 }, /* (203) rollup_func_name ::= LAST */
- { 363, -1 }, /* (204) col_name_list ::= col_name */
- { 363, -3 }, /* (205) col_name_list ::= col_name_list NK_COMMA col_name */
- { 372, -1 }, /* (206) col_name ::= column_name */
- { 322, -2 }, /* (207) cmd ::= SHOW DNODES */
- { 322, -2 }, /* (208) cmd ::= SHOW USERS */
- { 322, -3 }, /* (209) cmd ::= SHOW USER PRIVILEGES */
- { 322, -2 }, /* (210) cmd ::= SHOW DATABASES */
- { 322, -4 }, /* (211) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */
- { 322, -4 }, /* (212) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
- { 322, -3 }, /* (213) cmd ::= SHOW db_name_cond_opt VGROUPS */
- { 322, -2 }, /* (214) cmd ::= SHOW MNODES */
- { 322, -2 }, /* (215) cmd ::= SHOW QNODES */
- { 322, -2 }, /* (216) cmd ::= SHOW FUNCTIONS */
- { 322, -5 }, /* (217) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
- { 322, -2 }, /* (218) cmd ::= SHOW STREAMS */
- { 322, -2 }, /* (219) cmd ::= SHOW ACCOUNTS */
- { 322, -2 }, /* (220) cmd ::= SHOW APPS */
- { 322, -2 }, /* (221) cmd ::= SHOW CONNECTIONS */
- { 322, -2 }, /* (222) cmd ::= SHOW LICENCES */
- { 322, -2 }, /* (223) cmd ::= SHOW GRANTS */
- { 322, -4 }, /* (224) cmd ::= SHOW CREATE DATABASE db_name */
- { 322, -4 }, /* (225) cmd ::= SHOW CREATE TABLE full_table_name */
- { 322, -4 }, /* (226) cmd ::= SHOW CREATE STABLE full_table_name */
- { 322, -2 }, /* (227) cmd ::= SHOW QUERIES */
- { 322, -2 }, /* (228) cmd ::= SHOW SCORES */
- { 322, -2 }, /* (229) cmd ::= SHOW TOPICS */
- { 322, -2 }, /* (230) cmd ::= SHOW VARIABLES */
- { 322, -3 }, /* (231) cmd ::= SHOW CLUSTER VARIABLES */
- { 322, -3 }, /* (232) cmd ::= SHOW LOCAL VARIABLES */
- { 322, -5 }, /* (233) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
- { 322, -2 }, /* (234) cmd ::= SHOW BNODES */
- { 322, -2 }, /* (235) cmd ::= SHOW SNODES */
- { 322, -2 }, /* (236) cmd ::= SHOW CLUSTER */
- { 322, -2 }, /* (237) cmd ::= SHOW TRANSACTIONS */
- { 322, -4 }, /* (238) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
- { 322, -2 }, /* (239) cmd ::= SHOW CONSUMERS */
- { 322, -2 }, /* (240) cmd ::= SHOW SUBSCRIPTIONS */
- { 322, -5 }, /* (241) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
- { 322, -7 }, /* (242) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
- { 322, -3 }, /* (243) cmd ::= SHOW VNODES NK_INTEGER */
- { 322, -3 }, /* (244) cmd ::= SHOW VNODES NK_STRING */
- { 373, 0 }, /* (245) db_name_cond_opt ::= */
- { 373, -2 }, /* (246) db_name_cond_opt ::= db_name NK_DOT */
- { 374, 0 }, /* (247) like_pattern_opt ::= */
- { 374, -2 }, /* (248) like_pattern_opt ::= LIKE NK_STRING */
- { 375, -1 }, /* (249) table_name_cond ::= table_name */
- { 376, 0 }, /* (250) from_db_opt ::= */
- { 376, -2 }, /* (251) from_db_opt ::= FROM db_name */
- { 377, 0 }, /* (252) tag_list_opt ::= */
- { 377, -1 }, /* (253) tag_list_opt ::= tag_item */
- { 377, -3 }, /* (254) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
- { 378, -1 }, /* (255) tag_item ::= TBNAME */
- { 378, -1 }, /* (256) tag_item ::= QTAGS */
- { 378, -1 }, /* (257) tag_item ::= column_name */
- { 378, -2 }, /* (258) tag_item ::= column_name column_alias */
- { 378, -3 }, /* (259) tag_item ::= column_name AS column_alias */
- { 322, -8 }, /* (260) cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options */
- { 322, -4 }, /* (261) cmd ::= DROP INDEX exists_opt full_index_name */
- { 380, -1 }, /* (262) full_index_name ::= index_name */
- { 380, -3 }, /* (263) full_index_name ::= db_name NK_DOT index_name */
- { 381, -10 }, /* (264) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
- { 381, -12 }, /* (265) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */
- { 383, -1 }, /* (266) func_list ::= func */
- { 383, -3 }, /* (267) func_list ::= func_list NK_COMMA func */
- { 386, -4 }, /* (268) func ::= function_name NK_LP expression_list NK_RP */
- { 385, 0 }, /* (269) sma_stream_opt ::= */
- { 385, -3 }, /* (270) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
- { 385, -3 }, /* (271) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
- { 385, -3 }, /* (272) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
- { 322, -6 }, /* (273) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
- { 322, -7 }, /* (274) cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */
- { 322, -9 }, /* (275) cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name */
- { 322, -7 }, /* (276) cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */
- { 322, -9 }, /* (277) cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name */
- { 322, -4 }, /* (278) cmd ::= DROP TOPIC exists_opt topic_name */
- { 322, -7 }, /* (279) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
- { 322, -2 }, /* (280) cmd ::= DESC full_table_name */
- { 322, -2 }, /* (281) cmd ::= DESCRIBE full_table_name */
- { 322, -3 }, /* (282) cmd ::= RESET QUERY CACHE */
- { 322, -4 }, /* (283) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
- { 389, 0 }, /* (284) analyze_opt ::= */
- { 389, -1 }, /* (285) analyze_opt ::= ANALYZE */
- { 390, 0 }, /* (286) explain_options ::= */
- { 390, -3 }, /* (287) explain_options ::= explain_options VERBOSE NK_BOOL */
- { 390, -3 }, /* (288) explain_options ::= explain_options RATIO NK_FLOAT */
- { 322, -10 }, /* (289) cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */
- { 322, -4 }, /* (290) cmd ::= DROP FUNCTION exists_opt function_name */
- { 391, 0 }, /* (291) agg_func_opt ::= */
- { 391, -1 }, /* (292) agg_func_opt ::= AGGREGATE */
- { 392, 0 }, /* (293) bufsize_opt ::= */
- { 392, -2 }, /* (294) bufsize_opt ::= BUFSIZE NK_INTEGER */
- { 322, -11 }, /* (295) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name tags_def_opt subtable_opt AS query_or_subquery */
- { 322, -4 }, /* (296) cmd ::= DROP STREAM exists_opt stream_name */
- { 394, 0 }, /* (297) stream_options ::= */
- { 394, -3 }, /* (298) stream_options ::= stream_options TRIGGER AT_ONCE */
- { 394, -3 }, /* (299) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
- { 394, -4 }, /* (300) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
- { 394, -3 }, /* (301) stream_options ::= stream_options WATERMARK duration_literal */
- { 394, -4 }, /* (302) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
- { 394, -3 }, /* (303) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
- { 394, -3 }, /* (304) stream_options ::= stream_options DELETE_MARK duration_literal */
- { 395, 0 }, /* (305) subtable_opt ::= */
- { 395, -4 }, /* (306) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
- { 322, -3 }, /* (307) cmd ::= KILL CONNECTION NK_INTEGER */
- { 322, -3 }, /* (308) cmd ::= KILL QUERY NK_STRING */
- { 322, -3 }, /* (309) cmd ::= KILL TRANSACTION NK_INTEGER */
- { 322, -2 }, /* (310) cmd ::= BALANCE VGROUP */
- { 322, -4 }, /* (311) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
- { 322, -4 }, /* (312) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
- { 322, -3 }, /* (313) cmd ::= SPLIT VGROUP NK_INTEGER */
- { 397, -2 }, /* (314) dnode_list ::= DNODE NK_INTEGER */
- { 397, -3 }, /* (315) dnode_list ::= dnode_list DNODE NK_INTEGER */
- { 322, -4 }, /* (316) cmd ::= DELETE FROM full_table_name where_clause_opt */
- { 322, -1 }, /* (317) cmd ::= query_or_subquery */
- { 322, -7 }, /* (318) cmd ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
- { 322, -4 }, /* (319) cmd ::= INSERT INTO full_table_name query_or_subquery */
- { 325, -1 }, /* (320) literal ::= NK_INTEGER */
- { 325, -1 }, /* (321) literal ::= NK_FLOAT */
- { 325, -1 }, /* (322) literal ::= NK_STRING */
- { 325, -1 }, /* (323) literal ::= NK_BOOL */
- { 325, -2 }, /* (324) literal ::= TIMESTAMP NK_STRING */
- { 325, -1 }, /* (325) literal ::= duration_literal */
- { 325, -1 }, /* (326) literal ::= NULL */
- { 325, -1 }, /* (327) literal ::= NK_QUESTION */
- { 369, -1 }, /* (328) duration_literal ::= NK_VARIABLE */
- { 399, -1 }, /* (329) signed ::= NK_INTEGER */
- { 399, -2 }, /* (330) signed ::= NK_PLUS NK_INTEGER */
- { 399, -2 }, /* (331) signed ::= NK_MINUS NK_INTEGER */
- { 399, -1 }, /* (332) signed ::= NK_FLOAT */
- { 399, -2 }, /* (333) signed ::= NK_PLUS NK_FLOAT */
- { 399, -2 }, /* (334) signed ::= NK_MINUS NK_FLOAT */
- { 358, -1 }, /* (335) signed_literal ::= signed */
- { 358, -1 }, /* (336) signed_literal ::= NK_STRING */
- { 358, -1 }, /* (337) signed_literal ::= NK_BOOL */
- { 358, -2 }, /* (338) signed_literal ::= TIMESTAMP NK_STRING */
- { 358, -1 }, /* (339) signed_literal ::= duration_literal */
- { 358, -1 }, /* (340) signed_literal ::= NULL */
- { 358, -1 }, /* (341) signed_literal ::= literal_func */
- { 358, -1 }, /* (342) signed_literal ::= NK_QUESTION */
- { 401, -1 }, /* (343) literal_list ::= signed_literal */
- { 401, -3 }, /* (344) literal_list ::= literal_list NK_COMMA signed_literal */
- { 333, -1 }, /* (345) db_name ::= NK_ID */
- { 364, -1 }, /* (346) table_name ::= NK_ID */
- { 356, -1 }, /* (347) column_name ::= NK_ID */
- { 371, -1 }, /* (348) function_name ::= NK_ID */
- { 402, -1 }, /* (349) table_alias ::= NK_ID */
- { 379, -1 }, /* (350) column_alias ::= NK_ID */
- { 327, -1 }, /* (351) user_name ::= NK_ID */
- { 334, -1 }, /* (352) topic_name ::= NK_ID */
- { 393, -1 }, /* (353) stream_name ::= NK_ID */
- { 388, -1 }, /* (354) cgroup_name ::= NK_ID */
- { 382, -1 }, /* (355) index_name ::= NK_ID */
- { 403, -1 }, /* (356) expr_or_subquery ::= expression */
- { 396, -1 }, /* (357) expression ::= literal */
- { 396, -1 }, /* (358) expression ::= pseudo_column */
- { 396, -1 }, /* (359) expression ::= column_reference */
- { 396, -1 }, /* (360) expression ::= function_expression */
- { 396, -1 }, /* (361) expression ::= case_when_expression */
- { 396, -3 }, /* (362) expression ::= NK_LP expression NK_RP */
- { 396, -2 }, /* (363) expression ::= NK_PLUS expr_or_subquery */
- { 396, -2 }, /* (364) expression ::= NK_MINUS expr_or_subquery */
- { 396, -3 }, /* (365) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
- { 396, -3 }, /* (366) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
- { 396, -3 }, /* (367) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
- { 396, -3 }, /* (368) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
- { 396, -3 }, /* (369) expression ::= expr_or_subquery NK_REM expr_or_subquery */
- { 396, -3 }, /* (370) expression ::= column_reference NK_ARROW NK_STRING */
- { 396, -3 }, /* (371) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
- { 396, -3 }, /* (372) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
- { 361, -1 }, /* (373) expression_list ::= expr_or_subquery */
- { 361, -3 }, /* (374) expression_list ::= expression_list NK_COMMA expr_or_subquery */
- { 405, -1 }, /* (375) column_reference ::= column_name */
- { 405, -3 }, /* (376) column_reference ::= table_name NK_DOT column_name */
- { 404, -1 }, /* (377) pseudo_column ::= ROWTS */
- { 404, -1 }, /* (378) pseudo_column ::= TBNAME */
- { 404, -3 }, /* (379) pseudo_column ::= table_name NK_DOT TBNAME */
- { 404, -1 }, /* (380) pseudo_column ::= QSTART */
- { 404, -1 }, /* (381) pseudo_column ::= QEND */
- { 404, -1 }, /* (382) pseudo_column ::= QDURATION */
- { 404, -1 }, /* (383) pseudo_column ::= WSTART */
- { 404, -1 }, /* (384) pseudo_column ::= WEND */
- { 404, -1 }, /* (385) pseudo_column ::= WDURATION */
- { 404, -1 }, /* (386) pseudo_column ::= IROWTS */
- { 404, -1 }, /* (387) pseudo_column ::= QTAGS */
- { 406, -4 }, /* (388) function_expression ::= function_name NK_LP expression_list NK_RP */
- { 406, -4 }, /* (389) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
- { 406, -6 }, /* (390) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
- { 406, -1 }, /* (391) function_expression ::= literal_func */
- { 400, -3 }, /* (392) literal_func ::= noarg_func NK_LP NK_RP */
- { 400, -1 }, /* (393) literal_func ::= NOW */
- { 410, -1 }, /* (394) noarg_func ::= NOW */
- { 410, -1 }, /* (395) noarg_func ::= TODAY */
- { 410, -1 }, /* (396) noarg_func ::= TIMEZONE */
- { 410, -1 }, /* (397) noarg_func ::= DATABASE */
- { 410, -1 }, /* (398) noarg_func ::= CLIENT_VERSION */
- { 410, -1 }, /* (399) noarg_func ::= SERVER_VERSION */
- { 410, -1 }, /* (400) noarg_func ::= SERVER_STATUS */
- { 410, -1 }, /* (401) noarg_func ::= CURRENT_USER */
- { 410, -1 }, /* (402) noarg_func ::= USER */
- { 408, -1 }, /* (403) star_func ::= COUNT */
- { 408, -1 }, /* (404) star_func ::= FIRST */
- { 408, -1 }, /* (405) star_func ::= LAST */
- { 408, -1 }, /* (406) star_func ::= LAST_ROW */
- { 409, -1 }, /* (407) star_func_para_list ::= NK_STAR */
- { 409, -1 }, /* (408) star_func_para_list ::= other_para_list */
- { 411, -1 }, /* (409) other_para_list ::= star_func_para */
- { 411, -3 }, /* (410) other_para_list ::= other_para_list NK_COMMA star_func_para */
- { 412, -1 }, /* (411) star_func_para ::= expr_or_subquery */
- { 412, -3 }, /* (412) star_func_para ::= table_name NK_DOT NK_STAR */
- { 407, -4 }, /* (413) case_when_expression ::= CASE when_then_list case_when_else_opt END */
- { 407, -5 }, /* (414) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
- { 413, -1 }, /* (415) when_then_list ::= when_then_expr */
- { 413, -2 }, /* (416) when_then_list ::= when_then_list when_then_expr */
- { 416, -4 }, /* (417) when_then_expr ::= WHEN common_expression THEN common_expression */
- { 414, 0 }, /* (418) case_when_else_opt ::= */
- { 414, -2 }, /* (419) case_when_else_opt ::= ELSE common_expression */
- { 417, -3 }, /* (420) predicate ::= expr_or_subquery compare_op expr_or_subquery */
- { 417, -5 }, /* (421) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
- { 417, -6 }, /* (422) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
- { 417, -3 }, /* (423) predicate ::= expr_or_subquery IS NULL */
- { 417, -4 }, /* (424) predicate ::= expr_or_subquery IS NOT NULL */
- { 417, -3 }, /* (425) predicate ::= expr_or_subquery in_op in_predicate_value */
- { 418, -1 }, /* (426) compare_op ::= NK_LT */
- { 418, -1 }, /* (427) compare_op ::= NK_GT */
- { 418, -1 }, /* (428) compare_op ::= NK_LE */
- { 418, -1 }, /* (429) compare_op ::= NK_GE */
- { 418, -1 }, /* (430) compare_op ::= NK_NE */
- { 418, -1 }, /* (431) compare_op ::= NK_EQ */
- { 418, -1 }, /* (432) compare_op ::= LIKE */
- { 418, -2 }, /* (433) compare_op ::= NOT LIKE */
- { 418, -1 }, /* (434) compare_op ::= MATCH */
- { 418, -1 }, /* (435) compare_op ::= NMATCH */
- { 418, -1 }, /* (436) compare_op ::= CONTAINS */
- { 419, -1 }, /* (437) in_op ::= IN */
- { 419, -2 }, /* (438) in_op ::= NOT IN */
- { 420, -3 }, /* (439) in_predicate_value ::= NK_LP literal_list NK_RP */
- { 421, -1 }, /* (440) boolean_value_expression ::= boolean_primary */
- { 421, -2 }, /* (441) boolean_value_expression ::= NOT boolean_primary */
- { 421, -3 }, /* (442) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
- { 421, -3 }, /* (443) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
- { 422, -1 }, /* (444) boolean_primary ::= predicate */
- { 422, -3 }, /* (445) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
- { 415, -1 }, /* (446) common_expression ::= expr_or_subquery */
- { 415, -1 }, /* (447) common_expression ::= boolean_value_expression */
- { 423, 0 }, /* (448) from_clause_opt ::= */
- { 423, -2 }, /* (449) from_clause_opt ::= FROM table_reference_list */
- { 424, -1 }, /* (450) table_reference_list ::= table_reference */
- { 424, -3 }, /* (451) table_reference_list ::= table_reference_list NK_COMMA table_reference */
- { 425, -1 }, /* (452) table_reference ::= table_primary */
- { 425, -1 }, /* (453) table_reference ::= joined_table */
- { 426, -2 }, /* (454) table_primary ::= table_name alias_opt */
- { 426, -4 }, /* (455) table_primary ::= db_name NK_DOT table_name alias_opt */
- { 426, -2 }, /* (456) table_primary ::= subquery alias_opt */
- { 426, -1 }, /* (457) table_primary ::= parenthesized_joined_table */
- { 428, 0 }, /* (458) alias_opt ::= */
- { 428, -1 }, /* (459) alias_opt ::= table_alias */
- { 428, -2 }, /* (460) alias_opt ::= AS table_alias */
- { 430, -3 }, /* (461) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
- { 430, -3 }, /* (462) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
- { 427, -6 }, /* (463) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
- { 431, 0 }, /* (464) join_type ::= */
- { 431, -1 }, /* (465) join_type ::= INNER */
- { 433, -12 }, /* (466) query_specification ::= SELECT set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */
- { 434, 0 }, /* (467) set_quantifier_opt ::= */
- { 434, -1 }, /* (468) set_quantifier_opt ::= DISTINCT */
- { 434, -1 }, /* (469) set_quantifier_opt ::= ALL */
- { 435, -1 }, /* (470) select_list ::= select_item */
- { 435, -3 }, /* (471) select_list ::= select_list NK_COMMA select_item */
- { 443, -1 }, /* (472) select_item ::= NK_STAR */
- { 443, -1 }, /* (473) select_item ::= common_expression */
- { 443, -2 }, /* (474) select_item ::= common_expression column_alias */
- { 443, -3 }, /* (475) select_item ::= common_expression AS column_alias */
- { 443, -3 }, /* (476) select_item ::= table_name NK_DOT NK_STAR */
- { 398, 0 }, /* (477) where_clause_opt ::= */
- { 398, -2 }, /* (478) where_clause_opt ::= WHERE search_condition */
- { 436, 0 }, /* (479) partition_by_clause_opt ::= */
- { 436, -3 }, /* (480) partition_by_clause_opt ::= PARTITION BY partition_list */
- { 444, -1 }, /* (481) partition_list ::= partition_item */
- { 444, -3 }, /* (482) partition_list ::= partition_list NK_COMMA partition_item */
- { 445, -1 }, /* (483) partition_item ::= expr_or_subquery */
- { 445, -2 }, /* (484) partition_item ::= expr_or_subquery column_alias */
- { 445, -3 }, /* (485) partition_item ::= expr_or_subquery AS column_alias */
- { 440, 0 }, /* (486) twindow_clause_opt ::= */
- { 440, -6 }, /* (487) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */
- { 440, -4 }, /* (488) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
- { 440, -6 }, /* (489) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */
- { 440, -8 }, /* (490) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */
- { 384, 0 }, /* (491) sliding_opt ::= */
- { 384, -4 }, /* (492) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */
- { 439, 0 }, /* (493) fill_opt ::= */
- { 439, -4 }, /* (494) fill_opt ::= FILL NK_LP fill_mode NK_RP */
- { 439, -6 }, /* (495) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */
- { 446, -1 }, /* (496) fill_mode ::= NONE */
- { 446, -1 }, /* (497) fill_mode ::= PREV */
- { 446, -1 }, /* (498) fill_mode ::= NULL */
- { 446, -1 }, /* (499) fill_mode ::= LINEAR */
- { 446, -1 }, /* (500) fill_mode ::= NEXT */
- { 441, 0 }, /* (501) group_by_clause_opt ::= */
- { 441, -3 }, /* (502) group_by_clause_opt ::= GROUP BY group_by_list */
- { 447, -1 }, /* (503) group_by_list ::= expr_or_subquery */
- { 447, -3 }, /* (504) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
- { 442, 0 }, /* (505) having_clause_opt ::= */
- { 442, -2 }, /* (506) having_clause_opt ::= HAVING search_condition */
- { 437, 0 }, /* (507) range_opt ::= */
- { 437, -6 }, /* (508) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
- { 438, 0 }, /* (509) every_opt ::= */
- { 438, -4 }, /* (510) every_opt ::= EVERY NK_LP duration_literal NK_RP */
- { 448, -4 }, /* (511) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
- { 449, -1 }, /* (512) query_simple ::= query_specification */
- { 449, -1 }, /* (513) query_simple ::= union_query_expression */
- { 453, -4 }, /* (514) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
- { 453, -3 }, /* (515) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
- { 454, -1 }, /* (516) query_simple_or_subquery ::= query_simple */
- { 454, -1 }, /* (517) query_simple_or_subquery ::= subquery */
- { 387, -1 }, /* (518) query_or_subquery ::= query_expression */
- { 387, -1 }, /* (519) query_or_subquery ::= subquery */
- { 450, 0 }, /* (520) order_by_clause_opt ::= */
- { 450, -3 }, /* (521) order_by_clause_opt ::= ORDER BY sort_specification_list */
- { 451, 0 }, /* (522) slimit_clause_opt ::= */
- { 451, -2 }, /* (523) slimit_clause_opt ::= SLIMIT NK_INTEGER */
- { 451, -4 }, /* (524) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
- { 451, -4 }, /* (525) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
- { 452, 0 }, /* (526) limit_clause_opt ::= */
- { 452, -2 }, /* (527) limit_clause_opt ::= LIMIT NK_INTEGER */
- { 452, -4 }, /* (528) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
- { 452, -4 }, /* (529) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
- { 429, -3 }, /* (530) subquery ::= NK_LP query_expression NK_RP */
- { 429, -3 }, /* (531) subquery ::= NK_LP subquery NK_RP */
- { 432, -1 }, /* (532) search_condition ::= common_expression */
- { 455, -1 }, /* (533) sort_specification_list ::= sort_specification */
- { 455, -3 }, /* (534) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
- { 456, -3 }, /* (535) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
- { 457, 0 }, /* (536) ordering_specification_opt ::= */
- { 457, -1 }, /* (537) ordering_specification_opt ::= ASC */
- { 457, -1 }, /* (538) ordering_specification_opt ::= DESC */
- { 458, 0 }, /* (539) null_ordering_opt ::= */
- { 458, -2 }, /* (540) null_ordering_opt ::= NULLS FIRST */
- { 458, -2 }, /* (541) null_ordering_opt ::= NULLS LAST */
+ { 324, -6 }, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
+ { 324, -4 }, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
+ { 325, 0 }, /* (2) account_options ::= */
+ { 325, -3 }, /* (3) account_options ::= account_options PPS literal */
+ { 325, -3 }, /* (4) account_options ::= account_options TSERIES literal */
+ { 325, -3 }, /* (5) account_options ::= account_options STORAGE literal */
+ { 325, -3 }, /* (6) account_options ::= account_options STREAMS literal */
+ { 325, -3 }, /* (7) account_options ::= account_options QTIME literal */
+ { 325, -3 }, /* (8) account_options ::= account_options DBS literal */
+ { 325, -3 }, /* (9) account_options ::= account_options USERS literal */
+ { 325, -3 }, /* (10) account_options ::= account_options CONNS literal */
+ { 325, -3 }, /* (11) account_options ::= account_options STATE literal */
+ { 326, -1 }, /* (12) alter_account_options ::= alter_account_option */
+ { 326, -2 }, /* (13) alter_account_options ::= alter_account_options alter_account_option */
+ { 328, -2 }, /* (14) alter_account_option ::= PASS literal */
+ { 328, -2 }, /* (15) alter_account_option ::= PPS literal */
+ { 328, -2 }, /* (16) alter_account_option ::= TSERIES literal */
+ { 328, -2 }, /* (17) alter_account_option ::= STORAGE literal */
+ { 328, -2 }, /* (18) alter_account_option ::= STREAMS literal */
+ { 328, -2 }, /* (19) alter_account_option ::= QTIME literal */
+ { 328, -2 }, /* (20) alter_account_option ::= DBS literal */
+ { 328, -2 }, /* (21) alter_account_option ::= USERS literal */
+ { 328, -2 }, /* (22) alter_account_option ::= CONNS literal */
+ { 328, -2 }, /* (23) alter_account_option ::= STATE literal */
+ { 324, -6 }, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */
+ { 324, -5 }, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */
+ { 324, -5 }, /* (26) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
+ { 324, -5 }, /* (27) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
+ { 324, -3 }, /* (28) cmd ::= DROP USER user_name */
+ { 330, 0 }, /* (29) sysinfo_opt ::= */
+ { 330, -2 }, /* (30) sysinfo_opt ::= SYSINFO NK_INTEGER */
+ { 324, -6 }, /* (31) cmd ::= GRANT privileges ON priv_level TO user_name */
+ { 324, -6 }, /* (32) cmd ::= REVOKE privileges ON priv_level FROM user_name */
+ { 331, -1 }, /* (33) privileges ::= ALL */
+ { 331, -1 }, /* (34) privileges ::= priv_type_list */
+ { 331, -1 }, /* (35) privileges ::= SUBSCRIBE */
+ { 333, -1 }, /* (36) priv_type_list ::= priv_type */
+ { 333, -3 }, /* (37) priv_type_list ::= priv_type_list NK_COMMA priv_type */
+ { 334, -1 }, /* (38) priv_type ::= READ */
+ { 334, -1 }, /* (39) priv_type ::= WRITE */
+ { 332, -3 }, /* (40) priv_level ::= NK_STAR NK_DOT NK_STAR */
+ { 332, -3 }, /* (41) priv_level ::= db_name NK_DOT NK_STAR */
+ { 332, -1 }, /* (42) priv_level ::= topic_name */
+ { 324, -3 }, /* (43) cmd ::= CREATE DNODE dnode_endpoint */
+ { 324, -5 }, /* (44) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
+ { 324, -4 }, /* (45) cmd ::= DROP DNODE NK_INTEGER force_opt */
+ { 324, -4 }, /* (46) cmd ::= DROP DNODE dnode_endpoint force_opt */
+ { 324, -4 }, /* (47) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
+ { 324, -5 }, /* (48) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
+ { 324, -4 }, /* (49) cmd ::= ALTER ALL DNODES NK_STRING */
+ { 324, -5 }, /* (50) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
+ { 337, -1 }, /* (51) dnode_endpoint ::= NK_STRING */
+ { 337, -1 }, /* (52) dnode_endpoint ::= NK_ID */
+ { 337, -1 }, /* (53) dnode_endpoint ::= NK_IPTOKEN */
+ { 338, 0 }, /* (54) force_opt ::= */
+ { 338, -1 }, /* (55) force_opt ::= FORCE */
+ { 324, -3 }, /* (56) cmd ::= ALTER LOCAL NK_STRING */
+ { 324, -4 }, /* (57) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
+ { 324, -5 }, /* (58) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
+ { 324, -5 }, /* (59) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
+ { 324, -5 }, /* (60) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
+ { 324, -5 }, /* (61) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
+ { 324, -5 }, /* (62) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
+ { 324, -5 }, /* (63) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
+ { 324, -5 }, /* (64) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
+ { 324, -5 }, /* (65) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
+ { 324, -5 }, /* (66) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
+ { 324, -4 }, /* (67) cmd ::= DROP DATABASE exists_opt db_name */
+ { 324, -2 }, /* (68) cmd ::= USE db_name */
+ { 324, -4 }, /* (69) cmd ::= ALTER DATABASE db_name alter_db_options */
+ { 324, -3 }, /* (70) cmd ::= FLUSH DATABASE db_name */
+ { 324, -4 }, /* (71) cmd ::= TRIM DATABASE db_name speed_opt */
+ { 339, -3 }, /* (72) not_exists_opt ::= IF NOT EXISTS */
+ { 339, 0 }, /* (73) not_exists_opt ::= */
+ { 341, -2 }, /* (74) exists_opt ::= IF EXISTS */
+ { 341, 0 }, /* (75) exists_opt ::= */
+ { 340, 0 }, /* (76) db_options ::= */
+ { 340, -3 }, /* (77) db_options ::= db_options BUFFER NK_INTEGER */
+ { 340, -3 }, /* (78) db_options ::= db_options CACHEMODEL NK_STRING */
+ { 340, -3 }, /* (79) db_options ::= db_options CACHESIZE NK_INTEGER */
+ { 340, -3 }, /* (80) db_options ::= db_options COMP NK_INTEGER */
+ { 340, -3 }, /* (81) db_options ::= db_options DURATION NK_INTEGER */
+ { 340, -3 }, /* (82) db_options ::= db_options DURATION NK_VARIABLE */
+ { 340, -3 }, /* (83) db_options ::= db_options MAXROWS NK_INTEGER */
+ { 340, -3 }, /* (84) db_options ::= db_options MINROWS NK_INTEGER */
+ { 340, -3 }, /* (85) db_options ::= db_options KEEP integer_list */
+ { 340, -3 }, /* (86) db_options ::= db_options KEEP variable_list */
+ { 340, -3 }, /* (87) db_options ::= db_options PAGES NK_INTEGER */
+ { 340, -3 }, /* (88) db_options ::= db_options PAGESIZE NK_INTEGER */
+ { 340, -3 }, /* (89) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
+ { 340, -3 }, /* (90) db_options ::= db_options PRECISION NK_STRING */
+ { 340, -3 }, /* (91) db_options ::= db_options REPLICA NK_INTEGER */
+ { 340, -3 }, /* (92) db_options ::= db_options VGROUPS NK_INTEGER */
+ { 340, -3 }, /* (93) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
+ { 340, -3 }, /* (94) db_options ::= db_options RETENTIONS retention_list */
+ { 340, -3 }, /* (95) db_options ::= db_options SCHEMALESS NK_INTEGER */
+ { 340, -3 }, /* (96) db_options ::= db_options WAL_LEVEL NK_INTEGER */
+ { 340, -3 }, /* (97) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
+ { 340, -3 }, /* (98) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
+ { 340, -4 }, /* (99) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
+ { 340, -3 }, /* (100) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
+ { 340, -4 }, /* (101) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
+ { 340, -3 }, /* (102) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
+ { 340, -3 }, /* (103) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
+ { 340, -3 }, /* (104) db_options ::= db_options STT_TRIGGER NK_INTEGER */
+ { 340, -3 }, /* (105) db_options ::= db_options TABLE_PREFIX NK_INTEGER */
+ { 340, -3 }, /* (106) db_options ::= db_options TABLE_SUFFIX NK_INTEGER */
+ { 342, -1 }, /* (107) alter_db_options ::= alter_db_option */
+ { 342, -2 }, /* (108) alter_db_options ::= alter_db_options alter_db_option */
+ { 347, -2 }, /* (109) alter_db_option ::= BUFFER NK_INTEGER */
+ { 347, -2 }, /* (110) alter_db_option ::= CACHEMODEL NK_STRING */
+ { 347, -2 }, /* (111) alter_db_option ::= CACHESIZE NK_INTEGER */
+ { 347, -2 }, /* (112) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
+ { 347, -2 }, /* (113) alter_db_option ::= KEEP integer_list */
+ { 347, -2 }, /* (114) alter_db_option ::= KEEP variable_list */
+ { 347, -2 }, /* (115) alter_db_option ::= PAGES NK_INTEGER */
+ { 347, -2 }, /* (116) alter_db_option ::= REPLICA NK_INTEGER */
+ { 347, -2 }, /* (117) alter_db_option ::= WAL_LEVEL NK_INTEGER */
+ { 347, -2 }, /* (118) alter_db_option ::= STT_TRIGGER NK_INTEGER */
+ { 344, -1 }, /* (119) integer_list ::= NK_INTEGER */
+ { 344, -3 }, /* (120) integer_list ::= integer_list NK_COMMA NK_INTEGER */
+ { 345, -1 }, /* (121) variable_list ::= NK_VARIABLE */
+ { 345, -3 }, /* (122) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
+ { 346, -1 }, /* (123) retention_list ::= retention */
+ { 346, -3 }, /* (124) retention_list ::= retention_list NK_COMMA retention */
+ { 348, -3 }, /* (125) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
+ { 343, 0 }, /* (126) speed_opt ::= */
+ { 343, -2 }, /* (127) speed_opt ::= MAX_SPEED NK_INTEGER */
+ { 324, -9 }, /* (128) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
+ { 324, -3 }, /* (129) cmd ::= CREATE TABLE multi_create_clause */
+ { 324, -9 }, /* (130) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
+ { 324, -3 }, /* (131) cmd ::= DROP TABLE multi_drop_clause */
+ { 324, -4 }, /* (132) cmd ::= DROP STABLE exists_opt full_table_name */
+ { 324, -3 }, /* (133) cmd ::= ALTER TABLE alter_table_clause */
+ { 324, -3 }, /* (134) cmd ::= ALTER STABLE alter_table_clause */
+ { 356, -2 }, /* (135) alter_table_clause ::= full_table_name alter_table_options */
+ { 356, -5 }, /* (136) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
+ { 356, -4 }, /* (137) alter_table_clause ::= full_table_name DROP COLUMN column_name */
+ { 356, -5 }, /* (138) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
+ { 356, -5 }, /* (139) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
+ { 356, -5 }, /* (140) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
+ { 356, -4 }, /* (141) alter_table_clause ::= full_table_name DROP TAG column_name */
+ { 356, -5 }, /* (142) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
+ { 356, -5 }, /* (143) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
+ { 356, -6 }, /* (144) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
+ { 353, -1 }, /* (145) multi_create_clause ::= create_subtable_clause */
+ { 353, -2 }, /* (146) multi_create_clause ::= multi_create_clause create_subtable_clause */
+ { 361, -10 }, /* (147) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */
+ { 355, -1 }, /* (148) multi_drop_clause ::= drop_table_clause */
+ { 355, -2 }, /* (149) multi_drop_clause ::= multi_drop_clause drop_table_clause */
+ { 364, -2 }, /* (150) drop_table_clause ::= exists_opt full_table_name */
+ { 362, 0 }, /* (151) specific_cols_opt ::= */
+ { 362, -3 }, /* (152) specific_cols_opt ::= NK_LP col_name_list NK_RP */
+ { 349, -1 }, /* (153) full_table_name ::= table_name */
+ { 349, -3 }, /* (154) full_table_name ::= db_name NK_DOT table_name */
+ { 350, -1 }, /* (155) column_def_list ::= column_def */
+ { 350, -3 }, /* (156) column_def_list ::= column_def_list NK_COMMA column_def */
+ { 367, -2 }, /* (157) column_def ::= column_name type_name */
+ { 367, -4 }, /* (158) column_def ::= column_name type_name COMMENT NK_STRING */
+ { 359, -1 }, /* (159) type_name ::= BOOL */
+ { 359, -1 }, /* (160) type_name ::= TINYINT */
+ { 359, -1 }, /* (161) type_name ::= SMALLINT */
+ { 359, -1 }, /* (162) type_name ::= INT */
+ { 359, -1 }, /* (163) type_name ::= INTEGER */
+ { 359, -1 }, /* (164) type_name ::= BIGINT */
+ { 359, -1 }, /* (165) type_name ::= FLOAT */
+ { 359, -1 }, /* (166) type_name ::= DOUBLE */
+ { 359, -4 }, /* (167) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
+ { 359, -1 }, /* (168) type_name ::= TIMESTAMP */
+ { 359, -4 }, /* (169) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
+ { 359, -2 }, /* (170) type_name ::= TINYINT UNSIGNED */
+ { 359, -2 }, /* (171) type_name ::= SMALLINT UNSIGNED */
+ { 359, -2 }, /* (172) type_name ::= INT UNSIGNED */
+ { 359, -2 }, /* (173) type_name ::= BIGINT UNSIGNED */
+ { 359, -1 }, /* (174) type_name ::= JSON */
+ { 359, -4 }, /* (175) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
+ { 359, -1 }, /* (176) type_name ::= MEDIUMBLOB */
+ { 359, -1 }, /* (177) type_name ::= BLOB */
+ { 359, -4 }, /* (178) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
+ { 359, -1 }, /* (179) type_name ::= DECIMAL */
+ { 359, -4 }, /* (180) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
+ { 359, -6 }, /* (181) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
+ { 351, 0 }, /* (182) tags_def_opt ::= */
+ { 351, -1 }, /* (183) tags_def_opt ::= tags_def */
+ { 354, -4 }, /* (184) tags_def ::= TAGS NK_LP column_def_list NK_RP */
+ { 352, 0 }, /* (185) table_options ::= */
+ { 352, -3 }, /* (186) table_options ::= table_options COMMENT NK_STRING */
+ { 352, -3 }, /* (187) table_options ::= table_options MAX_DELAY duration_list */
+ { 352, -3 }, /* (188) table_options ::= table_options WATERMARK duration_list */
+ { 352, -5 }, /* (189) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
+ { 352, -3 }, /* (190) table_options ::= table_options TTL NK_INTEGER */
+ { 352, -5 }, /* (191) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
+ { 352, -3 }, /* (192) table_options ::= table_options DELETE_MARK duration_list */
+ { 357, -1 }, /* (193) alter_table_options ::= alter_table_option */
+ { 357, -2 }, /* (194) alter_table_options ::= alter_table_options alter_table_option */
+ { 370, -2 }, /* (195) alter_table_option ::= COMMENT NK_STRING */
+ { 370, -2 }, /* (196) alter_table_option ::= TTL NK_INTEGER */
+ { 368, -1 }, /* (197) duration_list ::= duration_literal */
+ { 368, -3 }, /* (198) duration_list ::= duration_list NK_COMMA duration_literal */
+ { 369, -1 }, /* (199) rollup_func_list ::= rollup_func_name */
+ { 369, -3 }, /* (200) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
+ { 372, -1 }, /* (201) rollup_func_name ::= function_name */
+ { 372, -1 }, /* (202) rollup_func_name ::= FIRST */
+ { 372, -1 }, /* (203) rollup_func_name ::= LAST */
+ { 365, -1 }, /* (204) col_name_list ::= col_name */
+ { 365, -3 }, /* (205) col_name_list ::= col_name_list NK_COMMA col_name */
+ { 374, -1 }, /* (206) col_name ::= column_name */
+ { 324, -2 }, /* (207) cmd ::= SHOW DNODES */
+ { 324, -2 }, /* (208) cmd ::= SHOW USERS */
+ { 324, -3 }, /* (209) cmd ::= SHOW USER PRIVILEGES */
+ { 324, -2 }, /* (210) cmd ::= SHOW DATABASES */
+ { 324, -4 }, /* (211) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */
+ { 324, -4 }, /* (212) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
+ { 324, -3 }, /* (213) cmd ::= SHOW db_name_cond_opt VGROUPS */
+ { 324, -2 }, /* (214) cmd ::= SHOW MNODES */
+ { 324, -2 }, /* (215) cmd ::= SHOW QNODES */
+ { 324, -2 }, /* (216) cmd ::= SHOW FUNCTIONS */
+ { 324, -5 }, /* (217) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
+ { 324, -2 }, /* (218) cmd ::= SHOW STREAMS */
+ { 324, -2 }, /* (219) cmd ::= SHOW ACCOUNTS */
+ { 324, -2 }, /* (220) cmd ::= SHOW APPS */
+ { 324, -2 }, /* (221) cmd ::= SHOW CONNECTIONS */
+ { 324, -2 }, /* (222) cmd ::= SHOW LICENCES */
+ { 324, -2 }, /* (223) cmd ::= SHOW GRANTS */
+ { 324, -4 }, /* (224) cmd ::= SHOW CREATE DATABASE db_name */
+ { 324, -4 }, /* (225) cmd ::= SHOW CREATE TABLE full_table_name */
+ { 324, -4 }, /* (226) cmd ::= SHOW CREATE STABLE full_table_name */
+ { 324, -2 }, /* (227) cmd ::= SHOW QUERIES */
+ { 324, -2 }, /* (228) cmd ::= SHOW SCORES */
+ { 324, -2 }, /* (229) cmd ::= SHOW TOPICS */
+ { 324, -2 }, /* (230) cmd ::= SHOW VARIABLES */
+ { 324, -3 }, /* (231) cmd ::= SHOW CLUSTER VARIABLES */
+ { 324, -3 }, /* (232) cmd ::= SHOW LOCAL VARIABLES */
+ { 324, -5 }, /* (233) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
+ { 324, -2 }, /* (234) cmd ::= SHOW BNODES */
+ { 324, -2 }, /* (235) cmd ::= SHOW SNODES */
+ { 324, -2 }, /* (236) cmd ::= SHOW CLUSTER */
+ { 324, -2 }, /* (237) cmd ::= SHOW TRANSACTIONS */
+ { 324, -4 }, /* (238) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
+ { 324, -2 }, /* (239) cmd ::= SHOW CONSUMERS */
+ { 324, -2 }, /* (240) cmd ::= SHOW SUBSCRIPTIONS */
+ { 324, -5 }, /* (241) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
+ { 324, -7 }, /* (242) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
+ { 324, -3 }, /* (243) cmd ::= SHOW VNODES NK_INTEGER */
+ { 324, -3 }, /* (244) cmd ::= SHOW VNODES NK_STRING */
+ { 375, 0 }, /* (245) db_name_cond_opt ::= */
+ { 375, -2 }, /* (246) db_name_cond_opt ::= db_name NK_DOT */
+ { 376, 0 }, /* (247) like_pattern_opt ::= */
+ { 376, -2 }, /* (248) like_pattern_opt ::= LIKE NK_STRING */
+ { 377, -1 }, /* (249) table_name_cond ::= table_name */
+ { 378, 0 }, /* (250) from_db_opt ::= */
+ { 378, -2 }, /* (251) from_db_opt ::= FROM db_name */
+ { 379, 0 }, /* (252) tag_list_opt ::= */
+ { 379, -1 }, /* (253) tag_list_opt ::= tag_item */
+ { 379, -3 }, /* (254) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
+ { 380, -1 }, /* (255) tag_item ::= TBNAME */
+ { 380, -1 }, /* (256) tag_item ::= QTAGS */
+ { 380, -1 }, /* (257) tag_item ::= column_name */
+ { 380, -2 }, /* (258) tag_item ::= column_name column_alias */
+ { 380, -3 }, /* (259) tag_item ::= column_name AS column_alias */
+ { 324, -8 }, /* (260) cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options */
+ { 324, -4 }, /* (261) cmd ::= DROP INDEX exists_opt full_index_name */
+ { 382, -1 }, /* (262) full_index_name ::= index_name */
+ { 382, -3 }, /* (263) full_index_name ::= db_name NK_DOT index_name */
+ { 383, -10 }, /* (264) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
+ { 383, -12 }, /* (265) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */
+ { 385, -1 }, /* (266) func_list ::= func */
+ { 385, -3 }, /* (267) func_list ::= func_list NK_COMMA func */
+ { 388, -4 }, /* (268) func ::= function_name NK_LP expression_list NK_RP */
+ { 387, 0 }, /* (269) sma_stream_opt ::= */
+ { 387, -3 }, /* (270) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
+ { 387, -3 }, /* (271) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
+ { 387, -3 }, /* (272) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
+ { 324, -6 }, /* (273) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
+ { 324, -7 }, /* (274) cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */
+ { 324, -9 }, /* (275) cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name */
+ { 324, -7 }, /* (276) cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */
+ { 324, -9 }, /* (277) cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name */
+ { 324, -4 }, /* (278) cmd ::= DROP TOPIC exists_opt topic_name */
+ { 324, -7 }, /* (279) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
+ { 324, -2 }, /* (280) cmd ::= DESC full_table_name */
+ { 324, -2 }, /* (281) cmd ::= DESCRIBE full_table_name */
+ { 324, -3 }, /* (282) cmd ::= RESET QUERY CACHE */
+ { 324, -4 }, /* (283) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
+ { 391, 0 }, /* (284) analyze_opt ::= */
+ { 391, -1 }, /* (285) analyze_opt ::= ANALYZE */
+ { 392, 0 }, /* (286) explain_options ::= */
+ { 392, -3 }, /* (287) explain_options ::= explain_options VERBOSE NK_BOOL */
+ { 392, -3 }, /* (288) explain_options ::= explain_options RATIO NK_FLOAT */
+ { 324, -10 }, /* (289) cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */
+ { 324, -4 }, /* (290) cmd ::= DROP FUNCTION exists_opt function_name */
+ { 393, 0 }, /* (291) agg_func_opt ::= */
+ { 393, -1 }, /* (292) agg_func_opt ::= AGGREGATE */
+ { 394, 0 }, /* (293) bufsize_opt ::= */
+ { 394, -2 }, /* (294) bufsize_opt ::= BUFSIZE NK_INTEGER */
+ { 324, -11 }, /* (295) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name tags_def_opt subtable_opt AS query_or_subquery */
+ { 324, -4 }, /* (296) cmd ::= DROP STREAM exists_opt stream_name */
+ { 396, 0 }, /* (297) stream_options ::= */
+ { 396, -3 }, /* (298) stream_options ::= stream_options TRIGGER AT_ONCE */
+ { 396, -3 }, /* (299) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
+ { 396, -4 }, /* (300) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
+ { 396, -3 }, /* (301) stream_options ::= stream_options WATERMARK duration_literal */
+ { 396, -4 }, /* (302) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
+ { 396, -3 }, /* (303) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
+ { 396, -3 }, /* (304) stream_options ::= stream_options DELETE_MARK duration_literal */
+ { 396, -4 }, /* (305) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
+ { 397, 0 }, /* (306) subtable_opt ::= */
+ { 397, -4 }, /* (307) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
+ { 324, -3 }, /* (308) cmd ::= KILL CONNECTION NK_INTEGER */
+ { 324, -3 }, /* (309) cmd ::= KILL QUERY NK_STRING */
+ { 324, -3 }, /* (310) cmd ::= KILL TRANSACTION NK_INTEGER */
+ { 324, -2 }, /* (311) cmd ::= BALANCE VGROUP */
+ { 324, -4 }, /* (312) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
+ { 324, -4 }, /* (313) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
+ { 324, -3 }, /* (314) cmd ::= SPLIT VGROUP NK_INTEGER */
+ { 399, -2 }, /* (315) dnode_list ::= DNODE NK_INTEGER */
+ { 399, -3 }, /* (316) dnode_list ::= dnode_list DNODE NK_INTEGER */
+ { 324, -4 }, /* (317) cmd ::= DELETE FROM full_table_name where_clause_opt */
+ { 324, -1 }, /* (318) cmd ::= query_or_subquery */
+ { 324, -7 }, /* (319) cmd ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
+ { 324, -4 }, /* (320) cmd ::= INSERT INTO full_table_name query_or_subquery */
+ { 327, -1 }, /* (321) literal ::= NK_INTEGER */
+ { 327, -1 }, /* (322) literal ::= NK_FLOAT */
+ { 327, -1 }, /* (323) literal ::= NK_STRING */
+ { 327, -1 }, /* (324) literal ::= NK_BOOL */
+ { 327, -2 }, /* (325) literal ::= TIMESTAMP NK_STRING */
+ { 327, -1 }, /* (326) literal ::= duration_literal */
+ { 327, -1 }, /* (327) literal ::= NULL */
+ { 327, -1 }, /* (328) literal ::= NK_QUESTION */
+ { 371, -1 }, /* (329) duration_literal ::= NK_VARIABLE */
+ { 401, -1 }, /* (330) signed ::= NK_INTEGER */
+ { 401, -2 }, /* (331) signed ::= NK_PLUS NK_INTEGER */
+ { 401, -2 }, /* (332) signed ::= NK_MINUS NK_INTEGER */
+ { 401, -1 }, /* (333) signed ::= NK_FLOAT */
+ { 401, -2 }, /* (334) signed ::= NK_PLUS NK_FLOAT */
+ { 401, -2 }, /* (335) signed ::= NK_MINUS NK_FLOAT */
+ { 360, -1 }, /* (336) signed_literal ::= signed */
+ { 360, -1 }, /* (337) signed_literal ::= NK_STRING */
+ { 360, -1 }, /* (338) signed_literal ::= NK_BOOL */
+ { 360, -2 }, /* (339) signed_literal ::= TIMESTAMP NK_STRING */
+ { 360, -1 }, /* (340) signed_literal ::= duration_literal */
+ { 360, -1 }, /* (341) signed_literal ::= NULL */
+ { 360, -1 }, /* (342) signed_literal ::= literal_func */
+ { 360, -1 }, /* (343) signed_literal ::= NK_QUESTION */
+ { 403, -1 }, /* (344) literal_list ::= signed_literal */
+ { 403, -3 }, /* (345) literal_list ::= literal_list NK_COMMA signed_literal */
+ { 335, -1 }, /* (346) db_name ::= NK_ID */
+ { 366, -1 }, /* (347) table_name ::= NK_ID */
+ { 358, -1 }, /* (348) column_name ::= NK_ID */
+ { 373, -1 }, /* (349) function_name ::= NK_ID */
+ { 404, -1 }, /* (350) table_alias ::= NK_ID */
+ { 381, -1 }, /* (351) column_alias ::= NK_ID */
+ { 329, -1 }, /* (352) user_name ::= NK_ID */
+ { 336, -1 }, /* (353) topic_name ::= NK_ID */
+ { 395, -1 }, /* (354) stream_name ::= NK_ID */
+ { 390, -1 }, /* (355) cgroup_name ::= NK_ID */
+ { 384, -1 }, /* (356) index_name ::= NK_ID */
+ { 405, -1 }, /* (357) expr_or_subquery ::= expression */
+ { 398, -1 }, /* (358) expression ::= literal */
+ { 398, -1 }, /* (359) expression ::= pseudo_column */
+ { 398, -1 }, /* (360) expression ::= column_reference */
+ { 398, -1 }, /* (361) expression ::= function_expression */
+ { 398, -1 }, /* (362) expression ::= case_when_expression */
+ { 398, -3 }, /* (363) expression ::= NK_LP expression NK_RP */
+ { 398, -2 }, /* (364) expression ::= NK_PLUS expr_or_subquery */
+ { 398, -2 }, /* (365) expression ::= NK_MINUS expr_or_subquery */
+ { 398, -3 }, /* (366) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
+ { 398, -3 }, /* (367) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
+ { 398, -3 }, /* (368) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
+ { 398, -3 }, /* (369) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
+ { 398, -3 }, /* (370) expression ::= expr_or_subquery NK_REM expr_or_subquery */
+ { 398, -3 }, /* (371) expression ::= column_reference NK_ARROW NK_STRING */
+ { 398, -3 }, /* (372) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
+ { 398, -3 }, /* (373) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
+ { 363, -1 }, /* (374) expression_list ::= expr_or_subquery */
+ { 363, -3 }, /* (375) expression_list ::= expression_list NK_COMMA expr_or_subquery */
+ { 407, -1 }, /* (376) column_reference ::= column_name */
+ { 407, -3 }, /* (377) column_reference ::= table_name NK_DOT column_name */
+ { 406, -1 }, /* (378) pseudo_column ::= ROWTS */
+ { 406, -1 }, /* (379) pseudo_column ::= TBNAME */
+ { 406, -3 }, /* (380) pseudo_column ::= table_name NK_DOT TBNAME */
+ { 406, -1 }, /* (381) pseudo_column ::= QSTART */
+ { 406, -1 }, /* (382) pseudo_column ::= QEND */
+ { 406, -1 }, /* (383) pseudo_column ::= QDURATION */
+ { 406, -1 }, /* (384) pseudo_column ::= WSTART */
+ { 406, -1 }, /* (385) pseudo_column ::= WEND */
+ { 406, -1 }, /* (386) pseudo_column ::= WDURATION */
+ { 406, -1 }, /* (387) pseudo_column ::= IROWTS */
+ { 406, -1 }, /* (388) pseudo_column ::= QTAGS */
+ { 408, -4 }, /* (389) function_expression ::= function_name NK_LP expression_list NK_RP */
+ { 408, -4 }, /* (390) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
+ { 408, -6 }, /* (391) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
+ { 408, -1 }, /* (392) function_expression ::= literal_func */
+ { 402, -3 }, /* (393) literal_func ::= noarg_func NK_LP NK_RP */
+ { 402, -1 }, /* (394) literal_func ::= NOW */
+ { 412, -1 }, /* (395) noarg_func ::= NOW */
+ { 412, -1 }, /* (396) noarg_func ::= TODAY */
+ { 412, -1 }, /* (397) noarg_func ::= TIMEZONE */
+ { 412, -1 }, /* (398) noarg_func ::= DATABASE */
+ { 412, -1 }, /* (399) noarg_func ::= CLIENT_VERSION */
+ { 412, -1 }, /* (400) noarg_func ::= SERVER_VERSION */
+ { 412, -1 }, /* (401) noarg_func ::= SERVER_STATUS */
+ { 412, -1 }, /* (402) noarg_func ::= CURRENT_USER */
+ { 412, -1 }, /* (403) noarg_func ::= USER */
+ { 410, -1 }, /* (404) star_func ::= COUNT */
+ { 410, -1 }, /* (405) star_func ::= FIRST */
+ { 410, -1 }, /* (406) star_func ::= LAST */
+ { 410, -1 }, /* (407) star_func ::= LAST_ROW */
+ { 411, -1 }, /* (408) star_func_para_list ::= NK_STAR */
+ { 411, -1 }, /* (409) star_func_para_list ::= other_para_list */
+ { 413, -1 }, /* (410) other_para_list ::= star_func_para */
+ { 413, -3 }, /* (411) other_para_list ::= other_para_list NK_COMMA star_func_para */
+ { 414, -1 }, /* (412) star_func_para ::= expr_or_subquery */
+ { 414, -3 }, /* (413) star_func_para ::= table_name NK_DOT NK_STAR */
+ { 409, -4 }, /* (414) case_when_expression ::= CASE when_then_list case_when_else_opt END */
+ { 409, -5 }, /* (415) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
+ { 415, -1 }, /* (416) when_then_list ::= when_then_expr */
+ { 415, -2 }, /* (417) when_then_list ::= when_then_list when_then_expr */
+ { 418, -4 }, /* (418) when_then_expr ::= WHEN common_expression THEN common_expression */
+ { 416, 0 }, /* (419) case_when_else_opt ::= */
+ { 416, -2 }, /* (420) case_when_else_opt ::= ELSE common_expression */
+ { 419, -3 }, /* (421) predicate ::= expr_or_subquery compare_op expr_or_subquery */
+ { 419, -5 }, /* (422) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
+ { 419, -6 }, /* (423) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
+ { 419, -3 }, /* (424) predicate ::= expr_or_subquery IS NULL */
+ { 419, -4 }, /* (425) predicate ::= expr_or_subquery IS NOT NULL */
+ { 419, -3 }, /* (426) predicate ::= expr_or_subquery in_op in_predicate_value */
+ { 420, -1 }, /* (427) compare_op ::= NK_LT */
+ { 420, -1 }, /* (428) compare_op ::= NK_GT */
+ { 420, -1 }, /* (429) compare_op ::= NK_LE */
+ { 420, -1 }, /* (430) compare_op ::= NK_GE */
+ { 420, -1 }, /* (431) compare_op ::= NK_NE */
+ { 420, -1 }, /* (432) compare_op ::= NK_EQ */
+ { 420, -1 }, /* (433) compare_op ::= LIKE */
+ { 420, -2 }, /* (434) compare_op ::= NOT LIKE */
+ { 420, -1 }, /* (435) compare_op ::= MATCH */
+ { 420, -1 }, /* (436) compare_op ::= NMATCH */
+ { 420, -1 }, /* (437) compare_op ::= CONTAINS */
+ { 421, -1 }, /* (438) in_op ::= IN */
+ { 421, -2 }, /* (439) in_op ::= NOT IN */
+ { 422, -3 }, /* (440) in_predicate_value ::= NK_LP literal_list NK_RP */
+ { 423, -1 }, /* (441) boolean_value_expression ::= boolean_primary */
+ { 423, -2 }, /* (442) boolean_value_expression ::= NOT boolean_primary */
+ { 423, -3 }, /* (443) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
+ { 423, -3 }, /* (444) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
+ { 424, -1 }, /* (445) boolean_primary ::= predicate */
+ { 424, -3 }, /* (446) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
+ { 417, -1 }, /* (447) common_expression ::= expr_or_subquery */
+ { 417, -1 }, /* (448) common_expression ::= boolean_value_expression */
+ { 425, 0 }, /* (449) from_clause_opt ::= */
+ { 425, -2 }, /* (450) from_clause_opt ::= FROM table_reference_list */
+ { 426, -1 }, /* (451) table_reference_list ::= table_reference */
+ { 426, -3 }, /* (452) table_reference_list ::= table_reference_list NK_COMMA table_reference */
+ { 427, -1 }, /* (453) table_reference ::= table_primary */
+ { 427, -1 }, /* (454) table_reference ::= joined_table */
+ { 428, -2 }, /* (455) table_primary ::= table_name alias_opt */
+ { 428, -4 }, /* (456) table_primary ::= db_name NK_DOT table_name alias_opt */
+ { 428, -2 }, /* (457) table_primary ::= subquery alias_opt */
+ { 428, -1 }, /* (458) table_primary ::= parenthesized_joined_table */
+ { 430, 0 }, /* (459) alias_opt ::= */
+ { 430, -1 }, /* (460) alias_opt ::= table_alias */
+ { 430, -2 }, /* (461) alias_opt ::= AS table_alias */
+ { 432, -3 }, /* (462) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
+ { 432, -3 }, /* (463) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
+ { 429, -6 }, /* (464) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
+ { 433, 0 }, /* (465) join_type ::= */
+ { 433, -1 }, /* (466) join_type ::= INNER */
+ { 435, -12 }, /* (467) query_specification ::= SELECT set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */
+ { 436, 0 }, /* (468) set_quantifier_opt ::= */
+ { 436, -1 }, /* (469) set_quantifier_opt ::= DISTINCT */
+ { 436, -1 }, /* (470) set_quantifier_opt ::= ALL */
+ { 437, -1 }, /* (471) select_list ::= select_item */
+ { 437, -3 }, /* (472) select_list ::= select_list NK_COMMA select_item */
+ { 445, -1 }, /* (473) select_item ::= NK_STAR */
+ { 445, -1 }, /* (474) select_item ::= common_expression */
+ { 445, -2 }, /* (475) select_item ::= common_expression column_alias */
+ { 445, -3 }, /* (476) select_item ::= common_expression AS column_alias */
+ { 445, -3 }, /* (477) select_item ::= table_name NK_DOT NK_STAR */
+ { 400, 0 }, /* (478) where_clause_opt ::= */
+ { 400, -2 }, /* (479) where_clause_opt ::= WHERE search_condition */
+ { 438, 0 }, /* (480) partition_by_clause_opt ::= */
+ { 438, -3 }, /* (481) partition_by_clause_opt ::= PARTITION BY partition_list */
+ { 446, -1 }, /* (482) partition_list ::= partition_item */
+ { 446, -3 }, /* (483) partition_list ::= partition_list NK_COMMA partition_item */
+ { 447, -1 }, /* (484) partition_item ::= expr_or_subquery */
+ { 447, -2 }, /* (485) partition_item ::= expr_or_subquery column_alias */
+ { 447, -3 }, /* (486) partition_item ::= expr_or_subquery AS column_alias */
+ { 442, 0 }, /* (487) twindow_clause_opt ::= */
+ { 442, -6 }, /* (488) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */
+ { 442, -4 }, /* (489) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
+ { 442, -6 }, /* (490) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */
+ { 442, -8 }, /* (491) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */
+ { 386, 0 }, /* (492) sliding_opt ::= */
+ { 386, -4 }, /* (493) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */
+ { 441, 0 }, /* (494) fill_opt ::= */
+ { 441, -4 }, /* (495) fill_opt ::= FILL NK_LP fill_mode NK_RP */
+ { 441, -6 }, /* (496) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */
+ { 441, -6 }, /* (497) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA literal_list NK_RP */
+ { 448, -1 }, /* (498) fill_mode ::= NONE */
+ { 448, -1 }, /* (499) fill_mode ::= PREV */
+ { 448, -1 }, /* (500) fill_mode ::= NULL */
+ { 448, -1 }, /* (501) fill_mode ::= NULL_F */
+ { 448, -1 }, /* (502) fill_mode ::= LINEAR */
+ { 448, -1 }, /* (503) fill_mode ::= NEXT */
+ { 443, 0 }, /* (504) group_by_clause_opt ::= */
+ { 443, -3 }, /* (505) group_by_clause_opt ::= GROUP BY group_by_list */
+ { 449, -1 }, /* (506) group_by_list ::= expr_or_subquery */
+ { 449, -3 }, /* (507) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
+ { 444, 0 }, /* (508) having_clause_opt ::= */
+ { 444, -2 }, /* (509) having_clause_opt ::= HAVING search_condition */
+ { 439, 0 }, /* (510) range_opt ::= */
+ { 439, -6 }, /* (511) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
+ { 440, 0 }, /* (512) every_opt ::= */
+ { 440, -4 }, /* (513) every_opt ::= EVERY NK_LP duration_literal NK_RP */
+ { 450, -4 }, /* (514) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
+ { 451, -1 }, /* (515) query_simple ::= query_specification */
+ { 451, -1 }, /* (516) query_simple ::= union_query_expression */
+ { 455, -4 }, /* (517) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
+ { 455, -3 }, /* (518) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
+ { 456, -1 }, /* (519) query_simple_or_subquery ::= query_simple */
+ { 456, -1 }, /* (520) query_simple_or_subquery ::= subquery */
+ { 389, -1 }, /* (521) query_or_subquery ::= query_expression */
+ { 389, -1 }, /* (522) query_or_subquery ::= subquery */
+ { 452, 0 }, /* (523) order_by_clause_opt ::= */
+ { 452, -3 }, /* (524) order_by_clause_opt ::= ORDER BY sort_specification_list */
+ { 453, 0 }, /* (525) slimit_clause_opt ::= */
+ { 453, -2 }, /* (526) slimit_clause_opt ::= SLIMIT NK_INTEGER */
+ { 453, -4 }, /* (527) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
+ { 453, -4 }, /* (528) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
+ { 454, 0 }, /* (529) limit_clause_opt ::= */
+ { 454, -2 }, /* (530) limit_clause_opt ::= LIMIT NK_INTEGER */
+ { 454, -4 }, /* (531) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
+ { 454, -4 }, /* (532) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
+ { 431, -3 }, /* (533) subquery ::= NK_LP query_expression NK_RP */
+ { 431, -3 }, /* (534) subquery ::= NK_LP subquery NK_RP */
+ { 434, -1 }, /* (535) search_condition ::= common_expression */
+ { 457, -1 }, /* (536) sort_specification_list ::= sort_specification */
+ { 457, -3 }, /* (537) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
+ { 458, -3 }, /* (538) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
+ { 459, 0 }, /* (539) ordering_specification_opt ::= */
+ { 459, -1 }, /* (540) ordering_specification_opt ::= ASC */
+ { 459, -1 }, /* (541) ordering_specification_opt ::= DESC */
+ { 460, 0 }, /* (542) null_ordering_opt ::= */
+ { 460, -2 }, /* (543) null_ordering_opt ::= NULLS FIRST */
+ { 460, -2 }, /* (544) null_ordering_opt ::= NULLS LAST */
};
static void yy_accept(yyParser*); /* Forward Declaration */
@@ -3631,11 +3643,11 @@ static YYACTIONTYPE yy_reduce(
YYMINORTYPE yylhsminor;
case 0: /* cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
- yy_destructor(yypParser,323,&yymsp[0].minor);
+ yy_destructor(yypParser,325,&yymsp[0].minor);
break;
case 1: /* cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
- yy_destructor(yypParser,324,&yymsp[0].minor);
+ yy_destructor(yypParser,326,&yymsp[0].minor);
break;
case 2: /* account_options ::= */
{ }
@@ -3649,20 +3661,20 @@ static YYACTIONTYPE yy_reduce(
case 9: /* account_options ::= account_options USERS literal */ yytestcase(yyruleno==9);
case 10: /* account_options ::= account_options CONNS literal */ yytestcase(yyruleno==10);
case 11: /* account_options ::= account_options STATE literal */ yytestcase(yyruleno==11);
-{ yy_destructor(yypParser,323,&yymsp[-2].minor);
+{ yy_destructor(yypParser,325,&yymsp[-2].minor);
{ }
- yy_destructor(yypParser,325,&yymsp[0].minor);
+ yy_destructor(yypParser,327,&yymsp[0].minor);
}
break;
case 12: /* alter_account_options ::= alter_account_option */
-{ yy_destructor(yypParser,326,&yymsp[0].minor);
+{ yy_destructor(yypParser,328,&yymsp[0].minor);
{ }
}
break;
case 13: /* alter_account_options ::= alter_account_options alter_account_option */
-{ yy_destructor(yypParser,324,&yymsp[-1].minor);
+{ yy_destructor(yypParser,326,&yymsp[-1].minor);
{ }
- yy_destructor(yypParser,326,&yymsp[0].minor);
+ yy_destructor(yypParser,328,&yymsp[0].minor);
}
break;
case 14: /* alter_account_option ::= PASS literal */
@@ -3676,80 +3688,80 @@ static YYACTIONTYPE yy_reduce(
case 22: /* alter_account_option ::= CONNS literal */ yytestcase(yyruleno==22);
case 23: /* alter_account_option ::= STATE literal */ yytestcase(yyruleno==23);
{ }
- yy_destructor(yypParser,325,&yymsp[0].minor);
+ yy_destructor(yypParser,327,&yymsp[0].minor);
break;
case 24: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */
-{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-3].minor.yy317, &yymsp[-1].minor.yy0, yymsp[0].minor.yy449); }
+{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-3].minor.yy77, &yymsp[-1].minor.yy0, yymsp[0].minor.yy287); }
break;
case 25: /* cmd ::= ALTER USER user_name PASS NK_STRING */
-{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy317, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); }
+{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy77, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); }
break;
case 26: /* cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
-{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy317, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); }
+{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy77, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); }
break;
case 27: /* cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
-{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy317, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); }
+{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy77, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); }
break;
case 28: /* cmd ::= DROP USER user_name */
-{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy317); }
+{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy77); }
break;
case 29: /* sysinfo_opt ::= */
-{ yymsp[1].minor.yy449 = 1; }
+{ yymsp[1].minor.yy287 = 1; }
break;
case 30: /* sysinfo_opt ::= SYSINFO NK_INTEGER */
-{ yymsp[-1].minor.yy449 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); }
+{ yymsp[-1].minor.yy287 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); }
break;
case 31: /* cmd ::= GRANT privileges ON priv_level TO user_name */
-{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-4].minor.yy531, &yymsp[-2].minor.yy317, &yymsp[0].minor.yy317); }
+{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-4].minor.yy717, &yymsp[-2].minor.yy77, &yymsp[0].minor.yy77); }
break;
case 32: /* cmd ::= REVOKE privileges ON priv_level FROM user_name */
-{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-4].minor.yy531, &yymsp[-2].minor.yy317, &yymsp[0].minor.yy317); }
+{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-4].minor.yy717, &yymsp[-2].minor.yy77, &yymsp[0].minor.yy77); }
break;
case 33: /* privileges ::= ALL */
-{ yymsp[0].minor.yy531 = PRIVILEGE_TYPE_ALL; }
+{ yymsp[0].minor.yy717 = PRIVILEGE_TYPE_ALL; }
break;
case 34: /* privileges ::= priv_type_list */
case 36: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==36);
-{ yylhsminor.yy531 = yymsp[0].minor.yy531; }
- yymsp[0].minor.yy531 = yylhsminor.yy531;
+{ yylhsminor.yy717 = yymsp[0].minor.yy717; }
+ yymsp[0].minor.yy717 = yylhsminor.yy717;
break;
case 35: /* privileges ::= SUBSCRIBE */
-{ yymsp[0].minor.yy531 = PRIVILEGE_TYPE_SUBSCRIBE; }
+{ yymsp[0].minor.yy717 = PRIVILEGE_TYPE_SUBSCRIBE; }
break;
case 37: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */
-{ yylhsminor.yy531 = yymsp[-2].minor.yy531 | yymsp[0].minor.yy531; }
- yymsp[-2].minor.yy531 = yylhsminor.yy531;
+{ yylhsminor.yy717 = yymsp[-2].minor.yy717 | yymsp[0].minor.yy717; }
+ yymsp[-2].minor.yy717 = yylhsminor.yy717;
break;
case 38: /* priv_type ::= READ */
-{ yymsp[0].minor.yy531 = PRIVILEGE_TYPE_READ; }
+{ yymsp[0].minor.yy717 = PRIVILEGE_TYPE_READ; }
break;
case 39: /* priv_type ::= WRITE */
-{ yymsp[0].minor.yy531 = PRIVILEGE_TYPE_WRITE; }
+{ yymsp[0].minor.yy717 = PRIVILEGE_TYPE_WRITE; }
break;
case 40: /* priv_level ::= NK_STAR NK_DOT NK_STAR */
-{ yylhsminor.yy317 = yymsp[-2].minor.yy0; }
- yymsp[-2].minor.yy317 = yylhsminor.yy317;
+{ yylhsminor.yy77 = yymsp[-2].minor.yy0; }
+ yymsp[-2].minor.yy77 = yylhsminor.yy77;
break;
case 41: /* priv_level ::= db_name NK_DOT NK_STAR */
-{ yylhsminor.yy317 = yymsp[-2].minor.yy317; }
- yymsp[-2].minor.yy317 = yylhsminor.yy317;
+{ yylhsminor.yy77 = yymsp[-2].minor.yy77; }
+ yymsp[-2].minor.yy77 = yylhsminor.yy77;
break;
case 42: /* priv_level ::= topic_name */
- case 459: /* alias_opt ::= table_alias */ yytestcase(yyruleno==459);
-{ yylhsminor.yy317 = yymsp[0].minor.yy317; }
- yymsp[0].minor.yy317 = yylhsminor.yy317;
+ case 460: /* alias_opt ::= table_alias */ yytestcase(yyruleno==460);
+{ yylhsminor.yy77 = yymsp[0].minor.yy77; }
+ yymsp[0].minor.yy77 = yylhsminor.yy77;
break;
case 43: /* cmd ::= CREATE DNODE dnode_endpoint */
-{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy317, NULL); }
+{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy77, NULL); }
break;
case 44: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
-{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy317, &yymsp[0].minor.yy0); }
+{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy77, &yymsp[0].minor.yy0); }
break;
case 45: /* cmd ::= DROP DNODE NK_INTEGER force_opt */
-{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy335); }
+{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy841); }
break;
case 46: /* cmd ::= DROP DNODE dnode_endpoint force_opt */
-{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy317, yymsp[0].minor.yy335); }
+{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy77, yymsp[0].minor.yy841); }
break;
case 47: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); }
@@ -3766,46 +3778,46 @@ static YYACTIONTYPE yy_reduce(
case 51: /* dnode_endpoint ::= NK_STRING */
case 52: /* dnode_endpoint ::= NK_ID */ yytestcase(yyruleno==52);
case 53: /* dnode_endpoint ::= NK_IPTOKEN */ yytestcase(yyruleno==53);
- case 345: /* db_name ::= NK_ID */ yytestcase(yyruleno==345);
- case 346: /* table_name ::= NK_ID */ yytestcase(yyruleno==346);
- case 347: /* column_name ::= NK_ID */ yytestcase(yyruleno==347);
- case 348: /* function_name ::= NK_ID */ yytestcase(yyruleno==348);
- case 349: /* table_alias ::= NK_ID */ yytestcase(yyruleno==349);
- case 350: /* column_alias ::= NK_ID */ yytestcase(yyruleno==350);
- case 351: /* user_name ::= NK_ID */ yytestcase(yyruleno==351);
- case 352: /* topic_name ::= NK_ID */ yytestcase(yyruleno==352);
- case 353: /* stream_name ::= NK_ID */ yytestcase(yyruleno==353);
- case 354: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==354);
- case 355: /* index_name ::= NK_ID */ yytestcase(yyruleno==355);
- case 394: /* noarg_func ::= NOW */ yytestcase(yyruleno==394);
- case 395: /* noarg_func ::= TODAY */ yytestcase(yyruleno==395);
- case 396: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==396);
- case 397: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==397);
- case 398: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==398);
- case 399: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==399);
- case 400: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==400);
- case 401: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==401);
- case 402: /* noarg_func ::= USER */ yytestcase(yyruleno==402);
- case 403: /* star_func ::= COUNT */ yytestcase(yyruleno==403);
- case 404: /* star_func ::= FIRST */ yytestcase(yyruleno==404);
- case 405: /* star_func ::= LAST */ yytestcase(yyruleno==405);
- case 406: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==406);
-{ yylhsminor.yy317 = yymsp[0].minor.yy0; }
- yymsp[0].minor.yy317 = yylhsminor.yy317;
+ case 346: /* db_name ::= NK_ID */ yytestcase(yyruleno==346);
+ case 347: /* table_name ::= NK_ID */ yytestcase(yyruleno==347);
+ case 348: /* column_name ::= NK_ID */ yytestcase(yyruleno==348);
+ case 349: /* function_name ::= NK_ID */ yytestcase(yyruleno==349);
+ case 350: /* table_alias ::= NK_ID */ yytestcase(yyruleno==350);
+ case 351: /* column_alias ::= NK_ID */ yytestcase(yyruleno==351);
+ case 352: /* user_name ::= NK_ID */ yytestcase(yyruleno==352);
+ case 353: /* topic_name ::= NK_ID */ yytestcase(yyruleno==353);
+ case 354: /* stream_name ::= NK_ID */ yytestcase(yyruleno==354);
+ case 355: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==355);
+ case 356: /* index_name ::= NK_ID */ yytestcase(yyruleno==356);
+ case 395: /* noarg_func ::= NOW */ yytestcase(yyruleno==395);
+ case 396: /* noarg_func ::= TODAY */ yytestcase(yyruleno==396);
+ case 397: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==397);
+ case 398: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==398);
+ case 399: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==399);
+ case 400: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==400);
+ case 401: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==401);
+ case 402: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==402);
+ case 403: /* noarg_func ::= USER */ yytestcase(yyruleno==403);
+ case 404: /* star_func ::= COUNT */ yytestcase(yyruleno==404);
+ case 405: /* star_func ::= FIRST */ yytestcase(yyruleno==405);
+ case 406: /* star_func ::= LAST */ yytestcase(yyruleno==406);
+ case 407: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==407);
+{ yylhsminor.yy77 = yymsp[0].minor.yy0; }
+ yymsp[0].minor.yy77 = yylhsminor.yy77;
break;
case 54: /* force_opt ::= */
case 73: /* not_exists_opt ::= */ yytestcase(yyruleno==73);
case 75: /* exists_opt ::= */ yytestcase(yyruleno==75);
case 284: /* analyze_opt ::= */ yytestcase(yyruleno==284);
case 291: /* agg_func_opt ::= */ yytestcase(yyruleno==291);
- case 467: /* set_quantifier_opt ::= */ yytestcase(yyruleno==467);
-{ yymsp[1].minor.yy335 = false; }
+ case 468: /* set_quantifier_opt ::= */ yytestcase(yyruleno==468);
+{ yymsp[1].minor.yy841 = false; }
break;
case 55: /* force_opt ::= FORCE */
case 285: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==285);
case 292: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==292);
- case 468: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==468);
-{ yymsp[0].minor.yy335 = true; }
+ case 469: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==469);
+{ yymsp[0].minor.yy841 = true; }
break;
case 56: /* cmd ::= ALTER LOCAL NK_STRING */
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); }
@@ -3838,206 +3850,206 @@ static YYACTIONTYPE yy_reduce(
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); }
break;
case 66: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
-{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy335, &yymsp[-1].minor.yy317, yymsp[0].minor.yy74); }
+{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy841, &yymsp[-1].minor.yy77, yymsp[0].minor.yy600); }
break;
case 67: /* cmd ::= DROP DATABASE exists_opt db_name */
-{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy335, &yymsp[0].minor.yy317); }
+{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy841, &yymsp[0].minor.yy77); }
break;
case 68: /* cmd ::= USE db_name */
-{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy317); }
+{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy77); }
break;
case 69: /* cmd ::= ALTER DATABASE db_name alter_db_options */
-{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy317, yymsp[0].minor.yy74); }
+{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy77, yymsp[0].minor.yy600); }
break;
case 70: /* cmd ::= FLUSH DATABASE db_name */
-{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy317); }
+{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy77); }
break;
case 71: /* cmd ::= TRIM DATABASE db_name speed_opt */
-{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy317, yymsp[0].minor.yy856); }
+{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy77, yymsp[0].minor.yy248); }
break;
case 72: /* not_exists_opt ::= IF NOT EXISTS */
-{ yymsp[-2].minor.yy335 = true; }
+{ yymsp[-2].minor.yy841 = true; }
break;
case 74: /* exists_opt ::= IF EXISTS */
-{ yymsp[-1].minor.yy335 = true; }
+{ yymsp[-1].minor.yy841 = true; }
break;
case 76: /* db_options ::= */
-{ yymsp[1].minor.yy74 = createDefaultDatabaseOptions(pCxt); }
+{ yymsp[1].minor.yy600 = createDefaultDatabaseOptions(pCxt); }
break;
case 77: /* db_options ::= db_options BUFFER NK_INTEGER */
-{ yylhsminor.yy74 = setDatabaseOption(pCxt, yymsp[-2].minor.yy74, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 78: /* db_options ::= db_options CACHEMODEL NK_STRING */
-{ yylhsminor.yy74 = setDatabaseOption(pCxt, yymsp[-2].minor.yy74, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 79: /* db_options ::= db_options CACHESIZE NK_INTEGER */
-{ yylhsminor.yy74 = setDatabaseOption(pCxt, yymsp[-2].minor.yy74, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 80: /* db_options ::= db_options COMP NK_INTEGER */
-{ yylhsminor.yy74 = setDatabaseOption(pCxt, yymsp[-2].minor.yy74, DB_OPTION_COMP, &yymsp[0].minor.yy0); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_COMP, &yymsp[0].minor.yy0); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 81: /* db_options ::= db_options DURATION NK_INTEGER */
case 82: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==82);
-{ yylhsminor.yy74 = setDatabaseOption(pCxt, yymsp[-2].minor.yy74, DB_OPTION_DAYS, &yymsp[0].minor.yy0); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_DAYS, &yymsp[0].minor.yy0); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 83: /* db_options ::= db_options MAXROWS NK_INTEGER */
-{ yylhsminor.yy74 = setDatabaseOption(pCxt, yymsp[-2].minor.yy74, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 84: /* db_options ::= db_options MINROWS NK_INTEGER */
-{ yylhsminor.yy74 = setDatabaseOption(pCxt, yymsp[-2].minor.yy74, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 85: /* db_options ::= db_options KEEP integer_list */
case 86: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==86);
-{ yylhsminor.yy74 = setDatabaseOption(pCxt, yymsp[-2].minor.yy74, DB_OPTION_KEEP, yymsp[0].minor.yy874); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_KEEP, yymsp[0].minor.yy601); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 87: /* db_options ::= db_options PAGES NK_INTEGER */
-{ yylhsminor.yy74 = setDatabaseOption(pCxt, yymsp[-2].minor.yy74, DB_OPTION_PAGES, &yymsp[0].minor.yy0); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_PAGES, &yymsp[0].minor.yy0); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 88: /* db_options ::= db_options PAGESIZE NK_INTEGER */
-{ yylhsminor.yy74 = setDatabaseOption(pCxt, yymsp[-2].minor.yy74, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 89: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
-{ yylhsminor.yy74 = setDatabaseOption(pCxt, yymsp[-2].minor.yy74, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 90: /* db_options ::= db_options PRECISION NK_STRING */
-{ yylhsminor.yy74 = setDatabaseOption(pCxt, yymsp[-2].minor.yy74, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 91: /* db_options ::= db_options REPLICA NK_INTEGER */
-{ yylhsminor.yy74 = setDatabaseOption(pCxt, yymsp[-2].minor.yy74, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 92: /* db_options ::= db_options VGROUPS NK_INTEGER */
-{ yylhsminor.yy74 = setDatabaseOption(pCxt, yymsp[-2].minor.yy74, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 93: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */
-{ yylhsminor.yy74 = setDatabaseOption(pCxt, yymsp[-2].minor.yy74, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 94: /* db_options ::= db_options RETENTIONS retention_list */
-{ yylhsminor.yy74 = setDatabaseOption(pCxt, yymsp[-2].minor.yy74, DB_OPTION_RETENTIONS, yymsp[0].minor.yy874); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_RETENTIONS, yymsp[0].minor.yy601); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 95: /* db_options ::= db_options SCHEMALESS NK_INTEGER */
-{ yylhsminor.yy74 = setDatabaseOption(pCxt, yymsp[-2].minor.yy74, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 96: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */
-{ yylhsminor.yy74 = setDatabaseOption(pCxt, yymsp[-2].minor.yy74, DB_OPTION_WAL, &yymsp[0].minor.yy0); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_WAL, &yymsp[0].minor.yy0); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 97: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
-{ yylhsminor.yy74 = setDatabaseOption(pCxt, yymsp[-2].minor.yy74, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 98: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
-{ yylhsminor.yy74 = setDatabaseOption(pCxt, yymsp[-2].minor.yy74, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 99: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
{
SToken t = yymsp[-1].minor.yy0;
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
- yylhsminor.yy74 = setDatabaseOption(pCxt, yymsp[-3].minor.yy74, DB_OPTION_WAL_RETENTION_PERIOD, &t);
+ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-3].minor.yy600, DB_OPTION_WAL_RETENTION_PERIOD, &t);
}
- yymsp[-3].minor.yy74 = yylhsminor.yy74;
+ yymsp[-3].minor.yy600 = yylhsminor.yy600;
break;
case 100: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
-{ yylhsminor.yy74 = setDatabaseOption(pCxt, yymsp[-2].minor.yy74, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 101: /* db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
{
SToken t = yymsp[-1].minor.yy0;
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
- yylhsminor.yy74 = setDatabaseOption(pCxt, yymsp[-3].minor.yy74, DB_OPTION_WAL_RETENTION_SIZE, &t);
+ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-3].minor.yy600, DB_OPTION_WAL_RETENTION_SIZE, &t);
}
- yymsp[-3].minor.yy74 = yylhsminor.yy74;
+ yymsp[-3].minor.yy600 = yylhsminor.yy600;
break;
case 102: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
-{ yylhsminor.yy74 = setDatabaseOption(pCxt, yymsp[-2].minor.yy74, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 103: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
-{ yylhsminor.yy74 = setDatabaseOption(pCxt, yymsp[-2].minor.yy74, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 104: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */
-{ yylhsminor.yy74 = setDatabaseOption(pCxt, yymsp[-2].minor.yy74, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 105: /* db_options ::= db_options TABLE_PREFIX NK_INTEGER */
-{ yylhsminor.yy74 = setDatabaseOption(pCxt, yymsp[-2].minor.yy74, DB_OPTION_TABLE_PREFIX, &yymsp[0].minor.yy0); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_TABLE_PREFIX, &yymsp[0].minor.yy0); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 106: /* db_options ::= db_options TABLE_SUFFIX NK_INTEGER */
-{ yylhsminor.yy74 = setDatabaseOption(pCxt, yymsp[-2].minor.yy74, DB_OPTION_TABLE_SUFFIX, &yymsp[0].minor.yy0); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_TABLE_SUFFIX, &yymsp[0].minor.yy0); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 107: /* alter_db_options ::= alter_db_option */
-{ yylhsminor.yy74 = createAlterDatabaseOptions(pCxt); yylhsminor.yy74 = setAlterDatabaseOption(pCxt, yylhsminor.yy74, &yymsp[0].minor.yy767); }
- yymsp[0].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = createAlterDatabaseOptions(pCxt); yylhsminor.yy600 = setAlterDatabaseOption(pCxt, yylhsminor.yy600, &yymsp[0].minor.yy661); }
+ yymsp[0].minor.yy600 = yylhsminor.yy600;
break;
case 108: /* alter_db_options ::= alter_db_options alter_db_option */
-{ yylhsminor.yy74 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy74, &yymsp[0].minor.yy767); }
- yymsp[-1].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy600, &yymsp[0].minor.yy661); }
+ yymsp[-1].minor.yy600 = yylhsminor.yy600;
break;
case 109: /* alter_db_option ::= BUFFER NK_INTEGER */
-{ yymsp[-1].minor.yy767.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy767.val = yymsp[0].minor.yy0; }
+{ yymsp[-1].minor.yy661.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy661.val = yymsp[0].minor.yy0; }
break;
case 110: /* alter_db_option ::= CACHEMODEL NK_STRING */
-{ yymsp[-1].minor.yy767.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy767.val = yymsp[0].minor.yy0; }
+{ yymsp[-1].minor.yy661.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy661.val = yymsp[0].minor.yy0; }
break;
case 111: /* alter_db_option ::= CACHESIZE NK_INTEGER */
-{ yymsp[-1].minor.yy767.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy767.val = yymsp[0].minor.yy0; }
+{ yymsp[-1].minor.yy661.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy661.val = yymsp[0].minor.yy0; }
break;
case 112: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
-{ yymsp[-1].minor.yy767.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy767.val = yymsp[0].minor.yy0; }
+{ yymsp[-1].minor.yy661.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy661.val = yymsp[0].minor.yy0; }
break;
case 113: /* alter_db_option ::= KEEP integer_list */
case 114: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==114);
-{ yymsp[-1].minor.yy767.type = DB_OPTION_KEEP; yymsp[-1].minor.yy767.pList = yymsp[0].minor.yy874; }
+{ yymsp[-1].minor.yy661.type = DB_OPTION_KEEP; yymsp[-1].minor.yy661.pList = yymsp[0].minor.yy601; }
break;
case 115: /* alter_db_option ::= PAGES NK_INTEGER */
-{ yymsp[-1].minor.yy767.type = DB_OPTION_PAGES; yymsp[-1].minor.yy767.val = yymsp[0].minor.yy0; }
+{ yymsp[-1].minor.yy661.type = DB_OPTION_PAGES; yymsp[-1].minor.yy661.val = yymsp[0].minor.yy0; }
break;
case 116: /* alter_db_option ::= REPLICA NK_INTEGER */
-{ yymsp[-1].minor.yy767.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy767.val = yymsp[0].minor.yy0; }
+{ yymsp[-1].minor.yy661.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy661.val = yymsp[0].minor.yy0; }
break;
case 117: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */
-{ yymsp[-1].minor.yy767.type = DB_OPTION_WAL; yymsp[-1].minor.yy767.val = yymsp[0].minor.yy0; }
+{ yymsp[-1].minor.yy661.type = DB_OPTION_WAL; yymsp[-1].minor.yy661.val = yymsp[0].minor.yy0; }
break;
case 118: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */
-{ yymsp[-1].minor.yy767.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy767.val = yymsp[0].minor.yy0; }
+{ yymsp[-1].minor.yy661.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy661.val = yymsp[0].minor.yy0; }
break;
case 119: /* integer_list ::= NK_INTEGER */
-{ yylhsminor.yy874 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
- yymsp[0].minor.yy874 = yylhsminor.yy874;
+{ yylhsminor.yy601 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
+ yymsp[0].minor.yy601 = yylhsminor.yy601;
break;
case 120: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */
- case 315: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==315);
-{ yylhsminor.yy874 = addNodeToList(pCxt, yymsp[-2].minor.yy874, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
- yymsp[-2].minor.yy874 = yylhsminor.yy874;
+ case 316: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==316);
+{ yylhsminor.yy601 = addNodeToList(pCxt, yymsp[-2].minor.yy601, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
+ yymsp[-2].minor.yy601 = yylhsminor.yy601;
break;
case 121: /* variable_list ::= NK_VARIABLE */
-{ yylhsminor.yy874 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
- yymsp[0].minor.yy874 = yylhsminor.yy874;
+{ yylhsminor.yy601 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
+ yymsp[0].minor.yy601 = yylhsminor.yy601;
break;
case 122: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */
-{ yylhsminor.yy874 = addNodeToList(pCxt, yymsp[-2].minor.yy874, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
- yymsp[-2].minor.yy874 = yylhsminor.yy874;
+{ yylhsminor.yy601 = addNodeToList(pCxt, yymsp[-2].minor.yy601, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
+ yymsp[-2].minor.yy601 = yylhsminor.yy601;
break;
case 123: /* retention_list ::= retention */
case 145: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==145);
@@ -4047,14 +4059,14 @@ static YYACTIONTYPE yy_reduce(
case 204: /* col_name_list ::= col_name */ yytestcase(yyruleno==204);
case 253: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==253);
case 266: /* func_list ::= func */ yytestcase(yyruleno==266);
- case 343: /* literal_list ::= signed_literal */ yytestcase(yyruleno==343);
- case 409: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==409);
- case 415: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==415);
- case 470: /* select_list ::= select_item */ yytestcase(yyruleno==470);
- case 481: /* partition_list ::= partition_item */ yytestcase(yyruleno==481);
- case 533: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==533);
-{ yylhsminor.yy874 = createNodeList(pCxt, yymsp[0].minor.yy74); }
- yymsp[0].minor.yy874 = yylhsminor.yy874;
+ case 344: /* literal_list ::= signed_literal */ yytestcase(yyruleno==344);
+ case 410: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==410);
+ case 416: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==416);
+ case 471: /* select_list ::= select_item */ yytestcase(yyruleno==471);
+ case 482: /* partition_list ::= partition_item */ yytestcase(yyruleno==482);
+ case 536: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==536);
+{ yylhsminor.yy601 = createNodeList(pCxt, yymsp[0].minor.yy600); }
+ yymsp[0].minor.yy601 = yylhsminor.yy601;
break;
case 124: /* retention_list ::= retention_list NK_COMMA retention */
case 156: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==156);
@@ -4062,271 +4074,271 @@ static YYACTIONTYPE yy_reduce(
case 205: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==205);
case 254: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==254);
case 267: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==267);
- case 344: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==344);
- case 410: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==410);
- case 471: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==471);
- case 482: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==482);
- case 534: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==534);
-{ yylhsminor.yy874 = addNodeToList(pCxt, yymsp[-2].minor.yy874, yymsp[0].minor.yy74); }
- yymsp[-2].minor.yy874 = yylhsminor.yy874;
+ case 345: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==345);
+ case 411: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==411);
+ case 472: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==472);
+ case 483: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==483);
+ case 537: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==537);
+{ yylhsminor.yy601 = addNodeToList(pCxt, yymsp[-2].minor.yy601, yymsp[0].minor.yy600); }
+ yymsp[-2].minor.yy601 = yylhsminor.yy601;
break;
case 125: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
-{ yylhsminor.yy74 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 126: /* speed_opt ::= */
case 293: /* bufsize_opt ::= */ yytestcase(yyruleno==293);
-{ yymsp[1].minor.yy856 = 0; }
+{ yymsp[1].minor.yy248 = 0; }
break;
case 127: /* speed_opt ::= MAX_SPEED NK_INTEGER */
case 294: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==294);
-{ yymsp[-1].minor.yy856 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); }
+{ yymsp[-1].minor.yy248 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); }
break;
case 128: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
case 130: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==130);
-{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy335, yymsp[-5].minor.yy74, yymsp[-3].minor.yy874, yymsp[-1].minor.yy874, yymsp[0].minor.yy74); }
+{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy841, yymsp[-5].minor.yy600, yymsp[-3].minor.yy601, yymsp[-1].minor.yy601, yymsp[0].minor.yy600); }
break;
case 129: /* cmd ::= CREATE TABLE multi_create_clause */
-{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy874); }
+{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy601); }
break;
case 131: /* cmd ::= DROP TABLE multi_drop_clause */
-{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy874); }
+{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy601); }
break;
case 132: /* cmd ::= DROP STABLE exists_opt full_table_name */
-{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy335, yymsp[0].minor.yy74); }
+{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy841, yymsp[0].minor.yy600); }
break;
case 133: /* cmd ::= ALTER TABLE alter_table_clause */
- case 317: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==317);
-{ pCxt->pRootNode = yymsp[0].minor.yy74; }
+ case 318: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==318);
+{ pCxt->pRootNode = yymsp[0].minor.yy600; }
break;
case 134: /* cmd ::= ALTER STABLE alter_table_clause */
-{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy74); }
+{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy600); }
break;
case 135: /* alter_table_clause ::= full_table_name alter_table_options */
-{ yylhsminor.yy74 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy74, yymsp[0].minor.yy74); }
- yymsp[-1].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy600, yymsp[0].minor.yy600); }
+ yymsp[-1].minor.yy600 = yylhsminor.yy600;
break;
case 136: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
-{ yylhsminor.yy74 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy74, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy317, yymsp[0].minor.yy898); }
- yymsp[-4].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy600, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy77, yymsp[0].minor.yy888); }
+ yymsp[-4].minor.yy600 = yylhsminor.yy600;
break;
case 137: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */
-{ yylhsminor.yy74 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy74, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy317); }
- yymsp[-3].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy600, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy77); }
+ yymsp[-3].minor.yy600 = yylhsminor.yy600;
break;
case 138: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
-{ yylhsminor.yy74 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy74, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy317, yymsp[0].minor.yy898); }
- yymsp[-4].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy600, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy77, yymsp[0].minor.yy888); }
+ yymsp[-4].minor.yy600 = yylhsminor.yy600;
break;
case 139: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
-{ yylhsminor.yy74 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy74, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy317, &yymsp[0].minor.yy317); }
- yymsp[-4].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy600, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy77, &yymsp[0].minor.yy77); }
+ yymsp[-4].minor.yy600 = yylhsminor.yy600;
break;
case 140: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */
-{ yylhsminor.yy74 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy74, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy317, yymsp[0].minor.yy898); }
- yymsp[-4].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy600, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy77, yymsp[0].minor.yy888); }
+ yymsp[-4].minor.yy600 = yylhsminor.yy600;
break;
case 141: /* alter_table_clause ::= full_table_name DROP TAG column_name */
-{ yylhsminor.yy74 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy74, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy317); }
- yymsp[-3].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy600, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy77); }
+ yymsp[-3].minor.yy600 = yylhsminor.yy600;
break;
case 142: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
-{ yylhsminor.yy74 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy74, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy317, yymsp[0].minor.yy898); }
- yymsp[-4].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy600, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy77, yymsp[0].minor.yy888); }
+ yymsp[-4].minor.yy600 = yylhsminor.yy600;
break;
case 143: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
-{ yylhsminor.yy74 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy74, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy317, &yymsp[0].minor.yy317); }
- yymsp[-4].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy600, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy77, &yymsp[0].minor.yy77); }
+ yymsp[-4].minor.yy600 = yylhsminor.yy600;
break;
case 144: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
-{ yylhsminor.yy74 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy74, &yymsp[-2].minor.yy317, yymsp[0].minor.yy74); }
- yymsp[-5].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy600, &yymsp[-2].minor.yy77, yymsp[0].minor.yy600); }
+ yymsp[-5].minor.yy600 = yylhsminor.yy600;
break;
case 146: /* multi_create_clause ::= multi_create_clause create_subtable_clause */
case 149: /* multi_drop_clause ::= multi_drop_clause drop_table_clause */ yytestcase(yyruleno==149);
- case 416: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==416);
-{ yylhsminor.yy874 = addNodeToList(pCxt, yymsp[-1].minor.yy874, yymsp[0].minor.yy74); }
- yymsp[-1].minor.yy874 = yylhsminor.yy874;
+ case 417: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==417);
+{ yylhsminor.yy601 = addNodeToList(pCxt, yymsp[-1].minor.yy601, yymsp[0].minor.yy600); }
+ yymsp[-1].minor.yy601 = yylhsminor.yy601;
break;
case 147: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */
-{ yylhsminor.yy74 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy335, yymsp[-8].minor.yy74, yymsp[-6].minor.yy74, yymsp[-5].minor.yy874, yymsp[-2].minor.yy874, yymsp[0].minor.yy74); }
- yymsp[-9].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy841, yymsp[-8].minor.yy600, yymsp[-6].minor.yy600, yymsp[-5].minor.yy601, yymsp[-2].minor.yy601, yymsp[0].minor.yy600); }
+ yymsp[-9].minor.yy600 = yylhsminor.yy600;
break;
case 150: /* drop_table_clause ::= exists_opt full_table_name */
-{ yylhsminor.yy74 = createDropTableClause(pCxt, yymsp[-1].minor.yy335, yymsp[0].minor.yy74); }
- yymsp[-1].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = createDropTableClause(pCxt, yymsp[-1].minor.yy841, yymsp[0].minor.yy600); }
+ yymsp[-1].minor.yy600 = yylhsminor.yy600;
break;
case 151: /* specific_cols_opt ::= */
case 182: /* tags_def_opt ::= */ yytestcase(yyruleno==182);
case 252: /* tag_list_opt ::= */ yytestcase(yyruleno==252);
- case 479: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==479);
- case 501: /* group_by_clause_opt ::= */ yytestcase(yyruleno==501);
- case 520: /* order_by_clause_opt ::= */ yytestcase(yyruleno==520);
-{ yymsp[1].minor.yy874 = NULL; }
+ case 480: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==480);
+ case 504: /* group_by_clause_opt ::= */ yytestcase(yyruleno==504);
+ case 523: /* order_by_clause_opt ::= */ yytestcase(yyruleno==523);
+{ yymsp[1].minor.yy601 = NULL; }
break;
case 152: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */
-{ yymsp[-2].minor.yy874 = yymsp[-1].minor.yy874; }
+{ yymsp[-2].minor.yy601 = yymsp[-1].minor.yy601; }
break;
case 153: /* full_table_name ::= table_name */
-{ yylhsminor.yy74 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy317, NULL); }
- yymsp[0].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy77, NULL); }
+ yymsp[0].minor.yy600 = yylhsminor.yy600;
break;
case 154: /* full_table_name ::= db_name NK_DOT table_name */
-{ yylhsminor.yy74 = createRealTableNode(pCxt, &yymsp[-2].minor.yy317, &yymsp[0].minor.yy317, NULL); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = createRealTableNode(pCxt, &yymsp[-2].minor.yy77, &yymsp[0].minor.yy77, NULL); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 157: /* column_def ::= column_name type_name */
-{ yylhsminor.yy74 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy317, yymsp[0].minor.yy898, NULL); }
- yymsp[-1].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy77, yymsp[0].minor.yy888, NULL); }
+ yymsp[-1].minor.yy600 = yylhsminor.yy600;
break;
case 158: /* column_def ::= column_name type_name COMMENT NK_STRING */
-{ yylhsminor.yy74 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy317, yymsp[-2].minor.yy898, &yymsp[0].minor.yy0); }
- yymsp[-3].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy77, yymsp[-2].minor.yy888, &yymsp[0].minor.yy0); }
+ yymsp[-3].minor.yy600 = yylhsminor.yy600;
break;
case 159: /* type_name ::= BOOL */
-{ yymsp[0].minor.yy898 = createDataType(TSDB_DATA_TYPE_BOOL); }
+{ yymsp[0].minor.yy888 = createDataType(TSDB_DATA_TYPE_BOOL); }
break;
case 160: /* type_name ::= TINYINT */
-{ yymsp[0].minor.yy898 = createDataType(TSDB_DATA_TYPE_TINYINT); }
+{ yymsp[0].minor.yy888 = createDataType(TSDB_DATA_TYPE_TINYINT); }
break;
case 161: /* type_name ::= SMALLINT */
-{ yymsp[0].minor.yy898 = createDataType(TSDB_DATA_TYPE_SMALLINT); }
+{ yymsp[0].minor.yy888 = createDataType(TSDB_DATA_TYPE_SMALLINT); }
break;
case 162: /* type_name ::= INT */
case 163: /* type_name ::= INTEGER */ yytestcase(yyruleno==163);
-{ yymsp[0].minor.yy898 = createDataType(TSDB_DATA_TYPE_INT); }
+{ yymsp[0].minor.yy888 = createDataType(TSDB_DATA_TYPE_INT); }
break;
case 164: /* type_name ::= BIGINT */
-{ yymsp[0].minor.yy898 = createDataType(TSDB_DATA_TYPE_BIGINT); }
+{ yymsp[0].minor.yy888 = createDataType(TSDB_DATA_TYPE_BIGINT); }
break;
case 165: /* type_name ::= FLOAT */
-{ yymsp[0].minor.yy898 = createDataType(TSDB_DATA_TYPE_FLOAT); }
+{ yymsp[0].minor.yy888 = createDataType(TSDB_DATA_TYPE_FLOAT); }
break;
case 166: /* type_name ::= DOUBLE */
-{ yymsp[0].minor.yy898 = createDataType(TSDB_DATA_TYPE_DOUBLE); }
+{ yymsp[0].minor.yy888 = createDataType(TSDB_DATA_TYPE_DOUBLE); }
break;
case 167: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
-{ yymsp[-3].minor.yy898 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); }
+{ yymsp[-3].minor.yy888 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); }
break;
case 168: /* type_name ::= TIMESTAMP */
-{ yymsp[0].minor.yy898 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); }
+{ yymsp[0].minor.yy888 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); }
break;
case 169: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
-{ yymsp[-3].minor.yy898 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); }
+{ yymsp[-3].minor.yy888 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); }
break;
case 170: /* type_name ::= TINYINT UNSIGNED */
-{ yymsp[-1].minor.yy898 = createDataType(TSDB_DATA_TYPE_UTINYINT); }
+{ yymsp[-1].minor.yy888 = createDataType(TSDB_DATA_TYPE_UTINYINT); }
break;
case 171: /* type_name ::= SMALLINT UNSIGNED */
-{ yymsp[-1].minor.yy898 = createDataType(TSDB_DATA_TYPE_USMALLINT); }
+{ yymsp[-1].minor.yy888 = createDataType(TSDB_DATA_TYPE_USMALLINT); }
break;
case 172: /* type_name ::= INT UNSIGNED */
-{ yymsp[-1].minor.yy898 = createDataType(TSDB_DATA_TYPE_UINT); }
+{ yymsp[-1].minor.yy888 = createDataType(TSDB_DATA_TYPE_UINT); }
break;
case 173: /* type_name ::= BIGINT UNSIGNED */
-{ yymsp[-1].minor.yy898 = createDataType(TSDB_DATA_TYPE_UBIGINT); }
+{ yymsp[-1].minor.yy888 = createDataType(TSDB_DATA_TYPE_UBIGINT); }
break;
case 174: /* type_name ::= JSON */
-{ yymsp[0].minor.yy898 = createDataType(TSDB_DATA_TYPE_JSON); }
+{ yymsp[0].minor.yy888 = createDataType(TSDB_DATA_TYPE_JSON); }
break;
case 175: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
-{ yymsp[-3].minor.yy898 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); }
+{ yymsp[-3].minor.yy888 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); }
break;
case 176: /* type_name ::= MEDIUMBLOB */
-{ yymsp[0].minor.yy898 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); }
+{ yymsp[0].minor.yy888 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); }
break;
case 177: /* type_name ::= BLOB */
-{ yymsp[0].minor.yy898 = createDataType(TSDB_DATA_TYPE_BLOB); }
+{ yymsp[0].minor.yy888 = createDataType(TSDB_DATA_TYPE_BLOB); }
break;
case 178: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
-{ yymsp[-3].minor.yy898 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); }
+{ yymsp[-3].minor.yy888 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); }
break;
case 179: /* type_name ::= DECIMAL */
-{ yymsp[0].minor.yy898 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
+{ yymsp[0].minor.yy888 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
break;
case 180: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
-{ yymsp[-3].minor.yy898 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
+{ yymsp[-3].minor.yy888 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
break;
case 181: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
-{ yymsp[-5].minor.yy898 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
+{ yymsp[-5].minor.yy888 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
break;
case 183: /* tags_def_opt ::= tags_def */
- case 408: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==408);
-{ yylhsminor.yy874 = yymsp[0].minor.yy874; }
- yymsp[0].minor.yy874 = yylhsminor.yy874;
+ case 409: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==409);
+{ yylhsminor.yy601 = yymsp[0].minor.yy601; }
+ yymsp[0].minor.yy601 = yylhsminor.yy601;
break;
case 184: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */
-{ yymsp[-3].minor.yy874 = yymsp[-1].minor.yy874; }
+{ yymsp[-3].minor.yy601 = yymsp[-1].minor.yy601; }
break;
case 185: /* table_options ::= */
-{ yymsp[1].minor.yy74 = createDefaultTableOptions(pCxt); }
+{ yymsp[1].minor.yy600 = createDefaultTableOptions(pCxt); }
break;
case 186: /* table_options ::= table_options COMMENT NK_STRING */
-{ yylhsminor.yy74 = setTableOption(pCxt, yymsp[-2].minor.yy74, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setTableOption(pCxt, yymsp[-2].minor.yy600, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 187: /* table_options ::= table_options MAX_DELAY duration_list */
-{ yylhsminor.yy74 = setTableOption(pCxt, yymsp[-2].minor.yy74, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy874); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setTableOption(pCxt, yymsp[-2].minor.yy600, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy601); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 188: /* table_options ::= table_options WATERMARK duration_list */
-{ yylhsminor.yy74 = setTableOption(pCxt, yymsp[-2].minor.yy74, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy874); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setTableOption(pCxt, yymsp[-2].minor.yy600, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy601); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 189: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
-{ yylhsminor.yy74 = setTableOption(pCxt, yymsp[-4].minor.yy74, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy874); }
- yymsp[-4].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setTableOption(pCxt, yymsp[-4].minor.yy600, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy601); }
+ yymsp[-4].minor.yy600 = yylhsminor.yy600;
break;
case 190: /* table_options ::= table_options TTL NK_INTEGER */
-{ yylhsminor.yy74 = setTableOption(pCxt, yymsp[-2].minor.yy74, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setTableOption(pCxt, yymsp[-2].minor.yy600, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 191: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */
-{ yylhsminor.yy74 = setTableOption(pCxt, yymsp[-4].minor.yy74, TABLE_OPTION_SMA, yymsp[-1].minor.yy874); }
- yymsp[-4].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setTableOption(pCxt, yymsp[-4].minor.yy600, TABLE_OPTION_SMA, yymsp[-1].minor.yy601); }
+ yymsp[-4].minor.yy600 = yylhsminor.yy600;
break;
case 192: /* table_options ::= table_options DELETE_MARK duration_list */
-{ yylhsminor.yy74 = setTableOption(pCxt, yymsp[-2].minor.yy74, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy874); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setTableOption(pCxt, yymsp[-2].minor.yy600, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy601); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 193: /* alter_table_options ::= alter_table_option */
-{ yylhsminor.yy74 = createAlterTableOptions(pCxt); yylhsminor.yy74 = setTableOption(pCxt, yylhsminor.yy74, yymsp[0].minor.yy767.type, &yymsp[0].minor.yy767.val); }
- yymsp[0].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = createAlterTableOptions(pCxt); yylhsminor.yy600 = setTableOption(pCxt, yylhsminor.yy600, yymsp[0].minor.yy661.type, &yymsp[0].minor.yy661.val); }
+ yymsp[0].minor.yy600 = yylhsminor.yy600;
break;
case 194: /* alter_table_options ::= alter_table_options alter_table_option */
-{ yylhsminor.yy74 = setTableOption(pCxt, yymsp[-1].minor.yy74, yymsp[0].minor.yy767.type, &yymsp[0].minor.yy767.val); }
- yymsp[-1].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setTableOption(pCxt, yymsp[-1].minor.yy600, yymsp[0].minor.yy661.type, &yymsp[0].minor.yy661.val); }
+ yymsp[-1].minor.yy600 = yylhsminor.yy600;
break;
case 195: /* alter_table_option ::= COMMENT NK_STRING */
-{ yymsp[-1].minor.yy767.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy767.val = yymsp[0].minor.yy0; }
+{ yymsp[-1].minor.yy661.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy661.val = yymsp[0].minor.yy0; }
break;
case 196: /* alter_table_option ::= TTL NK_INTEGER */
-{ yymsp[-1].minor.yy767.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy767.val = yymsp[0].minor.yy0; }
+{ yymsp[-1].minor.yy661.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy661.val = yymsp[0].minor.yy0; }
break;
case 197: /* duration_list ::= duration_literal */
- case 373: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==373);
-{ yylhsminor.yy874 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy74)); }
- yymsp[0].minor.yy874 = yylhsminor.yy874;
+ case 374: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==374);
+{ yylhsminor.yy601 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy600)); }
+ yymsp[0].minor.yy601 = yylhsminor.yy601;
break;
case 198: /* duration_list ::= duration_list NK_COMMA duration_literal */
- case 374: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==374);
-{ yylhsminor.yy874 = addNodeToList(pCxt, yymsp[-2].minor.yy874, releaseRawExprNode(pCxt, yymsp[0].minor.yy74)); }
- yymsp[-2].minor.yy874 = yylhsminor.yy874;
+ case 375: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==375);
+{ yylhsminor.yy601 = addNodeToList(pCxt, yymsp[-2].minor.yy601, releaseRawExprNode(pCxt, yymsp[0].minor.yy600)); }
+ yymsp[-2].minor.yy601 = yylhsminor.yy601;
break;
case 201: /* rollup_func_name ::= function_name */
-{ yylhsminor.yy74 = createFunctionNode(pCxt, &yymsp[0].minor.yy317, NULL); }
- yymsp[0].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = createFunctionNode(pCxt, &yymsp[0].minor.yy77, NULL); }
+ yymsp[0].minor.yy600 = yylhsminor.yy600;
break;
case 202: /* rollup_func_name ::= FIRST */
case 203: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==203);
case 256: /* tag_item ::= QTAGS */ yytestcase(yyruleno==256);
-{ yylhsminor.yy74 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); }
- yymsp[0].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); }
+ yymsp[0].minor.yy600 = yylhsminor.yy600;
break;
case 206: /* col_name ::= column_name */
case 257: /* tag_item ::= column_name */ yytestcase(yyruleno==257);
-{ yylhsminor.yy74 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy317); }
- yymsp[0].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy77); }
+ yymsp[0].minor.yy600 = yylhsminor.yy600;
break;
case 207: /* cmd ::= SHOW DNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); }
@@ -4341,13 +4353,13 @@ static YYACTIONTYPE yy_reduce(
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT); }
break;
case 211: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */
-{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy74, yymsp[0].minor.yy74, OP_TYPE_LIKE); }
+{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy600, yymsp[0].minor.yy600, OP_TYPE_LIKE); }
break;
case 212: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
-{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy74, yymsp[0].minor.yy74, OP_TYPE_LIKE); }
+{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy600, yymsp[0].minor.yy600, OP_TYPE_LIKE); }
break;
case 213: /* cmd ::= SHOW db_name_cond_opt VGROUPS */
-{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy74, NULL, OP_TYPE_LIKE); }
+{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy600, NULL, OP_TYPE_LIKE); }
break;
case 214: /* cmd ::= SHOW MNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); }
@@ -4359,7 +4371,7 @@ static YYACTIONTYPE yy_reduce(
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); }
break;
case 217: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
-{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy74, yymsp[-1].minor.yy74, OP_TYPE_EQUAL); }
+{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy600, yymsp[-1].minor.yy600, OP_TYPE_EQUAL); }
break;
case 218: /* cmd ::= SHOW STREAMS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); }
@@ -4378,13 +4390,13 @@ static YYACTIONTYPE yy_reduce(
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); }
break;
case 224: /* cmd ::= SHOW CREATE DATABASE db_name */
-{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy317); }
+{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy77); }
break;
case 225: /* cmd ::= SHOW CREATE TABLE full_table_name */
-{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy74); }
+{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy600); }
break;
case 226: /* cmd ::= SHOW CREATE STABLE full_table_name */
-{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy74); }
+{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy600); }
break;
case 227: /* cmd ::= SHOW QUERIES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); }
@@ -4403,7 +4415,7 @@ static YYACTIONTYPE yy_reduce(
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); }
break;
case 233: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
-{ pCxt->pRootNode = createShowDnodeVariablesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[-2].minor.yy0), yymsp[0].minor.yy74); }
+{ pCxt->pRootNode = createShowDnodeVariablesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[-2].minor.yy0), yymsp[0].minor.yy600); }
break;
case 234: /* cmd ::= SHOW BNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); }
@@ -4418,7 +4430,7 @@ static YYACTIONTYPE yy_reduce(
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); }
break;
case 238: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
-{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy74); }
+{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy600); }
break;
case 239: /* cmd ::= SHOW CONSUMERS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); }
@@ -4427,10 +4439,10 @@ static YYACTIONTYPE yy_reduce(
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); }
break;
case 241: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
-{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy74, yymsp[-1].minor.yy74, OP_TYPE_EQUAL); }
+{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy600, yymsp[-1].minor.yy600, OP_TYPE_EQUAL); }
break;
case 242: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
-{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy74, yymsp[0].minor.yy74, yymsp[-3].minor.yy874); }
+{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy600, yymsp[0].minor.yy600, yymsp[-3].minor.yy601); }
break;
case 243: /* cmd ::= SHOW VNODES NK_INTEGER */
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); }
@@ -4440,742 +4452,752 @@ static YYACTIONTYPE yy_reduce(
break;
case 245: /* db_name_cond_opt ::= */
case 250: /* from_db_opt ::= */ yytestcase(yyruleno==250);
-{ yymsp[1].minor.yy74 = createDefaultDatabaseCondValue(pCxt); }
+{ yymsp[1].minor.yy600 = createDefaultDatabaseCondValue(pCxt); }
break;
case 246: /* db_name_cond_opt ::= db_name NK_DOT */
-{ yylhsminor.yy74 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy317); }
- yymsp[-1].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy77); }
+ yymsp[-1].minor.yy600 = yylhsminor.yy600;
break;
case 247: /* like_pattern_opt ::= */
- case 305: /* subtable_opt ::= */ yytestcase(yyruleno==305);
- case 418: /* case_when_else_opt ::= */ yytestcase(yyruleno==418);
- case 448: /* from_clause_opt ::= */ yytestcase(yyruleno==448);
- case 477: /* where_clause_opt ::= */ yytestcase(yyruleno==477);
- case 486: /* twindow_clause_opt ::= */ yytestcase(yyruleno==486);
- case 491: /* sliding_opt ::= */ yytestcase(yyruleno==491);
- case 493: /* fill_opt ::= */ yytestcase(yyruleno==493);
- case 505: /* having_clause_opt ::= */ yytestcase(yyruleno==505);
- case 507: /* range_opt ::= */ yytestcase(yyruleno==507);
- case 509: /* every_opt ::= */ yytestcase(yyruleno==509);
- case 522: /* slimit_clause_opt ::= */ yytestcase(yyruleno==522);
- case 526: /* limit_clause_opt ::= */ yytestcase(yyruleno==526);
-{ yymsp[1].minor.yy74 = NULL; }
+ case 306: /* subtable_opt ::= */ yytestcase(yyruleno==306);
+ case 419: /* case_when_else_opt ::= */ yytestcase(yyruleno==419);
+ case 449: /* from_clause_opt ::= */ yytestcase(yyruleno==449);
+ case 478: /* where_clause_opt ::= */ yytestcase(yyruleno==478);
+ case 487: /* twindow_clause_opt ::= */ yytestcase(yyruleno==487);
+ case 492: /* sliding_opt ::= */ yytestcase(yyruleno==492);
+ case 494: /* fill_opt ::= */ yytestcase(yyruleno==494);
+ case 508: /* having_clause_opt ::= */ yytestcase(yyruleno==508);
+ case 510: /* range_opt ::= */ yytestcase(yyruleno==510);
+ case 512: /* every_opt ::= */ yytestcase(yyruleno==512);
+ case 525: /* slimit_clause_opt ::= */ yytestcase(yyruleno==525);
+ case 529: /* limit_clause_opt ::= */ yytestcase(yyruleno==529);
+{ yymsp[1].minor.yy600 = NULL; }
break;
case 248: /* like_pattern_opt ::= LIKE NK_STRING */
-{ yymsp[-1].minor.yy74 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
+{ yymsp[-1].minor.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
break;
case 249: /* table_name_cond ::= table_name */
-{ yylhsminor.yy74 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy317); }
- yymsp[0].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy77); }
+ yymsp[0].minor.yy600 = yylhsminor.yy600;
break;
case 251: /* from_db_opt ::= FROM db_name */
-{ yymsp[-1].minor.yy74 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy317); }
+{ yymsp[-1].minor.yy600 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy77); }
break;
case 255: /* tag_item ::= TBNAME */
-{ yylhsminor.yy74 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); }
- yymsp[0].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); }
+ yymsp[0].minor.yy600 = yylhsminor.yy600;
break;
case 258: /* tag_item ::= column_name column_alias */
-{ yylhsminor.yy74 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy317), &yymsp[0].minor.yy317); }
- yymsp[-1].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy77), &yymsp[0].minor.yy77); }
+ yymsp[-1].minor.yy600 = yylhsminor.yy600;
break;
case 259: /* tag_item ::= column_name AS column_alias */
-{ yylhsminor.yy74 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy317), &yymsp[0].minor.yy317); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy77), &yymsp[0].minor.yy77); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 260: /* cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options */
-{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy335, yymsp[-3].minor.yy74, yymsp[-1].minor.yy74, NULL, yymsp[0].minor.yy74); }
+{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy841, yymsp[-3].minor.yy600, yymsp[-1].minor.yy600, NULL, yymsp[0].minor.yy600); }
break;
case 261: /* cmd ::= DROP INDEX exists_opt full_index_name */
-{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy335, yymsp[0].minor.yy74); }
+{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy841, yymsp[0].minor.yy600); }
break;
case 262: /* full_index_name ::= index_name */
-{ yylhsminor.yy74 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy317); }
- yymsp[0].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy77); }
+ yymsp[0].minor.yy600 = yylhsminor.yy600;
break;
case 263: /* full_index_name ::= db_name NK_DOT index_name */
-{ yylhsminor.yy74 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy317, &yymsp[0].minor.yy317); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy77, &yymsp[0].minor.yy77); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 264: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
-{ yymsp[-9].minor.yy74 = createIndexOption(pCxt, yymsp[-7].minor.yy874, releaseRawExprNode(pCxt, yymsp[-3].minor.yy74), NULL, yymsp[-1].minor.yy74, yymsp[0].minor.yy74); }
+{ yymsp[-9].minor.yy600 = createIndexOption(pCxt, yymsp[-7].minor.yy601, releaseRawExprNode(pCxt, yymsp[-3].minor.yy600), NULL, yymsp[-1].minor.yy600, yymsp[0].minor.yy600); }
break;
case 265: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */
-{ yymsp[-11].minor.yy74 = createIndexOption(pCxt, yymsp[-9].minor.yy874, releaseRawExprNode(pCxt, yymsp[-5].minor.yy74), releaseRawExprNode(pCxt, yymsp[-3].minor.yy74), yymsp[-1].minor.yy74, yymsp[0].minor.yy74); }
+{ yymsp[-11].minor.yy600 = createIndexOption(pCxt, yymsp[-9].minor.yy601, releaseRawExprNode(pCxt, yymsp[-5].minor.yy600), releaseRawExprNode(pCxt, yymsp[-3].minor.yy600), yymsp[-1].minor.yy600, yymsp[0].minor.yy600); }
break;
case 268: /* func ::= function_name NK_LP expression_list NK_RP */
-{ yylhsminor.yy74 = createFunctionNode(pCxt, &yymsp[-3].minor.yy317, yymsp[-1].minor.yy874); }
- yymsp[-3].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = createFunctionNode(pCxt, &yymsp[-3].minor.yy77, yymsp[-1].minor.yy601); }
+ yymsp[-3].minor.yy600 = yylhsminor.yy600;
break;
case 269: /* sma_stream_opt ::= */
case 297: /* stream_options ::= */ yytestcase(yyruleno==297);
-{ yymsp[1].minor.yy74 = createStreamOptions(pCxt); }
+{ yymsp[1].minor.yy600 = createStreamOptions(pCxt); }
break;
case 270: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
case 301: /* stream_options ::= stream_options WATERMARK duration_literal */ yytestcase(yyruleno==301);
-{ ((SStreamOptions*)yymsp[-2].minor.yy74)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy74); yylhsminor.yy74 = yymsp[-2].minor.yy74; }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ ((SStreamOptions*)yymsp[-2].minor.yy600)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy600); yylhsminor.yy600 = yymsp[-2].minor.yy600; }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 271: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
-{ ((SStreamOptions*)yymsp[-2].minor.yy74)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy74); yylhsminor.yy74 = yymsp[-2].minor.yy74; }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ ((SStreamOptions*)yymsp[-2].minor.yy600)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy600); yylhsminor.yy600 = yymsp[-2].minor.yy600; }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 272: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
case 304: /* stream_options ::= stream_options DELETE_MARK duration_literal */ yytestcase(yyruleno==304);
-{ ((SStreamOptions*)yymsp[-2].minor.yy74)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy74); yylhsminor.yy74 = yymsp[-2].minor.yy74; }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ ((SStreamOptions*)yymsp[-2].minor.yy600)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy600); yylhsminor.yy600 = yymsp[-2].minor.yy600; }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 273: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
-{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy335, &yymsp[-2].minor.yy317, yymsp[0].minor.yy74); }
+{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy841, &yymsp[-2].minor.yy77, yymsp[0].minor.yy600); }
break;
case 274: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */
-{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy335, &yymsp[-3].minor.yy317, &yymsp[0].minor.yy317, false); }
+{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy841, &yymsp[-3].minor.yy77, &yymsp[0].minor.yy77, false); }
break;
case 275: /* cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name */
-{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-6].minor.yy335, &yymsp[-5].minor.yy317, &yymsp[0].minor.yy317, true); }
+{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-6].minor.yy841, &yymsp[-5].minor.yy77, &yymsp[0].minor.yy77, true); }
break;
case 276: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */
-{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-4].minor.yy335, &yymsp[-3].minor.yy317, yymsp[0].minor.yy74, false); }
+{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-4].minor.yy841, &yymsp[-3].minor.yy77, yymsp[0].minor.yy600, false); }
break;
case 277: /* cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name */
-{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-6].minor.yy335, &yymsp[-5].minor.yy317, yymsp[0].minor.yy74, true); }
+{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-6].minor.yy841, &yymsp[-5].minor.yy77, yymsp[0].minor.yy600, true); }
break;
case 278: /* cmd ::= DROP TOPIC exists_opt topic_name */
-{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy335, &yymsp[0].minor.yy317); }
+{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy841, &yymsp[0].minor.yy77); }
break;
case 279: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
-{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy335, &yymsp[-2].minor.yy317, &yymsp[0].minor.yy317); }
+{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy841, &yymsp[-2].minor.yy77, &yymsp[0].minor.yy77); }
break;
case 280: /* cmd ::= DESC full_table_name */
case 281: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==281);
-{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy74); }
+{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy600); }
break;
case 282: /* cmd ::= RESET QUERY CACHE */
{ pCxt->pRootNode = createResetQueryCacheStmt(pCxt); }
break;
case 283: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
-{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy335, yymsp[-1].minor.yy74, yymsp[0].minor.yy74); }
+{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy841, yymsp[-1].minor.yy600, yymsp[0].minor.yy600); }
break;
case 286: /* explain_options ::= */
-{ yymsp[1].minor.yy74 = createDefaultExplainOptions(pCxt); }
+{ yymsp[1].minor.yy600 = createDefaultExplainOptions(pCxt); }
break;
case 287: /* explain_options ::= explain_options VERBOSE NK_BOOL */
-{ yylhsminor.yy74 = setExplainVerbose(pCxt, yymsp[-2].minor.yy74, &yymsp[0].minor.yy0); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setExplainVerbose(pCxt, yymsp[-2].minor.yy600, &yymsp[0].minor.yy0); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 288: /* explain_options ::= explain_options RATIO NK_FLOAT */
-{ yylhsminor.yy74 = setExplainRatio(pCxt, yymsp[-2].minor.yy74, &yymsp[0].minor.yy0); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ yylhsminor.yy600 = setExplainRatio(pCxt, yymsp[-2].minor.yy600, &yymsp[0].minor.yy0); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 289: /* cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */
-{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-6].minor.yy335, yymsp[-8].minor.yy335, &yymsp[-5].minor.yy317, &yymsp[-3].minor.yy0, yymsp[-1].minor.yy898, yymsp[0].minor.yy856); }
+{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-6].minor.yy841, yymsp[-8].minor.yy841, &yymsp[-5].minor.yy77, &yymsp[-3].minor.yy0, yymsp[-1].minor.yy888, yymsp[0].minor.yy248); }
break;
case 290: /* cmd ::= DROP FUNCTION exists_opt function_name */
-{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy335, &yymsp[0].minor.yy317); }
+{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy841, &yymsp[0].minor.yy77); }
break;
case 295: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name tags_def_opt subtable_opt AS query_or_subquery */
-{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-8].minor.yy335, &yymsp[-7].minor.yy317, yymsp[-4].minor.yy74, yymsp[-6].minor.yy74, yymsp[-3].minor.yy874, yymsp[-2].minor.yy74, yymsp[0].minor.yy74); }
+{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-8].minor.yy841, &yymsp[-7].minor.yy77, yymsp[-4].minor.yy600, yymsp[-6].minor.yy600, yymsp[-3].minor.yy601, yymsp[-2].minor.yy600, yymsp[0].minor.yy600); }
break;
case 296: /* cmd ::= DROP STREAM exists_opt stream_name */
-{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy335, &yymsp[0].minor.yy317); }
+{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy841, &yymsp[0].minor.yy77); }
break;
case 298: /* stream_options ::= stream_options TRIGGER AT_ONCE */
-{ ((SStreamOptions*)yymsp[-2].minor.yy74)->triggerType = STREAM_TRIGGER_AT_ONCE; yylhsminor.yy74 = yymsp[-2].minor.yy74; }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ ((SStreamOptions*)yymsp[-2].minor.yy600)->triggerType = STREAM_TRIGGER_AT_ONCE; yylhsminor.yy600 = yymsp[-2].minor.yy600; }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 299: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
-{ ((SStreamOptions*)yymsp[-2].minor.yy74)->triggerType = STREAM_TRIGGER_WINDOW_CLOSE; yylhsminor.yy74 = yymsp[-2].minor.yy74; }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ ((SStreamOptions*)yymsp[-2].minor.yy600)->triggerType = STREAM_TRIGGER_WINDOW_CLOSE; yylhsminor.yy600 = yymsp[-2].minor.yy600; }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
case 300: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
-{ ((SStreamOptions*)yymsp[-3].minor.yy74)->triggerType = STREAM_TRIGGER_MAX_DELAY; ((SStreamOptions*)yymsp[-3].minor.yy74)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy74); yylhsminor.yy74 = yymsp[-3].minor.yy74; }
- yymsp[-3].minor.yy74 = yylhsminor.yy74;
+{ ((SStreamOptions*)yymsp[-3].minor.yy600)->triggerType = STREAM_TRIGGER_MAX_DELAY; ((SStreamOptions*)yymsp[-3].minor.yy600)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy600); yylhsminor.yy600 = yymsp[-3].minor.yy600; }
+ yymsp[-3].minor.yy600 = yylhsminor.yy600;
break;
case 302: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
-{ ((SStreamOptions*)yymsp[-3].minor.yy74)->ignoreExpired = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); yylhsminor.yy74 = yymsp[-3].minor.yy74; }
- yymsp[-3].minor.yy74 = yylhsminor.yy74;
+{ ((SStreamOptions*)yymsp[-3].minor.yy600)->ignoreExpired = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); yylhsminor.yy600 = yymsp[-3].minor.yy600; }
+ yymsp[-3].minor.yy600 = yylhsminor.yy600;
break;
case 303: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
-{ ((SStreamOptions*)yymsp[-2].minor.yy74)->fillHistory = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); yylhsminor.yy74 = yymsp[-2].minor.yy74; }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+{ ((SStreamOptions*)yymsp[-2].minor.yy600)->fillHistory = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); yylhsminor.yy600 = yymsp[-2].minor.yy600; }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
- case 306: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
- case 492: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ yytestcase(yyruleno==492);
- case 510: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==510);
-{ yymsp[-3].minor.yy74 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy74); }
+ case 305: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
+{ ((SStreamOptions*)yymsp[-3].minor.yy600)->ignoreUpdate = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); yylhsminor.yy600 = yymsp[-3].minor.yy600; }
+ yymsp[-3].minor.yy600 = yylhsminor.yy600;
break;
- case 307: /* cmd ::= KILL CONNECTION NK_INTEGER */
+ case 307: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
+ case 493: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ yytestcase(yyruleno==493);
+ case 513: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==513);
+{ yymsp[-3].minor.yy600 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy600); }
+ break;
+ case 308: /* cmd ::= KILL CONNECTION NK_INTEGER */
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); }
break;
- case 308: /* cmd ::= KILL QUERY NK_STRING */
+ case 309: /* cmd ::= KILL QUERY NK_STRING */
{ pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); }
break;
- case 309: /* cmd ::= KILL TRANSACTION NK_INTEGER */
+ case 310: /* cmd ::= KILL TRANSACTION NK_INTEGER */
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); }
break;
- case 310: /* cmd ::= BALANCE VGROUP */
+ case 311: /* cmd ::= BALANCE VGROUP */
{ pCxt->pRootNode = createBalanceVgroupStmt(pCxt); }
break;
- case 311: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
+ case 312: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
{ pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
break;
- case 312: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
-{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy874); }
+ case 313: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
+{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy601); }
break;
- case 313: /* cmd ::= SPLIT VGROUP NK_INTEGER */
+ case 314: /* cmd ::= SPLIT VGROUP NK_INTEGER */
{ pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); }
break;
- case 314: /* dnode_list ::= DNODE NK_INTEGER */
-{ yymsp[-1].minor.yy874 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
+ case 315: /* dnode_list ::= DNODE NK_INTEGER */
+{ yymsp[-1].minor.yy601 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
break;
- case 316: /* cmd ::= DELETE FROM full_table_name where_clause_opt */
-{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy74, yymsp[0].minor.yy74); }
+ case 317: /* cmd ::= DELETE FROM full_table_name where_clause_opt */
+{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy600, yymsp[0].minor.yy600); }
break;
- case 318: /* cmd ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
-{ pCxt->pRootNode = createInsertStmt(pCxt, yymsp[-4].minor.yy74, yymsp[-2].minor.yy874, yymsp[0].minor.yy74); }
+ case 319: /* cmd ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
+{ pCxt->pRootNode = createInsertStmt(pCxt, yymsp[-4].minor.yy600, yymsp[-2].minor.yy601, yymsp[0].minor.yy600); }
break;
- case 319: /* cmd ::= INSERT INTO full_table_name query_or_subquery */
-{ pCxt->pRootNode = createInsertStmt(pCxt, yymsp[-1].minor.yy74, NULL, yymsp[0].minor.yy74); }
+ case 320: /* cmd ::= INSERT INTO full_table_name query_or_subquery */
+{ pCxt->pRootNode = createInsertStmt(pCxt, yymsp[-1].minor.yy600, NULL, yymsp[0].minor.yy600); }
break;
- case 320: /* literal ::= NK_INTEGER */
-{ yylhsminor.yy74 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); }
- yymsp[0].minor.yy74 = yylhsminor.yy74;
+ case 321: /* literal ::= NK_INTEGER */
+{ yylhsminor.yy600 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); }
+ yymsp[0].minor.yy600 = yylhsminor.yy600;
break;
- case 321: /* literal ::= NK_FLOAT */
-{ yylhsminor.yy74 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); }
- yymsp[0].minor.yy74 = yylhsminor.yy74;
+ case 322: /* literal ::= NK_FLOAT */
+{ yylhsminor.yy600 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); }
+ yymsp[0].minor.yy600 = yylhsminor.yy600;
break;
- case 322: /* literal ::= NK_STRING */
-{ yylhsminor.yy74 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
- yymsp[0].minor.yy74 = yylhsminor.yy74;
+ case 323: /* literal ::= NK_STRING */
+{ yylhsminor.yy600 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
+ yymsp[0].minor.yy600 = yylhsminor.yy600;
break;
- case 323: /* literal ::= NK_BOOL */
-{ yylhsminor.yy74 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); }
- yymsp[0].minor.yy74 = yylhsminor.yy74;
+ case 324: /* literal ::= NK_BOOL */
+{ yylhsminor.yy600 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); }
+ yymsp[0].minor.yy600 = yylhsminor.yy600;
break;
- case 324: /* literal ::= TIMESTAMP NK_STRING */
-{ yylhsminor.yy74 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); }
- yymsp[-1].minor.yy74 = yylhsminor.yy74;
+ case 325: /* literal ::= TIMESTAMP NK_STRING */
+{ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); }
+ yymsp[-1].minor.yy600 = yylhsminor.yy600;
break;
- case 325: /* literal ::= duration_literal */
- case 335: /* signed_literal ::= signed */ yytestcase(yyruleno==335);
- case 356: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==356);
- case 357: /* expression ::= literal */ yytestcase(yyruleno==357);
- case 358: /* expression ::= pseudo_column */ yytestcase(yyruleno==358);
- case 359: /* expression ::= column_reference */ yytestcase(yyruleno==359);
- case 360: /* expression ::= function_expression */ yytestcase(yyruleno==360);
- case 361: /* expression ::= case_when_expression */ yytestcase(yyruleno==361);
- case 391: /* function_expression ::= literal_func */ yytestcase(yyruleno==391);
- case 440: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==440);
- case 444: /* boolean_primary ::= predicate */ yytestcase(yyruleno==444);
- case 446: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==446);
- case 447: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==447);
- case 450: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==450);
- case 452: /* table_reference ::= table_primary */ yytestcase(yyruleno==452);
- case 453: /* table_reference ::= joined_table */ yytestcase(yyruleno==453);
- case 457: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==457);
- case 512: /* query_simple ::= query_specification */ yytestcase(yyruleno==512);
- case 513: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==513);
- case 516: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==516);
- case 518: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==518);
-{ yylhsminor.yy74 = yymsp[0].minor.yy74; }
- yymsp[0].minor.yy74 = yylhsminor.yy74;
+ case 326: /* literal ::= duration_literal */
+ case 336: /* signed_literal ::= signed */ yytestcase(yyruleno==336);
+ case 357: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==357);
+ case 358: /* expression ::= literal */ yytestcase(yyruleno==358);
+ case 359: /* expression ::= pseudo_column */ yytestcase(yyruleno==359);
+ case 360: /* expression ::= column_reference */ yytestcase(yyruleno==360);
+ case 361: /* expression ::= function_expression */ yytestcase(yyruleno==361);
+ case 362: /* expression ::= case_when_expression */ yytestcase(yyruleno==362);
+ case 392: /* function_expression ::= literal_func */ yytestcase(yyruleno==392);
+ case 441: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==441);
+ case 445: /* boolean_primary ::= predicate */ yytestcase(yyruleno==445);
+ case 447: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==447);
+ case 448: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==448);
+ case 451: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==451);
+ case 453: /* table_reference ::= table_primary */ yytestcase(yyruleno==453);
+ case 454: /* table_reference ::= joined_table */ yytestcase(yyruleno==454);
+ case 458: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==458);
+ case 515: /* query_simple ::= query_specification */ yytestcase(yyruleno==515);
+ case 516: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==516);
+ case 519: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==519);
+ case 521: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==521);
+{ yylhsminor.yy600 = yymsp[0].minor.yy600; }
+ yymsp[0].minor.yy600 = yylhsminor.yy600;
break;
- case 326: /* literal ::= NULL */
-{ yylhsminor.yy74 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); }
- yymsp[0].minor.yy74 = yylhsminor.yy74;
+ case 327: /* literal ::= NULL */
+{ yylhsminor.yy600 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); }
+ yymsp[0].minor.yy600 = yylhsminor.yy600;
break;
- case 327: /* literal ::= NK_QUESTION */
-{ yylhsminor.yy74 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); }
- yymsp[0].minor.yy74 = yylhsminor.yy74;
+ case 328: /* literal ::= NK_QUESTION */
+{ yylhsminor.yy600 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); }
+ yymsp[0].minor.yy600 = yylhsminor.yy600;
break;
- case 328: /* duration_literal ::= NK_VARIABLE */
-{ yylhsminor.yy74 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
- yymsp[0].minor.yy74 = yylhsminor.yy74;
+ case 329: /* duration_literal ::= NK_VARIABLE */
+{ yylhsminor.yy600 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
+ yymsp[0].minor.yy600 = yylhsminor.yy600;
break;
- case 329: /* signed ::= NK_INTEGER */
-{ yylhsminor.yy74 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
- yymsp[0].minor.yy74 = yylhsminor.yy74;
+ case 330: /* signed ::= NK_INTEGER */
+{ yylhsminor.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
+ yymsp[0].minor.yy600 = yylhsminor.yy600;
break;
- case 330: /* signed ::= NK_PLUS NK_INTEGER */
-{ yymsp[-1].minor.yy74 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
+ case 331: /* signed ::= NK_PLUS NK_INTEGER */
+{ yymsp[-1].minor.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
break;
- case 331: /* signed ::= NK_MINUS NK_INTEGER */
+ case 332: /* signed ::= NK_MINUS NK_INTEGER */
{
SToken t = yymsp[-1].minor.yy0;
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
- yylhsminor.yy74 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t);
+ yylhsminor.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t);
}
- yymsp[-1].minor.yy74 = yylhsminor.yy74;
+ yymsp[-1].minor.yy600 = yylhsminor.yy600;
break;
- case 332: /* signed ::= NK_FLOAT */
-{ yylhsminor.yy74 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
- yymsp[0].minor.yy74 = yylhsminor.yy74;
+ case 333: /* signed ::= NK_FLOAT */
+{ yylhsminor.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
+ yymsp[0].minor.yy600 = yylhsminor.yy600;
break;
- case 333: /* signed ::= NK_PLUS NK_FLOAT */
-{ yymsp[-1].minor.yy74 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
+ case 334: /* signed ::= NK_PLUS NK_FLOAT */
+{ yymsp[-1].minor.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
break;
- case 334: /* signed ::= NK_MINUS NK_FLOAT */
+ case 335: /* signed ::= NK_MINUS NK_FLOAT */
{
SToken t = yymsp[-1].minor.yy0;
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
- yylhsminor.yy74 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t);
+ yylhsminor.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t);
}
- yymsp[-1].minor.yy74 = yylhsminor.yy74;
+ yymsp[-1].minor.yy600 = yylhsminor.yy600;
break;
- case 336: /* signed_literal ::= NK_STRING */
-{ yylhsminor.yy74 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
- yymsp[0].minor.yy74 = yylhsminor.yy74;
+ case 337: /* signed_literal ::= NK_STRING */
+{ yylhsminor.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
+ yymsp[0].minor.yy600 = yylhsminor.yy600;
break;
- case 337: /* signed_literal ::= NK_BOOL */
-{ yylhsminor.yy74 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); }
- yymsp[0].minor.yy74 = yylhsminor.yy74;
+ case 338: /* signed_literal ::= NK_BOOL */
+{ yylhsminor.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); }
+ yymsp[0].minor.yy600 = yylhsminor.yy600;
break;
- case 338: /* signed_literal ::= TIMESTAMP NK_STRING */
-{ yymsp[-1].minor.yy74 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
+ case 339: /* signed_literal ::= TIMESTAMP NK_STRING */
+{ yymsp[-1].minor.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
break;
- case 339: /* signed_literal ::= duration_literal */
- case 341: /* signed_literal ::= literal_func */ yytestcase(yyruleno==341);
- case 411: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==411);
- case 473: /* select_item ::= common_expression */ yytestcase(yyruleno==473);
- case 483: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==483);
- case 517: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==517);
- case 519: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==519);
- case 532: /* search_condition ::= common_expression */ yytestcase(yyruleno==532);
-{ yylhsminor.yy74 = releaseRawExprNode(pCxt, yymsp[0].minor.yy74); }
- yymsp[0].minor.yy74 = yylhsminor.yy74;
+ case 340: /* signed_literal ::= duration_literal */
+ case 342: /* signed_literal ::= literal_func */ yytestcase(yyruleno==342);
+ case 412: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==412);
+ case 474: /* select_item ::= common_expression */ yytestcase(yyruleno==474);
+ case 484: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==484);
+ case 520: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==520);
+ case 522: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==522);
+ case 535: /* search_condition ::= common_expression */ yytestcase(yyruleno==535);
+{ yylhsminor.yy600 = releaseRawExprNode(pCxt, yymsp[0].minor.yy600); }
+ yymsp[0].minor.yy600 = yylhsminor.yy600;
break;
- case 340: /* signed_literal ::= NULL */
-{ yylhsminor.yy74 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); }
- yymsp[0].minor.yy74 = yylhsminor.yy74;
+ case 341: /* signed_literal ::= NULL */
+{ yylhsminor.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); }
+ yymsp[0].minor.yy600 = yylhsminor.yy600;
break;
- case 342: /* signed_literal ::= NK_QUESTION */
-{ yylhsminor.yy74 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); }
- yymsp[0].minor.yy74 = yylhsminor.yy74;
+ case 343: /* signed_literal ::= NK_QUESTION */
+{ yylhsminor.yy600 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); }
+ yymsp[0].minor.yy600 = yylhsminor.yy600;
break;
- case 362: /* expression ::= NK_LP expression NK_RP */
- case 445: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==445);
- case 531: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==531);
-{ yylhsminor.yy74 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy74)); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+ case 363: /* expression ::= NK_LP expression NK_RP */
+ case 446: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==446);
+ case 534: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==534);
+{ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy600)); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
- case 363: /* expression ::= NK_PLUS expr_or_subquery */
+ case 364: /* expression ::= NK_PLUS expr_or_subquery */
{
- SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy74);
- yylhsminor.yy74 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy74));
+ SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600);
+ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy600));
}
- yymsp[-1].minor.yy74 = yylhsminor.yy74;
+ yymsp[-1].minor.yy600 = yylhsminor.yy600;
break;
- case 364: /* expression ::= NK_MINUS expr_or_subquery */
+ case 365: /* expression ::= NK_MINUS expr_or_subquery */
{
- SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy74);
- yylhsminor.yy74 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy74), NULL));
+ SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600);
+ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy600), NULL));
}
- yymsp[-1].minor.yy74 = yylhsminor.yy74;
+ yymsp[-1].minor.yy600 = yylhsminor.yy600;
break;
- case 365: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
+ case 366: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
{
- SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy74);
- SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy74);
- yylhsminor.yy74 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy74), releaseRawExprNode(pCxt, yymsp[0].minor.yy74)));
+ SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600);
+ SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600);
+ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600)));
}
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
- case 366: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
+ case 367: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
{
- SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy74);
- SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy74);
- yylhsminor.yy74 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy74), releaseRawExprNode(pCxt, yymsp[0].minor.yy74)));
+ SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600);
+ SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600);
+ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600)));
}
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
- case 367: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */
+ case 368: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */
{
- SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy74);
- SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy74);
- yylhsminor.yy74 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy74), releaseRawExprNode(pCxt, yymsp[0].minor.yy74)));
+ SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600);
+ SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600);
+ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600)));
}
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
- case 368: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
+ case 369: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
{
- SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy74);
- SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy74);
- yylhsminor.yy74 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy74), releaseRawExprNode(pCxt, yymsp[0].minor.yy74)));
+ SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600);
+ SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600);
+ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600)));
}
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
- case 369: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */
+ case 370: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */
{
- SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy74);
- SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy74);
- yylhsminor.yy74 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy74), releaseRawExprNode(pCxt, yymsp[0].minor.yy74)));
+ SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600);
+ SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600);
+ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600)));
}
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
- case 370: /* expression ::= column_reference NK_ARROW NK_STRING */
+ case 371: /* expression ::= column_reference NK_ARROW NK_STRING */
{
- SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy74);
- yylhsminor.yy74 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy74), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)));
+ SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600);
+ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)));
}
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
- case 371: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
+ case 372: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
{
- SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy74);
- SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy74);
- yylhsminor.yy74 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy74), releaseRawExprNode(pCxt, yymsp[0].minor.yy74)));
+ SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600);
+ SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600);
+ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600)));
}
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
- case 372: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
+ case 373: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
{
- SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy74);
- SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy74);
- yylhsminor.yy74 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy74), releaseRawExprNode(pCxt, yymsp[0].minor.yy74)));
+ SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600);
+ SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600);
+ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600)));
}
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
- case 375: /* column_reference ::= column_name */
-{ yylhsminor.yy74 = createRawExprNode(pCxt, &yymsp[0].minor.yy317, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy317)); }
- yymsp[0].minor.yy74 = yylhsminor.yy74;
+ case 376: /* column_reference ::= column_name */
+{ yylhsminor.yy600 = createRawExprNode(pCxt, &yymsp[0].minor.yy77, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy77)); }
+ yymsp[0].minor.yy600 = yylhsminor.yy600;
break;
- case 376: /* column_reference ::= table_name NK_DOT column_name */
-{ yylhsminor.yy74 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy317, &yymsp[0].minor.yy317, createColumnNode(pCxt, &yymsp[-2].minor.yy317, &yymsp[0].minor.yy317)); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+ case 377: /* column_reference ::= table_name NK_DOT column_name */
+{ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy77, &yymsp[0].minor.yy77, createColumnNode(pCxt, &yymsp[-2].minor.yy77, &yymsp[0].minor.yy77)); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
- case 377: /* pseudo_column ::= ROWTS */
- case 378: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==378);
- case 380: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==380);
- case 381: /* pseudo_column ::= QEND */ yytestcase(yyruleno==381);
- case 382: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==382);
- case 383: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==383);
- case 384: /* pseudo_column ::= WEND */ yytestcase(yyruleno==384);
- case 385: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==385);
- case 386: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==386);
- case 387: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==387);
- case 393: /* literal_func ::= NOW */ yytestcase(yyruleno==393);
-{ yylhsminor.yy74 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); }
- yymsp[0].minor.yy74 = yylhsminor.yy74;
+ case 378: /* pseudo_column ::= ROWTS */
+ case 379: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==379);
+ case 381: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==381);
+ case 382: /* pseudo_column ::= QEND */ yytestcase(yyruleno==382);
+ case 383: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==383);
+ case 384: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==384);
+ case 385: /* pseudo_column ::= WEND */ yytestcase(yyruleno==385);
+ case 386: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==386);
+ case 387: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==387);
+ case 388: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==388);
+ case 394: /* literal_func ::= NOW */ yytestcase(yyruleno==394);
+{ yylhsminor.yy600 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); }
+ yymsp[0].minor.yy600 = yylhsminor.yy600;
break;
- case 379: /* pseudo_column ::= table_name NK_DOT TBNAME */
-{ yylhsminor.yy74 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy317, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy317)))); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+ case 380: /* pseudo_column ::= table_name NK_DOT TBNAME */
+{ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy77, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy77)))); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
- case 388: /* function_expression ::= function_name NK_LP expression_list NK_RP */
- case 389: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==389);
-{ yylhsminor.yy74 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy317, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy317, yymsp[-1].minor.yy874)); }
- yymsp[-3].minor.yy74 = yylhsminor.yy74;
+ case 389: /* function_expression ::= function_name NK_LP expression_list NK_RP */
+ case 390: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==390);
+{ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy77, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy77, yymsp[-1].minor.yy601)); }
+ yymsp[-3].minor.yy600 = yylhsminor.yy600;
break;
- case 390: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
-{ yylhsminor.yy74 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy74), yymsp[-1].minor.yy898)); }
- yymsp[-5].minor.yy74 = yylhsminor.yy74;
+ case 391: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
+{ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy600), yymsp[-1].minor.yy888)); }
+ yymsp[-5].minor.yy600 = yylhsminor.yy600;
break;
- case 392: /* literal_func ::= noarg_func NK_LP NK_RP */
-{ yylhsminor.yy74 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy317, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy317, NULL)); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+ case 393: /* literal_func ::= noarg_func NK_LP NK_RP */
+{ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy77, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy77, NULL)); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
- case 407: /* star_func_para_list ::= NK_STAR */
-{ yylhsminor.yy874 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
- yymsp[0].minor.yy874 = yylhsminor.yy874;
+ case 408: /* star_func_para_list ::= NK_STAR */
+{ yylhsminor.yy601 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
+ yymsp[0].minor.yy601 = yylhsminor.yy601;
break;
- case 412: /* star_func_para ::= table_name NK_DOT NK_STAR */
- case 476: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==476);
-{ yylhsminor.yy74 = createColumnNode(pCxt, &yymsp[-2].minor.yy317, &yymsp[0].minor.yy0); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+ case 413: /* star_func_para ::= table_name NK_DOT NK_STAR */
+ case 477: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==477);
+{ yylhsminor.yy600 = createColumnNode(pCxt, &yymsp[-2].minor.yy77, &yymsp[0].minor.yy0); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
- case 413: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */
-{ yylhsminor.yy74 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy874, yymsp[-1].minor.yy74)); }
- yymsp[-3].minor.yy74 = yylhsminor.yy74;
+ case 414: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */
+{ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy601, yymsp[-1].minor.yy600)); }
+ yymsp[-3].minor.yy600 = yylhsminor.yy600;
break;
- case 414: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
-{ yylhsminor.yy74 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy74), yymsp[-2].minor.yy874, yymsp[-1].minor.yy74)); }
- yymsp[-4].minor.yy74 = yylhsminor.yy74;
+ case 415: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
+{ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy600), yymsp[-2].minor.yy601, yymsp[-1].minor.yy600)); }
+ yymsp[-4].minor.yy600 = yylhsminor.yy600;
break;
- case 417: /* when_then_expr ::= WHEN common_expression THEN common_expression */
-{ yymsp[-3].minor.yy74 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy74), releaseRawExprNode(pCxt, yymsp[0].minor.yy74)); }
+ case 418: /* when_then_expr ::= WHEN common_expression THEN common_expression */
+{ yymsp[-3].minor.yy600 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600)); }
break;
- case 419: /* case_when_else_opt ::= ELSE common_expression */
-{ yymsp[-1].minor.yy74 = releaseRawExprNode(pCxt, yymsp[0].minor.yy74); }
+ case 420: /* case_when_else_opt ::= ELSE common_expression */
+{ yymsp[-1].minor.yy600 = releaseRawExprNode(pCxt, yymsp[0].minor.yy600); }
break;
- case 420: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */
- case 425: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==425);
+ case 421: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */
+ case 426: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==426);
{
- SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy74);
- SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy74);
- yylhsminor.yy74 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy20, releaseRawExprNode(pCxt, yymsp[-2].minor.yy74), releaseRawExprNode(pCxt, yymsp[0].minor.yy74)));
+ SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600);
+ SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600);
+ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy666, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600)));
}
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
- case 421: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
+ case 422: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
{
- SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy74);
- SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy74);
- yylhsminor.yy74 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy74), releaseRawExprNode(pCxt, yymsp[-2].minor.yy74), releaseRawExprNode(pCxt, yymsp[0].minor.yy74)));
+ SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy600);
+ SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600);
+ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy600), releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600)));
}
- yymsp[-4].minor.yy74 = yylhsminor.yy74;
+ yymsp[-4].minor.yy600 = yylhsminor.yy600;
break;
- case 422: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
+ case 423: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
{
- SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy74);
- SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy74);
- yylhsminor.yy74 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy74), releaseRawExprNode(pCxt, yymsp[-2].minor.yy74), releaseRawExprNode(pCxt, yymsp[0].minor.yy74)));
+ SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy600);
+ SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600);
+ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy600), releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600)));
}
- yymsp[-5].minor.yy74 = yylhsminor.yy74;
+ yymsp[-5].minor.yy600 = yylhsminor.yy600;
break;
- case 423: /* predicate ::= expr_or_subquery IS NULL */
+ case 424: /* predicate ::= expr_or_subquery IS NULL */
{
- SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy74);
- yylhsminor.yy74 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy74), NULL));
+ SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600);
+ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), NULL));
}
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
- case 424: /* predicate ::= expr_or_subquery IS NOT NULL */
+ case 425: /* predicate ::= expr_or_subquery IS NOT NULL */
{
- SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy74);
- yylhsminor.yy74 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy74), NULL));
+ SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy600);
+ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy600), NULL));
}
- yymsp[-3].minor.yy74 = yylhsminor.yy74;
+ yymsp[-3].minor.yy600 = yylhsminor.yy600;
break;
- case 426: /* compare_op ::= NK_LT */
-{ yymsp[0].minor.yy20 = OP_TYPE_LOWER_THAN; }
+ case 427: /* compare_op ::= NK_LT */
+{ yymsp[0].minor.yy666 = OP_TYPE_LOWER_THAN; }
break;
- case 427: /* compare_op ::= NK_GT */
-{ yymsp[0].minor.yy20 = OP_TYPE_GREATER_THAN; }
+ case 428: /* compare_op ::= NK_GT */
+{ yymsp[0].minor.yy666 = OP_TYPE_GREATER_THAN; }
break;
- case 428: /* compare_op ::= NK_LE */
-{ yymsp[0].minor.yy20 = OP_TYPE_LOWER_EQUAL; }
+ case 429: /* compare_op ::= NK_LE */
+{ yymsp[0].minor.yy666 = OP_TYPE_LOWER_EQUAL; }
break;
- case 429: /* compare_op ::= NK_GE */
-{ yymsp[0].minor.yy20 = OP_TYPE_GREATER_EQUAL; }
+ case 430: /* compare_op ::= NK_GE */
+{ yymsp[0].minor.yy666 = OP_TYPE_GREATER_EQUAL; }
break;
- case 430: /* compare_op ::= NK_NE */
-{ yymsp[0].minor.yy20 = OP_TYPE_NOT_EQUAL; }
+ case 431: /* compare_op ::= NK_NE */
+{ yymsp[0].minor.yy666 = OP_TYPE_NOT_EQUAL; }
break;
- case 431: /* compare_op ::= NK_EQ */
-{ yymsp[0].minor.yy20 = OP_TYPE_EQUAL; }
+ case 432: /* compare_op ::= NK_EQ */
+{ yymsp[0].minor.yy666 = OP_TYPE_EQUAL; }
break;
- case 432: /* compare_op ::= LIKE */
-{ yymsp[0].minor.yy20 = OP_TYPE_LIKE; }
+ case 433: /* compare_op ::= LIKE */
+{ yymsp[0].minor.yy666 = OP_TYPE_LIKE; }
break;
- case 433: /* compare_op ::= NOT LIKE */
-{ yymsp[-1].minor.yy20 = OP_TYPE_NOT_LIKE; }
+ case 434: /* compare_op ::= NOT LIKE */
+{ yymsp[-1].minor.yy666 = OP_TYPE_NOT_LIKE; }
break;
- case 434: /* compare_op ::= MATCH */
-{ yymsp[0].minor.yy20 = OP_TYPE_MATCH; }
+ case 435: /* compare_op ::= MATCH */
+{ yymsp[0].minor.yy666 = OP_TYPE_MATCH; }
break;
- case 435: /* compare_op ::= NMATCH */
-{ yymsp[0].minor.yy20 = OP_TYPE_NMATCH; }
+ case 436: /* compare_op ::= NMATCH */
+{ yymsp[0].minor.yy666 = OP_TYPE_NMATCH; }
break;
- case 436: /* compare_op ::= CONTAINS */
-{ yymsp[0].minor.yy20 = OP_TYPE_JSON_CONTAINS; }
+ case 437: /* compare_op ::= CONTAINS */
+{ yymsp[0].minor.yy666 = OP_TYPE_JSON_CONTAINS; }
break;
- case 437: /* in_op ::= IN */
-{ yymsp[0].minor.yy20 = OP_TYPE_IN; }
+ case 438: /* in_op ::= IN */
+{ yymsp[0].minor.yy666 = OP_TYPE_IN; }
break;
- case 438: /* in_op ::= NOT IN */
-{ yymsp[-1].minor.yy20 = OP_TYPE_NOT_IN; }
+ case 439: /* in_op ::= NOT IN */
+{ yymsp[-1].minor.yy666 = OP_TYPE_NOT_IN; }
break;
- case 439: /* in_predicate_value ::= NK_LP literal_list NK_RP */
-{ yylhsminor.yy74 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy874)); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+ case 440: /* in_predicate_value ::= NK_LP literal_list NK_RP */
+{ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy601)); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
- case 441: /* boolean_value_expression ::= NOT boolean_primary */
+ case 442: /* boolean_value_expression ::= NOT boolean_primary */
{
- SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy74);
- yylhsminor.yy74 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy74), NULL));
+ SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600);
+ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy600), NULL));
}
- yymsp[-1].minor.yy74 = yylhsminor.yy74;
+ yymsp[-1].minor.yy600 = yylhsminor.yy600;
break;
- case 442: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
+ case 443: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
{
- SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy74);
- SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy74);
- yylhsminor.yy74 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy74), releaseRawExprNode(pCxt, yymsp[0].minor.yy74)));
+ SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600);
+ SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600);
+ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600)));
}
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
- case 443: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
+ case 444: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
{
- SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy74);
- SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy74);
- yylhsminor.yy74 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy74), releaseRawExprNode(pCxt, yymsp[0].minor.yy74)));
+ SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600);
+ SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600);
+ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600)));
}
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
- case 449: /* from_clause_opt ::= FROM table_reference_list */
- case 478: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==478);
- case 506: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==506);
-{ yymsp[-1].minor.yy74 = yymsp[0].minor.yy74; }
+ case 450: /* from_clause_opt ::= FROM table_reference_list */
+ case 479: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==479);
+ case 509: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==509);
+{ yymsp[-1].minor.yy600 = yymsp[0].minor.yy600; }
break;
- case 451: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */
-{ yylhsminor.yy74 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy74, yymsp[0].minor.yy74, NULL); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+ case 452: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */
+{ yylhsminor.yy600 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy600, yymsp[0].minor.yy600, NULL); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
- case 454: /* table_primary ::= table_name alias_opt */
-{ yylhsminor.yy74 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy317, &yymsp[0].minor.yy317); }
- yymsp[-1].minor.yy74 = yylhsminor.yy74;
+ case 455: /* table_primary ::= table_name alias_opt */
+{ yylhsminor.yy600 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy77, &yymsp[0].minor.yy77); }
+ yymsp[-1].minor.yy600 = yylhsminor.yy600;
break;
- case 455: /* table_primary ::= db_name NK_DOT table_name alias_opt */
-{ yylhsminor.yy74 = createRealTableNode(pCxt, &yymsp[-3].minor.yy317, &yymsp[-1].minor.yy317, &yymsp[0].minor.yy317); }
- yymsp[-3].minor.yy74 = yylhsminor.yy74;
+ case 456: /* table_primary ::= db_name NK_DOT table_name alias_opt */
+{ yylhsminor.yy600 = createRealTableNode(pCxt, &yymsp[-3].minor.yy77, &yymsp[-1].minor.yy77, &yymsp[0].minor.yy77); }
+ yymsp[-3].minor.yy600 = yylhsminor.yy600;
break;
- case 456: /* table_primary ::= subquery alias_opt */
-{ yylhsminor.yy74 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy74), &yymsp[0].minor.yy317); }
- yymsp[-1].minor.yy74 = yylhsminor.yy74;
+ case 457: /* table_primary ::= subquery alias_opt */
+{ yylhsminor.yy600 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy600), &yymsp[0].minor.yy77); }
+ yymsp[-1].minor.yy600 = yylhsminor.yy600;
break;
- case 458: /* alias_opt ::= */
-{ yymsp[1].minor.yy317 = nil_token; }
+ case 459: /* alias_opt ::= */
+{ yymsp[1].minor.yy77 = nil_token; }
break;
- case 460: /* alias_opt ::= AS table_alias */
-{ yymsp[-1].minor.yy317 = yymsp[0].minor.yy317; }
+ case 461: /* alias_opt ::= AS table_alias */
+{ yymsp[-1].minor.yy77 = yymsp[0].minor.yy77; }
break;
- case 461: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */
- case 462: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==462);
-{ yymsp[-2].minor.yy74 = yymsp[-1].minor.yy74; }
+ case 462: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */
+ case 463: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==463);
+{ yymsp[-2].minor.yy600 = yymsp[-1].minor.yy600; }
break;
- case 463: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
-{ yylhsminor.yy74 = createJoinTableNode(pCxt, yymsp[-4].minor.yy630, yymsp[-5].minor.yy74, yymsp[-2].minor.yy74, yymsp[0].minor.yy74); }
- yymsp[-5].minor.yy74 = yylhsminor.yy74;
+ case 464: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
+{ yylhsminor.yy600 = createJoinTableNode(pCxt, yymsp[-4].minor.yy560, yymsp[-5].minor.yy600, yymsp[-2].minor.yy600, yymsp[0].minor.yy600); }
+ yymsp[-5].minor.yy600 = yylhsminor.yy600;
break;
- case 464: /* join_type ::= */
-{ yymsp[1].minor.yy630 = JOIN_TYPE_INNER; }
+ case 465: /* join_type ::= */
+{ yymsp[1].minor.yy560 = JOIN_TYPE_INNER; }
break;
- case 465: /* join_type ::= INNER */
-{ yymsp[0].minor.yy630 = JOIN_TYPE_INNER; }
+ case 466: /* join_type ::= INNER */
+{ yymsp[0].minor.yy560 = JOIN_TYPE_INNER; }
break;
- case 466: /* query_specification ::= SELECT set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */
+ case 467: /* query_specification ::= SELECT set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */
{
- yymsp[-11].minor.yy74 = createSelectStmt(pCxt, yymsp[-10].minor.yy335, yymsp[-9].minor.yy874, yymsp[-8].minor.yy74);
- yymsp[-11].minor.yy74 = addWhereClause(pCxt, yymsp[-11].minor.yy74, yymsp[-7].minor.yy74);
- yymsp[-11].minor.yy74 = addPartitionByClause(pCxt, yymsp[-11].minor.yy74, yymsp[-6].minor.yy874);
- yymsp[-11].minor.yy74 = addWindowClauseClause(pCxt, yymsp[-11].minor.yy74, yymsp[-2].minor.yy74);
- yymsp[-11].minor.yy74 = addGroupByClause(pCxt, yymsp[-11].minor.yy74, yymsp[-1].minor.yy874);
- yymsp[-11].minor.yy74 = addHavingClause(pCxt, yymsp[-11].minor.yy74, yymsp[0].minor.yy74);
- yymsp[-11].minor.yy74 = addRangeClause(pCxt, yymsp[-11].minor.yy74, yymsp[-5].minor.yy74);
- yymsp[-11].minor.yy74 = addEveryClause(pCxt, yymsp[-11].minor.yy74, yymsp[-4].minor.yy74);
- yymsp[-11].minor.yy74 = addFillClause(pCxt, yymsp[-11].minor.yy74, yymsp[-3].minor.yy74);
+ yymsp[-11].minor.yy600 = createSelectStmt(pCxt, yymsp[-10].minor.yy841, yymsp[-9].minor.yy601, yymsp[-8].minor.yy600);
+ yymsp[-11].minor.yy600 = addWhereClause(pCxt, yymsp[-11].minor.yy600, yymsp[-7].minor.yy600);
+ yymsp[-11].minor.yy600 = addPartitionByClause(pCxt, yymsp[-11].minor.yy600, yymsp[-6].minor.yy601);
+ yymsp[-11].minor.yy600 = addWindowClauseClause(pCxt, yymsp[-11].minor.yy600, yymsp[-2].minor.yy600);
+ yymsp[-11].minor.yy600 = addGroupByClause(pCxt, yymsp[-11].minor.yy600, yymsp[-1].minor.yy601);
+ yymsp[-11].minor.yy600 = addHavingClause(pCxt, yymsp[-11].minor.yy600, yymsp[0].minor.yy600);
+ yymsp[-11].minor.yy600 = addRangeClause(pCxt, yymsp[-11].minor.yy600, yymsp[-5].minor.yy600);
+ yymsp[-11].minor.yy600 = addEveryClause(pCxt, yymsp[-11].minor.yy600, yymsp[-4].minor.yy600);
+ yymsp[-11].minor.yy600 = addFillClause(pCxt, yymsp[-11].minor.yy600, yymsp[-3].minor.yy600);
}
break;
- case 469: /* set_quantifier_opt ::= ALL */
-{ yymsp[0].minor.yy335 = false; }
+ case 470: /* set_quantifier_opt ::= ALL */
+{ yymsp[0].minor.yy841 = false; }
break;
- case 472: /* select_item ::= NK_STAR */
-{ yylhsminor.yy74 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); }
- yymsp[0].minor.yy74 = yylhsminor.yy74;
+ case 473: /* select_item ::= NK_STAR */
+{ yylhsminor.yy600 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); }
+ yymsp[0].minor.yy600 = yylhsminor.yy600;
break;
- case 474: /* select_item ::= common_expression column_alias */
- case 484: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==484);
-{ yylhsminor.yy74 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy74), &yymsp[0].minor.yy317); }
- yymsp[-1].minor.yy74 = yylhsminor.yy74;
+ case 475: /* select_item ::= common_expression column_alias */
+ case 485: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==485);
+{ yylhsminor.yy600 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy600), &yymsp[0].minor.yy77); }
+ yymsp[-1].minor.yy600 = yylhsminor.yy600;
break;
- case 475: /* select_item ::= common_expression AS column_alias */
- case 485: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==485);
-{ yylhsminor.yy74 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy74), &yymsp[0].minor.yy317); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+ case 476: /* select_item ::= common_expression AS column_alias */
+ case 486: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==486);
+{ yylhsminor.yy600 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), &yymsp[0].minor.yy77); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
- case 480: /* partition_by_clause_opt ::= PARTITION BY partition_list */
- case 502: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==502);
- case 521: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==521);
-{ yymsp[-2].minor.yy874 = yymsp[0].minor.yy874; }
+ case 481: /* partition_by_clause_opt ::= PARTITION BY partition_list */
+ case 505: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==505);
+ case 524: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==524);
+{ yymsp[-2].minor.yy601 = yymsp[0].minor.yy601; }
break;
- case 487: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */
-{ yymsp[-5].minor.yy74 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy74), releaseRawExprNode(pCxt, yymsp[-1].minor.yy74)); }
+ case 488: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */
+{ yymsp[-5].minor.yy600 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy600), releaseRawExprNode(pCxt, yymsp[-1].minor.yy600)); }
break;
- case 488: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
-{ yymsp[-3].minor.yy74 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy74)); }
+ case 489: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
+{ yymsp[-3].minor.yy600 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy600)); }
break;
- case 489: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */
-{ yymsp[-5].minor.yy74 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy74), NULL, yymsp[-1].minor.yy74, yymsp[0].minor.yy74); }
+ case 490: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */
+{ yymsp[-5].minor.yy600 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy600), NULL, yymsp[-1].minor.yy600, yymsp[0].minor.yy600); }
break;
- case 490: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */
-{ yymsp[-7].minor.yy74 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy74), releaseRawExprNode(pCxt, yymsp[-3].minor.yy74), yymsp[-1].minor.yy74, yymsp[0].minor.yy74); }
+ case 491: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */
+{ yymsp[-7].minor.yy600 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy600), releaseRawExprNode(pCxt, yymsp[-3].minor.yy600), yymsp[-1].minor.yy600, yymsp[0].minor.yy600); }
break;
- case 494: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */
-{ yymsp[-3].minor.yy74 = createFillNode(pCxt, yymsp[-1].minor.yy828, NULL); }
+ case 495: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */
+{ yymsp[-3].minor.yy600 = createFillNode(pCxt, yymsp[-1].minor.yy798, NULL); }
break;
- case 495: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */
-{ yymsp[-5].minor.yy74 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy874)); }
+ case 496: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */
+{ yymsp[-5].minor.yy600 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy601)); }
break;
- case 496: /* fill_mode ::= NONE */
-{ yymsp[0].minor.yy828 = FILL_MODE_NONE; }
+ case 497: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA literal_list NK_RP */
+{ yymsp[-5].minor.yy600 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy601)); }
break;
- case 497: /* fill_mode ::= PREV */
-{ yymsp[0].minor.yy828 = FILL_MODE_PREV; }
+ case 498: /* fill_mode ::= NONE */
+{ yymsp[0].minor.yy798 = FILL_MODE_NONE; }
break;
- case 498: /* fill_mode ::= NULL */
-{ yymsp[0].minor.yy828 = FILL_MODE_NULL; }
+ case 499: /* fill_mode ::= PREV */
+{ yymsp[0].minor.yy798 = FILL_MODE_PREV; }
break;
- case 499: /* fill_mode ::= LINEAR */
-{ yymsp[0].minor.yy828 = FILL_MODE_LINEAR; }
+ case 500: /* fill_mode ::= NULL */
+{ yymsp[0].minor.yy798 = FILL_MODE_NULL; }
break;
- case 500: /* fill_mode ::= NEXT */
-{ yymsp[0].minor.yy828 = FILL_MODE_NEXT; }
+ case 501: /* fill_mode ::= NULL_F */
+{ yymsp[0].minor.yy798 = FILL_MODE_NULL_F; }
break;
- case 503: /* group_by_list ::= expr_or_subquery */
-{ yylhsminor.yy874 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy74))); }
- yymsp[0].minor.yy874 = yylhsminor.yy874;
+ case 502: /* fill_mode ::= LINEAR */
+{ yymsp[0].minor.yy798 = FILL_MODE_LINEAR; }
break;
- case 504: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
-{ yylhsminor.yy874 = addNodeToList(pCxt, yymsp[-2].minor.yy874, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy74))); }
- yymsp[-2].minor.yy874 = yylhsminor.yy874;
+ case 503: /* fill_mode ::= NEXT */
+{ yymsp[0].minor.yy798 = FILL_MODE_NEXT; }
break;
- case 508: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
-{ yymsp[-5].minor.yy74 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy74), releaseRawExprNode(pCxt, yymsp[-1].minor.yy74)); }
+ case 506: /* group_by_list ::= expr_or_subquery */
+{ yylhsminor.yy601 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy600))); }
+ yymsp[0].minor.yy601 = yylhsminor.yy601;
break;
- case 511: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
+ case 507: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
+{ yylhsminor.yy601 = addNodeToList(pCxt, yymsp[-2].minor.yy601, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy600))); }
+ yymsp[-2].minor.yy601 = yylhsminor.yy601;
+ break;
+ case 511: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
+{ yymsp[-5].minor.yy600 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy600), releaseRawExprNode(pCxt, yymsp[-1].minor.yy600)); }
+ break;
+ case 514: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
{
- yylhsminor.yy74 = addOrderByClause(pCxt, yymsp[-3].minor.yy74, yymsp[-2].minor.yy874);
- yylhsminor.yy74 = addSlimitClause(pCxt, yylhsminor.yy74, yymsp[-1].minor.yy74);
- yylhsminor.yy74 = addLimitClause(pCxt, yylhsminor.yy74, yymsp[0].minor.yy74);
+ yylhsminor.yy600 = addOrderByClause(pCxt, yymsp[-3].minor.yy600, yymsp[-2].minor.yy601);
+ yylhsminor.yy600 = addSlimitClause(pCxt, yylhsminor.yy600, yymsp[-1].minor.yy600);
+ yylhsminor.yy600 = addLimitClause(pCxt, yylhsminor.yy600, yymsp[0].minor.yy600);
}
- yymsp[-3].minor.yy74 = yylhsminor.yy74;
+ yymsp[-3].minor.yy600 = yylhsminor.yy600;
break;
- case 514: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
-{ yylhsminor.yy74 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy74, yymsp[0].minor.yy74); }
- yymsp[-3].minor.yy74 = yylhsminor.yy74;
+ case 517: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
+{ yylhsminor.yy600 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy600, yymsp[0].minor.yy600); }
+ yymsp[-3].minor.yy600 = yylhsminor.yy600;
break;
- case 515: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
-{ yylhsminor.yy74 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy74, yymsp[0].minor.yy74); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+ case 518: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
+{ yylhsminor.yy600 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy600, yymsp[0].minor.yy600); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
- case 523: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */
- case 527: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==527);
-{ yymsp[-1].minor.yy74 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); }
+ case 526: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */
+ case 530: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==530);
+{ yymsp[-1].minor.yy600 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); }
break;
- case 524: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
- case 528: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==528);
-{ yymsp[-3].minor.yy74 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); }
+ case 527: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
+ case 531: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==531);
+{ yymsp[-3].minor.yy600 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); }
break;
- case 525: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
- case 529: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==529);
-{ yymsp[-3].minor.yy74 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); }
+ case 528: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
+ case 532: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==532);
+{ yymsp[-3].minor.yy600 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); }
break;
- case 530: /* subquery ::= NK_LP query_expression NK_RP */
-{ yylhsminor.yy74 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy74); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+ case 533: /* subquery ::= NK_LP query_expression NK_RP */
+{ yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy600); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
- case 535: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
-{ yylhsminor.yy74 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy74), yymsp[-1].minor.yy326, yymsp[0].minor.yy109); }
- yymsp[-2].minor.yy74 = yylhsminor.yy74;
+ case 538: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
+{ yylhsminor.yy600 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), yymsp[-1].minor.yy32, yymsp[0].minor.yy385); }
+ yymsp[-2].minor.yy600 = yylhsminor.yy600;
break;
- case 536: /* ordering_specification_opt ::= */
-{ yymsp[1].minor.yy326 = ORDER_ASC; }
+ case 539: /* ordering_specification_opt ::= */
+{ yymsp[1].minor.yy32 = ORDER_ASC; }
break;
- case 537: /* ordering_specification_opt ::= ASC */
-{ yymsp[0].minor.yy326 = ORDER_ASC; }
+ case 540: /* ordering_specification_opt ::= ASC */
+{ yymsp[0].minor.yy32 = ORDER_ASC; }
break;
- case 538: /* ordering_specification_opt ::= DESC */
-{ yymsp[0].minor.yy326 = ORDER_DESC; }
+ case 541: /* ordering_specification_opt ::= DESC */
+{ yymsp[0].minor.yy32 = ORDER_DESC; }
break;
- case 539: /* null_ordering_opt ::= */
-{ yymsp[1].minor.yy109 = NULL_ORDER_DEFAULT; }
+ case 542: /* null_ordering_opt ::= */
+{ yymsp[1].minor.yy385 = NULL_ORDER_DEFAULT; }
break;
- case 540: /* null_ordering_opt ::= NULLS FIRST */
-{ yymsp[-1].minor.yy109 = NULL_ORDER_FIRST; }
+ case 543: /* null_ordering_opt ::= NULLS FIRST */
+{ yymsp[-1].minor.yy385 = NULL_ORDER_FIRST; }
break;
- case 541: /* null_ordering_opt ::= NULLS LAST */
-{ yymsp[-1].minor.yy109 = NULL_ORDER_LAST; }
+ case 544: /* null_ordering_opt ::= NULLS LAST */
+{ yymsp[-1].minor.yy385 = NULL_ORDER_LAST; }
break;
default:
break;
diff --git a/source/libs/parser/test/parInitialCTest.cpp b/source/libs/parser/test/parInitialCTest.cpp
index 17d02c1cce..eb264687f1 100644
--- a/source/libs/parser/test/parInitialCTest.cpp
+++ b/source/libs/parser/test/parInitialCTest.cpp
@@ -643,7 +643,8 @@ TEST_F(ParserInitialCTest, createStream) {
auto setCreateStreamReq = [&](const char* pStream, const char* pSrcDb, const char* pSql, const char* pDstStb,
int8_t igExists = 0, int8_t triggerType = STREAM_TRIGGER_AT_ONCE, int64_t maxDelay = 0,
int64_t watermark = 0, int8_t igExpired = STREAM_DEFAULT_IGNORE_EXPIRED,
- int8_t fillHistory = STREAM_DEFAULT_FILL_HISTORY) {
+ int8_t fillHistory = STREAM_DEFAULT_FILL_HISTORY,
+ int8_t igUpdate = STREAM_DEFAULT_IGNORE_UPDATE) {
snprintf(expect.name, sizeof(expect.name), "0.%s", pStream);
snprintf(expect.sourceDB, sizeof(expect.sourceDB), "0.%s", pSrcDb);
snprintf(expect.targetStbFullName, sizeof(expect.targetStbFullName), "0.test.%s", pDstStb);
@@ -654,6 +655,7 @@ TEST_F(ParserInitialCTest, createStream) {
expect.watermark = watermark;
expect.fillHistory = fillHistory;
expect.igExpired = igExpired;
+ expect.igUpdate = igUpdate;
};
auto addTag = [&](const char* pFieldName, uint8_t type, int32_t bytes = 0) {
@@ -699,6 +701,7 @@ TEST_F(ParserInitialCTest, createStream) {
ASSERT_EQ(pField->flags, pExpectField->flags);
}
}
+ ASSERT_EQ(req.igUpdate, expect.igUpdate);
tFreeSCMCreateStreamReq(&req);
});
@@ -708,12 +711,11 @@ TEST_F(ParserInitialCTest, createStream) {
setCreateStreamReq(
"s1", "test",
- "create stream if not exists s1 trigger max_delay 20s watermark 10s ignore expired 0 fill_history 1 into st1 "
- "as select count(*) from t1 interval(10s)",
- "st1", 1, STREAM_TRIGGER_MAX_DELAY, 20 * MILLISECOND_PER_SECOND, 10 * MILLISECOND_PER_SECOND, 0, 1);
- run("CREATE STREAM IF NOT EXISTS s1 TRIGGER MAX_DELAY 20s WATERMARK 10s IGNORE EXPIRED 0 FILL_HISTORY 1 INTO st1 AS "
- "SELECT COUNT(*) "
- "FROM t1 INTERVAL(10S)");
+ "create stream if not exists s1 trigger max_delay 20s watermark 10s ignore expired 0 fill_history 1 ignore "
+ "update 1 into st1 as select count(*) from t1 interval(10s)",
+ "st1", 1, STREAM_TRIGGER_MAX_DELAY, 20 * MILLISECOND_PER_SECOND, 10 * MILLISECOND_PER_SECOND, 0, 1, 1);
+ run("CREATE STREAM IF NOT EXISTS s1 TRIGGER MAX_DELAY 20s WATERMARK 10s IGNORE EXPIRED 0 FILL_HISTORY 1 IGNORE "
+ "UPDATE 1 INTO st1 AS SELECT COUNT(*) FROM t1 INTERVAL(10S)");
clearCreateStreamReq();
setCreateStreamReq("s1", "test",
diff --git a/source/libs/planner/src/planLogicCreater.c b/source/libs/planner/src/planLogicCreater.c
index bd1823a770..bfde50761a 100644
--- a/source/libs/planner/src/planLogicCreater.c
+++ b/source/libs/planner/src/planLogicCreater.c
@@ -343,6 +343,13 @@ static int32_t createScanLogicNode(SLogicPlanContext* pCxt, SSelectStmt* pSelect
pScan->node.groupAction = GROUP_ACTION_NONE;
pScan->node.resultDataOrder = DATA_ORDER_LEVEL_IN_BLOCK;
+ if (pCxt->pPlanCxt->streamQuery) {
+ pScan->triggerType = pCxt->pPlanCxt->triggerType;
+ pScan->watermark = pCxt->pPlanCxt->watermark;
+ pScan->deleteMark = pCxt->pPlanCxt->deleteMark;
+ pScan->igExpired = pCxt->pPlanCxt->igExpired;
+ pScan->igCheckUpdate = pCxt->pPlanCxt->igCheckUpdate;
+ }
// set columns to scan
if (TSDB_CODE_SUCCESS == code) {
@@ -705,6 +712,7 @@ static int32_t createWindowLogicNodeFinalize(SLogicPlanContext* pCxt, SSelectStm
pWindow->watermark = pCxt->pPlanCxt->watermark;
pWindow->deleteMark = pCxt->pPlanCxt->deleteMark;
pWindow->igExpired = pCxt->pPlanCxt->igExpired;
+ pWindow->igCheckUpdate = pCxt->pPlanCxt->igCheckUpdate;
}
pWindow->inputTsOrder = ORDER_ASC;
pWindow->outputTsOrder = ORDER_ASC;
diff --git a/source/libs/planner/src/planOptimizer.c b/source/libs/planner/src/planOptimizer.c
index e901297f4d..90a7261074 100644
--- a/source/libs/planner/src/planOptimizer.c
+++ b/source/libs/planner/src/planOptimizer.c
@@ -328,10 +328,6 @@ static void scanPathOptSetScanWin(SScanLogicNode* pScan) {
pScan->sliding = ((SWindowLogicNode*)pParent)->sliding;
pScan->intervalUnit = ((SWindowLogicNode*)pParent)->intervalUnit;
pScan->slidingUnit = ((SWindowLogicNode*)pParent)->slidingUnit;
- pScan->triggerType = ((SWindowLogicNode*)pParent)->triggerType;
- pScan->watermark = ((SWindowLogicNode*)pParent)->watermark;
- pScan->deleteMark = ((SWindowLogicNode*)pParent)->deleteMark;
- pScan->igExpired = ((SWindowLogicNode*)pParent)->igExpired;
}
}
diff --git a/source/libs/planner/src/planPhysiCreater.c b/source/libs/planner/src/planPhysiCreater.c
index df10fe8ee3..f016ca165b 100644
--- a/source/libs/planner/src/planPhysiCreater.c
+++ b/source/libs/planner/src/planPhysiCreater.c
@@ -582,6 +582,7 @@ static int32_t createTableScanPhysiNode(SPhysiPlanContext* pCxt, SSubplan* pSubp
pTableScan->triggerType = pScanLogicNode->triggerType;
pTableScan->watermark = pScanLogicNode->watermark;
pTableScan->igExpired = pScanLogicNode->igExpired;
+ pTableScan->igCheckUpdate = pScanLogicNode->igCheckUpdate;
pTableScan->assignBlockUid = pCxt->pPlanCxt->rSmaQuery ? true : false;
int32_t code = createScanPhysiNodeFinalize(pCxt, pSubplan, pScanLogicNode, (SScanPhysiNode*)pTableScan, pPhyNode);
diff --git a/source/libs/stream/src/streamState.c b/source/libs/stream/src/streamState.c
index b890d145e5..330f67991d 100644
--- a/source/libs/stream/src/streamState.c
+++ b/source/libs/stream/src/streamState.c
@@ -128,7 +128,7 @@ SStreamState* streamStateOpen(char* path, SStreamTask* pTask, bool specPath, int
memset(statePath, 0, 1024);
tstrncpy(statePath, path, 1024);
}
- if (tdbOpen(statePath, szPage, pages, &pState->pTdbState->db, 0) < 0) {
+ if (tdbOpen(statePath, szPage, pages, &pState->pTdbState->db, 1) < 0) {
goto _err;
}
diff --git a/source/libs/sync/src/syncRaftLog.c b/source/libs/sync/src/syncRaftLog.c
index e6569d9974..9299651999 100644
--- a/source/libs/sync/src/syncRaftLog.c
+++ b/source/libs/sync/src/syncRaftLog.c
@@ -249,6 +249,7 @@ int32_t raftLogGetEntry(struct SSyncLogStore* pLogStore, SyncIndex index, SSyncR
int64_t ts2 = taosGetTimestampNs();
code = walReadVer(pWalHandle, index);
+ walReadReset(pWalHandle);
int64_t ts3 = taosGetTimestampNs();
// code = walReadVerCached(pWalHandle, index);
diff --git a/source/libs/tdb/src/db/tdbPage.c b/source/libs/tdb/src/db/tdbPage.c
index 50dc8e0a65..dc448c986e 100644
--- a/source/libs/tdb/src/db/tdbPage.c
+++ b/source/libs/tdb/src/db/tdbPage.c
@@ -404,62 +404,50 @@ static int tdbPageFree(SPage *pPage, int idx, SCell *pCell, int szCell) {
return 0;
}
-static int tdbPageDefragment(SPage *pPage) {
- int nFree;
- int nCells;
- SCell *pCell;
- SCell *pNextCell;
- SCell *pTCell;
- int szCell;
- int idx;
- int iCell;
-
- nFree = TDB_PAGE_NFREE(pPage);
- nCells = TDB_PAGE_NCELLS(pPage);
-
- ASSERT(pPage->pFreeEnd - pPage->pFreeStart < nFree);
-
- // Loop to compact the page content
- // Here we use an O(n^2) algorithm to do the job since
- // this is a low frequency job.
- pNextCell = (u8 *)pPage->pPageFtr;
- pCell = NULL;
- for (iCell = 0;; iCell++) {
- // compact over
- if (iCell == nCells) {
- pPage->pFreeEnd = pNextCell;
- break;
- }
-
- for (int i = 0; i < nCells; i++) {
- if (TDB_PAGE_CELL_OFFSET_AT(pPage, i) < pNextCell - pPage->pData) {
- pTCell = TDB_PAGE_CELL_AT(pPage, i);
- if (pCell == NULL || pCell < pTCell) {
- pCell = pTCell;
- idx = i;
- }
- } else {
- continue;
- }
- }
-
- ASSERT(pCell != NULL);
-
- szCell = (*pPage->xCellSize)(pPage, pCell, 0, NULL, NULL);
-
- ASSERT(pCell + szCell <= pNextCell);
- if (pCell + szCell < pNextCell) {
- memmove(pNextCell - szCell, pCell, szCell);
- }
-
- pCell = NULL;
- pNextCell = pNextCell - szCell;
- TDB_PAGE_CELL_OFFSET_AT_SET(pPage, idx, pNextCell - pPage->pData);
+typedef struct {
+ int32_t iCell;
+ int32_t offset;
+} SCellIdx;
+static int32_t tCellIdxCmprFn(const void *p1, const void *p2) {
+ if (((SCellIdx *)p1)->offset < ((SCellIdx *)p2)->offset) {
+ return -1;
+ } else if (((SCellIdx *)p1)->offset > ((SCellIdx *)p2)->offset) {
+ return 1;
+ } else {
+ return 0;
}
+}
+static int tdbPageDefragment(SPage *pPage) {
+ int32_t nFree = TDB_PAGE_NFREE(pPage);
+ int32_t nCell = TDB_PAGE_NCELLS(pPage);
- ASSERT(pPage->pFreeEnd - pPage->pFreeStart == nFree);
+ SCellIdx *aCellIdx = (SCellIdx *)tdbOsMalloc(sizeof(SCellIdx) * nCell);
+ if (aCellIdx == NULL) return -1;
+ for (int32_t iCell = 0; iCell < nCell; iCell++) {
+ aCellIdx[iCell].iCell = iCell;
+ aCellIdx[iCell].offset = TDB_PAGE_CELL_OFFSET_AT(pPage, iCell);
+ }
+ taosSort(aCellIdx, nCell, sizeof(SCellIdx), tCellIdxCmprFn);
+
+ SCell *pNextCell = (u8 *)pPage->pPageFtr;
+ for (int32_t iCell = nCell - 1; iCell >= 0; iCell--) {
+ SCell *pCell = TDB_PAGE_CELL_AT(pPage, aCellIdx[iCell].iCell);
+ int32_t szCell = pPage->xCellSize(pPage, pCell, 0, NULL, NULL);
+
+ ASSERT(pNextCell - szCell >= pCell);
+
+ pNextCell -= szCell;
+ if (pNextCell > pCell) {
+ memmove(pNextCell, pCell, szCell);
+ TDB_PAGE_CELL_OFFSET_AT_SET(pPage, aCellIdx[iCell].iCell, pNextCell - pPage->pData);
+ }
+ }
+ pPage->pFreeEnd = pNextCell;
TDB_PAGE_CCELLS_SET(pPage, pPage->pFreeEnd - pPage->pData);
TDB_PAGE_FCELL_SET(pPage, 0);
+ tdbOsFree(aCellIdx);
+
+ ASSERT(pPage->pFreeEnd - pPage->pFreeStart == nFree);
return 0;
}
diff --git a/source/libs/tdb/test/CMakeLists.txt b/source/libs/tdb/test/CMakeLists.txt
index 2621e02b02..fd4d7c101d 100644
--- a/source/libs/tdb/test/CMakeLists.txt
+++ b/source/libs/tdb/test/CMakeLists.txt
@@ -6,7 +6,11 @@ target_link_libraries(tdbTest tdb gtest gtest_main)
add_executable(tdbUtilTest "tdbUtilTest.cpp")
target_link_libraries(tdbUtilTest tdb gtest gtest_main)
-# tdbUtilTest
+# overflow pages testing
add_executable(tdbExOVFLTest "tdbExOVFLTest.cpp")
target_link_libraries(tdbExOVFLTest tdb gtest gtest_main)
+# page defragment testing
+add_executable(tdbPageDefragmentTest "tdbPageDefragmentTest.cpp")
+target_link_libraries(tdbPageDefragmentTest tdb gtest gtest_main)
+
diff --git a/source/libs/tdb/test/tdbPageDefragmentTest.cpp b/source/libs/tdb/test/tdbPageDefragmentTest.cpp
new file mode 100644
index 0000000000..7aeef94d14
--- /dev/null
+++ b/source/libs/tdb/test/tdbPageDefragmentTest.cpp
@@ -0,0 +1,722 @@
+#include
+
+#define ALLOW_FORBID_FUNC
+#include "os.h"
+#include "tdb.h"
+
+#include
+#include
+#include
+#include
+#include "tlog.h"
+
+typedef struct SPoolMem {
+ int64_t size;
+ struct SPoolMem *prev;
+ struct SPoolMem *next;
+} SPoolMem;
+
+static SPoolMem *openPool() {
+ SPoolMem *pPool = (SPoolMem *)taosMemoryMalloc(sizeof(*pPool));
+
+ pPool->prev = pPool->next = pPool;
+ pPool->size = 0;
+
+ return pPool;
+}
+
+static void clearPool(SPoolMem *pPool) {
+ SPoolMem *pMem;
+
+ do {
+ pMem = pPool->next;
+
+ if (pMem == pPool) break;
+
+ pMem->next->prev = pMem->prev;
+ pMem->prev->next = pMem->next;
+ pPool->size -= pMem->size;
+
+ taosMemoryFree(pMem);
+ } while (1);
+
+ assert(pPool->size == 0);
+}
+
+static void closePool(SPoolMem *pPool) {
+ clearPool(pPool);
+ taosMemoryFree(pPool);
+}
+
+static void *poolMalloc(void *arg, size_t size) {
+ void *ptr = NULL;
+ SPoolMem *pPool = (SPoolMem *)arg;
+ SPoolMem *pMem;
+
+ pMem = (SPoolMem *)taosMemoryMalloc(sizeof(*pMem) + size);
+ if (pMem == NULL) {
+ assert(0);
+ }
+
+ pMem->size = sizeof(*pMem) + size;
+ pMem->next = pPool->next;
+ pMem->prev = pPool;
+
+ pPool->next->prev = pMem;
+ pPool->next = pMem;
+ pPool->size += pMem->size;
+
+ ptr = (void *)(&pMem[1]);
+ return ptr;
+}
+
+static void poolFree(void *arg, void *ptr) {
+ SPoolMem *pPool = (SPoolMem *)arg;
+ SPoolMem *pMem;
+
+ pMem = &(((SPoolMem *)ptr)[-1]);
+
+ pMem->next->prev = pMem->prev;
+ pMem->prev->next = pMem->next;
+ pPool->size -= pMem->size;
+
+ taosMemoryFree(pMem);
+}
+
+static int tKeyCmpr(const void *pKey1, int kLen1, const void *pKey2, int kLen2) {
+ int k1, k2;
+
+ std::string s1((char *)pKey1 + 3, kLen1 - 3);
+ std::string s2((char *)pKey2 + 3, kLen2 - 3);
+ k1 = stoi(s1);
+ k2 = stoi(s2);
+
+ if (k1 < k2) {
+ return -1;
+ } else if (k1 > k2) {
+ return 1;
+ } else {
+ return 0;
+ }
+}
+
+static int tDefaultKeyCmpr(const void *pKey1, int keyLen1, const void *pKey2, int keyLen2) {
+ int mlen;
+ int cret;
+
+ ASSERT(keyLen1 > 0 && keyLen2 > 0 && pKey1 != NULL && pKey2 != NULL);
+
+ mlen = keyLen1 < keyLen2 ? keyLen1 : keyLen2;
+ cret = memcmp(pKey1, pKey2, mlen);
+ if (cret == 0) {
+ if (keyLen1 < keyLen2) {
+ cret = -1;
+ } else if (keyLen1 > keyLen2) {
+ cret = 1;
+ } else {
+ cret = 0;
+ }
+ }
+ return cret;
+}
+
+// TEST(TdbPageDefragmentTest, DISABLED_TbUpsertTest) {
+// TEST(TdbPageDefragmentTest, TbUpsertTest) {
+//}
+
+// TEST(TdbPageDefragmentTest, DISABLED_TbPGetTest) {
+// TEST(TdbPageDefragmentTest, TbPGetTest) {
+//}
+
+static void generateBigVal(char *val, int valLen) {
+ for (int i = 0; i < valLen; ++i) {
+ char c = char(i & 0xff);
+ if (c == 0) {
+ c = 1;
+ }
+ val[i] = c;
+ }
+}
+
+static TDB *openEnv(char const *envName, int const pageSize, int const pageNum) {
+ TDB *pEnv = NULL;
+
+ int ret = tdbOpen(envName, pageSize, pageNum, &pEnv, 0);
+ if (ret) {
+ pEnv = NULL;
+ }
+
+ return pEnv;
+}
+
+static void insertOfp(void) {
+ int ret = 0;
+
+ taosRemoveDir("tdb");
+
+ // open Env
+ int const pageSize = 4096;
+ int const pageNum = 64;
+ TDB *pEnv = openEnv("tdb", pageSize, pageNum);
+ GTEST_ASSERT_NE(pEnv, nullptr);
+
+ // open db
+ TTB *pDb = NULL;
+ tdb_cmpr_fn_t compFunc = tKeyCmpr;
+ // ret = tdbTbOpen("ofp_insert.db", -1, -1, compFunc, pEnv, &pDb, 0);
+ ret = tdbTbOpen("ofp_insert.db", 12, -1, compFunc, pEnv, &pDb, 0);
+ GTEST_ASSERT_EQ(ret, 0);
+
+ // open the pool
+ SPoolMem *pPool = openPool();
+
+ // start a transaction
+ TXN *txn = NULL;
+
+ tdbBegin(pEnv, &txn, poolMalloc, poolFree, pPool, TDB_TXN_WRITE | TDB_TXN_READ_UNCOMMITTED);
+
+ // generate value payload
+ // char val[((4083 - 4 - 3 - 2) + 1) * 100]; // pSize(4096) - amSize(1) - pageHdr(8) - footerSize(4)
+ char val[32605];
+ int valLen = sizeof(val) / sizeof(val[0]);
+ generateBigVal(val, valLen);
+
+ // insert the generated big data
+ // char const *key = "key1";
+ char const *key = "key123456789";
+ ret = tdbTbInsert(pDb, key, strlen(key), val, valLen, txn);
+ GTEST_ASSERT_EQ(ret, 0);
+
+ // commit current transaction
+ tdbCommit(pEnv, txn);
+ tdbPostCommit(pEnv, txn);
+}
+
+TEST(TdbPageDefragmentTest, DISABLED_TbInsertTest) {
+ // TEST(TdbPageDefragmentTest, TbInsertTest) {
+ // ofp inserting
+ insertOfp();
+}
+
+TEST(TdbPageDefragmentTest, DISABLED_TbGetTest) {
+ // TEST(TdbPageDefragmentTest, TbGetTest) {
+ insertOfp();
+
+ // open Env
+ int const pageSize = 4096;
+ int const pageNum = 64;
+ TDB *pEnv = openEnv("tdb", pageSize, pageNum);
+ GTEST_ASSERT_NE(pEnv, nullptr);
+
+ // open db
+ TTB *pDb = NULL;
+ tdb_cmpr_fn_t compFunc = tKeyCmpr;
+ // int ret = tdbTbOpen("ofp_insert.db", -1, -1, compFunc, pEnv, &pDb, 0);
+ int ret = tdbTbOpen("ofp_insert.db", 12, -1, compFunc, pEnv, &pDb, 0);
+ GTEST_ASSERT_EQ(ret, 0);
+
+ // generate value payload
+ // char val[((4083 - 4 - 3 - 2) + 1) * 100]; // pSize(4096) - amSize(1) - pageHdr(8) - footerSize(4)
+ char val[32605];
+ int valLen = sizeof(val) / sizeof(val[0]);
+ generateBigVal(val, valLen);
+
+ { // Query the data
+ void *pVal = NULL;
+ int vLen;
+
+ // char const *key = "key1";
+ char const *key = "key123456789";
+ ret = tdbTbGet(pDb, key, strlen(key), &pVal, &vLen);
+ ASSERT(ret == 0);
+ GTEST_ASSERT_EQ(ret, 0);
+
+ GTEST_ASSERT_EQ(vLen, valLen);
+ GTEST_ASSERT_EQ(memcmp(val, pVal, vLen), 0);
+
+ tdbFree(pVal);
+ }
+}
+
+TEST(TdbPageDefragmentTest, DISABLED_TbDeleteTest) {
+ // TEST(TdbPageDefragmentTest, TbDeleteTest) {
+ int ret = 0;
+
+ taosRemoveDir("tdb");
+
+ // open Env
+ int const pageSize = 4096;
+ int const pageNum = 64;
+ TDB *pEnv = openEnv("tdb", pageSize, pageNum);
+ GTEST_ASSERT_NE(pEnv, nullptr);
+
+ // open db
+ TTB *pDb = NULL;
+ tdb_cmpr_fn_t compFunc = tKeyCmpr;
+ ret = tdbTbOpen("ofp_insert.db", -1, -1, compFunc, pEnv, &pDb, 0);
+ GTEST_ASSERT_EQ(ret, 0);
+
+ // open the pool
+ SPoolMem *pPool = openPool();
+
+ // start a transaction
+ TXN *txn;
+
+ tdbBegin(pEnv, &txn, poolMalloc, poolFree, pPool, TDB_TXN_WRITE | TDB_TXN_READ_UNCOMMITTED);
+
+ // generate value payload
+ // char val[((4083 - 4 - 3 - 2) + 1) * 100]; // pSize(4096) - amSize(1) - pageHdr(8) - footerSize(4)
+ char val[((4083 - 4 - 3 - 2) + 1) * 2]; // pSize(4096) - amSize(1) - pageHdr(8) - footerSize(4)
+ int valLen = sizeof(val) / sizeof(val[0]);
+ generateBigVal(val, valLen);
+
+ { // insert the generated big data
+ ret = tdbTbInsert(pDb, "key1", strlen("key1"), val, valLen, txn);
+ GTEST_ASSERT_EQ(ret, 0);
+ }
+
+ { // query the data
+ void *pVal = NULL;
+ int vLen;
+
+ ret = tdbTbGet(pDb, "key1", strlen("key1"), &pVal, &vLen);
+ ASSERT(ret == 0);
+ GTEST_ASSERT_EQ(ret, 0);
+
+ GTEST_ASSERT_EQ(vLen, valLen);
+ GTEST_ASSERT_EQ(memcmp(val, pVal, vLen), 0);
+
+ tdbFree(pVal);
+ }
+ /* open to debug committed file
+tdbCommit(pEnv, &txn);
+tdbTxnClose(&txn);
+
+++txnid;
+tdbTxnOpen(&txn, txnid, poolMalloc, poolFree, pPool, TDB_TXN_WRITE | TDB_TXN_READ_UNCOMMITTED);
+tdbBegin(pEnv, &txn);
+ */
+ { // upsert the data
+ ret = tdbTbUpsert(pDb, "key1", strlen("key1"), "value1", strlen("value1"), txn);
+ GTEST_ASSERT_EQ(ret, 0);
+ }
+
+ { // query the upserted data
+ void *pVal = NULL;
+ int vLen;
+
+ ret = tdbTbGet(pDb, "key1", strlen("key1"), &pVal, &vLen);
+ ASSERT(ret == 0);
+ GTEST_ASSERT_EQ(ret, 0);
+
+ GTEST_ASSERT_EQ(vLen, strlen("value1"));
+ GTEST_ASSERT_EQ(memcmp("value1", pVal, vLen), 0);
+
+ tdbFree(pVal);
+ }
+
+ { // delete the data
+ ret = tdbTbDelete(pDb, "key1", strlen("key1"), txn);
+ GTEST_ASSERT_EQ(ret, 0);
+ }
+
+ { // query the deleted data
+ void *pVal = NULL;
+ int vLen = -1;
+
+ ret = tdbTbGet(pDb, "key1", strlen("key1"), &pVal, &vLen);
+ ASSERT(ret == -1);
+ GTEST_ASSERT_EQ(ret, -1);
+
+ GTEST_ASSERT_EQ(vLen, -1);
+ GTEST_ASSERT_EQ(pVal, nullptr);
+
+ tdbFree(pVal);
+ }
+
+ // commit current transaction
+ tdbCommit(pEnv, txn);
+ tdbPostCommit(pEnv, txn);
+}
+
+TEST(TdbPageDefragmentTest, DISABLED_simple_insert1) {
+ // TEST(TdbPageDefragmentTest, simple_insert1) {
+ int ret;
+ TDB *pEnv;
+ TTB *pDb;
+ tdb_cmpr_fn_t compFunc;
+ int nData = 1;
+ TXN *txn;
+ int const pageSize = 4096;
+
+ taosRemoveDir("tdb");
+
+ // Open Env
+ ret = tdbOpen("tdb", pageSize, 64, &pEnv, 0);
+ GTEST_ASSERT_EQ(ret, 0);
+
+ // Create a database
+ compFunc = tKeyCmpr;
+ ret = tdbTbOpen("db.db", -1, -1, compFunc, pEnv, &pDb, 0);
+ GTEST_ASSERT_EQ(ret, 0);
+
+ {
+ char key[64];
+ // char val[(4083 - 4 - 3 - 2)]; // pSize(4096) - amSize(1) - pageHdr(8) - footerSize(4)
+ char val[(4083 - 4 - 3 - 2) + 1]; // pSize(4096) - amSize(1) - pageHdr(8) - footerSize(4)
+ int64_t poolLimit = 4096; // 1M pool limit
+ SPoolMem *pPool;
+
+ // open the pool
+ pPool = openPool();
+
+ // start a transaction
+ tdbBegin(pEnv, &txn, poolMalloc, poolFree, pPool, TDB_TXN_WRITE | TDB_TXN_READ_UNCOMMITTED);
+
+ for (int iData = 1; iData <= nData; iData++) {
+ sprintf(key, "key0");
+ sprintf(val, "value%d", iData);
+
+ // ret = tdbTbInsert(pDb, key, strlen(key), val, strlen(val), &txn);
+ // GTEST_ASSERT_EQ(ret, 0);
+
+ // generate value payload
+ int valLen = sizeof(val) / sizeof(val[0]);
+ for (int i = 6; i < valLen; ++i) {
+ char c = char(i & 0xff);
+ if (c == 0) {
+ c = 1;
+ }
+ val[i] = c;
+ }
+
+ ret = tdbTbInsert(pDb, "key1", strlen("key1"), val, valLen, txn);
+ GTEST_ASSERT_EQ(ret, 0);
+
+ // if pool is full, commit the transaction and start a new one
+ if (pPool->size >= poolLimit) {
+ // commit current transaction
+ tdbCommit(pEnv, txn);
+ tdbPostCommit(pEnv, txn);
+
+ // start a new transaction
+ clearPool(pPool);
+
+ tdbBegin(pEnv, &txn, poolMalloc, poolFree, pPool, TDB_TXN_WRITE | TDB_TXN_READ_UNCOMMITTED);
+ }
+ }
+
+ // commit the transaction
+ tdbCommit(pEnv, txn);
+ tdbPostCommit(pEnv, txn);
+
+ { // Query the data
+ void *pVal = NULL;
+ int vLen;
+
+ for (int i = 1; i <= nData; i++) {
+ sprintf(key, "key%d", i);
+ // sprintf(val, "value%d", i);
+
+ ret = tdbTbGet(pDb, key, strlen(key), &pVal, &vLen);
+ ASSERT(ret == 0);
+ GTEST_ASSERT_EQ(ret, 0);
+
+ GTEST_ASSERT_EQ(vLen, sizeof(val) / sizeof(val[0]));
+ GTEST_ASSERT_EQ(memcmp(val, pVal, vLen), 0);
+ }
+
+ tdbFree(pVal);
+ }
+
+ { // Iterate to query the DB data
+ TBC *pDBC;
+ void *pKey = NULL;
+ void *pVal = NULL;
+ int vLen, kLen;
+ int count = 0;
+
+ ret = tdbTbcOpen(pDb, &pDBC, NULL);
+ GTEST_ASSERT_EQ(ret, 0);
+
+ tdbTbcMoveToFirst(pDBC);
+
+ for (;;) {
+ ret = tdbTbcNext(pDBC, &pKey, &kLen, &pVal, &vLen);
+ if (ret < 0) break;
+
+ // std::cout.write((char *)pKey, kLen) /* << " " << kLen */ << " ";
+ // std::cout.write((char *)pVal, vLen) /* << " " << vLen */;
+ // std::cout << std::endl;
+
+ count++;
+ }
+
+ GTEST_ASSERT_EQ(count, nData);
+
+ tdbTbcClose(pDBC);
+
+ tdbFree(pKey);
+ tdbFree(pVal);
+ }
+ }
+
+ ret = tdbTbDrop(pDb);
+ GTEST_ASSERT_EQ(ret, 0);
+
+ // Close a database
+ tdbTbClose(pDb);
+
+ // Close Env
+ ret = tdbClose(pEnv);
+ GTEST_ASSERT_EQ(ret, 0);
+}
+
+// TEST(TdbPageDefragmentTest, DISABLED_seq_insert) {
+TEST(TdbPageDefragmentTest, seq_insert) {
+ int ret = 0;
+ TDB *pEnv = NULL;
+ TTB *pDb = NULL;
+ tdb_cmpr_fn_t compFunc;
+ int nData = 64 * 1024;
+ TXN *txn = NULL;
+ int const pageSize = 1 * 1024 * 1024;
+
+ taosRemoveDir("tdb");
+
+ // Open Env
+ ret = tdbOpen("tdb", pageSize, 64, &pEnv, 0);
+ GTEST_ASSERT_EQ(ret, 0);
+
+ // Create a database
+ compFunc = tKeyCmpr;
+ ret = tdbTbOpen("db.db", -1, -1, compFunc, pEnv, &pDb, 0);
+ GTEST_ASSERT_EQ(ret, 0);
+
+ // 1, insert nData kv
+ {
+ char key[64];
+ // char val[(4083 - 4 - 3 - 2)]; // pSize(4096) - amSize(1) - pageHdr(8) - footerSize(4)
+ char val[(4083 - 4 - 3 - 2) + 1]; // pSize(4096) - amSize(1) - pageHdr(8) - footerSize(4)
+ int64_t poolLimit = 4096; // 1M pool limit
+ SPoolMem *pPool;
+
+ // open the pool
+ pPool = openPool();
+
+ // start a transaction
+ tdbBegin(pEnv, &txn, poolMalloc, poolFree, pPool, TDB_TXN_WRITE | TDB_TXN_READ_UNCOMMITTED);
+
+ for (int iData = 0; iData < nData; ++iData) {
+ sprintf(key, "key%d", iData);
+ sprintf(val, "value%d", iData);
+
+ ret = tdbTbInsert(pDb, key, strlen(key), val, strlen(val), txn);
+ GTEST_ASSERT_EQ(ret, 0);
+ /*
+ // generate value payload
+ int valLen = sizeof(val) / sizeof(val[0]);
+ for (int i = 6; i < valLen; ++i) {
+ char c = char(i & 0xff);
+ if (c == 0) {
+ c = 1;
+ }
+ val[i] = c;
+ }
+
+ ret = tdbTbInsert(pDb, key, strlen(key), val, valLen, txn);
+ GTEST_ASSERT_EQ(ret, 0);
+ */
+ // if pool is full, commit the transaction and start a new one
+ if (pPool->size >= poolLimit) {
+ // commit current transaction
+ tdbCommit(pEnv, txn);
+ tdbPostCommit(pEnv, txn);
+
+ // start a new transaction
+ clearPool(pPool);
+
+ tdbBegin(pEnv, &txn, poolMalloc, poolFree, pPool, TDB_TXN_WRITE | TDB_TXN_READ_UNCOMMITTED);
+ }
+ }
+
+ // commit the transaction
+ tdbCommit(pEnv, txn);
+ tdbPostCommit(pEnv, txn);
+
+ // 2, delete nData/2 records
+ }
+
+ // Close a database
+ tdbTbClose(pDb);
+
+ // Close Env
+ ret = tdbClose(pEnv);
+ GTEST_ASSERT_EQ(ret, 0);
+}
+
+// TEST(TdbPageDefragmentTest, DISABLED_seq_delete) {
+TEST(TdbPageDefragmentTest, seq_delete) {
+ int ret = 0;
+ TDB *pEnv = NULL;
+ TTB *pDb = NULL;
+ tdb_cmpr_fn_t compFunc;
+ int nData = 64 * 1024;
+ TXN *txn = NULL;
+ int const pageSize = 1 * 1024 * 1024;
+
+ // Open Env
+ ret = tdbOpen("tdb", pageSize, 64, &pEnv, 0);
+ GTEST_ASSERT_EQ(ret, 0);
+
+ // Create a database
+ compFunc = tKeyCmpr;
+ ret = tdbTbOpen("db.db", -1, -1, compFunc, pEnv, &pDb, 0);
+ GTEST_ASSERT_EQ(ret, 0);
+
+ // 2, delete nData/2 records
+ {
+ char key[64];
+ // char val[(4083 - 4 - 3 - 2)]; // pSize(4096) - amSize(1) - pageHdr(8) - footerSize(4)
+ char val[(4083 - 4 - 3 - 2) + 1]; // pSize(4096) - amSize(1) - pageHdr(8) - footerSize(4)
+ int64_t poolLimit = 4096; // 1M pool limit
+ SPoolMem *pPool;
+
+ // open the pool
+ pPool = openPool();
+
+ // start a transaction
+ tdbBegin(pEnv, &txn, poolMalloc, poolFree, pPool, TDB_TXN_WRITE | TDB_TXN_READ_UNCOMMITTED);
+
+ for (int iData = 1; iData <= nData; iData++) {
+ if (iData % 2 == 0) continue;
+
+ sprintf(key, "key%d", iData);
+ sprintf(val, "value%d", iData);
+
+ { // delete the data
+ ret = tdbTbDelete(pDb, key, strlen(key), txn);
+ GTEST_ASSERT_EQ(ret, 0);
+ }
+
+ /*
+ // generate value payload
+ int valLen = sizeof(val) / sizeof(val[0]);
+ for (int i = 6; i < valLen; ++i) {
+ char c = char(i & 0xff);
+ if (c == 0) {
+ c = 1;
+ }
+ val[i] = c;
+ }
+
+ ret = tdbTbInsert(pDb, key, strlen(key), val, valLen, txn);
+ GTEST_ASSERT_EQ(ret, 0);
+ */
+ // if pool is full, commit the transaction and start a new one
+ if (pPool->size >= poolLimit) {
+ // commit current transaction
+ tdbCommit(pEnv, txn);
+ tdbPostCommit(pEnv, txn);
+
+ // start a new transaction
+ clearPool(pPool);
+
+ tdbBegin(pEnv, &txn, poolMalloc, poolFree, pPool, TDB_TXN_WRITE | TDB_TXN_READ_UNCOMMITTED);
+ }
+ }
+
+ // commit the transaction
+ tdbCommit(pEnv, txn);
+ tdbPostCommit(pEnv, txn);
+ }
+
+ // Close a database
+ tdbTbClose(pDb);
+
+ // Close Env
+ ret = tdbClose(pEnv);
+ GTEST_ASSERT_EQ(ret, 0);
+}
+
+// TEST(TdbPageDefragmentTest, DISABLED_defragment_insert) {
+TEST(TdbPageDefragmentTest, defragment_insert) {
+ int ret = 0;
+ TDB *pEnv = NULL;
+ TTB *pDb = NULL;
+ tdb_cmpr_fn_t compFunc;
+ int nData = 64 * 1024;
+ TXN *txn = NULL;
+ int const pageSize = 1 * 1024 * 1024;
+
+ // Open Env
+ ret = tdbOpen("tdb", pageSize, 64, &pEnv, 0);
+ GTEST_ASSERT_EQ(ret, 0);
+
+ // Create a database
+ compFunc = tKeyCmpr;
+ ret = tdbTbOpen("db.db", -1, -1, compFunc, pEnv, &pDb, 0);
+ GTEST_ASSERT_EQ(ret, 0);
+
+ // 3, insert 32k records
+ {
+ char key[64];
+ // char val[(4083 - 4 - 3 - 2)]; // pSize(4096) - amSize(1) - pageHdr(8) - footerSize(4)
+ char val[(4083 - 4 - 3 - 2) + 1]; // pSize(4096) - amSize(1) - pageHdr(8) - footerSize(4)
+ int64_t poolLimit = 4096; // 1M pool limit
+ SPoolMem *pPool;
+
+ // open the pool
+ pPool = openPool();
+
+ // start a transaction
+ tdbBegin(pEnv, &txn, poolMalloc, poolFree, pPool, TDB_TXN_WRITE | TDB_TXN_READ_UNCOMMITTED);
+
+ for (int iData = nData + 1; iData <= nData * 2; iData++) {
+ // if (iData % 2 == 0) continue;
+ sprintf(key, "key%d", iData);
+ sprintf(val, "value%d", iData);
+
+ ret = tdbTbInsert(pDb, key, strlen(key), val, strlen(val), txn);
+ GTEST_ASSERT_EQ(ret, 0);
+ /*
+ // generate value payload
+ int valLen = sizeof(val) / sizeof(val[0]);
+ for (int i = 6; i < valLen; ++i) {
+ char c = char(i & 0xff);
+ if (c == 0) {
+ c = 1;
+ }
+ val[i] = c;
+ }
+
+ ret = tdbTbInsert(pDb, key, strlen(key), val, valLen, txn);
+ GTEST_ASSERT_EQ(ret, 0);
+ */
+ // if pool is full, commit the transaction and start a new one
+ if (pPool->size >= poolLimit) {
+ // commit current transaction
+ tdbCommit(pEnv, txn);
+ tdbPostCommit(pEnv, txn);
+
+ // start a new transaction
+ clearPool(pPool);
+
+ tdbBegin(pEnv, &txn, poolMalloc, poolFree, pPool, TDB_TXN_WRITE | TDB_TXN_READ_UNCOMMITTED);
+ }
+ }
+
+ // commit the transaction
+ tdbCommit(pEnv, txn);
+ tdbPostCommit(pEnv, txn);
+
+ // 2, delete nData/2 records
+ }
+
+ // Close a database
+ tdbTbClose(pDb);
+
+ // Close Env
+ ret = tdbClose(pEnv);
+ GTEST_ASSERT_EQ(ret, 0);
+}
diff --git a/source/libs/wal/src/walRead.c b/source/libs/wal/src/walRead.c
index 07228bddd8..0f8f140bd8 100644
--- a/source/libs/wal/src/walRead.c
+++ b/source/libs/wal/src/walRead.c
@@ -594,3 +594,12 @@ int32_t walReadVer(SWalReader *pReader, int64_t ver) {
return 0;
}
+
+void walReadReset(SWalReader *pReader) {
+ taosThreadMutexLock(&pReader->mutex);
+ taosCloseFile(&pReader->pIdxFile);
+ taosCloseFile(&pReader->pLogFile);
+ pReader->curInvalid = 1;
+ pReader->curFileFirstVer = -1;
+ taosThreadMutexUnlock(&pReader->mutex);
+}
diff --git a/source/os/CMakeLists.txt b/source/os/CMakeLists.txt
index 3aac5e9775..bc554c48a3 100644
--- a/source/os/CMakeLists.txt
+++ b/source/os/CMakeLists.txt
@@ -37,7 +37,9 @@ if(CHECK_STR2INT_ERROR)
add_definitions(-DTD_CHECK_STR_TO_INT_ERROR)
endif()
target_link_libraries(
- os PUBLIC pthread
+ os
+ PUBLIC pthread
+ PUBLIC zlibstatic
)
if(TD_WINDOWS)
target_link_libraries(
@@ -63,4 +65,4 @@ ENDIF ()
if(${BUILD_TEST})
add_subdirectory(test)
-endif(${BUILD_TEST})
\ No newline at end of file
+endif(${BUILD_TEST})
diff --git a/source/os/src/osFile.c b/source/os/src/osFile.c
index 3f527e9130..4cdf4cbdbc 100644
--- a/source/os/src/osFile.c
+++ b/source/os/src/osFile.c
@@ -15,6 +15,7 @@
#define ALLOW_FORBID_FUNC
#include "os.h"
#include "osSemaphore.h"
+#include "zlib.h"
#ifdef WINDOWS
#include
@@ -830,3 +831,48 @@ bool taosCheckAccessFile(const char *pathname, int32_t tdFileAccessOptions) {
}
bool taosCheckExistFile(const char *pathname) { return taosCheckAccessFile(pathname, TD_FILE_ACCESS_EXIST_OK); };
+
+int32_t taosCompressFile(char *srcFileName, char *destFileName) {
+ int32_t compressSize = 163840;
+ int32_t ret = 0;
+ int32_t len = 0;
+ char *data = taosMemoryMalloc(compressSize);
+ gzFile dstFp = NULL;
+
+ TdFilePtr pSrcFile = taosOpenFile(srcFileName, TD_FILE_READ | TD_FILE_STREAM);
+ if (pSrcFile == NULL) {
+ ret = -1;
+ goto cmp_end;
+ }
+
+ TdFilePtr pFile = taosOpenFile(destFileName, TD_FILE_CREATE | TD_FILE_WRITE | TD_FILE_TRUNC);
+ if (pFile == NULL) {
+ ret = -2;
+ goto cmp_end;
+ }
+
+ dstFp = gzdopen(pFile->fd, "wb6f");
+ if (dstFp == NULL) {
+ ret = -3;
+ taosCloseFile(&pFile);
+ goto cmp_end;
+ }
+
+ while (!feof(pSrcFile->fp)) {
+ len = (int32_t)fread(data, 1, compressSize, pSrcFile->fp);
+ (void)gzwrite(dstFp, data, len);
+ }
+
+cmp_end:
+ if (pSrcFile) {
+ taosCloseFile(&pSrcFile);
+ }
+
+ if (dstFp) {
+ gzclose(dstFp);
+ }
+
+ taosMemoryFree(data);
+
+ return ret;
+}
diff --git a/source/util/src/tlog.c b/source/util/src/tlog.c
index 62f074db5b..89dd51a892 100644
--- a/source/util/src/tlog.c
+++ b/source/util/src/tlog.c
@@ -115,7 +115,6 @@ static int32_t taosPushLogBuffer(SLogBuff *pLogBuf, const char *msg, int32_t m
static SLogBuff *taosLogBuffNew(int32_t bufSize);
static void taosCloseLogByFd(TdFilePtr pFile);
static int32_t taosOpenLogFile(char *fn, int32_t maxLines, int32_t maxFileNum);
-static int32_t taosCompressFile(char *srcFileName, char *destFileName);
static FORCE_INLINE void taosUpdateDaylight() {
struct tm Tm, *ptm;
@@ -748,50 +747,6 @@ static void *taosAsyncOutputLog(void *param) {
return NULL;
}
-int32_t taosCompressFile(char *srcFileName, char *destFileName) {
- int32_t compressSize = 163840;
- int32_t ret = 0;
- int32_t len = 0;
- char *data = taosMemoryMalloc(compressSize);
- // gzFile dstFp = NULL;
-
- // srcFp = fopen(srcFileName, "r");
- TdFilePtr pSrcFile = taosOpenFile(srcFileName, TD_FILE_READ);
- if (pSrcFile == NULL) {
- ret = -1;
- goto cmp_end;
- }
-
- TdFilePtr pFile = taosOpenFile(destFileName, TD_FILE_CREATE | TD_FILE_WRITE | TD_FILE_TRUNC);
- if (pFile == NULL) {
- ret = -2;
- goto cmp_end;
- }
-
- // dstFp = gzdopen(fd, "wb6f");
- // if (dstFp == NULL) {
- // ret = -3;
- // close(fd);
- // goto cmp_end;
- // }
- //
- // while (!feof(srcFp)) {
- // len = (int32_t)fread(data, 1, compressSize, srcFp);
- // (void)gzwrite(dstFp, data, len);
- // }
-
-cmp_end:
- if (pSrcFile) {
- taosCloseFile(&pSrcFile);
- }
- // if (dstFp) {
- // gzclose(dstFp);
- // }
- taosMemoryFree(data);
-
- return ret;
-}
-
bool taosAssertDebug(bool condition, const char *file, int32_t line, const char *format, ...) {
if (condition) return false;
diff --git a/source/util/src/tpagedbuf.c b/source/util/src/tpagedbuf.c
index 7ed7b2fbfe..3cecfdff9c 100644
--- a/source/util/src/tpagedbuf.c
+++ b/source/util/src/tpagedbuf.c
@@ -5,11 +5,11 @@
#include "thash.h"
#include "tlog.h"
-#define GET_PAYLOAD_DATA(_p) ((char*)(_p)->pData + POINTER_BYTES)
-#define BUF_PAGE_IN_MEM(_p) ((_p)->pData != NULL)
+#define GET_PAYLOAD_DATA(_p) ((char*)(_p)->pData + POINTER_BYTES)
+#define BUF_PAGE_IN_MEM(_p) ((_p)->pData != NULL)
#define CLEAR_BUF_PAGE_IN_MEM_FLAG(_p) ((_p)->pData = NULL)
-#define HAS_DATA_IN_DISK(_p) ((_p)->offset >= 0)
-#define NO_IN_MEM_AVAILABLE_PAGES(_b) (listNEles((_b)->lruList) >= (_b)->inMemPages)
+#define HAS_DATA_IN_DISK(_p) ((_p)->offset >= 0)
+#define NO_IN_MEM_AVAILABLE_PAGES(_b) (listNEles((_b)->lruList) >= (_b)->inMemPages)
typedef struct SPageDiskInfo {
int64_t offset;
@@ -17,7 +17,7 @@ typedef struct SPageDiskInfo {
} SPageDiskInfo, SFreeListItem;
struct SPageInfo {
- SListNode* pn; // point to list node struct. it is NULL when the page is evicted from the in-memory buffer
+ SListNode* pn; // point to list node struct. it is NULL when the page is evicted from the in-memory buffer
void* pData;
int64_t offset;
int32_t pageId;
@@ -52,10 +52,13 @@ struct SDiskbasedBuf {
};
static int32_t createDiskFile(SDiskbasedBuf* pBuf) {
- if (pBuf->path == NULL) { // prepare the file name when needed it
+ if (pBuf->path == NULL) { // prepare the file name when needed it
char path[PATH_MAX] = {0};
taosGetTmpfilePath(pBuf->prefix, "paged-buf", path);
pBuf->path = taosMemoryStrDup(path);
+ if (pBuf->path == NULL) {
+ return TSDB_CODE_OUT_OF_MEMORY;
+ }
}
pBuf->pFile =
@@ -166,6 +169,7 @@ static char* doFlushBufPage(SDiskbasedBuf* pBuf, SPageInfo* pg) {
t = doCompressData(payload, pBuf->pageSize, &size, pBuf);
if (size < 0) {
uError("failed to compress data when flushing data to disk, %s", pBuf->id);
+ terrno = TSDB_CODE_INVALID_PARA;
return NULL;
}
}
@@ -233,7 +237,7 @@ static char* flushBufPage(SDiskbasedBuf* pBuf, SPageInfo* pg) {
// load file block data in disk
static int32_t loadPageFromDisk(SDiskbasedBuf* pBuf, SPageInfo* pg) {
if (pg->offset < 0 || pg->length <= 0) {
- uError("failed to load buf page from disk, offset:%"PRId64", length:%d, %s", pg->offset, pg->length, pBuf->id);
+ uError("failed to load buf page from disk, offset:%" PRId64 ", length:%d, %s", pg->offset, pg->length, pBuf->id);
return TSDB_CODE_INVALID_PARA;
}
@@ -300,6 +304,7 @@ static SListNode* getEldestUnrefedPage(SDiskbasedBuf* pBuf) {
static char* evictBufPage(SDiskbasedBuf* pBuf) {
SListNode* pn = getEldestUnrefedPage(pBuf);
if (pn == NULL) { // no available buffer pages now, return.
+ terrno = TSDB_CODE_OUT_OF_MEMORY;
return NULL;
}
@@ -379,14 +384,14 @@ int32_t createDiskbasedBuf(SDiskbasedBuf** pBuf, int32_t pagesize, int32_t inMem
goto _error;
}
- pPBuf->prefix = (char*) dir;
+ pPBuf->prefix = (char*)dir;
pPBuf->emptyDummyIdList = taosArrayInit(1, sizeof(int32_t));
// qDebug("QInfo:0x%"PRIx64" create resBuf for output, page size:%d, inmem buf pages:%d, file:%s", qId,
// pPBuf->pageSize, pPBuf->inMemPages, pPBuf->path);
return TSDB_CODE_SUCCESS;
- _error:
+_error:
destroyDiskbasedBuf(pPBuf);
return TSDB_CODE_OUT_OF_MEMORY;
}
@@ -396,11 +401,12 @@ static char* doExtractPage(SDiskbasedBuf* pBuf) {
if (NO_IN_MEM_AVAILABLE_PAGES(pBuf)) {
availablePage = evictBufPage(pBuf);
if (availablePage == NULL) {
- terrno = TSDB_CODE_OUT_OF_MEMORY;
- uWarn("no available buf pages, current:%d, max:%d", listNEles(pBuf->lruList), pBuf->inMemPages)
+ uWarn("no available buf pages, current:%d, max:%d, reason: %s, %s", listNEles(pBuf->lruList), pBuf->inMemPages,
+ terrstr(), pBuf->id)
}
} else {
- availablePage = taosMemoryCalloc(1, getAllocPageSize(pBuf->pageSize)); // add extract bytes in case of zipped buffer increased.
+ availablePage =
+ taosMemoryCalloc(1, getAllocPageSize(pBuf->pageSize)); // add extract bytes in case of zipped buffer increased.
if (availablePage == NULL) {
terrno = TSDB_CODE_OUT_OF_MEMORY;
}
@@ -548,9 +554,7 @@ void releaseBufPageInfo(SDiskbasedBuf* pBuf, SPageInfo* pi) {
size_t getTotalBufSize(const SDiskbasedBuf* pBuf) { return (size_t)pBuf->totalBufSize; }
-SArray* getDataBufPagesIdList(SDiskbasedBuf* pBuf) {
- return pBuf->pIdList;
-}
+SArray* getDataBufPagesIdList(SDiskbasedBuf* pBuf) { return pBuf->pIdList; }
void destroyDiskbasedBuf(SDiskbasedBuf* pBuf) {
if (pBuf == NULL) {
@@ -564,7 +568,7 @@ void destroyDiskbasedBuf(SDiskbasedBuf* pBuf) {
needRemoveFile = true;
uDebug(
"Paged buffer closed, total:%.2f Kb (%d Pages), inmem size:%.2f Kb (%d Pages), file size:%.2f Kb, page "
- "size:%.2f Kb, %s\n",
+ "size:%.2f Kb, %s",
pBuf->totalBufSize / 1024.0, pBuf->numOfPages, listNEles(pBuf->lruList) * pBuf->pageSize / 1024.0,
listNEles(pBuf->lruList), pBuf->fileSize / 1024.0, pBuf->pageSize / 1024.0f, pBuf->id);
@@ -581,8 +585,7 @@ void destroyDiskbasedBuf(SDiskbasedBuf* pBuf) {
ps->releasePages, ps->flushBytes / 1024.0f, ps->flushPages, ps->loadBytes / 1024.0f, ps->loadPages);
} else {
uDebug(
- "Get/Release pages:%d/%d, flushToDisk:%.2f Kb (%d Pages), loadFromDisk:%.2f Kb (%d Pages), avgPageSize:%.2f "
- "Kb",
+ "Get/Release pages:%d/%d, flushToDisk:%.2f Kb (%d Pages), loadFromDisk:%.2f Kb (%d Pages), avgPgSize:%.2f Kb",
ps->getPages, ps->releasePages, ps->flushBytes / 1024.0f, ps->flushPages, ps->loadBytes / 1024.0f,
ps->loadPages, ps->loadBytes / (1024.0 * ps->loadPages));
}
@@ -625,9 +628,7 @@ SPageInfo* getLastPageInfo(SArray* pList) {
return pPgInfo;
}
-int32_t getPageId(const SPageInfo* pPgInfo) {
- return pPgInfo->pageId;
-}
+int32_t getPageId(const SPageInfo* pPgInfo) { return pPgInfo->pageId; }
int32_t getBufPageSize(const SDiskbasedBuf* pBuf) { return pBuf->pageSize; }
@@ -683,7 +684,7 @@ void dBufPrintStatis(const SDiskbasedBuf* pBuf) {
ps->getPages, ps->releasePages, ps->flushBytes / 1024.0f, ps->flushPages, ps->loadBytes / 1024.0f,
ps->loadPages, ps->loadBytes / (1024.0 * ps->loadPages));
} else {
- //printf("no page loaded\n");
+ // printf("no page loaded\n");
}
}
diff --git a/tests/parallel_test/cases.task b/tests/parallel_test/cases.task
index df4cc5f468..33f22896be 100644
--- a/tests/parallel_test/cases.task
+++ b/tests/parallel_test/cases.task
@@ -178,6 +178,7 @@
,,y,script,./test.sh -f tsim/query/udf_with_const.sim
,,y,script,./test.sh -f tsim/query/sys_tbname.sim
,,y,script,./test.sh -f tsim/query/groupby.sim
+,,y,script,./test.sh -f tsim/query/forceFill.sim
,,y,script,./test.sh -f tsim/qnode/basic1.sim
,,y,script,./test.sh -f tsim/snode/basic1.sim
,,y,script,./test.sh -f tsim/mnode/basic1.sim
@@ -405,7 +406,7 @@
,,y,script,./test.sh -f tmp/monitor.sim
#system test
-
+,,y,system-test,./pytest.sh python3 ./test.py -f 0-others/balance_vgroups_r1.py -N 6
,,y,system-test,./pytest.sh python3 ./test.py -f 0-others/taosShell.py
,,y,system-test,./pytest.sh python3 ./test.py -f 0-others/taosShellError.py
,,y,system-test,./pytest.sh python3 ./test.py -f 0-others/taosShellNetChk.py
@@ -1046,6 +1047,11 @@
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/out_of_order.py -Q 2
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/out_of_order.py -Q 3
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/out_of_order.py -Q 4
+,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/max_min_data.py
+,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/max_min_data.py -R
+,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/max_min_data.py -Q 2
+,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/max_min_data.py -Q 3
+,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/max_min_data.py -Q 4
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/blockSMA.py -Q 4
,,y,system-test,./pytest.sh python3 ./test.py -f 99-TDcase/TD-21561.py -Q 4
,,y,system-test,./pytest.sh python3 ./test.py -f 99-TDcase/TD-20582.py
diff --git a/tests/script/tsim/parser/regressiontest.sim b/tests/script/tsim/parser/regressiontest.sim
index 1d84ae88cb..6f350b439f 100644
--- a/tests/script/tsim/parser/regressiontest.sim
+++ b/tests/script/tsim/parser/regressiontest.sim
@@ -15,7 +15,7 @@ $db = $dbPrefix . $i
sql drop database if exists $db -x step1
step1:
-sql create database $db vgroups 1;
+sql create database $db vgroups 1 cachemodel 'last_row'
sql use $db
sql create table $tb (ts timestamp, c1 int)
@@ -122,4 +122,68 @@ if $data01 != 199 then
return -1
endi
+sql drop table t1
+
+$rowNum = 8200
+$ts0 = 1537146000000
+sql create table t1 (ts timestamp, c1 int)
+
+$i = 0
+$ts = $ts0
+
+$x = 0
+while $x < $rowNum
+$xs = $x * $delta
+$ts = $ts0 + $xs
+sql insert into t1 values ( $ts , $x )
+$x = $x + 1
+endw
+
+sql delete from t1 where ts<=1537146409500
+
+sql flush database $db
+
+print =====================================>TD-22007
+sql select count(*) from t1 interval(10a)
+
+sql drop table t1
+
+sql create table st1 (ts timestamp, k int) tags(a int);
+sql insert into t1 using st1 tags(1) values('2020-1-1 10:10:10', 0);
+sql insert into t2 using st1 tags(1) values('2020-1-1 10:10:11', 1);
+sql insert into t3 using st1 tags(1) values('2020-1-1 10:10:12', 2);
+sql insert into t4 using st1 tags(1) values('2020-1-1 10:10:13', 3);
+sql insert into t5 using st1 tags(1) values('2020-1-1 10:10:14', 4);
+sql insert into t6 using st1 tags(2) values('2020-1-1 10:10:15', 5);
+sql insert into t7 using st1 tags(2) values('2020-1-1 10:10:16', 6);
+sql insert into t8 using st1 tags(2) values('2020-1-1 10:10:17', 7);
+sql insert into t9 using st1 tags(2) values('2020-1-1 10:10:18', 8);
+sql insert into t10 using st1 tags(2) values('2020-1-1 10:10:19', 9);
+
+sql select count(*) from st1
+if $data00 != 10 then
+ return -1
+endi
+
+sql select last_row(*) from st1 group by a
+if $rows != 2 then
+ return -1
+endi
+
+if $data00 != @20-01-01 10:10:19.000@ then
+ return -1
+endi
+
+if $data01 != 9 then
+ return -1
+endi
+
+if $data10 != @20-01-01 10:10:14.000@ then
+ return -1
+endi
+
+if $data11 != 4 then
+ return -1
+endi
+
system sh/exec.sh -n dnode1 -s stop -x SIGINT
diff --git a/tests/script/tsim/query/forceFill.sim b/tests/script/tsim/query/forceFill.sim
new file mode 100644
index 0000000000..37eb85baaa
--- /dev/null
+++ b/tests/script/tsim/query/forceFill.sim
@@ -0,0 +1,367 @@
+system sh/stop_dnodes.sh
+system sh/deploy.sh -n dnode1 -i 1
+system sh/exec.sh -n dnode1 -s start
+sql connect
+
+sql drop database if exists db1;
+sql create database db1 vgroups 10;
+sql use db1;
+sql create stable sta (ts timestamp, f1 double, f2 binary(200)) tags(t1 int);
+sql create table tba1 using sta tags(1);
+sql insert into tba1 values ('2022-04-26 15:15:01', 1.0, "a");
+sql insert into tba1 values ('2022-04-26 15:15:02', 2.0, "b");
+sql insert into tba1 values ('2022-04-26 15:15:04', 4.0, "b");
+sql insert into tba1 values ('2022-04-26 15:15:05', 5.0, "b");
+
+sql select avg(f1) from tba1 where ts >= '2022-04-26 15:15:00' and ts <= '2022-04-26 15:15:06' interval(1s) fill(value_f, 8.8);
+if $rows != 7 then
+ return -1
+endi
+if $data00 != 8.800000000 then
+ return -1
+endi
+if $data10 != 1.000000000 then
+ return -1
+endi
+if $data20 != 2.000000000 then
+ return -1
+endi
+if $data30 != 8.800000000 then
+ return -1
+endi
+if $data40 != 4.000000000 then
+ return -1
+endi
+if $data50 != 5.000000000 then
+ return -1
+endi
+if $data60 != 8.800000000 then
+ return -1
+endi
+sql select avg(f1) from tba1 where ts >= '2022-04-26 15:15:00' and ts <= '2022-04-26 15:15:06' interval(1s) fill(value, 8.8);
+if $rows != 7 then
+ return -1
+endi
+if $data00 != 8.800000000 then
+ return -1
+endi
+if $data10 != 1.000000000 then
+ return -1
+endi
+if $data20 != 2.000000000 then
+ return -1
+endi
+if $data30 != 8.800000000 then
+ return -1
+endi
+if $data40 != 4.000000000 then
+ return -1
+endi
+if $data50 != 5.000000000 then
+ return -1
+endi
+if $data60 != 8.800000000 then
+ return -1
+endi
+sql select avg(f1) from tba1 where ts >= '2022-04-26 15:15:00' and ts <= '2022-04-26 15:15:06' interval(1s) fill(null);
+if $rows != 7 then
+ return -1
+endi
+if $data00 != NULL then
+ return -1
+endi
+if $data10 != 1.000000000 then
+ return -1
+endi
+if $data20 != 2.000000000 then
+ return -1
+endi
+if $data30 != NULL then
+ return -1
+endi
+if $data40 != 4.000000000 then
+ return -1
+endi
+if $data50 != 5.000000000 then
+ return -1
+endi
+if $data60 != NULL then
+ return -1
+endi
+sql select avg(f1) from tba1 where ts >= '2022-04-26 15:15:00' and ts <= '2022-04-26 15:15:06' interval(1s) fill(null_f);
+if $rows != 7 then
+ return -1
+endi
+if $data00 != NULL then
+ return -1
+endi
+if $data10 != 1.000000000 then
+ return -1
+endi
+if $data20 != 2.000000000 then
+ return -1
+endi
+if $data30 != NULL then
+ return -1
+endi
+if $data40 != 4.000000000 then
+ return -1
+endi
+if $data50 != 5.000000000 then
+ return -1
+endi
+if $data60 != NULL then
+ return -1
+endi
+sql select avg(f1) from tba1 where ts >= '2022-04-26 15:15:06' and ts <= '2022-04-26 15:15:10' interval(1s) fill(value, 8.8);
+if $rows != 0 then
+ return -1
+endi
+sql select avg(f1) from tba1 where ts >= '2022-04-26 15:15:06' and ts <= '2022-04-26 15:15:10' interval(1s) fill(value_f, 8.8);
+if $rows != 5 then
+ return -1
+endi
+if $data00 != 8.800000000 then
+ return -1
+endi
+if $data10 != 8.800000000 then
+ return -1
+endi
+if $data20 != 8.800000000 then
+ return -1
+endi
+if $data30 != 8.800000000 then
+ return -1
+endi
+if $data40 != 8.800000000 then
+ return -1
+endi
+sql select avg(f1) from tba1 where ts >= '2022-04-26 15:15:06' and ts <= '2022-04-26 15:15:10' interval(1s) fill(null);
+if $rows != 0 then
+ return -1
+endi
+sql select avg(f1) from tba1 where ts >= '2022-04-26 15:15:06' and ts <= '2022-04-26 15:15:10' interval(1s) fill(null_f);
+if $rows != 5 then
+ return -1
+endi
+if $data00 != NULL then
+ return -1
+endi
+if $data10 != NULL then
+ return -1
+endi
+if $data20 != NULL then
+ return -1
+endi
+if $data30 != NULL then
+ return -1
+endi
+if $data40 != NULL then
+ return -1
+endi
+sql select avg(f1) from tba1 where ts >= '2022-04-26 15:16:00' and ts <= '2022-04-26 19:15:59' interval(1s) fill(value_f, 8.8);
+if $rows != 14400 then
+ return -1
+endi
+if $data00 != 8.800000000 then
+ return -1
+endi
+sql select avg(f1) from tba1 where ts >= '2022-04-26 15:16:00' and ts <= '2022-04-26 19:15:59' interval(1s) fill(null_f);
+if $rows != 14400 then
+ return -1
+endi
+if $data00 != NULL then
+ return -1
+endi
+sql select interp(f1) from tba1 range('2022-04-26 15:15:00','2022-04-26 15:15:06') every(1s) fill(value_f, 8.8);
+if $rows != 7 then
+ return -1
+endi
+if $data00 != 8.800000000 then
+ return -1
+endi
+if $data10 != 1.000000000 then
+ return -1
+endi
+if $data20 != 2.000000000 then
+ return -1
+endi
+if $data30 != 8.800000000 then
+ return -1
+endi
+if $data40 != 4.000000000 then
+ return -1
+endi
+if $data50 != 5.000000000 then
+ return -1
+endi
+if $data60 != 8.800000000 then
+ return -1
+endi
+sql select interp(f1) from tba1 range('2022-04-26 15:15:00','2022-04-26 15:15:06') every(1s) fill(value, 8.8);
+if $rows != 7 then
+ return -1
+endi
+if $data00 != 8.800000000 then
+ return -1
+endi
+if $data10 != 1.000000000 then
+ return -1
+endi
+if $data20 != 2.000000000 then
+ return -1
+endi
+if $data30 != 8.800000000 then
+ return -1
+endi
+if $data40 != 4.000000000 then
+ return -1
+endi
+if $data50 != 5.000000000 then
+ return -1
+endi
+if $data60 != 8.800000000 then
+ return -1
+endi
+sql select interp(f1) from tba1 range('2022-04-26 15:15:00','2022-04-26 15:15:06') every(1s) fill(null);
+if $rows != 7 then
+ return -1
+endi
+if $data00 != NULL then
+ return -1
+endi
+if $data10 != 1.000000000 then
+ return -1
+endi
+if $data20 != 2.000000000 then
+ return -1
+endi
+if $data30 != NULL then
+ return -1
+endi
+if $data40 != 4.000000000 then
+ return -1
+endi
+if $data50 != 5.000000000 then
+ return -1
+endi
+if $data60 != NULL then
+ return -1
+endi
+sql select interp(f1) from tba1 range('2022-04-26 15:15:00','2022-04-26 15:15:06') every(1s) fill(null_f);
+if $rows != 7 then
+ return -1
+endi
+if $data00 != NULL then
+ return -1
+endi
+if $data10 != 1.000000000 then
+ return -1
+endi
+if $data20 != 2.000000000 then
+ return -1
+endi
+if $data30 != NULL then
+ return -1
+endi
+if $data40 != 4.000000000 then
+ return -1
+endi
+if $data50 != 5.000000000 then
+ return -1
+endi
+if $data60 != NULL then
+ return -1
+endi
+sql select interp(f1) from tba1 range('2022-04-26 15:15:06','2022-04-26 15:15:10') every(1s) fill(value, 8.8);
+if $rows != 5 then
+ return -1
+endi
+if $data00 != 8.800000000 then
+ return -1
+endi
+if $data10 != 8.800000000 then
+ return -1
+endi
+if $data20 != 8.800000000 then
+ return -1
+endi
+if $data30 != 8.800000000 then
+ return -1
+endi
+if $data40 != 8.800000000 then
+ return -1
+endi
+sql select interp(f1) from tba1 range('2022-04-26 15:15:06','2022-04-26 15:15:10') every(1s) fill(value_f, 8.8);
+if $rows != 5 then
+ return -1
+endi
+if $data00 != 8.800000000 then
+ return -1
+endi
+if $data10 != 8.800000000 then
+ return -1
+endi
+if $data20 != 8.800000000 then
+ return -1
+endi
+if $data30 != 8.800000000 then
+ return -1
+endi
+if $data40 != 8.800000000 then
+ return -1
+endi
+sql select interp(f1) from tba1 range('2022-04-26 15:15:06','2022-04-26 15:15:10') every(1s) fill(null);
+if $rows != 5 then
+ return -1
+endi
+if $data00 != NULL then
+ return -1
+endi
+if $data10 != NULL then
+ return -1
+endi
+if $data20 != NULL then
+ return -1
+endi
+if $data30 != NULL then
+ return -1
+endi
+if $data40 != NULL then
+ return -1
+endi
+sql select interp(f1) from tba1 range('2022-04-26 15:15:06','2022-04-26 15:15:10') every(1s) fill(null_f);
+if $rows != 5 then
+ return -1
+endi
+if $data00 != NULL then
+ return -1
+endi
+if $data10 != NULL then
+ return -1
+endi
+if $data20 != NULL then
+ return -1
+endi
+if $data30 != NULL then
+ return -1
+endi
+if $data40 != NULL then
+ return -1
+endi
+sql select interp(f1) from tba1 range('2022-04-26 15:16:00','2022-04-26 19:15:59') every(1s) fill(value_f, 8.8);
+if $rows != 14400 then
+ return -1
+endi
+if $data00 != 8.800000000 then
+ return -1
+endi
+sql select interp(f1) from tba1 range('2022-04-26 15:16:00','2022-04-26 19:15:59') every(1s) fill(null_f);
+if $rows != 14400 then
+ return -1
+endi
+if $data00 != NULL then
+ return -1
+endi
+
+system sh/exec.sh -n dnode1 -s stop -x SIGINT
diff --git a/tests/script/tsim/stream/basic3.sim b/tests/script/tsim/stream/basic3.sim
index e598919e34..2df33541b4 100644
--- a/tests/script/tsim/stream/basic3.sim
+++ b/tests/script/tsim/stream/basic3.sim
@@ -81,6 +81,15 @@ if $rows == 0 then
return -1
endi
+sleep 3000
+
+sql drop stream if exists streamd1;
+sql drop stream if exists streamd2;
+sql drop stream if exists streamd3;
+sql drop stream if exists streamd4;
+sql drop stream if exists streamd5;
+sql drop stream if exists streamd6;
+
sql create stream streamd10 into streamd10 as select _wstart, _wend, count(*), first(ca), last(cb) as c2 from t1 interval(10s);
sql desc streamd10;
@@ -100,15 +109,6 @@ if $rows == 0 then
return -1
endi
-sleep 3000
-
-sql drop stream if exists streamd1;
-sql drop stream if exists streamd2;
-sql drop stream if exists streamd3;
-sql drop stream if exists streamd4;
-sql drop stream if exists streamd5;
-sql drop stream if exists streamd6;
-
_OVER:
system sh/exec.sh -n dnode1 -s stop -x SIGINT
diff --git a/tests/script/tsim/stream/fillIntervalValue.sim b/tests/script/tsim/stream/fillIntervalValue.sim
index fe4ec759eb..2cd419397f 100644
--- a/tests/script/tsim/stream/fillIntervalValue.sim
+++ b/tests/script/tsim/stream/fillIntervalValue.sim
@@ -14,6 +14,7 @@ sql use test;
sql create table t1(ts timestamp, a int, b int , c int, d double, s varchar(20));;
sql create stream streams1 trigger at_once into streamt as select _wstart ts, count(*) c1 from t1 where ts > 1648791210000 and ts < 1648791413000 interval(10s) fill(value, 100);
+sql create stream streams1a trigger at_once into streamta as select _wstart ts, count(*) c1 from t1 where ts > 1648791210000 and ts < 1648791413000 interval(10s) fill(value_f, 100);
sql insert into t1 values(1648791213000,1,2,3,1.0,'aaa');
sleep 100
sql insert into t1 values(1648791233000,1,2,3,1.0,'aaa');
@@ -77,6 +78,69 @@ if $data71 != 1 then
goto loop0
endi
+
+print "force fill vaule"
+
+$loop_count = 0
+
+loop0a:
+sleep 200
+sql select * from streamta order by ts;
+
+$loop_count = $loop_count + 1
+if $loop_count == 10 then
+ return -1
+endi
+
+if $rows != 8 then
+ print =====rows=$rows
+ goto loop0a
+endi
+
+if $data01 != 1 then
+ print =====data01=$data01
+ goto loop0a
+endi
+
+if $data11 != 1 then
+ print =====data11=$data11
+ goto loop0a
+endi
+
+if $data21 != 1 then
+ print =====data21=$data21
+ goto loop0a
+endi
+
+if $data31 != 100 then
+ print =====data31=$data31
+ goto loop0a
+endi
+
+if $data41 != 1 then
+ print =====data41=$data41
+ goto loop0a
+endi
+
+if $data51 != 100 then
+ print =====data01=$data01
+ goto loop0a
+endi
+
+if $data61 != 100 then
+ print =====data61=$data61
+ goto loop0a
+endi
+
+if $data71 != 1 then
+ print =====data71=$data71
+ goto loop0a
+endi
+
+
+
+
+
sql drop stream if exists streams2;
sql drop database if exists test2;
sql create database test2 vgroups 1;
@@ -408,6 +472,7 @@ sql create table t1 using st tags(1,1,1);
sql create table t2 using st tags(2,2,2);
sql create stream streams4 trigger at_once into streamt4 as select _wstart ts, count(*) c1, concat(tbname, 'aaa') as pname, timezone() from st where ts > 1648791000000 and ts < 1648793000000 partition by tbname interval(10s) fill(NULL);
+sql create stream streams4a trigger at_once into streamt4a as select _wstart ts, count(*) c1, concat(tbname, 'aaa') as pname, timezone() from st where ts > 1648791000000 and ts < 1648793000000 partition by tbname interval(10s) fill(NULL_F);
sql insert into t1 values(1648791213000,1,2,3,1.0,'aaa');
sql insert into t1 values(1648791233000,1,2,3,1.0,'aaa');
sql insert into t1 values(1648791273000,1,2,3,1.0,'aaa');
@@ -512,32 +577,104 @@ if $data[12][3] == NULL then
goto loop4
endi
+print "force fill null"
+$loop_count = 0
+loop4a:
+sleep 200
+sql select * from streamt4a order by pname, ts;
+print ===> $data[0][0] , $data[0][1] , $data[0][2] , $data[0][3]
+print ===> $data[1][0] , $data[1][1] , $data[1][2] , $data[1][3]
+print ===> $data[2][0] , $data[2][1] , $data[2][2] , $data[2][3]
+print ===> $data[3][0] , $data[3][1] , $data[3][2] , $data[3][3]
+print ===> $data[4][0] , $data[4][1] , $data[4][2] , $data[4][3]
+print ===> $data[5][0] , $data[5][1] , $data[5][2] , $data[5][3]
+print ===> $data[6][0] , $data[6][1] , $data[6][2] , $data[6][3]
+print ===> $data[7][0] , $data[7][1] , $data[7][2] , $data[7][3]
+print ===> $data[8][0] , $data[8][1] , $data[8][2] , $data[8][3]
+print ===> $data[9][0] , $data[9][1] , $data[9][2] , $data[9][3]
+print ===> $data[10][0] , $data[10][1] , $data[10][2] , $data[10][3]
+print ===> $data[11][0] , $data[11][1] , $data[11][2] , $data[11][3]
+print ===> $data[12][0] , $data[12][1] , $data[12][2] , $data[12][3]
+print ===> $data[13][0] , $data[13][1] , $data[13][2] , $data[13][3]
+$loop_count = $loop_count + 1
+if $loop_count == 10 then
+ return -1
+endi
+if $rows != 14 then
+ print =====rows=$rows
+ goto loop4a
+endi
+if $data11 != NULL then
+ print =====data11=$data11
+ goto loop4a
+endi
+if $data12 != t1aaa then
+ print =====data12=$data12
+ goto loop4a
+endi
+if $data13 == NULL then
+ print =====data13=$data13
+ goto loop4a
+endi
+if $data32 != t1aaa then
+ print =====data32=$data32
+ goto loop4a
+endi
+if $data42 != t1aaa then
+ print =====data42=$data42
+ goto loop4a
+endi
+if $data52 != t1aaa then
+ print =====data52=$data52
+ goto loop4a
+endi
+if $data81 != NULL then
+ print =====data81=$data81
+ goto loop4a
+endi
+if $data82 != t2aaa then
+ print =====data82=$data82
+ goto loop4a
+endi
+if $data83 == NULL then
+ print =====data83=$data83
+ goto loop4a
+endi
+if $data[10][2] != t2aaa then
+ print =====data[10][2]=$data[10][2]
+ goto loop4a
+endi
+if $data[11][2] != t2aaa then
+ print =====data[11][2]=$data[11][2]
+ goto loop4a
+endi
+if $data[12][2] != t2aaa then
+ print =====data[12][2]=$data[12][2]
+ goto loop4a
+endi
-
-
-
-
-
-
-
+if $data[12][3] == NULL then
+ print =====data[12][3]=$data[12][3]
+ goto loop4a
+endi
@@ -584,4 +721,4 @@ print ============loop_all=$loop_all
system sh/stop_dnodes.sh
-#goto looptest
\ No newline at end of file
+#goto looptest
diff --git a/tests/script/tsim/stream/ignoreCheckUpdate.sim b/tests/script/tsim/stream/ignoreCheckUpdate.sim
new file mode 100644
index 0000000000..7f99c534c8
--- /dev/null
+++ b/tests/script/tsim/stream/ignoreCheckUpdate.sim
@@ -0,0 +1,285 @@
+system sh/stop_dnodes.sh
+system sh/deploy.sh -n dnode1 -i 1
+system sh/exec.sh -n dnode1 -s start
+sleep 50
+sql connect
+
+print step 1 start
+
+sql drop stream if exists streams0;
+sql drop database if exists test;
+sql create database test vgroups 1;
+sql use test;
+sql create table t1(ts timestamp, a int, b int , c int);
+
+print create stream streams0 trigger at_once ignore update 1 into streamt as select _wstart c1, count(*) c2, max(b) c3 from t1 interval(10s);
+
+sql create stream streams0 trigger at_once ignore update 1 into streamt as select _wstart c1, count(*) c2, max(b) c3 from t1 interval(10s);
+
+sql insert into t1 values(1648791213000,1,1,1);
+sql insert into t1 values(1648791213000,2,2,2);
+
+$loop_count = 0
+
+loop0:
+sleep 300
+sql select * from streamt order by 1,2,3;
+
+$loop_count = $loop_count + 1
+if $loop_count == 10 then
+ return -1
+endi
+
+if $data01 != 2 then
+ print =====data01=$data01
+ goto loop0
+endi
+
+if $data02 != 2 then
+ print =====data02=$data02
+ goto loop0
+endi
+
+
+sql insert into t1 values(1648791213000,3,3,3);
+
+$loop_count = 0
+
+loop1:
+sleep 300
+sql select * from streamt order by 1,2,3;
+
+$loop_count = $loop_count + 1
+if $loop_count == 10 then
+ return -1
+endi
+
+if $data01 != 3 then
+ print =====data01=$data01
+ goto loop1
+endi
+
+if $data02 != 3 then
+ print =====data02=$data02
+ goto loop1
+endi
+
+print step 1 end
+
+print step 2 start
+
+sql drop stream if exists streams1;
+sql drop database if exists test1;
+sql create database test1 vgroups 1;
+sql use test1;
+sql create table t1(ts timestamp, a int, b int , c int);
+
+print create stream streams1 trigger at_once ignore update 1 into streamt1 as select _wstart c1, count(*) c2, max(b) c3 from t1 session(ts, 10s);
+
+sql create stream streams1 trigger at_once ignore update 1 into streamt1 as select _wstart c1, count(*) c2, max(b) c3 from t1 session(ts, 10s);
+
+sql insert into t1 values(1648791213000,1,1,1);
+sql insert into t1 values(1648791213000,2,2,2);
+
+$loop_count = 0
+
+loop2:
+sleep 300
+sql select * from streamt1 order by 1,2,3;
+
+$loop_count = $loop_count + 1
+if $loop_count == 10 then
+ return -1
+endi
+
+if $data01 != 2 then
+ print =====data01=$data01
+ goto loop2
+endi
+
+if $data02 != 2 then
+ print =====data02=$data02
+ goto loop2
+endi
+
+
+sql insert into t1 values(1648791213000,3,3,3);
+
+$loop_count = 0
+
+loop3:
+
+sleep 300
+sql select * from streamt1 order by 1,2,3;
+
+$loop_count = $loop_count + 1
+if $loop_count == 10 then
+ return -1
+endi
+
+if $data01 != 3 then
+ print =====data01=$data01
+ goto loop3
+endi
+
+if $data02 != 3 then
+ print =====data02=$data02
+ goto loop3
+endi
+
+print step 2 end
+
+print step 3 start
+
+sql drop stream if exists streams2;
+sql drop database if exists test2;
+sql create database test2 vgroups 1;
+sql use test2;
+sql create table t1(ts timestamp, a int, b int , c int);
+
+print create stream streams2 trigger at_once ignore update 1 into streamt2 as select _wstart c1, count(*) c2, max(b) c3 from t1 state_window(c);
+
+sql create stream streams2 trigger at_once ignore update 1 into streamt2 as select _wstart c1, count(*) c2, max(b) c3 from t1 state_window(c);
+
+sql insert into t1 values(1648791213000,1,1,1);
+sql insert into t1 values(1648791213000,2,2,1);
+
+$loop_count = 0
+
+loop2:
+sleep 300
+sql select * from streamt2 order by 1,2,3;
+
+$loop_count = $loop_count + 1
+if $loop_count == 10 then
+ return -1
+endi
+
+if $data01 != 2 then
+ print =====data01=$data01
+ goto loop2
+endi
+
+if $data02 != 2 then
+ print =====data02=$data02
+ goto loop2
+endi
+
+
+sql insert into t1 values(1648791213000,3,3,1);
+
+$loop_count = 0
+
+loop3:
+
+sleep 300
+sql select * from streamt2 order by 1,2,3;
+
+$loop_count = $loop_count + 1
+if $loop_count == 10 then
+ return -1
+endi
+
+if $data01 != 3 then
+ print =====data01=$data01
+ goto loop3
+endi
+
+if $data02 != 3 then
+ print =====data02=$data02
+ goto loop3
+endi
+
+print step 3 end
+
+print step 4 start
+
+sql drop stream if exists streams3;
+sql drop database if exists test3;
+sql create database test3 vgroups 4;
+sql use test3;
+sql create stable st(ts timestamp,a int,b int,c int) tags(ta int,tb int,tc int);
+sql create table t1 using st tags(1,1,1);
+sql create table t2 using st tags(2,2,2);
+
+print create stream streams3 trigger at_once ignore update 1 into streamt3 as select _wstart c1, count(*) c2, max(b) c3 from st interval(10s);
+
+sql create stream streams3 trigger at_once ignore update 1 into streamt3 as select _wstart c1, count(*) c2, max(b) c3 from st interval(10s);
+
+sql insert into t1 values(1648791213000,1,1,1);
+sql insert into t1 values(1648791213000,2,2,2);
+
+sql insert into t2 values(1648791213000,1,1,1);
+sql insert into t2 values(1648791213000,2,2,2);
+
+$loop_count = 0
+
+loop0:
+sleep 300
+sql select * from streamt3 order by 1,2,3;
+
+$loop_count = $loop_count + 1
+if $loop_count == 10 then
+ return -1
+endi
+
+if $data01 != 4 then
+ print =====data01=$data01
+ goto loop0
+endi
+
+if $data02 != 2 then
+ print =====data02=$data02
+ goto loop0
+endi
+
+
+sql insert into t1 values(1648791213000,3,3,3);
+
+$loop_count = 0
+
+loop1:
+sleep 300
+sql select * from streamt3 order by 1,2,3;
+
+$loop_count = $loop_count + 1
+if $loop_count == 10 then
+ return -1
+endi
+
+if $data01 != 5 then
+ print =====data01=$data01
+ goto loop1
+endi
+
+if $data02 != 3 then
+ print =====data02=$data02
+ goto loop1
+endi
+
+sql insert into t2 values(1648791213000,4,4,4);
+
+$loop_count = 0
+
+loop1:
+sleep 300
+sql select * from streamt3 order by 1,2,3;
+
+$loop_count = $loop_count + 1
+if $loop_count == 10 then
+ return -1
+endi
+
+if $data01 != 6 then
+ print =====data01=$data01
+ goto loop1
+endi
+
+if $data02 != 4 then
+ print =====data02=$data02
+ goto loop1
+endi
+
+print step 4 end
+
+system sh/stop_dnodes.sh
diff --git a/tests/script/tsim/stream/ignoreExpiredData.sim b/tests/script/tsim/stream/ignoreExpiredData.sim
index 03f574bc52..b143b7977f 100644
--- a/tests/script/tsim/stream/ignoreExpiredData.sim
+++ b/tests/script/tsim/stream/ignoreExpiredData.sim
@@ -52,6 +52,7 @@ sql insert into t1 values(1648791213000,1,2,3,1.0);
sql insert into t1 values(1648791223001,1,2,3,1.1);
sql insert into t1 values(1648791233002,2,2,3,2.1);
sql insert into t1 values(1648791243003,2,2,3,3.1);
+sleep 300
sql insert into t1 values(1648791200000,4,2,3,4.1);
$loop_count = 0
@@ -115,6 +116,7 @@ sql create stream stream_t1 trigger at_once IGNORE EXPIRED 1 into streamtST1 as
sql create stream stream_t2 trigger at_once IGNORE EXPIRED 1 into streamtST2 as select _wstart, count(*) c1, count(a) c2 , sum(a) c3 , max(b) c5, min(c) c6 from st session(ts, 10s) ;
sql insert into ts1 values(1648791211000,1,2,3);
sql insert into ts1 values(1648791222001,2,2,3);
+sleep 300
sql insert into ts2 values(1648791211000,1,2,3);
sql insert into ts2 values(1648791222001,2,2,3);
diff --git a/tests/script/tsim/stream/state0.sim b/tests/script/tsim/stream/state0.sim
index 7c922658c9..07abdc0040 100644
--- a/tests/script/tsim/stream/state0.sim
+++ b/tests/script/tsim/stream/state0.sim
@@ -16,6 +16,9 @@ print $data00 $data01 $data02
sql use test;
sql create table t1(ts timestamp, a int, b int , c int, d double, id int);
+
+print create stream streams1 trigger at_once into streamt1 as select _wstart, count(*) c1, count(d) c2 , sum(a) c3 , max(a) c4, min(c) c5, max(id) c from t1 state_window(a);
+
sql create stream streams1 trigger at_once into streamt1 as select _wstart, count(*) c1, count(d) c2 , sum(a) c3 , max(a) c4, min(c) c5, max(id) c from t1 state_window(a);
sql insert into t1 values(1648791213000,1,2,3,1.0,1);
@@ -79,86 +82,88 @@ endi
if $data03 != 1 then
print ======$data03
- return -1
+ goto loop1
endi
if $data04 != 1 then
print ======$data04
- return -1
+ goto loop1
endi
if $data05 != 3 then
print ======$data05
- return -1
+ goto loop1
endi
if $data06 != 5 then
print ======$data06
- return -1
+ goto loop1
endi
# row 1
if $data11 != 1 then
print ======$data11
- return -1
+ goto loop1
endi
if $data12 != 1 then
print ======$data12
- return -1
+ goto loop1
endi
if $data13 != 2 then
print ======$data13
- return -1
+ goto loop1
endi
if $data14 != 2 then
print ======$data14
- return -1
+ goto loop1
endi
if $data15 != 3 then
print ======$data15
- return -1
+ goto loop1
endi
if $data16 != 4 then
print ======$data16
- return -1
+ goto loop1
endi
# row 2
if $data21 != 1 then
print ======$data21
- return -1
+ goto loop1
endi
if $data22 != 1 then
print ======$data22
- return -1
+ goto loop1
endi
if $data23 != 1 then
print ======$data23
- return -1
+ goto loop1
endi
if $data24 != 1 then
print ======$data24
- return -1
+ goto loop1
endi
if $data25 != 3 then
print ======$data25
- return -1
+ goto loop1
endi
if $data26 != 6 then
print ======$data26
- return -1
+ goto loop1
endi
+print loop1 end
+
sql insert into t1 values(1648791213011,1,2,3,1.0,7);
$loop_count = 0
@@ -174,33 +179,31 @@ endi
if $data21 != 2 then
print =====data21=$data21
goto loop2
- return -1
endi
if $data22 != 2 then
print =====data22=$data22
goto loop2
- return -1
endi
if $data23 != 2 then
print ======$data23
- return -1
+ goto loop2
endi
if $data24 != 1 then
print ======$data24
- return -1
+ goto loop2
endi
if $data25 != 3 then
print ======$data25
- return -1
+ goto loop2
endi
if $data26 != 7 then
print ======$data26
- return -1
+ goto loop2
endi
sql insert into t1 values(1648791213011,1,2,3,1.0,8);
@@ -238,99 +241,93 @@ endi
if $data21 != 1 then
print =====data21=$data21
goto loop3
- return -1
endi
if $data22 != 1 then
print =====data22=$data22
goto loop3
- return -1
endi
if $data23 != 10 then
print ======$data23
- return -1
+ goto loop3
endi
if $data24 != 10 then
print ======$data24
- return -1
+ goto loop3
endi
if $data25 != 10 then
print ======$data25
- return -1
+ goto loop3
endi
if $data26 != 12 then
print ======$data26
- return -1
+ goto loop3
endi
# row 3
if $data31 != 1 then
print =====data31=$data31
goto loop3
- return -1
endi
if $data32 != 1 then
print =====data32=$data32
goto loop3
- return -1
endi
if $data33 != 3 then
print ======$data33
- return -1
+ goto loop3
endi
if $data34 != 3 then
print ======$data34
- return -1
+ goto loop3
endi
if $data35 != 3 then
print ======$data35
- return -1
+ goto loop3
endi
if $data36 != 10 then
print ======$data36
- return -1
+ goto loop3
endi
# row 4
if $data41 != 1 then
print =====data41=$data41
goto loop3
- return -1
endi
if $data42 != 1 then
print =====data42=$data42
goto loop3
- return -1
endi
if $data43 != 1 then
print ======$data43
- return -1
+ goto loop3
endi
if $data44 != 1 then
print ======$data44
- return -1
+ goto loop3
endi
if $data45 != 3 then
print ======$data45
- return -1
+ goto loop3
endi
if $data46 != 11 then
print ======$data46
- return -1
+ goto loop3
endi
sql insert into t1 values(1648791213030,3,12,12,12.0,13);
@@ -360,95 +357,93 @@ endi
if $data02 != 2 then
print ======$data02
- return -1
+ goto loop4
endi
if $data03 != 6 then
print ======$data03
- return -1
+ goto loop4
endi
if $data04 != 3 then
print ======$data04
- return -1
+ goto loop4
endi
if $data05 != 3 then
print ======$data05
- return -1
+ goto loop4
endi
if $data06 != 15 then
print ======$data06
- return -1
+ goto loop4
endi
# row 1
if $data11 != 1 then
print =====data11=$data11
goto loop4
- return -1
endi
if $data12 != 1 then
print =====data12=$data12
goto loop4
- return -1
endi
if $data13 != 15 then
print ======$data13
- return -1
+ goto loop4
endi
if $data14 != 15 then
print ======$data14
- return -1
+ goto loop4
endi
if $data15 != 15 then
print ======$data15
- return -1
+ goto loop4
endi
if $data16 != 16 then
print ======$data16
- return -1
+ goto loop4
endi
# row 2
if $data21 != 1 then
print =====data21=$data21
goto loop4
- return -1
endi
if $data22 != 1 then
print =====data22=$data22
goto loop4
- return -1
endi
if $data23 != 1 then
print ======$data23
- return -1
+ goto loop4
endi
if $data24 != 1 then
print ======$data24
- return -1
+ goto loop4
endi
if $data25 != 13 then
print ======$data25
- return -1
+ goto loop4
endi
if $data26 != 14 then
print ======$data26
- return -1
+ goto loop4
endi
+print loop4 end
+
sql create database test1 vgroups 1;
sql select * from information_schema.ins_databases;
@@ -457,6 +452,9 @@ print $data00 $data01 $data02
sql use test1;
sql create table t1(ts timestamp, a int, b int , c int, d double, id int);
+
+print create stream streams2 trigger at_once into streamt1 as select _wstart, count(*) c1, count(d) c2 , sum(a) c3 , max(a) c4, min(c) c5, max(id) c from t1 state_window(a);
+
sql create stream streams2 trigger at_once into streamt1 as select _wstart, count(*) c1, count(d) c2 , sum(a) c3 , max(a) c4, min(c) c5, max(id) c from t1 state_window(a);
sql insert into t1 values(1648791212000,2,2,3,1.0,1);
@@ -502,6 +500,9 @@ sql create database test3 vgroups 1;
sql use test3;
sql create table t1(ts timestamp, a int, b int , c int, d double, id int);
+
+print create stream streams3 trigger at_once into streamt3 as select _wstart, count(*) c1, sum(b) c3 from t1 state_window(a);
+
sql create stream streams3 trigger at_once into streamt3 as select _wstart, count(*) c1, sum(b) c3 from t1 state_window(a);
sql insert into t1 values(1648791212000,1,2,3,1.0,1);
sql insert into t1 values(1648791213000,2,2,3,1.0,1);
@@ -543,7 +544,6 @@ if $rows != 10 then
goto loop6
endi
-
sql drop stream if exists streams4;
sql drop database if exists test4;
sql drop stable if exists streamt4;
@@ -552,7 +552,10 @@ sql use test4;
sql create table st (ts timestamp, c1 tinyint, c2 smallint) tags (t1 tinyint) ;
sql create table t1 using st tags (-81) ;
sql create table t2 using st tags (-81) ;
-sql create stream if not exists streams4 trigger window_close into streamt4 as select _wstart AS start, min(c1),count(c1) from t1 state_window(c1);
+
+print create stream if not exists streams4 trigger window_close into streamt4 as select _wstart AS startts, min(c1),count(c1) from t1 state_window(c1);
+
+sql create stream if not exists streams4 trigger window_close into streamt4 as select _wstart AS startts, min(c1),count(c1) from t1 state_window(c1);
sql insert into t1 (ts, c1) values (1668073288209, 11);
sql insert into t1 (ts, c1) values (1668073288210, 11);
@@ -567,7 +570,7 @@ loop7:
sleep 200
-sql select * from streamt4 order by start;
+sql select * from streamt4 order by startts;
$loop_count = $loop_count + 1
if $loop_count == 20 then
@@ -606,7 +609,7 @@ loop8:
sleep 200
-sql select * from streamt4 order by start;
+sql select * from streamt4 order by startts;
$loop_count = $loop_count + 1
if $loop_count == 20 then
@@ -636,11 +639,11 @@ sql insert into t1 (ts, c1) values (1668073288225, 65);
sql insert into t1 (ts, c1) values (1668073288226, 65);
$loop_count = 0
-loop8:
+loop81:
sleep 200
-sql select * from streamt4 order by start;
+sql select * from streamt4 order by startts;
$loop_count = $loop_count + 1
if $loop_count == 20 then
@@ -649,27 +652,27 @@ endi
if $rows != 2 then
print =====rows=$rows
- goto loop8
+ goto loop81
endi
if $data01 != 11 then
print =====data01=$data01
- goto loop8
+ goto loop81
endi
if $data02 != 5 then
print =====data02=$data02
- goto loop8
+ goto loop81
endi
if $data11 != 29 then
print =====data11=$data11
- goto loop8
+ goto loop81
endi
if $data12 != 1 then
print =====data12=$data12
- goto loop8
+ goto loop81
endi
sql insert into t1 (ts, c1) values (1668073288224, 64);
@@ -679,7 +682,7 @@ loop9:
sleep 200
-sql select * from streamt4 order by start;
+sql select * from streamt4 order by startts;
$loop_count = $loop_count + 1
if $loop_count == 20 then
@@ -738,6 +741,9 @@ sql use test5;
sql create table tb (ts timestamp, a int);
sql insert into tb values (now + 1m , 1 );
sql create table b (c timestamp, d int, e int , f int, g double);
+
+print create stream streams0 trigger at_once into streamt as select _wstart c1, count(*) c2, max(a) c3 from tb state_window(a);
+
sql create stream streams0 trigger at_once into streamt as select _wstart c1, count(*) c2, max(a) c3 from tb state_window(a);
sql insert into b values(1648791213000,NULL,NULL,NULL,NULL);
sql select * from streamt order by c1, c2, c3;
@@ -792,4 +798,6 @@ if $data00 != 2 then
goto loop10
endi
+print state0 end
+
system sh/exec.sh -n dnode1 -s stop -x SIGINT
diff --git a/tests/system-test/0-others/balance_vgroups_r1.py b/tests/system-test/0-others/balance_vgroups_r1.py
new file mode 100644
index 0000000000..ae504cbab1
--- /dev/null
+++ b/tests/system-test/0-others/balance_vgroups_r1.py
@@ -0,0 +1,99 @@
+###################################################################
+# Copyright (c) 2016 by TAOS Technologies, Inc.
+# All rights reserved.
+#
+# This file is proprietary and confidential to TAOS Technologies.
+# No part of this file may be reproduced, stored, transmitted,
+# disclosed or used in any form or by any means other than as
+# expressly provided by the written permission from Jianhui Tao
+#
+###################################################################
+
+# -*- coding: utf-8 -*-
+
+
+from util import constant
+from util.log import *
+from util.cases import *
+from util.sql import *
+from util.common import *
+from util.sqlset import *
+from util.cluster import *
+class TDTestCase:
+ def init(self, conn, logSql, replicaVar=1):
+ self.replicaVar = int(replicaVar)
+ tdLog.debug("start to execute %s" % __file__)
+ tdSql.init(conn.cursor())
+ self.dnode_num=len(cluster.dnodes)
+ self.dbname = 'db_test'
+ self.setsql = TDSetSql()
+ self.stbname = f'{self.dbname}.stb'
+ self.rowNum = 5
+ self.tbnum = 10
+ self.ts = 1537146000000
+ self.binary_str = 'taosdata'
+ self.nchar_str = '涛思数据'
+ self.column_dict = {
+ 'ts' : 'timestamp',
+ 'col1': 'tinyint',
+ 'col2': 'smallint',
+ 'col3': 'int',
+ 'col4': 'bigint',
+ 'col5': 'tinyint unsigned',
+ 'col6': 'smallint unsigned',
+ 'col7': 'int unsigned',
+ 'col8': 'bigint unsigned',
+ 'col9': 'float',
+ 'col10': 'double',
+ 'col11': 'bool',
+ 'col12': 'binary(20)',
+ 'col13': 'nchar(20)'
+ }
+ self.replica = [1,3]
+
+ def insert_data(self,column_dict,tbname,row_num):
+ insert_sql = self.setsql.set_insertsql(column_dict,tbname,self.binary_str,self.nchar_str)
+ for i in range(row_num):
+ insert_list = []
+ self.setsql.insert_values(column_dict,i,insert_sql,insert_list,self.ts)
+ def prepare_data(self,dbname,stbname,column_dict,tbnum,rowNum,replica):
+ tag_dict = {
+ 't0':'int'
+ }
+ tag_values = [
+ f'1'
+ ]
+ tdSql.execute(f"create database if not exists {dbname} vgroups 1 replica {replica} ")
+ tdSql.execute(f'use {dbname}')
+ tdSql.execute(self.setsql.set_create_stable_sql(stbname,column_dict,tag_dict))
+ for i in range(tbnum):
+ tdSql.execute(f"create table {stbname}_{i} using {stbname} tags({tag_values[0]})")
+ self.insert_data(self.column_dict,f'{stbname}_{i}',rowNum)
+ def redistribute_vgroups(self,replica,stbname,tbnum,rownum):
+ tdSql.query('show vgroups')
+ vnode_id = tdSql.queryResult[0][0]
+ if replica == 1:
+ for dnode_id in range(1,self.dnode_num+1) :
+ tdSql.execute(f'redistribute vgroup {vnode_id} dnode {dnode_id}')
+ tdSql.query(f'select count(*) from {stbname}')
+ tdSql.checkEqual(tdSql.queryResult[0][0],tbnum*rownum)
+ elif replica == 3:
+ for dnode_id in range(1,self.dnode_num-1):
+ tdSql.execute(f'redistribute vgroup {vnode_id} dnode {dnode_id} dnode {dnode_id+1} dnode {dnode_id+2}')
+ tdSql.query(f'select count(*) from {stbname}')
+ tdSql.checkEqual(tdSql.queryResult[0][0],tbnum*rownum)
+
+ def run(self):
+ for replica in self.replica:
+ self.prepare_data(self.dbname,self.stbname,self.column_dict,self.tbnum,self.rowNum,replica)
+ self.redistribute_vgroups(replica,self.stbname,self.tbnum,self.rowNum)
+ tdSql.execute(f'drop database {self.dbname}')
+
+
+
+ def stop(self):
+ tdSql.close()
+ tdLog.success("%s successfully executed" % __file__)
+
+tdCases.addWindows(__file__, TDTestCase())
+tdCases.addLinux(__file__, TDTestCase())
\ No newline at end of file
diff --git a/tests/system-test/1-insert/insert_drop.py b/tests/system-test/1-insert/insert_drop.py
index 029d013d5b..930c65d90e 100644
--- a/tests/system-test/1-insert/insert_drop.py
+++ b/tests/system-test/1-insert/insert_drop.py
@@ -31,6 +31,10 @@ class TDTestCase:
tdSql.execute('create database if not exists test;')
tdSql.execute('create table test.stb (ts timestamp, c11 int, c12 float ) TAGS(t11 int, t12 int );')
tdSql.execute('create table test.tb using test.stb TAGS (1, 1);')
+
+ # double comma insert check error
+ tdSql.error("insert into test.tb(ts, c11) values(now,,100)")
+
sql_list = list()
for i in range(5):
sql = f'insert into test.tb values (now-{i}m, {i}, {i});'
diff --git a/tests/system-test/2-query/case_when.py b/tests/system-test/2-query/case_when.py
index cfe0399553..eebbcc3fa3 100755
--- a/tests/system-test/2-query/case_when.py
+++ b/tests/system-test/2-query/case_when.py
@@ -111,6 +111,17 @@ class TDTestCase:
sql2 = "select (case when sum(q_smallint)=0 then null else sum(q_smallint) end) from %s.stable_1_1 limit 100;" %database
self.constant_check(database,sql1,sql2,0)
+ #TD-20257
+ sql1 = "select tbname,first(ts),q_int,q_smallint,q_bigint,case when q_int <0 then 1 else 0 end from %s.stable_1 where tbname = 'stable_1_1' and ts < now partition by tbname state_window(case when q_int <0 then 1 else 0 end);" %database
+ sql2 = "select tbname,first(ts),q_int,q_smallint,q_bigint,case when q_int <0 then 1 else 0 end from %s.stable_1_1 where ts < now partition by tbname state_window(case when q_int <0 then 1 else 0 end);" %database
+ self.constant_check(database,sql1,sql2,0)
+ self.constant_check(database,sql1,sql2,1)
+ self.constant_check(database,sql1,sql2,2)
+ self.constant_check(database,sql1,sql2,3)
+ self.constant_check(database,sql1,sql2,4)
+ self.constant_check(database,sql1,sql2,5)
+
+ #TD-20260
sql1 = "select _wstart,avg(q_int),min(q_smallint) from %s.stable_1 where tbname = 'stable_1_1' and ts < now state_window(case when q_smallint <0 then 1 else 0 end);" %database
sql2 = "select _wstart,avg(q_int),min(q_smallint) from %s.stable_1_1 where ts < now state_window(case when q_smallint <0 then 1 else 0 end);" %database
self.constant_check(database,sql1,sql2,0)
diff --git a/tests/system-test/2-query/max_min_data.py b/tests/system-test/2-query/max_min_data.py
new file mode 100755
index 0000000000..e3dff5da78
--- /dev/null
+++ b/tests/system-test/2-query/max_min_data.py
@@ -0,0 +1,159 @@
+###################################################################
+# Copyright (c) 2016 by TAOS Technologies, Inc.
+# All rights reserved.
+#
+# This file is proprietary and confidential to TAOS Technologies.
+# No part of this file may be reproduced, stored, transmitted,
+# disclosed or used in any form or by any means other than as
+# expressly provided by the written permission from Jianhui Tao
+#
+###################################################################
+
+# -*- coding: utf-8 -*-
+
+import random
+import os
+import time
+import taos
+import subprocess
+from faker import Faker
+from util.log import tdLog
+from util.cases import tdCases
+from util.sql import tdSql
+from util.dnodes import tdDnodes
+from util.dnodes import *
+
+class TDTestCase:
+ updatecfgDict = {'maxSQLLength':1048576,'debugFlag': 131 ,"querySmaOptimize":1}
+
+ def init(self, conn, logSql, replicaVar):
+ tdLog.debug("start to execute %s" % __file__)
+ tdSql.init(conn.cursor(), logSql)
+
+ self.testcasePath = os.path.split(__file__)[0]
+ self.testcaseFilename = os.path.split(__file__)[-1]
+ os.system("rm -rf %s/%s.sql" % (self.testcasePath,self.testcaseFilename))
+
+ self.db = "max_min"
+
+ def dropandcreateDB_random(self,database,n):
+ ts = 1630000000000
+ num_random = 5
+ fake = Faker('zh_CN')
+ tdSql.execute('''drop database if exists %s ;''' %database)
+ tdSql.execute('''create database %s keep 36500 ;'''%(database))
+ tdSql.execute('''use %s;'''%database)
+
+ tdSql.execute('''create stable %s.stable_1 (ts timestamp , q_int int , q_bigint bigint , q_smallint smallint , q_tinyint tinyint , q_float float , q_double double , q_bool bool , q_binary binary(100) , q_nchar nchar(100) , q_ts timestamp , \
+ q_int_null int , q_bigint_null bigint , q_smallint_null smallint , q_tinyint_null tinyint, q_float_null float , q_double_null double , q_bool_null bool , q_binary_null binary(20) , q_nchar_null nchar(20) , q_ts_null timestamp) \
+ tags(loc nchar(100) , t_int int , t_bigint bigint , t_smallint smallint , t_tinyint tinyint, t_bool bool , t_binary binary(100) , t_nchar nchar(100) ,t_float float , t_double double , t_ts timestamp);'''%database)
+
+ for i in range(num_random):
+ tdSql.execute('''create table %s.stable_1_%d using %s.stable_1 tags('stable_1_%d', '%d' , '%d', '%d' , '%d' , 1 , 'binary1.%s' , 'nchar1.%s' , '%f', '%f' ,'%d') ;'''
+ %(database,i,database,i,fake.random_int(min=-2147483647, max=2147483647, step=1), fake.random_int(min=-9223372036854775807, max=9223372036854775807, step=1),
+ fake.random_int(min=-32767, max=32767, step=1) , fake.random_int(min=-127, max=127, step=1) ,
+ fake.pystr() ,fake.pystr() ,fake.pyfloat(),fake.pyfloat(),fake.random_int(min=-2147483647, max=2147483647, step=1)))
+
+ # insert data
+ for i in range(num_random):
+ for j in range(n):
+ tdSql.execute('''insert into %s.stable_1_%d (ts , q_int , q_bigint , q_smallint , q_tinyint , q_float , q_double, q_bool , q_binary , q_nchar, q_ts)\
+ values(%d, %d, %d, %d, %d, %f, %f, 0, 'binary.%s', 'nchar.%s', %d) ;'''
+ % (database,i,ts + i*1000 + j, fake.random_int(min=-2147483647, max=2147483647, step=1),
+ fake.random_int(min=-9223372036854775807, max=9223372036854775807, step=1),
+ fake.random_int(min=-32767, max=32767, step=1) , fake.random_int(min=-127, max=127, step=1) ,
+ fake.pyfloat() , fake.pyfloat() , fake.pystr() , fake.pystr() , ts + i))
+
+ tdSql.query("select count(*) from %s.stable_1;" %database)
+ tdSql.checkData(0,0,num_random*n)
+ tdSql.query("select count(*) from %s.stable_1_1;"%database)
+ tdSql.checkData(0,0,n)
+
+
+ def TD_22219_max(self,database):
+
+ sql3 = "select count(*) from (select max(q_int) from %s.stable_1 group by tbname); ;" %database
+ tdSql.query(sql3)
+ sql_value = tdSql.getData(0,0)
+ self.value_check(sql_value,5)
+
+ sql1 = "select max(q_int) from %s.stable_1_1 ;" %database
+ sql2 = "select max(q_int) from %s.stable_1 where tbname = 'stable_1_1' ;" %database
+ self.constant_check(database,sql1,sql2,0)
+
+ sql3 = "select count(*) from (select max(q_int) from %s.stable_1 group by tbname); ;" %database
+ tdSql.query(sql3)
+ sql_value = tdSql.getData(0,0)
+ self.value_check(sql_value,5)
+
+ def TD_22219_min(self,database):
+
+ sql3 = "select count(*) from (select min(q_int) from %s.stable_1 group by tbname); ;" %database
+ tdSql.query(sql3)
+ sql_value = tdSql.getData(0,0)
+ self.value_check(sql_value,5)
+
+ sql1 = "select min(q_int) from %s.stable_1_1 ;" %database
+ sql2 = "select min(q_int) from %s.stable_1 where tbname = 'stable_1_1' ;" %database
+ self.constant_check(database,sql1,sql2,0)
+
+ sql3 = "select count(*) from (select min(q_int) from %s.stable_1 group by tbname); ;" %database
+ tdSql.query(sql3)
+ sql_value = tdSql.getData(0,0)
+ self.value_check(sql_value,5)
+
+ def constant_check(self,database,sql1,sql2,column):
+ #column =0 代表0列, column = n代表n-1列
+ tdLog.info("\n=============sql1:(%s)___sql2:(%s) ====================\n" %(sql1,sql2))
+
+ tdSql.query(sql1)
+ sql1_value = tdSql.getData(0,column)
+ tdSql.query(sql2)
+ sql2_value = tdSql.getData(0,column)
+ self.value_check(sql1_value,sql2_value)
+
+ tdSql.execute(" flush database %s;" %database)
+
+ time.sleep(3)
+
+ tdSql.query(sql1)
+ sql1_flush_value = tdSql.getData(0,column)
+ tdSql.query(sql2)
+ sql2_flush_value = tdSql.getData(0,column)
+ self.value_check(sql1_flush_value,sql2_flush_value)
+
+ self.value_check(sql1_value,sql1_flush_value)
+ self.value_check(sql2_value,sql2_flush_value)
+
+ def value_check(self,base_value,check_value):
+ if base_value==check_value:
+ tdLog.info(f"checkEqual success, base_value={base_value},check_value={check_value}")
+ else :
+ tdLog.exit(f"checkEqual error, base_value=={base_value},check_value={check_value}")
+
+ def run(self):
+
+ startTime = time.time()
+
+ os.system("rm -rf %s/%s.sql" % (self.testcasePath,self.testcaseFilename))
+
+ self.dropandcreateDB_random("%s" %self.db, 2000)
+
+ self.TD_22219_max("%s" %self.db)
+
+ self.dropandcreateDB_random("%s" %self.db, 2000)
+
+ self.TD_22219_min("%s" %self.db)
+
+ endTime = time.time()
+ print("total time %ds" % (endTime - startTime))
+
+
+
+ def stop(self):
+ tdSql.close()
+ tdLog.success("%s successfully executed" % __file__)
+
+
+tdCases.addWindows(__file__, TDTestCase())
+tdCases.addLinux(__file__, TDTestCase())
diff --git a/tools/shell/src/shellWebsocket.c b/tools/shell/src/shellWebsocket.c
index add3ccc51f..b93cc02964 100644
--- a/tools/shell/src/shellWebsocket.c
+++ b/tools/shell/src/shellWebsocket.c
@@ -218,8 +218,13 @@ void shellRunSingleCommandWebsocketImp(char *command) {
res = ws_query_timeout(shell.ws_conn, command, shell.args.timeout);
int code = ws_errno(res);
if (code != 0 && !shell.stop_query) {
- et = taosGetTimestampUs();
- fprintf(stderr, "\nDB: error: %s (%.6fs)\n", ws_errstr(res), (et - st)/1E6);
+ // websocket interface masked off first bit from standard error number.
+ if (TSDB_CODE_PAR_SYNTAX_ERROR == (code|0x80000000)) {
+ et = taosGetTimestampUs();
+ fprintf(stderr, "\nDB: error: %s (%.6fs)\n", ws_errstr(res), (et - st)/1E6);
+ ws_free_result(res);
+ return;
+ }
if (code == TSDB_CODE_WS_SEND_TIMEOUT || code == TSDB_CODE_WS_RECV_TIMEOUT) {
fprintf(stderr, "Hint: use -t to increase the timeout in seconds\n");
} else if (code == TSDB_CODE_WS_INTERNAL_ERRO || code == TSDB_CODE_WS_CLOSED) {