Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
慢慢CG
TDengine
提交
72e981ef
T
TDengine
项目概览
慢慢CG
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
72e981ef
编写于
6月 03, 2021
作者:
B
bryanchang0603
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'develop' into test/TD-4463
上级
49e0643b
67c7d623
变更
23
显示空白变更内容
内联
并排
Showing
23 changed file
with
2097 addition
and
789 deletion
+2097
-789
.appveyor.yml
.appveyor.yml
+49
-49
cmake/env.inc
cmake/env.inc
+8
-6
cmake/input.inc
cmake/input.inc
+6
-0
src/client/src/tscSQLParser.c
src/client/src/tscSQLParser.c
+89
-5
src/client/src/tscUtil.c
src/client/src/tscUtil.c
+3
-1
src/connector/jdbc/src/test/java/com/taosdata/jdbc/TSDBPreparedStatementTest.java
...est/java/com/taosdata/jdbc/TSDBPreparedStatementTest.java
+123
-4
src/dnode/src/dnodeMain.c
src/dnode/src/dnodeMain.c
+5
-0
src/inc/taosmsg.h
src/inc/taosmsg.h
+1
-0
src/inc/ttokendef.h
src/inc/ttokendef.h
+56
-48
src/mnode/src/mnodeTable.c
src/mnode/src/mnodeTable.c
+14
-3
src/query/inc/sql.y
src/query/inc/sql.y
+34
-0
src/query/src/qSqlParser.c
src/query/src/qSqlParser.c
+1
-1
src/query/src/sql.c
src/query/src/sql.c
+1062
-670
src/util/src/ttokenizer.c
src/util/src/ttokenizer.c
+2
-1
tests/pytest/fulltest.sh
tests/pytest/fulltest.sh
+2
-0
tests/pytest/functions/function_session.py
tests/pytest/functions/function_session.py
+86
-0
tests/pytest/functions/function_stateWindow.py
tests/pytest/functions/function_stateWindow.py
+109
-0
tests/pytest/manualTest/manual_alter_block.py
tests/pytest/manualTest/manual_alter_block.py
+82
-0
tests/pytest/manualTest/manual_alter_comp.py
tests/pytest/manualTest/manual_alter_comp.py
+126
-0
tests/pytest/query/queryInsertValue.py
tests/pytest/query/queryInsertValue.py
+1
-1
tests/pytest/tools/taosdemoAllTest/manual_block1_comp.json
tests/pytest/tools/taosdemoAllTest/manual_block1_comp.json
+60
-0
tests/pytest/tools/taosdemoAllTest/manual_block2.json
tests/pytest/tools/taosdemoAllTest/manual_block2.json
+60
-0
tests/script/general/parser/alter_column.sim
tests/script/general/parser/alter_column.sim
+118
-0
未找到文件。
.appveyor.yml
浏览文件 @
72e981ef
...
@@ -27,7 +27,7 @@ for:
...
@@ -27,7 +27,7 @@ for:
build_script
:
build_script
:
-
cd build
-
cd build
-
cmake -G "NMake Makefiles" ..
-
cmake -G "NMake Makefiles" ..
-DBUILD_JDBC=false
-
nmake install
-
nmake install
-
-
matrix
:
matrix
:
...
...
cmake/env.inc
浏览文件 @
72e981ef
...
@@ -14,11 +14,13 @@ MESSAGE(STATUS "Project binary files output path: " ${PROJECT_BINARY_DIR})
...
@@ -14,11 +14,13 @@ MESSAGE(STATUS "Project binary files output path: " ${PROJECT_BINARY_DIR})
MESSAGE
(
STATUS
"Project executable files output path: "
$
{
EXECUTABLE_OUTPUT_PATH
})
MESSAGE
(
STATUS
"Project executable files output path: "
$
{
EXECUTABLE_OUTPUT_PATH
})
MESSAGE
(
STATUS
"Project library files output path: "
$
{
LIBRARY_OUTPUT_PATH
})
MESSAGE
(
STATUS
"Project library files output path: "
$
{
LIBRARY_OUTPUT_PATH
})
FIND_PROGRAM
(
TD_MVN_INSTALLED
mvn
)
IF
(
TD_BUILD_JDBC
)
IF
(
TD_MVN_INSTALLED
)
FIND_PROGRAM
(
TD_MVN_INSTALLED
mvn
)
IF
(
TD_MVN_INSTALLED
)
MESSAGE
(
STATUS
"MVN is installed and JDBC will be compiled"
)
MESSAGE
(
STATUS
"MVN is installed and JDBC will be compiled"
)
ELSE
()
ELSE
()
MESSAGE
(
STATUS
"MVN is not installed and JDBC is not compiled"
)
MESSAGE
(
STATUS
"MVN is not installed and JDBC is not compiled"
)
ENDIF
()
ENDIF
()
ENDIF
()
#
#
...
...
cmake/input.inc
浏览文件 @
72e981ef
...
@@ -77,3 +77,9 @@ IF (${JEMALLOC_ENABLED} MATCHES "true")
...
@@ -77,3 +77,9 @@ IF (${JEMALLOC_ENABLED} MATCHES "true")
SET
(
TD_JEMALLOC_ENABLED
TRUE
)
SET
(
TD_JEMALLOC_ENABLED
TRUE
)
MESSAGE
(
STATUS
"build with jemalloc enabled"
)
MESSAGE
(
STATUS
"build with jemalloc enabled"
)
ENDIF
()
ENDIF
()
SET
(
TD_BUILD_JDBC
TRUE
)
IF
(
$
{
BUILD_JDBC
}
MATCHES
"false"
)
SET
(
TD_BUILD_JDBC
FALSE
)
ENDIF
()
src/client/src/tscSQLParser.c
浏览文件 @
72e981ef
...
@@ -5142,6 +5142,10 @@ int32_t setAlterTableInfo(SSqlObj* pSql, struct SSqlInfo* pInfo) {
...
@@ -5142,6 +5142,10 @@ int32_t setAlterTableInfo(SSqlObj* pSql, struct SSqlInfo* pInfo) {
const
char
*
msg18
=
"primary timestamp column cannot be dropped"
;
const
char
*
msg18
=
"primary timestamp column cannot be dropped"
;
const
char
*
msg19
=
"invalid new tag name"
;
const
char
*
msg19
=
"invalid new tag name"
;
const
char
*
msg20
=
"table is not super table"
;
const
char
*
msg20
=
"table is not super table"
;
const
char
*
msg21
=
"only binary/nchar column length could be modified"
;
const
char
*
msg22
=
"new column length should be bigger than old one"
;
const
char
*
msg23
=
"only column length coulbe be modified"
;
const
char
*
msg24
=
"invalid binary/nchar column length"
;
int32_t
code
=
TSDB_CODE_SUCCESS
;
int32_t
code
=
TSDB_CODE_SUCCESS
;
...
@@ -5172,13 +5176,13 @@ int32_t setAlterTableInfo(SSqlObj* pSql, struct SSqlInfo* pInfo) {
...
@@ -5172,13 +5176,13 @@ int32_t setAlterTableInfo(SSqlObj* pSql, struct SSqlInfo* pInfo) {
}
}
if
(
pAlterSQL
->
type
==
TSDB_ALTER_TABLE_ADD_TAG_COLUMN
||
pAlterSQL
->
type
==
TSDB_ALTER_TABLE_DROP_TAG_COLUMN
||
if
(
pAlterSQL
->
type
==
TSDB_ALTER_TABLE_ADD_TAG_COLUMN
||
pAlterSQL
->
type
==
TSDB_ALTER_TABLE_DROP_TAG_COLUMN
||
pAlterSQL
->
type
==
TSDB_ALTER_TABLE_CHANGE_TAG_COLUMN
)
{
pAlterSQL
->
type
==
TSDB_ALTER_TABLE_CHANGE_TAG_COLUMN
||
pAlterSQL
->
type
==
TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN
)
{
if
(
UTIL_TABLE_IS_NORMAL
_TABLE
(
pTableMetaInfo
))
{
if
(
!
UTIL_TABLE_IS_SUPER
_TABLE
(
pTableMetaInfo
))
{
return
invalidOperationMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg3
);
return
invalidOperationMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg3
);
}
}
}
else
if
((
pAlterSQL
->
type
==
TSDB_ALTER_TABLE_UPDATE_TAG_VAL
)
&&
(
UTIL_TABLE_IS_SUPER_TABLE
(
pTableMetaInfo
)))
{
}
else
if
((
pAlterSQL
->
type
==
TSDB_ALTER_TABLE_UPDATE_TAG_VAL
)
&&
(
UTIL_TABLE_IS_SUPER_TABLE
(
pTableMetaInfo
)))
{
return
invalidOperationMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg4
);
return
invalidOperationMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg4
);
}
else
if
((
pAlterSQL
->
type
==
TSDB_ALTER_TABLE_ADD_COLUMN
||
pAlterSQL
->
type
==
TSDB_ALTER_TABLE_DROP_COLUMN
)
&&
}
else
if
((
pAlterSQL
->
type
==
TSDB_ALTER_TABLE_ADD_COLUMN
||
pAlterSQL
->
type
==
TSDB_ALTER_TABLE_DROP_COLUMN
||
pAlterSQL
->
type
==
TSDB_ALTER_TABLE_CHANGE_COLUMN
)
&&
UTIL_TABLE_IS_CHILD_TABLE
(
pTableMetaInfo
))
{
UTIL_TABLE_IS_CHILD_TABLE
(
pTableMetaInfo
))
{
return
invalidOperationMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg6
);
return
invalidOperationMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg6
);
}
}
...
@@ -5394,6 +5398,85 @@ int32_t setAlterTableInfo(SSqlObj* pSql, struct SSqlInfo* pInfo) {
...
@@ -5394,6 +5398,85 @@ int32_t setAlterTableInfo(SSqlObj* pSql, struct SSqlInfo* pInfo) {
tstrncpy
(
name1
,
pItem
->
pVar
.
pz
,
sizeof
(
name1
));
tstrncpy
(
name1
,
pItem
->
pVar
.
pz
,
sizeof
(
name1
));
TAOS_FIELD
f
=
tscCreateField
(
TSDB_DATA_TYPE_INT
,
name1
,
tDataTypes
[
TSDB_DATA_TYPE_INT
].
bytes
);
TAOS_FIELD
f
=
tscCreateField
(
TSDB_DATA_TYPE_INT
,
name1
,
tDataTypes
[
TSDB_DATA_TYPE_INT
].
bytes
);
tscFieldInfoAppend
(
&
pQueryInfo
->
fieldsInfo
,
&
f
);
tscFieldInfoAppend
(
&
pQueryInfo
->
fieldsInfo
,
&
f
);
}
else
if
(
pAlterSQL
->
type
==
TSDB_ALTER_TABLE_CHANGE_COLUMN
)
{
if
(
taosArrayGetSize
(
pAlterSQL
->
pAddColumns
)
>=
2
)
{
return
invalidOperationMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg16
);
}
TAOS_FIELD
*
pItem
=
taosArrayGet
(
pAlterSQL
->
pAddColumns
,
0
);
if
(
pItem
->
type
!=
TSDB_DATA_TYPE_BINARY
&&
pItem
->
type
!=
TSDB_DATA_TYPE_NCHAR
)
{
return
invalidOperationMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg21
);
}
SColumnIndex
columnIndex
=
COLUMN_INDEX_INITIALIZER
;
SStrToken
name
=
{.
type
=
TK_STRING
,
.
z
=
pItem
->
name
,
.
n
=
(
uint32_t
)
strlen
(
pItem
->
name
)};
if
(
getColumnIndexByName
(
pCmd
,
&
name
,
pQueryInfo
,
&
columnIndex
)
!=
TSDB_CODE_SUCCESS
)
{
return
invalidOperationMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg17
);
}
SSchema
*
pColSchema
=
tscGetTableColumnSchema
(
pTableMetaInfo
->
pTableMeta
,
columnIndex
.
columnIndex
);
if
(
pColSchema
->
type
!=
TSDB_DATA_TYPE_BINARY
&&
pColSchema
->
type
!=
TSDB_DATA_TYPE_NCHAR
)
{
return
invalidOperationMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg21
);
}
if
(
pItem
->
type
!=
pColSchema
->
type
)
{
return
invalidOperationMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg23
);
}
if
((
pItem
->
type
==
TSDB_DATA_TYPE_BINARY
&&
(
pItem
->
bytes
<=
0
||
pItem
->
bytes
>
TSDB_MAX_BINARY_LEN
))
||
(
pItem
->
type
==
TSDB_DATA_TYPE_NCHAR
&&
(
pItem
->
bytes
<=
0
||
pItem
->
bytes
>
TSDB_MAX_NCHAR_LEN
)))
{
return
invalidOperationMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg24
);
}
if
(
pItem
->
bytes
<=
pColSchema
->
bytes
)
{
return
invalidOperationMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg22
);
}
TAOS_FIELD
f
=
tscCreateField
(
pColSchema
->
type
,
name
.
z
,
pItem
->
bytes
);
tscFieldInfoAppend
(
&
pQueryInfo
->
fieldsInfo
,
&
f
);
}
else
if
(
pAlterSQL
->
type
==
TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN
)
{
if
(
taosArrayGetSize
(
pAlterSQL
->
pAddColumns
)
>=
2
)
{
return
invalidOperationMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg16
);
}
TAOS_FIELD
*
pItem
=
taosArrayGet
(
pAlterSQL
->
pAddColumns
,
0
);
if
(
pItem
->
type
!=
TSDB_DATA_TYPE_BINARY
&&
pItem
->
type
!=
TSDB_DATA_TYPE_NCHAR
)
{
return
invalidOperationMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg21
);
}
SColumnIndex
columnIndex
=
COLUMN_INDEX_INITIALIZER
;
SStrToken
name
=
{.
type
=
TK_STRING
,
.
z
=
pItem
->
name
,
.
n
=
(
uint32_t
)
strlen
(
pItem
->
name
)};
if
(
getColumnIndexByName
(
pCmd
,
&
name
,
pQueryInfo
,
&
columnIndex
)
!=
TSDB_CODE_SUCCESS
)
{
return
invalidOperationMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg17
);
}
SSchema
*
pColSchema
=
tscGetTableColumnSchema
(
pTableMetaInfo
->
pTableMeta
,
columnIndex
.
columnIndex
);
if
(
columnIndex
.
columnIndex
<
tscGetNumOfColumns
(
pTableMetaInfo
->
pTableMeta
))
{
return
invalidOperationMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg10
);
}
if
(
pColSchema
->
type
!=
TSDB_DATA_TYPE_BINARY
&&
pColSchema
->
type
!=
TSDB_DATA_TYPE_NCHAR
)
{
return
invalidOperationMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg21
);
}
if
(
pItem
->
type
!=
pColSchema
->
type
)
{
return
invalidOperationMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg23
);
}
if
((
pItem
->
type
==
TSDB_DATA_TYPE_BINARY
&&
(
pItem
->
bytes
<=
0
||
pItem
->
bytes
>
TSDB_MAX_BINARY_LEN
))
||
(
pItem
->
type
==
TSDB_DATA_TYPE_NCHAR
&&
(
pItem
->
bytes
<=
0
||
pItem
->
bytes
>
TSDB_MAX_NCHAR_LEN
)))
{
return
invalidOperationMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg24
);
}
if
(
pItem
->
bytes
<=
pColSchema
->
bytes
)
{
return
invalidOperationMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg22
);
}
TAOS_FIELD
f
=
tscCreateField
(
pColSchema
->
type
,
name
.
z
,
pItem
->
bytes
);
tscFieldInfoAppend
(
&
pQueryInfo
->
fieldsInfo
,
&
f
);
}
}
return
TSDB_CODE_SUCCESS
;
return
TSDB_CODE_SUCCESS
;
...
@@ -7186,8 +7269,9 @@ static int32_t getTableNameFromSqlNode(SSqlNode* pSqlNode, SArray* tableNameList
...
@@ -7186,8 +7269,9 @@ static int32_t getTableNameFromSqlNode(SSqlNode* pSqlNode, SArray* tableNameList
}
}
SName
name
=
{
0
};
SName
name
=
{
0
};
if
(
tscSetTableFullName
(
&
name
,
t
,
pSql
)
!=
TSDB_CODE_SUCCESS
)
{
int32_t
code
=
tscSetTableFullName
(
&
name
,
t
,
pSql
);
return
invalidOperationMsg
(
msgBuf
,
msg1
);
if
(
code
!=
TSDB_CODE_SUCCESS
)
{
return
code
;
}
}
taosArrayPush
(
tableNameList
,
&
name
);
taosArrayPush
(
tableNameList
,
&
name
);
...
...
src/client/src/tscUtil.c
浏览文件 @
72e981ef
...
@@ -1119,6 +1119,8 @@ void handleDownstreamOperator(SSqlObj** pSqlObjList, int32_t numOfUpstream, SQue
...
@@ -1119,6 +1119,8 @@ void handleDownstreamOperator(SSqlObj** pSqlObjList, int32_t numOfUpstream, SQue
SOperatorInfo
*
pSourceOperator
=
createDummyInputOperator
(
pSqlObjList
[
0
],
pSchema
,
numOfCol1
,
pFilterInfo
,
numOfFilterCols
);
SOperatorInfo
*
pSourceOperator
=
createDummyInputOperator
(
pSqlObjList
[
0
],
pSchema
,
numOfCol1
,
pFilterInfo
,
numOfFilterCols
);
pOutput
->
precision
=
pSqlObjList
[
0
]
->
res
.
precision
;
SSchema
*
schema
=
NULL
;
SSchema
*
schema
=
NULL
;
if
(
px
->
numOfTables
>
1
)
{
if
(
px
->
numOfTables
>
1
)
{
SOperatorInfo
**
p
=
calloc
(
px
->
numOfTables
,
POINTER_BYTES
);
SOperatorInfo
**
p
=
calloc
(
px
->
numOfTables
,
POINTER_BYTES
);
...
...
src/connector/jdbc/src/test/java/com/taosdata/jdbc/TSDBPreparedStatementTest.java
浏览文件 @
72e981ef
...
@@ -243,15 +243,93 @@ public class TSDBPreparedStatementTest {
...
@@ -243,15 +243,93 @@ public class TSDBPreparedStatementTest {
s
.
setNString
(
1
,
s2
,
4
);
s
.
setNString
(
1
,
s2
,
4
);
random
=
10
+
r
.
nextInt
(
5
);
random
=
10
+
r
.
nextInt
(
5
);
ArrayList
<
String
>
s
5
=
new
ArrayList
<
String
>();
ArrayList
<
String
>
s
3
=
new
ArrayList
<
String
>();
for
(
int
i
=
0
;
i
<
numOfRows
;
i
++)
{
for
(
int
i
=
0
;
i
<
numOfRows
;
i
++)
{
if
(
i
%
random
==
0
)
{
if
(
i
%
random
==
0
)
{
s
5
.
add
(
null
);
s
3
.
add
(
null
);
}
else
{
}
else
{
s5
.
add
(
"test"
+
i
%
10
);
s3
.
add
(
"test"
+
i
%
10
);
}
}
s
.
setString
(
2
,
s3
,
10
);
s
.
columnDataAddBatch
();
s
.
columnDataExecuteBatch
();
s
.
columnDataCloseBatch
();
String
sql
=
"select * from weather_test"
;
PreparedStatement
statement
=
conn
.
prepareStatement
(
sql
);
ResultSet
rs
=
statement
.
executeQuery
();
int
rows
=
0
;
while
(
rs
.
next
())
{
rows
++;
}
Assert
.
assertEquals
(
numOfRows
,
rows
);
}
}
@Test
public
void
bindDataWithSingleTagTest
()
throws
SQLException
{
Statement
stmt
=
conn
.
createStatement
();
String
types
[]
=
new
String
[]
{
"tinyint"
,
"smallint"
,
"int"
,
"bigint"
,
"bool"
,
"float"
,
"double"
,
"binary(10)"
,
"nchar(10)"
};
for
(
String
type
:
types
)
{
stmt
.
execute
(
"drop table if exists weather_test"
);
stmt
.
execute
(
"create table weather_test(ts timestamp, f1 nchar(10), f2 binary(10)) tags (t "
+
type
+
")"
);
int
numOfRows
=
1
;
TSDBPreparedStatement
s
=
(
TSDBPreparedStatement
)
conn
.
prepareStatement
(
"insert into ? using weather_test tags(?) values(?, ?, ?)"
);
Random
r
=
new
Random
();
s
.
setTableName
(
"w1"
);
switch
(
type
)
{
case
"tinyint"
:
case
"smallint"
:
case
"int"
:
case
"bigint"
:
s
.
setTagInt
(
0
,
1
);
break
;
case
"float"
:
s
.
setTagFloat
(
0
,
1.23f
);
break
;
case
"double"
:
s
.
setTagDouble
(
0
,
3.14159265
);
break
;
case
"bool"
:
s
.
setTagBoolean
(
0
,
true
);
break
;
case
"binary(10)"
:
s
.
setTagString
(
0
,
"test"
);
break
;
case
"nchar(10)"
:
s
.
setTagNString
(
0
,
"test"
);
break
;
default
:
break
;
}
ArrayList
<
Long
>
ts
=
new
ArrayList
<
Long
>();
for
(
int
i
=
0
;
i
<
numOfRows
;
i
++)
{
ts
.
add
(
System
.
currentTimeMillis
()
+
i
);
}
s
.
setTimestamp
(
0
,
ts
);
int
random
=
10
+
r
.
nextInt
(
5
);
ArrayList
<
String
>
s2
=
new
ArrayList
<
String
>();
for
(
int
i
=
0
;
i
<
numOfRows
;
i
++)
{
s2
.
add
(
"分支"
+
i
%
4
);
}
}
s
.
setNString
(
1
,
s2
,
10
);
random
=
10
+
r
.
nextInt
(
5
);
ArrayList
<
String
>
s3
=
new
ArrayList
<
String
>();
for
(
int
i
=
0
;
i
<
numOfRows
;
i
++)
{
s3
.
add
(
"test"
+
i
%
4
);
}
}
s
.
setString
(
2
,
s
5
,
10
);
s
.
setString
(
2
,
s
3
,
10
);
s
.
columnDataAddBatch
();
s
.
columnDataAddBatch
();
s
.
columnDataExecuteBatch
();
s
.
columnDataExecuteBatch
();
...
@@ -269,6 +347,47 @@ public class TSDBPreparedStatementTest {
...
@@ -269,6 +347,47 @@ public class TSDBPreparedStatementTest {
}
}
@Test
public
void
bindDataWithMultipleTagsTest
()
throws
SQLException
{
Statement
stmt
=
conn
.
createStatement
();
stmt
.
execute
(
"drop table if exists weather_test"
);
stmt
.
execute
(
"create table weather_test(ts timestamp, f1 nchar(10), f2 binary(10)) tags (t1 int, t2 binary(10))"
);
int
numOfRows
=
1
;
TSDBPreparedStatement
s
=
(
TSDBPreparedStatement
)
conn
.
prepareStatement
(
"insert into ? using weather_test tags(?,?) (ts, f2) values(?, ?)"
);
s
.
setTableName
(
"w2"
);
s
.
setTagInt
(
0
,
1
);
s
.
setTagString
(
1
,
"test"
);
ArrayList
<
Long
>
ts
=
new
ArrayList
<
Long
>();
for
(
int
i
=
0
;
i
<
numOfRows
;
i
++)
{
ts
.
add
(
System
.
currentTimeMillis
()
+
i
);
}
s
.
setTimestamp
(
0
,
ts
);
ArrayList
<
String
>
s2
=
new
ArrayList
<
String
>();
for
(
int
i
=
0
;
i
<
numOfRows
;
i
++)
{
s2
.
add
(
"test"
+
i
%
4
);
}
s
.
setString
(
1
,
s2
,
10
);
s
.
columnDataAddBatch
();
s
.
columnDataExecuteBatch
();
s
.
columnDataCloseBatch
();
String
sql
=
"select * from weather_test"
;
PreparedStatement
statement
=
conn
.
prepareStatement
(
sql
);
ResultSet
rs
=
statement
.
executeQuery
();
int
rows
=
0
;
while
(
rs
.
next
())
{
rows
++;
}
Assert
.
assertEquals
(
numOfRows
,
rows
);
}
@Test
@Test
public
void
setBoolean
()
throws
SQLException
{
public
void
setBoolean
()
throws
SQLException
{
...
...
src/dnode/src/dnodeMain.c
浏览文件 @
72e981ef
...
@@ -88,12 +88,17 @@ static SStep tsDnodeSteps[] = {
...
@@ -88,12 +88,17 @@ static SStep tsDnodeSteps[] = {
static
SStep
tsDnodeCompactSteps
[]
=
{
static
SStep
tsDnodeCompactSteps
[]
=
{
{
"dnode-tfile"
,
tfInit
,
tfCleanup
},
{
"dnode-tfile"
,
tfInit
,
tfCleanup
},
{
"dnode-globalcfg"
,
taosCheckGlobalCfg
,
NULL
},
{
"dnode-storage"
,
dnodeInitStorage
,
dnodeCleanupStorage
},
{
"dnode-storage"
,
dnodeInitStorage
,
dnodeCleanupStorage
},
{
"dnode-cfg"
,
dnodeInitCfg
,
dnodeCleanupCfg
},
{
"dnode-eps"
,
dnodeInitEps
,
dnodeCleanupEps
},
{
"dnode-eps"
,
dnodeInitEps
,
dnodeCleanupEps
},
{
"dnode-minfos"
,
dnodeInitMInfos
,
dnodeCleanupMInfos
},
{
"dnode-wal"
,
walInit
,
walCleanUp
},
{
"dnode-wal"
,
walInit
,
walCleanUp
},
{
"dnode-sync"
,
syncInit
,
syncCleanUp
},
{
"dnode-mread"
,
dnodeInitMRead
,
NULL
},
{
"dnode-mread"
,
dnodeInitMRead
,
NULL
},
{
"dnode-mwrite"
,
dnodeInitMWrite
,
NULL
},
{
"dnode-mwrite"
,
dnodeInitMWrite
,
NULL
},
{
"dnode-mpeer"
,
dnodeInitMPeer
,
NULL
},
{
"dnode-mpeer"
,
dnodeInitMPeer
,
NULL
},
{
"dnode-vnodes"
,
dnodeInitVnodes
,
dnodeCleanupVnodes
},
{
"dnode-modules"
,
dnodeInitModules
,
dnodeCleanupModules
},
{
"dnode-modules"
,
dnodeInitModules
,
dnodeCleanupModules
},
};
};
...
...
src/inc/taosmsg.h
浏览文件 @
72e981ef
...
@@ -161,6 +161,7 @@ enum _mgmt_table {
...
@@ -161,6 +161,7 @@ enum _mgmt_table {
#define TSDB_ALTER_TABLE_ADD_COLUMN 5
#define TSDB_ALTER_TABLE_ADD_COLUMN 5
#define TSDB_ALTER_TABLE_DROP_COLUMN 6
#define TSDB_ALTER_TABLE_DROP_COLUMN 6
#define TSDB_ALTER_TABLE_CHANGE_COLUMN 7
#define TSDB_ALTER_TABLE_CHANGE_COLUMN 7
#define TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN 8
#define TSDB_FILL_NONE 0
#define TSDB_FILL_NONE 0
#define TSDB_FILL_NULL 1
#define TSDB_FILL_NULL 1
...
...
src/inc/ttokendef.h
浏览文件 @
72e981ef
...
@@ -156,54 +156,62 @@
...
@@ -156,54 +156,62 @@
#define TK_SYNCDB 137
#define TK_SYNCDB 137
#define TK_ADD 138
#define TK_ADD 138
#define TK_COLUMN 139
#define TK_COLUMN 139
#define TK_TAG 140
#define TK_MODIFY 140
#define TK_CHANGE 141
#define TK_TAG 141
#define TK_SET 142
#define TK_CHANGE 142
#define TK_KILL 143
#define TK_SET 143
#define TK_CONNECTION 144
#define TK_KILL 144
#define TK_STREAM 145
#define TK_CONNECTION 145
#define TK_COLON 146
#define TK_STREAM 146
#define TK_ABORT 147
#define TK_COLON 147
#define TK_AFTER 148
#define TK_ABORT 148
#define TK_ATTACH 149
#define TK_AFTER 149
#define TK_BEFORE 150
#define TK_ATTACH 150
#define TK_BEGIN 151
#define TK_BEFORE 151
#define TK_CASCADE 152
#define TK_BEGIN 152
#define TK_CLUSTER 153
#define TK_CASCADE 153
#define TK_CONFLICT 154
#define TK_CLUSTER 154
#define TK_COPY 155
#define TK_CONFLICT 155
#define TK_DEFERRED 156
#define TK_COPY 156
#define TK_DELIMITERS 157
#define TK_DEFERRED 157
#define TK_DETACH 158
#define TK_DELIMITERS 158
#define TK_EACH 159
#define TK_DETACH 159
#define TK_END 160
#define TK_EACH 160
#define TK_EXPLAIN 161
#define TK_END 161
#define TK_FAIL 162
#define TK_EXPLAIN 162
#define TK_FOR 163
#define TK_FAIL 163
#define TK_IGNORE 164
#define TK_FOR 164
#define TK_IMMEDIATE 165
#define TK_IGNORE 165
#define TK_INITIALLY 166
#define TK_IMMEDIATE 166
#define TK_INSTEAD 167
#define TK_INITIALLY 167
#define TK_MATCH 168
#define TK_INSTEAD 168
#define TK_KEY 169
#define TK_MATCH 169
#define TK_OF 170
#define TK_KEY 170
#define TK_RAISE 171
#define TK_OF 171
#define TK_REPLACE 172
#define TK_RAISE 172
#define TK_RESTRICT 173
#define TK_REPLACE 173
#define TK_ROW 174
#define TK_RESTRICT 174
#define TK_STATEMENT 175
#define TK_ROW 175
#define TK_TRIGGER 176
#define TK_STATEMENT 176
#define TK_VIEW 177
#define TK_TRIGGER 177
#define TK_SEMI 178
#define TK_VIEW 178
#define TK_NONE 179
#define TK_SEMI 179
#define TK_PREV 180
#define TK_NONE 180
#define TK_LINEAR 181
#define TK_PREV 181
#define TK_IMPORT 182
#define TK_LINEAR 182
#define TK_TBNAME 183
#define TK_IMPORT 183
#define TK_JOIN 184
#define TK_TBNAME 184
#define TK_INSERT 185
#define TK_JOIN 185
#define TK_INTO 186
#define TK_INSERT 186
#define TK_VALUES 187
#define TK_INTO 187
#define TK_VALUES 188
#define TK_SPACE 300
#define TK_SPACE 300
#define TK_COMMENT 301
#define TK_COMMENT 301
...
...
src/mnode/src/mnodeTable.c
浏览文件 @
72e981ef
...
@@ -3214,7 +3214,15 @@ static int32_t mnodeProcessAlterTableMsg(SMnodeMsg *pMsg) {
...
@@ -3214,7 +3214,15 @@ static int32_t mnodeProcessAlterTableMsg(SMnodeMsg *pMsg) {
}
else
if
(
pAlter
->
type
==
TSDB_ALTER_TABLE_DROP_COLUMN
)
{
}
else
if
(
pAlter
->
type
==
TSDB_ALTER_TABLE_DROP_COLUMN
)
{
code
=
mnodeDropSuperTableColumn
(
pMsg
,
pAlter
->
schema
[
0
].
name
);
code
=
mnodeDropSuperTableColumn
(
pMsg
,
pAlter
->
schema
[
0
].
name
);
}
else
if
(
pAlter
->
type
==
TSDB_ALTER_TABLE_CHANGE_COLUMN
)
{
}
else
if
(
pAlter
->
type
==
TSDB_ALTER_TABLE_CHANGE_COLUMN
)
{
code
=
mnodeChangeSuperTableColumn
(
pMsg
,
pAlter
->
schema
[
0
].
name
,
pAlter
->
schema
[
1
].
name
);
//code = mnodeChangeSuperTableColumn(pMsg, pAlter->schema[0].name, pAlter->schema[1].name);
(
void
)
mnodeChangeSuperTableColumn
;
mError
(
"change table[%s] column[%s] length to [%d] is not processed"
,
pAlter
->
tableFname
,
pAlter
->
schema
[
0
].
name
,
pAlter
->
schema
[
0
].
bytes
);
code
=
TSDB_CODE_SUCCESS
;
}
else
if
(
pAlter
->
type
==
TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN
)
{
//code = mnodeChangeSuperTableColumn(pMsg, pAlter->schema[0].name, pAlter->schema[1].name);
(
void
)
mnodeChangeSuperTableColumn
;
mError
(
"change table[%s] tag[%s] length to [%d] is not processed"
,
pAlter
->
tableFname
,
pAlter
->
schema
[
0
].
name
,
pAlter
->
schema
[
0
].
bytes
);
code
=
TSDB_CODE_SUCCESS
;
}
else
{
}
else
{
}
}
}
else
{
}
else
{
...
@@ -3226,7 +3234,10 @@ static int32_t mnodeProcessAlterTableMsg(SMnodeMsg *pMsg) {
...
@@ -3226,7 +3234,10 @@ static int32_t mnodeProcessAlterTableMsg(SMnodeMsg *pMsg) {
}
else
if
(
pAlter
->
type
==
TSDB_ALTER_TABLE_DROP_COLUMN
)
{
}
else
if
(
pAlter
->
type
==
TSDB_ALTER_TABLE_DROP_COLUMN
)
{
code
=
mnodeDropNormalTableColumn
(
pMsg
,
pAlter
->
schema
[
0
].
name
);
code
=
mnodeDropNormalTableColumn
(
pMsg
,
pAlter
->
schema
[
0
].
name
);
}
else
if
(
pAlter
->
type
==
TSDB_ALTER_TABLE_CHANGE_COLUMN
)
{
}
else
if
(
pAlter
->
type
==
TSDB_ALTER_TABLE_CHANGE_COLUMN
)
{
code
=
mnodeChangeNormalTableColumn
(
pMsg
,
pAlter
->
schema
[
0
].
name
,
pAlter
->
schema
[
1
].
name
);
//code = mnodeChangeNormalTableColumn(pMsg, pAlter->schema[0].name, pAlter->schema[1].name);
(
void
)
mnodeChangeNormalTableColumn
;
mError
(
"change table[%s] column[%s] length to [%d] is not processed"
,
pAlter
->
tableFname
,
pAlter
->
schema
[
0
].
name
,
pAlter
->
schema
[
0
].
bytes
);
code
=
TSDB_CODE_SUCCESS
;
}
else
{
}
else
{
}
}
}
}
...
...
src/query/inc/sql.y
浏览文件 @
72e981ef
...
@@ -759,6 +759,12 @@ cmd ::= ALTER TABLE ids(X) cpxName(F) DROP COLUMN ids(A). {
...
@@ -759,6 +759,12 @@ cmd ::= ALTER TABLE ids(X) cpxName(F) DROP COLUMN ids(A). {
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
}
}
cmd ::= ALTER TABLE ids(X) cpxName(F) MODIFY COLUMN columnlist(A). {
X.n += F.n;
SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&X, A, NULL, TSDB_ALTER_TABLE_CHANGE_COLUMN, -1);
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
}
//////////////////////////////////ALTER TAGS statement/////////////////////////////////////
//////////////////////////////////ALTER TAGS statement/////////////////////////////////////
cmd ::= ALTER TABLE ids(X) cpxName(Y) ADD TAG columnlist(A). {
cmd ::= ALTER TABLE ids(X) cpxName(Y) ADD TAG columnlist(A). {
X.n += Y.n;
X.n += Y.n;
...
@@ -799,6 +805,11 @@ cmd ::= ALTER TABLE ids(X) cpxName(F) SET TAG ids(Y) EQ tagitem(Z). {
...
@@ -799,6 +805,11 @@ cmd ::= ALTER TABLE ids(X) cpxName(F) SET TAG ids(Y) EQ tagitem(Z). {
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
}
}
cmd ::= ALTER TABLE ids(X) cpxName(F) MODIFY TAG columnlist(A). {
X.n += F.n;
SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&X, A, NULL, TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN, -1);
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
}
///////////////////////////////////ALTER STABLE statement//////////////////////////////////
///////////////////////////////////ALTER STABLE statement//////////////////////////////////
cmd ::= ALTER STABLE ids(X) cpxName(F) ADD COLUMN columnlist(A). {
cmd ::= ALTER STABLE ids(X) cpxName(F) ADD COLUMN columnlist(A). {
...
@@ -817,6 +828,12 @@ cmd ::= ALTER STABLE ids(X) cpxName(F) DROP COLUMN ids(A). {
...
@@ -817,6 +828,12 @@ cmd ::= ALTER STABLE ids(X) cpxName(F) DROP COLUMN ids(A). {
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
}
}
cmd ::= ALTER STABLE ids(X) cpxName(F) MODIFY COLUMN columnlist(A). {
X.n += F.n;
SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&X, A, NULL, TSDB_ALTER_TABLE_CHANGE_COLUMN, TSDB_SUPER_TABLE);
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
}
//////////////////////////////////ALTER TAGS statement/////////////////////////////////////
//////////////////////////////////ALTER TAGS statement/////////////////////////////////////
cmd ::= ALTER STABLE ids(X) cpxName(Y) ADD TAG columnlist(A). {
cmd ::= ALTER STABLE ids(X) cpxName(Y) ADD TAG columnlist(A). {
X.n += Y.n;
X.n += Y.n;
...
@@ -846,6 +863,23 @@ cmd ::= ALTER STABLE ids(X) cpxName(F) CHANGE TAG ids(Y) ids(Z). {
...
@@ -846,6 +863,23 @@ cmd ::= ALTER STABLE ids(X) cpxName(F) CHANGE TAG ids(Y) ids(Z). {
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
}
}
cmd ::= ALTER STABLE ids(X) cpxName(F) SET TAG ids(Y) EQ tagitem(Z). {
X.n += F.n;
toTSDBType(Y.type);
SArray* A = tVariantListAppendToken(NULL, &Y, -1);
A = tVariantListAppend(A, &Z, -1);
SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&X, NULL, A, TSDB_ALTER_TABLE_UPDATE_TAG_VAL, TSDB_SUPER_TABLE);
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
}
cmd ::= ALTER STABLE ids(X) cpxName(F) MODIFY TAG columnlist(A). {
X.n += F.n;
SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&X, A, NULL, TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN, TSDB_SUPER_TABLE);
setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE);
}
////////////////////////////////////////kill statement///////////////////////////////////////
////////////////////////////////////////kill statement///////////////////////////////////////
cmd ::= KILL CONNECTION INTEGER(Y). {setKillSql(pInfo, TSDB_SQL_KILL_CONNECTION, &Y);}
cmd ::= KILL CONNECTION INTEGER(Y). {setKillSql(pInfo, TSDB_SQL_KILL_CONNECTION, &Y);}
cmd ::= KILL STREAM INTEGER(X) COLON(Z) INTEGER(Y). {X.n += (Z.n + Y.n); setKillSql(pInfo, TSDB_SQL_KILL_STREAM, &X);}
cmd ::= KILL STREAM INTEGER(X) COLON(Z) INTEGER(Y). {X.n += (Z.n + Y.n); setKillSql(pInfo, TSDB_SQL_KILL_STREAM, &X);}
...
...
src/query/src/qSqlParser.c
浏览文件 @
72e981ef
...
@@ -893,7 +893,7 @@ SAlterTableInfo *tSetAlterTableInfo(SStrToken *pTableName, SArray *pCols, SArray
...
@@ -893,7 +893,7 @@ SAlterTableInfo *tSetAlterTableInfo(SStrToken *pTableName, SArray *pCols, SArray
pAlterTable
->
type
=
type
;
pAlterTable
->
type
=
type
;
pAlterTable
->
tableType
=
tableType
;
pAlterTable
->
tableType
=
tableType
;
if
(
type
==
TSDB_ALTER_TABLE_ADD_COLUMN
||
type
==
TSDB_ALTER_TABLE_ADD_TAG_COLUMN
)
{
if
(
type
==
TSDB_ALTER_TABLE_ADD_COLUMN
||
type
==
TSDB_ALTER_TABLE_ADD_TAG_COLUMN
||
type
==
TSDB_ALTER_TABLE_CHANGE_COLUMN
||
type
==
TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN
)
{
pAlterTable
->
pAddColumns
=
pCols
;
pAlterTable
->
pAddColumns
=
pCols
;
assert
(
pVals
==
NULL
);
assert
(
pVals
==
NULL
);
}
else
{
}
else
{
...
...
src/query/src/sql.c
浏览文件 @
72e981ef
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
** input grammar file:
** input grammar file:
*/
*/
#include <stdio.h>
#include <stdio.h>
#include <assert.h>
/************ Begin %include sections from the grammar ************************/
/************ Begin %include sections from the grammar ************************/
#include <stdio.h>
#include <stdio.h>
...
@@ -76,8 +77,10 @@
...
@@ -76,8 +77,10 @@
** zero the stack is dynamically sized using realloc()
** zero the stack is dynamically sized using realloc()
** ParseARG_SDECL A static variable declaration for the %extra_argument
** ParseARG_SDECL A static variable declaration for the %extra_argument
** ParseARG_PDECL A parameter declaration for the %extra_argument
** ParseARG_PDECL A parameter declaration for the %extra_argument
** ParseARG_PARAM Code to pass %extra_argument as a subroutine parameter
** ParseARG_STORE Code to store %extra_argument into yypParser
** ParseARG_STORE Code to store %extra_argument into yypParser
** ParseARG_FETCH Code to extract %extra_argument from yypParser
** ParseARG_FETCH Code to extract %extra_argument from yypParser
** ParseCTX_* As ParseARG_ except for %extra_context
** YYERRORSYMBOL is the code number of the error symbol. If not
** YYERRORSYMBOL is the code number of the error symbol. If not
** defined, then do no error processing.
** defined, then do no error processing.
** YYNSTATE the combined number of states.
** YYNSTATE the combined number of states.
...
@@ -97,7 +100,7 @@
...
@@ -97,7 +100,7 @@
#endif
#endif
/************* Begin control #defines *****************************************/
/************* Begin control #defines *****************************************/
#define YYCODETYPE unsigned short int
#define YYCODETYPE unsigned short int
#define YYNOCODE 26
7
#define YYNOCODE 26
6
#define YYACTIONTYPE unsigned short int
#define YYACTIONTYPE unsigned short int
#define ParseTOKENTYPE SStrToken
#define ParseTOKENTYPE SStrToken
typedef
union
{
typedef
union
{
...
@@ -125,21 +128,29 @@ typedef union {
...
@@ -125,21 +128,29 @@ typedef union {
#endif
#endif
#define ParseARG_SDECL SSqlInfo* pInfo;
#define ParseARG_SDECL SSqlInfo* pInfo;
#define ParseARG_PDECL ,SSqlInfo* pInfo
#define ParseARG_PDECL ,SSqlInfo* pInfo
#define ParseARG_FETCH SSqlInfo* pInfo = yypParser->pInfo
#define ParseARG_PARAM ,pInfo
#define ParseARG_STORE yypParser->pInfo = pInfo
#define ParseARG_FETCH SSqlInfo* pInfo=yypParser->pInfo;
#define ParseARG_STORE yypParser->pInfo=pInfo;
#define ParseCTX_SDECL
#define ParseCTX_PDECL
#define ParseCTX_PARAM
#define ParseCTX_FETCH
#define ParseCTX_STORE
#define YYFALLBACK 1
#define YYFALLBACK 1
#define YYNSTATE 327
#define YYNSTATE 341
#define YYNRULE 275
#define YYNRULE 280
#define YYNTOKEN 188
#define YYNRULE_WITH_ACTION 280
#define YY_MAX_SHIFT 326
#define YYNTOKEN 189
#define YY_MIN_SHIFTREDUCE 523
#define YY_MAX_SHIFT 340
#define YY_MAX_SHIFTREDUCE 797
#define YY_MIN_SHIFTREDUCE 538
#define YY_ERROR_ACTION 798
#define YY_MAX_SHIFTREDUCE 817
#define YY_ACCEPT_ACTION 799
#define YY_ERROR_ACTION 818
#define YY_NO_ACTION 800
#define YY_ACCEPT_ACTION 819
#define YY_MIN_REDUCE 801
#define YY_NO_ACTION 820
#define YY_MAX_REDUCE 1075
#define YY_MIN_REDUCE 821
#define YY_MAX_REDUCE 1100
/************* End control #defines *******************************************/
/************* End control #defines *******************************************/
#define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0])))
/* Define the yytestcase() macro to be a no-op if is not already defined
/* Define the yytestcase() macro to be a no-op if is not already defined
** otherwise.
** otherwise.
...
@@ -204,78 +215,81 @@ typedef union {
...
@@ -204,78 +215,81 @@ typedef union {
** yy_default[] Default action for each state.
** yy_default[] Default action for each state.
**
**
*********** Begin parsing tables **********************************************/
*********** Begin parsing tables **********************************************/
#define YY_ACTTAB_COUNT (7
00
)
#define YY_ACTTAB_COUNT (7
22
)
static
const
YYACTIONTYPE
yy_action
[]
=
{
static
const
YYACTIONTYPE
yy_action
[]
=
{
/* 0 */
969
,
571
,
211
,
324
,
934
,
18
,
217
,
186
,
188
,
572
,
/* 0 */
989
,
586
,
217
,
338
,
954
,
22
,
223
,
192
,
194
,
587
,
/* 10 */
799
,
326
,
192
,
48
,
49
,
145
,
52
,
53
,
220
,
1057
,
/* 10 */
819
,
340
,
198
,
52
,
53
,
151
,
56
,
57
,
226
,
1077
,
/* 20 */
223
,
42
,
275
,
51
,
274
,
56
,
54
,
58
,
55
,
1053
,
/* 20 */
229
,
46
,
283
,
55
,
282
,
60
,
58
,
62
,
59
,
1073
,
/* 30 */
650
,
188
,
948
,
47
,
46
,
188
,
228
,
45
,
44
,
43
,
/* 30 */
665
,
194
,
968
,
51
,
50
,
194
,
234
,
49
,
48
,
47
,
/* 40 */
48
,
49
,
1056
,
52
,
53
,
219
,
1057
,
223
,
42
,
571
,
/* 40 */
52
,
53
,
1076
,
56
,
57
,
225
,
1077
,
229
,
46
,
586
,
/* 50 */
51
,
274
,
56
,
54
,
58
,
55
,
960
,
572
,
300
,
299
,
/* 50 */
55
,
282
,
60
,
58
,
62
,
59
,
980
,
587
,
314
,
313
,
/* 60 */
47
,
46
,
948
,
966
,
45
,
44
,
43
,
49
,
31
,
52
,
/* 60 */
51
,
50
,
968
,
986
,
49
,
48
,
47
,
53
,
35
,
56
,
/* 70 */
53
,
138
,
250
,
223
,
42
,
1067
,
51
,
274
,
56
,
54
,
/* 70 */
57
,
144
,
258
,
229
,
46
,
75
,
55
,
282
,
60
,
58
,
/* 80 */
58
,
55
,
271
,
290
,
82
,
1052
,
47
,
46
,
89
,
234
,
/* 80 */
62
,
59
,
279
,
298
,
87
,
867
,
51
,
50
,
94
,
178
,
/* 90 */
45
,
44
,
43
,
524
,
525
,
526
,
527
,
528
,
529
,
530
,
/* 90 */
49
,
48
,
47
,
539
,
540
,
541
,
542
,
543
,
544
,
545
,
/* 100 */
531
,
532
,
533
,
534
,
535
,
536
,
325
,
571
,
290
,
212
,
/* 100 */
546
,
547
,
548
,
549
,
550
,
551
,
339
,
953
,
298
,
218
,
/* 110 */
71
,
571
,
944
,
48
,
49
,
572
,
52
,
53
,
760
,
572
,
/* 110 */
76
,
586
,
964
,
52
,
53
,
35
,
56
,
57
,
775
,
587
,
/* 120 */
223
,
42
,
936
,
51
,
274
,
56
,
54
,
58
,
55
,
45
,
/* 120 */
229
,
46
,
956
,
55
,
282
,
60
,
58
,
62
,
59
,
49
,
/* 130 */
44
,
43
,
741
,
47
,
46
,
257
,
256
,
45
,
44
,
43
,
/* 130 */
48
,
47
,
756
,
51
,
50
,
265
,
264
,
49
,
48
,
47
,
/* 140 */
48
,
50
,
145
,
52
,
53
,
1
,
160
,
223
,
42
,
145
,
/* 140 */
52
,
54
,
980
,
56
,
57
,
324
,
980
,
229
,
46
,
586
,
/* 150 */
51
,
274
,
56
,
54
,
58
,
55
,
323
,
322
,
130
,
236
,
/* 150 */
55
,
282
,
60
,
58
,
62
,
59
,
219
,
587
,
220
,
965
,
/* 160 */
47
,
46
,
297
,
296
,
45
,
44
,
43
,
24
,
288
,
319
,
/* 160 */
51
,
50
,
221
,
1072
,
49
,
48
,
47
,
28
,
296
,
333
,
/* 170 */
318
,
287
,
286
,
285
,
317
,
284
,
316
,
315
,
314
,
283
,
/* 170 */
332
,
295
,
294
,
293
,
331
,
292
,
330
,
329
,
328
,
291
,
/* 180 */
313
,
312
,
908
,
31
,
896
,
897
,
898
,
899
,
900
,
901
,
/* 180 */
327
,
326
,
928
,
35
,
916
,
917
,
918
,
919
,
920
,
921
,
/* 190 */
902
,
903
,
904
,
905
,
906
,
907
,
909
,
910
,
52
,
53
,
/* 190 */
922
,
923
,
924
,
925
,
926
,
927
,
929
,
930
,
56
,
57
,
/* 200 */
847
,
960
,
223
,
42
,
172
,
51
,
274
,
56
,
54
,
58
,
/* 200 */
876
,
1071
,
229
,
46
,
178
,
55
,
282
,
60
,
58
,
62
,
/* 210 */
55
,
1005
,
19
,
86
,
25
,
47
,
46
,
214
,
83
,
45
,
/* 210 */
59
,
962
,
23
,
91
,
29
,
51
,
50
,
1
,
166
,
49
,
/* 220 */
44
,
43
,
222
,
756
,
213
,
310
,
745
,
945
,
748
,
197
,
/* 220 */
48
,
47
,
228
,
771
,
232
,
79
,
760
,
965
,
763
,
203
,
/* 230 */
751
,
222
,
756
,
230
,
13
,
745
,
198
,
748
,
88
,
751
,
/* 230 */
766
,
228
,
771
,
261
,
13
,
760
,
204
,
763
,
93
,
766
,
/* 240 */
85
,
122
,
121
,
196
,
931
,
932
,
30
,
935
,
56
,
54
,
/* 240 */
90
,
128
,
127
,
202
,
951
,
952
,
34
,
955
,
60
,
58
,
/* 250 */
58
,
55
,
3
,
173
,
207
,
208
,
47
,
46
,
273
,
948
,
/* 250 */
62
,
59
,
89
,
235
,
214
,
215
,
51
,
50
,
281
,
151
,
/* 260 */
45
,
44
,
43
,
207
,
208
,
242
,
232
,
747
,
24
,
750
,
/* 260 */
49
,
48
,
47
,
214
,
215
,
762
,
77
,
765
,
28
,
1096
,
/* 270 */
319
,
318
,
77
,
246
,
245
,
317
,
689
,
316
,
315
,
314
,
/* 270 */
333
,
332
,
82
,
35
,
35
,
331
,
701
,
330
,
329
,
328
,
/* 280 */
37
,
313
,
312
,
62
,
916
,
47
,
46
,
914
,
915
,
45
,
/* 280 */
41
,
327
,
326
,
8
,
936
,
51
,
50
,
934
,
935
,
49
,
/* 290 */
44
,
43
,
917
,
942
,
919
,
920
,
918
,
145
,
921
,
922
,
/* 290 */
48
,
47
,
937
,
868
,
939
,
940
,
938
,
178
,
941
,
942
,
/* 300 */
107
,
101
,
112
,
249
,
31
,
69
,
63
,
111
,
117
,
120
,
/* 300 */
113
,
107
,
118
,
257
,
239
,
74
,
704
,
117
,
123
,
126
,
/* 310 */
110
,
204
,
674
,
109
,
235
,
671
,
114
,
672
,
310
,
673
,
/* 310 */
116
,
242
,
211
,
35
,
233
,
303
,
120
,
965
,
965
,
689
,
/* 320 */
5
,
34
,
162
,
1051
,
70
,
57
,
31
,
161
,
96
,
91
,
/* 320 */
212
,
761
,
686
,
764
,
687
,
61
,
688
,
213
,
1026
,
35
,
/* 330 */
95
,
31
,
757
,
31
,
57
,
229
,
233
,
31
,
753
,
292
,
/* 330 */
277
,
35
,
772
,
1036
,
61
,
5
,
38
,
168
,
768
,
151
,
/* 340 */
746
,
757
,
749
,
237
,
238
,
226
,
31
,
753
,
945
,
946
,
/* 340 */
196
,
772
,
167
,
101
,
96
,
100
,
35
,
768
,
35
,
151
,
/* 350 */
180
,
178
,
176
,
205
,
693
,
752
,
933
,
175
,
125
,
124
,
/* 350 */
245
,
246
,
35
,
35
,
304
,
767
,
236
,
965
,
186
,
184
,
/* 360 */
123
,
136
,
134
,
133
,
752
,
77
,
1006
,
227
,
269
,
320
,
/* 360 */
182
,
142
,
140
,
139
,
767
,
181
,
131
,
130
,
129
,
334
,
/* 370 */
945
,
84
,
293
,
37
,
294
,
945
,
856
,
945
,
298
,
754
,
/* 370 */
305
,
243
,
306
,
965
,
240
,
965
,
238
,
769
,
302
,
301
,
/* 380 */
172
,
945
,
848
,
960
,
686
,
72
,
172
,
302
,
722
,
723
,
/* 380 */
82
,
244
,
968
,
241
,
708
,
309
,
308
,
310
,
41
,
311
,
/* 390 */
945
,
8
,
251
,
743
,
74
,
948
,
32
,
75
,
221
,
215
,
/* 390 */
965
,
250
,
965
,
312
,
316
,
968
,
965
,
965
,
3
,
179
,
/* 400 */
705
,
206
,
253
,
713
,
140
,
253
,
714
,
61
,
777
,
758
,
/* 400 */
254
,
253
,
337
,
336
,
136
,
115
,
966
,
80
,
1025
,
259
,
/* 410 */
21
,
65
,
20
,
20
,
660
,
678
,
277
,
679
,
32
,
662
,
/* 410 */
324
,
737
,
738
,
36
,
758
,
261
,
720
,
728
,
88
,
729
,
/* 420 */
32
,
675
,
279
,
61
,
661
,
190
,
87
,
29
,
61
,
744
,
/* 420 */
146
,
66
,
227
,
25
,
67
,
792
,
197
,
773
,
690
,
24
,
/* 430 */
280
,
191
,
66
,
100
,
99
,
15
,
14
,
119
,
118
,
106
,
/* 430 */
675
,
24
,
70
,
770
,
36
,
285
,
677
,
287
,
676
,
36
,
/* 440 */
105
,
68
,
6
,
649
,
17
,
16
,
676
,
193
,
677
,
187
,
/* 440 */
66
,
92
,
66
,
33
,
125
,
124
,
288
,
68
,
199
,
15
,
/* 450 */
194
,
195
,
755
,
201
,
202
,
200
,
185
,
199
,
189
,
947
,
/* 450 */
759
,
14
,
106
,
71
,
105
,
193
,
200
,
17
,
19
,
16
,
/* 460 */
1016
,
1015
,
224
,
1012
,
1011
,
247
,
137
,
40
,
225
,
301
,
/* 460 */
18
,
201
,
73
,
112
,
664
,
111
,
6
,
207
,
693
,
691
,
/* 470 */
968
,
979
,
976
,
977
,
981
,
139
,
143
,
961
,
254
,
998
,
/* 470 */
694
,
692
,
208
,
206
,
21
,
1035
,
20
,
1088
,
191
,
205
,
/* 480 */
997
,
943
,
263
,
156
,
135
,
157
,
704
,
258
,
311
,
941
,
/* 480 */
195
,
967
,
230
,
255
,
1032
,
1031
,
231
,
315
,
44
,
143
,
/* 490 */
912
,
306
,
108
,
303
,
155
,
150
,
148
,
958
,
158
,
159
,
/* 490 */
988
,
1018
,
999
,
996
,
1017
,
997
,
981
,
262
,
1001
,
145
,
/* 500 */
859
,
67
,
146
,
216
,
282
,
38
,
260
,
183
,
35
,
267
,
/* 500 */
149
,
271
,
162
,
963
,
141
,
114
,
266
,
222
,
719
,
268
,
/* 510 */
291
,
64
,
855
,
1072
,
97
,
59
,
1071
,
1069
,
163
,
295
,
/* 510 */
158
,
275
,
154
,
163
,
978
,
152
,
155
,
276
,
961
,
164
,
/* 520 */
1066
,
103
,
1065
,
1063
,
164
,
877
,
36
,
272
,
33
,
270
,
/* 520 */
165
,
280
,
153
,
72
,
156
,
63
,
879
,
69
,
290
,
278
,
/* 530 */
268
,
39
,
184
,
844
,
113
,
842
,
115
,
116
,
840
,
839
,
/* 530 */
42
,
274
,
189
,
39
,
299
,
875
,
300
,
1095
,
103
,
1094
,
/* 540 */
239
,
174
,
837
,
836
,
835
,
834
,
833
,
832
,
177
,
179
,
/* 540 */
1091
,
169
,
307
,
1087
,
109
,
1086
,
1083
,
170
,
897
,
40
,
/* 550 */
829
,
827
,
825
,
266
,
823
,
181
,
820
,
182
,
264
,
252
,
/* 550 */
272
,
37
,
43
,
190
,
270
,
864
,
119
,
862
,
121
,
122
,
/* 560 */
73
,
78
,
262
,
261
,
999
,
259
,
41
,
304
,
305
,
307
,
/* 560 */
267
,
860
,
859
,
247
,
180
,
857
,
856
,
855
,
854
,
853
,
/* 570 */
209
,
231
,
308
,
309
,
281
,
321
,
797
,
240
,
241
,
210
,
/* 570 */
852
,
183
,
185
,
849
,
847
,
845
,
843
,
187
,
840
,
188
,
/* 580 */
796
,
92
,
93
,
203
,
244
,
243
,
795
,
783
,
782
,
838
,
/* 580 */
45
,
260
,
78
,
83
,
325
,
269
,
1019
,
317
,
318
,
319
,
/* 590 */
248
,
253
,
681
,
276
,
126
,
171
,
166
,
878
,
167
,
165
,
/* 590 */
320
,
321
,
322
,
323
,
335
,
817
,
248
,
216
,
237
,
289
,
/* 600 */
168
,
169
,
831
,
170
,
9
,
127
,
128
,
830
,
76
,
129
,
/* 600 */
249
,
816
,
251
,
252
,
209
,
210
,
97
,
98
,
815
,
798
,
/* 610 */
822
,
821
,
2
,
26
,
4
,
255
,
79
,
706
,
153
,
151
,
/* 610 */
797
,
256
,
261
,
263
,
858
,
696
,
284
,
9
,
132
,
851
,
/* 620 */
149
,
147
,
152
,
154
,
141
,
924
,
709
,
142
,
80
,
218
,
/* 620 */
173
,
133
,
172
,
898
,
171
,
174
,
175
,
177
,
176
,
4
,
/* 630 */
711
,
81
,
265
,
761
,
715
,
144
,
90
,
10
,
11
,
27
,
/* 630 */
134
,
850
,
842
,
932
,
135
,
30
,
841
,
81
,
84
,
721
,
/* 640 */
759
,
28
,
7
,
12
,
22
,
88
,
23
,
613
,
278
,
609
,
/* 640 */
2
,
161
,
159
,
157
,
160
,
147
,
944
,
724
,
148
,
85
,
/* 650 */
607
,
606
,
605
,
602
,
575
,
289
,
94
,
32
,
60
,
98
,
/* 650 */
224
,
726
,
86
,
273
,
10
,
730
,
150
,
11
,
776
,
774
,
/* 660 */
652
,
651
,
648
,
102
,
597
,
595
,
104
,
587
,
593
,
589
,
/* 660 */
31
,
7
,
32
,
12
,
26
,
286
,
27
,
95
,
628
,
93
,
/* 670 */
591
,
585
,
583
,
616
,
615
,
614
,
612
,
611
,
610
,
608
,
/* 670 */
624
,
622
,
621
,
620
,
617
,
297
,
99
,
590
,
64
,
36
,
/* 680 */
604
,
603
,
573
,
540
,
538
,
61
,
801
,
800
,
800
,
800
,
/* 680 */
65
,
102
,
667
,
666
,
104
,
108
,
663
,
612
,
610
,
602
,
/* 690 */
800
,
800
,
800
,
800
,
800
,
800
,
800
,
800
,
131
,
132
,
/* 690 */
608
,
604
,
606
,
600
,
598
,
631
,
110
,
630
,
629
,
627
,
/* 700 */
626
,
625
,
623
,
619
,
618
,
588
,
555
,
553
,
66
,
821
,
/* 710 */
820
,
820
,
137
,
820
,
820
,
820
,
820
,
820
,
820
,
820
,
/* 720 */
820
,
138
,
};
};
static
const
YYCODETYPE
yy_lookahead
[]
=
{
static
const
YYCODETYPE
yy_lookahead
[]
=
{
/* 0 */
192
,
1
,
191
,
192
,
0
,
254
,
211
,
254
,
254
,
9
,
/* 0 */
192
,
1
,
191
,
192
,
0
,
254
,
211
,
254
,
254
,
9
,
...
@@ -285,72 +299,72 @@ static const YYCODETYPE yy_lookahead[] = {
...
@@ -285,72 +299,72 @@ static const YYCODETYPE yy_lookahead[] = {
/* 40 */
13
,
14
,
265
,
16
,
17
,
264
,
265
,
20
,
21
,
1
,
/* 40 */
13
,
14
,
265
,
16
,
17
,
264
,
265
,
20
,
21
,
1
,
/* 50 */
23
,
24
,
25
,
26
,
27
,
28
,
235
,
9
,
33
,
34
,
/* 50 */
23
,
24
,
25
,
26
,
27
,
28
,
235
,
9
,
33
,
34
,
/* 60 */
33
,
34
,
237
,
255
,
37
,
38
,
39
,
14
,
192
,
16
,
/* 60 */
33
,
34
,
237
,
255
,
37
,
38
,
39
,
14
,
192
,
16
,
/* 70 */
17
,
192
,
251
,
20
,
21
,
237
,
23
,
24
,
25
,
26
,
/* 70 */
17
,
192
,
251
,
20
,
21
,
198
,
23
,
24
,
25
,
26
,
/* 80 */
27
,
28
,
259
,
79
,
261
,
254
,
33
,
34
,
198
,
68
,
/* 80 */
27
,
28
,
259
,
79
,
261
,
197
,
33
,
34
,
198
,
201
,
/* 90 */
37
,
38
,
39
,
45
,
46
,
47
,
48
,
49
,
50
,
51
,
/* 90 */
37
,
38
,
39
,
45
,
46
,
47
,
48
,
49
,
50
,
51
,
/* 100 */
52
,
53
,
54
,
55
,
56
,
57
,
58
,
1
,
79
,
61
,
/* 100 */
52
,
53
,
54
,
55
,
56
,
57
,
58
,
230
,
79
,
61
,
/* 110 */
110
,
1
,
236
,
13
,
14
,
9
,
16
,
17
,
111
,
9
,
/* 110 */
110
,
1
,
236
,
13
,
14
,
192
,
16
,
17
,
111
,
9
,
/* 120 */
20
,
21
,
232
,
23
,
24
,
25
,
26
,
27
,
28
,
37
,
/* 120 */
20
,
21
,
232
,
23
,
24
,
25
,
26
,
27
,
28
,
37
,
/* 130 */
38
,
39
,
105
,
33
,
34
,
256
,
257
,
37
,
38
,
39
,
/* 130 */
38
,
39
,
105
,
33
,
34
,
256
,
257
,
37
,
38
,
39
,
/* 140 */
13
,
14
,
192
,
16
,
17
,
199
,
200
,
20
,
21
,
192
,
/* 140 */
13
,
14
,
235
,
16
,
17
,
81
,
235
,
20
,
21
,
1
,
/* 150 */
23
,
24
,
25
,
26
,
27
,
28
,
65
,
66
,
67
,
138
,
/* 150 */
23
,
24
,
25
,
26
,
27
,
28
,
233
,
9
,
251
,
236
,
/* 160 */
33
,
34
,
141
,
142
,
37
,
38
,
39
,
88
,
89
,
90
,
/* 160 */
33
,
34
,
251
,
254
,
37
,
38
,
39
,
88
,
89
,
90
,
/* 170 */
91
,
92
,
93
,
94
,
95
,
96
,
97
,
98
,
99
,
100
,
/* 170 */
91
,
92
,
93
,
94
,
95
,
96
,
97
,
98
,
99
,
100
,
/* 180 */
101
,
102
,
210
,
192
,
212
,
213
,
214
,
215
,
216
,
217
,
/* 180 */
101
,
102
,
210
,
192
,
212
,
213
,
214
,
215
,
216
,
217
,
/* 190 */
218
,
219
,
220
,
221
,
222
,
223
,
224
,
225
,
16
,
17
,
/* 190 */
218
,
219
,
220
,
221
,
222
,
223
,
224
,
225
,
16
,
17
,
/* 200 */
197
,
2
35
,
20
,
21
,
201
,
23
,
24
,
25
,
26
,
27
,
/* 200 */
197
,
2
54
,
20
,
21
,
201
,
23
,
24
,
25
,
26
,
27
,
/* 210 */
28
,
261
,
44
,
198
,
104
,
33
,
34
,
251
,
261
,
37
,
/* 210 */
28
,
192
,
44
,
198
,
104
,
33
,
34
,
199
,
200
,
37
,
/* 220 */
38
,
39
,
1
,
2
,
233
,
81
,
5
,
236
,
7
,
61
,
/* 220 */
38
,
39
,
1
,
2
,
233
,
105
,
5
,
236
,
7
,
61
,
/* 230 */
9
,
1
,
2
,
211
,
104
,
5
,
68
,
7
,
108
,
9
,
/* 230 */
9
,
1
,
2
,
113
,
104
,
5
,
68
,
7
,
108
,
9
,
/* 240 */
110
,
73
,
74
,
75
,
229
,
230
,
231
,
232
,
25
,
26
,
/* 240 */
110
,
73
,
74
,
75
,
229
,
230
,
231
,
232
,
25
,
26
,
/* 250 */
27
,
28
,
195
,
196
,
33
,
34
,
33
,
34
,
37
,
237
,
/* 250 */
27
,
28
,
238
,
234
,
33
,
34
,
33
,
34
,
37
,
192
,
/* 260 */
37
,
38
,
39
,
33
,
34
,
136
,
68
,
5
,
88
,
7
,
/* 260 */
37
,
38
,
39
,
33
,
34
,
5
,
252
,
7
,
88
,
23
7
,
/* 270 */
90
,
91
,
104
,
1
44
,
145
,
95
,
37
,
97
,
98
,
99
,
/* 270 */
90
,
91
,
104
,
1
92
,
192
,
95
,
109
,
97
,
98
,
99
,
/* 280 */
112
,
101
,
102
,
1
09
,
210
,
33
,
34
,
213
,
214
,
37
,
/* 280 */
112
,
101
,
102
,
1
16
,
210
,
33
,
34
,
213
,
214
,
37
,
/* 290 */
38
,
39
,
218
,
19
2
,
220
,
221
,
222
,
192
,
224
,
225
,
/* 290 */
38
,
39
,
218
,
19
7
,
220
,
221
,
222
,
201
,
224
,
225
,
/* 300 */
62
,
63
,
64
,
135
,
192
,
137
,
132
,
69
,
70
,
71
,
/* 300 */
62
,
63
,
64
,
135
,
68
,
137
,
37
,
69
,
70
,
71
,
/* 310 */
72
,
143
,
2
,
76
,
192
,
5
,
78
,
7
,
81
,
9
,
/* 310 */
72
,
68
,
144
,
192
,
233
,
233
,
78
,
236
,
236
,
2
,
/* 320 */
62
,
63
,
64
,
254
,
198
,
104
,
192
,
69
,
70
,
71
,
/* 320 */
254
,
5
,
5
,
7
,
7
,
104
,
9
,
254
,
261
,
192
,
/* 330 */
72
,
192
,
111
,
192
,
104
,
234
,
138
,
192
,
117
,
141
,
/* 330 */
263
,
192
,
111
,
228
,
104
,
62
,
63
,
64
,
117
,
192
,
/* 340 */
5
,
111
,
7
,
33
,
34
,
233
,
192
,
117
,
236
,
227
,
/* 340 */
254
,
111
,
69
,
70
,
71
,
72
,
192
,
117
,
192
,
192
,
/* 350 */
62
,
63
,
64
,
254
,
115
,
134
,
230
,
69
,
70
,
71
,
/* 350 */
33
,
34
,
192
,
192
,
233
,
134
,
211
,
236
,
62
,
63
,
/* 360 */
72
,
62
,
63
,
64
,
134
,
104
,
261
,
233
,
263
,
211
,
/* 360 */
64
,
62
,
63
,
64
,
134
,
69
,
70
,
71
,
72
,
211
,
/* 370 */
23
6
,
238
,
233
,
112
,
233
,
236
,
197
,
236
,
233
,
117
,
/* 370 */
23
3
,
192
,
233
,
236
,
138
,
236
,
140
,
117
,
142
,
143
,
/* 380 */
201
,
236
,
197
,
235
,
109
,
252
,
201
,
233
,
125
,
126
,
/* 380 */
104
,
138
,
237
,
140
,
115
,
142
,
143
,
233
,
112
,
233
,
/* 390 */
236
,
1
16
,
105
,
1
,
105
,
237
,
109
,
105
,
60
,
251
,
/* 390 */
236
,
1
36
,
236
,
233
,
233
,
237
,
236
,
236
,
195
,
196
,
/* 400 */
1
05
,
254
,
113
,
105
,
109
,
113
,
105
,
109
,
105
,
105
,
/* 400 */
1
45
,
146
,
65
,
66
,
67
,
76
,
227
,
105
,
261
,
105
,
/* 410 */
109
,
109
,
109
,
109
,
105
,
5
,
105
,
7
,
109
,
105
,
/* 410 */
81
,
125
,
126
,
109
,
1
,
113
,
105
,
105
,
261
,
105
,
/* 420 */
109
,
1
11
,
105
,
109
,
105
,
254
,
109
,
104
,
109
,
37
,
/* 420 */
109
,
1
09
,
60
,
109
,
109
,
105
,
254
,
105
,
111
,
109
,
/* 430 */
10
7
,
254
,
130
,
139
,
140
,
139
,
140
,
76
,
77
,
13
9
,
/* 430 */
10
5
,
109
,
109
,
117
,
109
,
105
,
105
,
105
,
105
,
10
9
,
/* 440 */
1
40
,
104
,
104
,
106
,
139
,
140
,
5
,
254
,
7
,
254
,
/* 440 */
1
09
,
109
,
109
,
104
,
76
,
77
,
107
,
132
,
254
,
139
,
/* 450 */
254
,
254
,
117
,
254
,
254
,
254
,
254
,
254
,
254
,
237
,
/* 450 */
37
,
141
,
139
,
130
,
141
,
254
,
254
,
139
,
139
,
141
,
/* 460 */
228
,
228
,
228
,
228
,
228
,
192
,
192
,
253
,
228
,
228
,
/* 460 */
141
,
254
,
104
,
139
,
106
,
141
,
104
,
254
,
5
,
5
,
/* 470 */
192
,
192
,
192
,
192
,
192
,
192
,
192
,
235
,
235
,
262
,
/* 470 */
7
,
7
,
254
,
254
,
139
,
228
,
141
,
237
,
254
,
254
,
/* 480 */
2
62
,
235
,
192
,
239
,
60
,
192
,
117
,
258
,
10
3
,
192
,
/* 480 */
2
54
,
237
,
228
,
192
,
228
,
228
,
228
,
228
,
25
3
,
192
,
/* 490 */
226
,
85
,
87
,
86
,
240
,
245
,
247
,
250
,
192
,
192
,
/* 490 */
192
,
262
,
192
,
192
,
262
,
192
,
235
,
235
,
192
,
192
,
/* 500 */
192
,
1
29
,
249
,
258
,
192
,
192
,
258
,
192
,
192
,
258
,
/* 500 */
192
,
1
92
,
239
,
235
,
60
,
87
,
258
,
258
,
117
,
258
,
/* 510 */
192
,
131
,
192
,
192
,
192
,
128
,
192
,
19
2
,
192
,
192
,
/* 510 */
243
,
258
,
247
,
192
,
250
,
249
,
246
,
12
2
,
192
,
192
,
/* 520 */
192
,
1
92
,
192
,
192
,
192
,
192
,
192
,
123
,
192
,
127
,
/* 520 */
192
,
1
23
,
248
,
129
,
245
,
128
,
192
,
131
,
192
,
127
,
/* 530 */
1
22
,
192
,
192
,
192
,
192
,
192
,
192
,
192
,
192
,
192
,
/* 530 */
1
92
,
121
,
192
,
192
,
192
,
192
,
192
,
192
,
192
,
192
,
/* 540 */
192
,
192
,
192
,
192
,
192
,
192
,
192
,
192
,
192
,
192
,
/* 540 */
192
,
192
,
192
,
192
,
192
,
192
,
192
,
192
,
192
,
192
,
/* 550 */
1
92
,
192
,
192
,
121
,
192
,
192
,
192
,
192
,
120
,
193
,
/* 550 */
1
20
,
192
,
192
,
192
,
119
,
192
,
192
,
192
,
192
,
192
,
/* 560 */
1
93
,
193
,
119
,
193
,
193
,
118
,
133
,
50
,
83
,
54
,
/* 560 */
1
18
,
192
,
192
,
192
,
192
,
192
,
192
,
192
,
192
,
192
,
/* 570 */
19
3
,
193
,
84
,
82
,
193
,
79
,
5
,
146
,
5
,
193
,
/* 570 */
19
2
,
192
,
192
,
192
,
192
,
192
,
192
,
192
,
192
,
192
,
/* 580 */
5
,
198
,
198
,
193
,
5
,
146
,
5
,
90
,
89
,
19
3
,
/* 580 */
133
,
193
,
193
,
193
,
103
,
193
,
193
,
86
,
50
,
8
3
,
/* 590 */
136
,
113
,
105
,
107
,
194
,
202
,
207
,
209
,
203
,
208
,
/* 590 */
85
,
54
,
84
,
82
,
79
,
5
,
147
,
193
,
193
,
193
,
/* 600 */
206
,
204
,
193
,
205
,
104
,
194
,
194
,
193
,
114
,
194
,
/* 600 */
5
,
5
,
147
,
5
,
193
,
193
,
198
,
198
,
5
,
90
,
/* 610 */
193
,
193
,
199
,
104
,
195
,
109
,
109
,
105
,
242
,
244
,
/* 610 */
89
,
136
,
113
,
109
,
193
,
105
,
107
,
104
,
194
,
193
,
/* 620 */
2
46
,
248
,
243
,
241
,
104
,
226
,
105
,
109
,
104
,
1
,
/* 620 */
2
03
,
194
,
207
,
209
,
208
,
206
,
204
,
202
,
205
,
195
,
/* 630 */
1
05
,
104
,
104
,
111
,
105
,
104
,
76
,
124
,
124
,
109
,
/* 630 */
1
94
,
193
,
193
,
226
,
194
,
104
,
193
,
114
,
109
,
105
,
/* 640 */
1
05
,
109
,
104
,
104
,
104
,
108
,
104
,
9
,
107
,
5
,
/* 640 */
1
99
,
240
,
242
,
244
,
241
,
104
,
226
,
105
,
109
,
104
,
/* 650 */
5
,
5
,
5
,
5
,
80
,
15
,
76
,
109
,
16
,
140
,
/* 650 */
1
,
105
,
104
,
104
,
124
,
105
,
104
,
124
,
111
,
105
,
/* 660 */
5
,
5
,
105
,
140
,
5
,
5
,
140
,
5
,
5
,
5
,
/* 660 */
109
,
104
,
109
,
104
,
104
,
107
,
104
,
76
,
9
,
108
,
/* 670 */
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
/* 670 */
5
,
5
,
5
,
5
,
5
,
15
,
76
,
80
,
16
,
109
,
/* 680 */
5
,
5
,
80
,
60
,
59
,
109
,
0
,
266
,
266
,
266
,
/* 680 */
16
,
141
,
5
,
5
,
141
,
141
,
105
,
5
,
5
,
5
,
/* 690 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
21
,
21
,
/* 690 */
5
,
5
,
5
,
5
,
5
,
5
,
141
,
5
,
5
,
5
,
/* 700 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 700 */
5
,
5
,
5
,
5
,
5
,
80
,
60
,
59
,
109
,
0
,
/* 710 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 710 */
266
,
266
,
21
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 720 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 720 */
266
,
21
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 730 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 730 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 740 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 740 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 750 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 750 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
...
@@ -366,104 +380,112 @@ static const YYCODETYPE yy_lookahead[] = {
...
@@ -366,104 +380,112 @@ static const YYCODETYPE yy_lookahead[] = {
/* 850 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 850 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 860 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 860 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 870 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 870 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 880 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 880 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 890 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 900 */
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
266
,
/* 910 */
266
,
};
};
#define YY_SHIFT_COUNT (3
26
)
#define YY_SHIFT_COUNT (3
40
)
#define YY_SHIFT_MIN (0)
#define YY_SHIFT_MIN (0)
#define YY_SHIFT_MAX (
686
)
#define YY_SHIFT_MAX (
709
)
static
const
unsigned
short
int
yy_shift_ofst
[]
=
{
static
const
unsigned
short
int
yy_shift_ofst
[]
=
{
/* 0 */
168
,
79
,
79
,
180
,
180
,
29
,
221
,
230
,
110
,
1
06
,
/* 0 */
168
,
79
,
79
,
180
,
180
,
29
,
221
,
230
,
110
,
1
48
,
/* 10 */
1
06
,
106
,
106
,
106
,
106
,
106
,
106
,
106
,
0
,
48
,
/* 10 */
1
48
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
1
48
,
/* 20 */
230
,
310
,
310
,
310
,
310
,
261
,
261
,
106
,
106
,
10
6
,
/* 20 */
148
,
148
,
0
,
48
,
230
,
317
,
317
,
317
,
317
,
27
6
,
/* 30 */
4
,
106
,
106
,
237
,
29
,
144
,
144
,
700
,
700
,
700
,
/* 30 */
276
,
148
,
148
,
148
,
4
,
148
,
148
,
329
,
29
,
64
,
/* 40 */
230
,
230
,
230
,
230
,
230
,
230
,
230
,
230
,
230
,
230
,
/* 40 */
64
,
722
,
722
,
722
,
230
,
230
,
230
,
230
,
230
,
230
,
/* 50 */
230
,
230
,
230
,
230
,
230
,
230
,
230
,
230
,
230
,
230
,
/* 50 */
230
,
230
,
230
,
230
,
230
,
230
,
230
,
230
,
230
,
230
,
/* 60 */
310
,
310
,
25
,
25
,
25
,
25
,
25
,
25
,
25
,
106
,
/* 60 */
230
,
230
,
230
,
230
,
317
,
317
,
317
,
25
,
25
,
25
,
/* 70 */
106
,
106
,
239
,
106
,
106
,
106
,
261
,
261
,
106
,
106
,
/* 70 */
25
,
25
,
25
,
25
,
148
,
148
,
148
,
269
,
148
,
148
,
/* 80 */
106
,
106
,
263
,
263
,
275
,
261
,
106
,
106
,
106
,
106
,
/* 80 */
148
,
276
,
276
,
148
,
148
,
148
,
148
,
286
,
286
,
167
,
/* 90 */
106
,
106
,
106
,
106
,
106
,
106
,
106
,
106
,
106
,
106
,
/* 90 */
276
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
/* 100 */
106
,
106
,
106
,
106
,
106
,
106
,
106
,
106
,
106
,
106
,
/* 100 */
148
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
/* 110 */
106
,
106
,
106
,
106
,
106
,
106
,
106
,
106
,
106
,
106
,
/* 110 */
148
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
/* 120 */
106
,
106
,
106
,
106
,
106
,
106
,
106
,
106
,
106
,
106
,
/* 120 */
148
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
/* 130 */
106
,
106
,
106
,
106
,
106
,
106
,
106
,
424
,
424
,
424
,
/* 130 */
148
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
148
,
/* 140 */
369
,
369
,
369
,
424
,
369
,
424
,
372
,
380
,
387
,
404
,
/* 140 */
148
,
148
,
148
,
444
,
444
,
444
,
391
,
391
,
391
,
444
,
/* 150 */
402
,
408
,
432
,
438
,
443
,
447
,
433
,
424
,
424
,
424
,
/* 150 */
391
,
444
,
394
,
396
,
397
,
398
,
402
,
395
,
410
,
430
,
/* 160 */
385
,
29
,
29
,
424
,
424
,
405
,
407
,
517
,
485
,
406
,
/* 160 */
435
,
442
,
447
,
444
,
444
,
444
,
481
,
29
,
29
,
444
,
/* 170 */
515
,
488
,
491
,
385
,
424
,
496
,
496
,
424
,
496
,
424
,
/* 170 */
444
,
418
,
501
,
538
,
506
,
505
,
537
,
508
,
511
,
481
,
/* 180 */
496
,
424
,
424
,
700
,
700
,
27
,
100
,
127
,
100
,
100
,
/* 180 */
444
,
515
,
515
,
444
,
515
,
444
,
515
,
444
,
444
,
722
,
/* 190 */
53
,
182
,
223
,
223
,
223
,
223
,
238
,
258
,
288
,
252
,
/* 190 */
722
,
27
,
100
,
127
,
100
,
100
,
53
,
182
,
223
,
223
,
/* 200 */
252
,
252
,
252
,
21
,
129
,
92
,
92
,
262
,
335
,
130
,
/* 200 */
223
,
223
,
238
,
273
,
296
,
252
,
252
,
252
,
252
,
236
,
/* 210 */
198
,
91
,
299
,
287
,
289
,
292
,
295
,
298
,
301
,
303
,
/* 210 */
243
,
255
,
92
,
92
,
260
,
316
,
130
,
337
,
299
,
304
,
/* 220 */
304
,
392
,
338
,
7
,
174
,
302
,
309
,
311
,
314
,
317
,
/* 220 */
120
,
302
,
311
,
312
,
314
,
320
,
322
,
413
,
362
,
7
,
/* 230 */
319
,
323
,
294
,
296
,
300
,
337
,
305
,
410
,
441
,
361
,
/* 230 */
315
,
323
,
325
,
330
,
331
,
332
,
333
,
339
,
310
,
313
,
/* 240 */
571
,
431
,
573
,
575
,
439
,
579
,
581
,
497
,
499
,
454
,
/* 240 */
318
,
319
,
324
,
358
,
335
,
463
,
464
,
368
,
590
,
449
,
/* 250 */
478
,
486
,
500
,
494
,
487
,
509
,
506
,
507
,
512
,
520
,
/* 250 */
595
,
596
,
455
,
598
,
603
,
519
,
521
,
475
,
499
,
509
,
/* 260 */
521
,
518
,
524
,
525
,
527
,
628
,
528
,
529
,
531
,
530
,
/* 260 */
513
,
523
,
510
,
531
,
504
,
529
,
534
,
541
,
542
,
539
,
/* 270 */
513
,
532
,
514
,
535
,
538
,
522
,
539
,
486
,
540
,
541
,
/* 270 */
545
,
546
,
548
,
649
,
549
,
550
,
552
,
551
,
530
,
553
,
/* 280 */
542
,
537
,
560
,
638
,
644
,
645
,
646
,
647
,
648
,
574
,
/* 280 */
533
,
554
,
557
,
547
,
559
,
509
,
560
,
558
,
562
,
561
,
/* 290 */
640
,
580
,
519
,
548
,
548
,
642
,
523
,
526
,
548
,
655
,
/* 290 */
591
,
659
,
665
,
666
,
667
,
668
,
669
,
597
,
660
,
600
,
/* 300 */
656
,
557
,
548
,
659
,
660
,
662
,
663
,
664
,
665
,
666
,
/* 300 */
662
,
540
,
543
,
570
,
570
,
570
,
570
,
664
,
544
,
555
,
/* 310 */
667
,
668
,
669
,
670
,
671
,
672
,
673
,
674
,
675
,
676
,
/* 310 */
570
,
570
,
570
,
677
,
678
,
581
,
570
,
682
,
683
,
684
,
/* 320 */
576
,
602
,
677
,
678
,
623
,
625
,
686
,
/* 320 */
685
,
686
,
687
,
688
,
689
,
690
,
692
,
693
,
694
,
695
,
/* 330 */
696
,
697
,
698
,
699
,
599
,
625
,
691
,
700
,
646
,
648
,
/* 340 */
709
,
};
};
#define YY_REDUCE_COUNT (1
84
)
#define YY_REDUCE_COUNT (1
90
)
#define YY_REDUCE_MIN (-249)
#define YY_REDUCE_MIN (-249)
#define YY_REDUCE_MAX (4
19
)
#define YY_REDUCE_MAX (4
43
)
static
const
short
yy_reduce_ofst
[]
=
{
static
const
short
yy_reduce_ofst
[]
=
{
/* 0 */
-
179
,
-
28
,
-
28
,
74
,
74
,
15
,
-
246
,
-
219
,
-
121
,
-
9
,
/* 0 */
-
179
,
-
28
,
-
28
,
74
,
74
,
15
,
-
246
,
-
219
,
-
121
,
-
77
,
/* 10 */
105
,
-
177
,
112
,
134
,
139
,
141
,
145
,
154
,
-
192
,
-
189
,
/* 10 */
67
,
-
177
,
-
9
,
81
,
82
,
121
,
137
,
139
,
154
,
156
,
/* 20 */
-
223
,
-
205
,
-
175
,
22
,
158
,
-
34
,
148
,
-
50
,
-
43
,
101
,
/* 20 */
160
,
161
,
-
192
,
-
189
,
-
223
,
-
205
,
-
175
,
145
,
158
,
-
93
,
/* 30 */
-
110
,
122
,
-
124
,
3
,
126
,
179
,
185
,
133
,
-
54
,
57
,
/* 30 */
-
89
,
147
,
157
,
19
,
-
110
,
179
,
-
124
,
-
112
,
-
123
,
3
,
/* 40 */
-
249
,
-
247
,
-
242
,
-
225
,
-
169
,
69
,
99
,
147
,
171
,
177
,
/* 40 */
96
,
14
,
18
,
203
,
-
249
,
-
247
,
-
242
,
-
225
,
-
91
,
-
53
,
/* 50 */
193
,
195
,
196
,
197
,
199
,
200
,
201
,
202
,
203
,
204
,
/* 50 */
66
,
73
,
86
,
172
,
194
,
201
,
202
,
207
,
213
,
218
,
/* 60 */
-
162
,
222
,
232
,
233
,
234
,
235
,
236
,
240
,
241
,
273
,
/* 60 */
219
,
224
,
225
,
226
,
32
,
240
,
244
,
105
,
247
,
254
,
/* 70 */
274
,
278
,
214
,
279
,
280
,
281
,
242
,
243
,
282
,
283
,
/* 70 */
256
,
257
,
258
,
259
,
291
,
297
,
298
,
235
,
300
,
301
,
/* 80 */
284
,
290
,
217
,
218
,
244
,
246
,
293
,
297
,
306
,
307
,
/* 80 */
303
,
261
,
262
,
306
,
307
,
308
,
309
,
229
,
232
,
263
,
/* 90 */
308
,
312
,
313
,
315
,
316
,
318
,
320
,
321
,
322
,
324
,
/* 90 */
268
,
321
,
326
,
327
,
328
,
334
,
336
,
338
,
340
,
341
,
/* 100 */
325
,
326
,
327
,
328
,
329
,
330
,
331
,
332
,
333
,
334
,
/* 100 */
342
,
343
,
344
,
345
,
346
,
347
,
348
,
349
,
350
,
351
,
/* 110 */
336
,
339
,
340
,
341
,
342
,
343
,
344
,
345
,
346
,
347
,
/* 110 */
352
,
353
,
354
,
355
,
356
,
357
,
359
,
360
,
361
,
363
,
/* 120 */
348
,
349
,
350
,
351
,
352
,
353
,
354
,
355
,
356
,
357
,
/* 120 */
364
,
365
,
366
,
367
,
369
,
370
,
371
,
372
,
373
,
374
,
/* 130 */
358
,
359
,
360
,
362
,
363
,
364
,
365
,
366
,
367
,
368
,
/* 130 */
375
,
376
,
377
,
378
,
379
,
380
,
381
,
382
,
383
,
384
,
/* 140 */
229
,
245
,
248
,
370
,
251
,
371
,
247
,
253
,
373
,
249
,
/* 140 */
385
,
386
,
387
,
388
,
389
,
390
,
248
,
249
,
251
,
392
,
/* 150 */
374
,
250
,
375
,
379
,
376
,
382
,
254
,
377
,
378
,
381
,
/* 150 */
253
,
393
,
264
,
266
,
274
,
265
,
270
,
279
,
399
,
267
,
/* 160 */
264
,
383
,
384
,
386
,
390
,
388
,
391
,
389
,
395
,
394
,
/* 160 */
400
,
403
,
401
,
404
,
405
,
406
,
407
,
408
,
409
,
411
,
/* 170 */
397
,
398
,
393
,
399
,
396
,
400
,
411
,
409
,
412
,
414
,
/* 170 */
412
,
414
,
416
,
415
,
417
,
419
,
422
,
423
,
425
,
420
,
/* 180 */
415
,
417
,
418
,
413
,
419
,
/* 180 */
421
,
424
,
427
,
426
,
436
,
438
,
440
,
439
,
443
,
441
,
/* 190 */
434
,
};
};
static
const
YYACTIONTYPE
yy_default
[]
=
{
static
const
YYACTIONTYPE
yy_default
[]
=
{
/* 0 */
798
,
911
,
857
,
923
,
845
,
854
,
1059
,
1059
,
798
,
798
,
/* 0 */
818
,
931
,
877
,
943
,
865
,
874
,
1079
,
1079
,
818
,
818
,
/* 10 */
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
970
,
817
,
/* 10 */
818
,
818
,
818
,
818
,
818
,
818
,
818
,
818
,
818
,
818
,
/* 20 */
1059
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
/* 20 */
818
,
818
,
990
,
837
,
1079
,
818
,
818
,
818
,
818
,
818
,
/* 30 */
854
,
798
,
798
,
860
,
854
,
860
,
860
,
965
,
895
,
913
,
/* 30 */
818
,
818
,
818
,
818
,
874
,
818
,
818
,
880
,
874
,
880
,
/* 40 */
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
/* 40 */
880
,
985
,
915
,
933
,
818
,
818
,
818
,
818
,
818
,
818
,
/* 50 */
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
/* 50 */
818
,
818
,
818
,
818
,
818
,
818
,
818
,
818
,
818
,
818
,
/* 60 */
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
/* 60 */
818
,
818
,
818
,
818
,
818
,
818
,
818
,
818
,
818
,
818
,
/* 70 */
798
,
798
,
972
,
978
,
975
,
798
,
798
,
798
,
980
,
798
,
/* 70 */
818
,
818
,
818
,
818
,
818
,
818
,
818
,
992
,
998
,
995
,
/* 80 */
798
,
798
,
1002
,
1002
,
963
,
798
,
798
,
798
,
798
,
798
,
/* 80 */
818
,
818
,
818
,
1000
,
818
,
818
,
818
,
1022
,
1022
,
983
,
/* 90 */
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
/* 90 */
818
,
818
,
818
,
818
,
818
,
818
,
818
,
818
,
818
,
818
,
/* 100 */
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
/* 100 */
818
,
818
,
818
,
818
,
818
,
818
,
818
,
818
,
818
,
818
,
/* 110 */
798
,
798
,
798
,
843
,
798
,
841
,
798
,
798
,
798
,
798
,
/* 110 */
818
,
818
,
818
,
818
,
818
,
818
,
818
,
818
,
818
,
863
,
/* 120 */
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
/* 120 */
818
,
861
,
818
,
818
,
818
,
818
,
818
,
818
,
818
,
818
,
/* 130 */
828
,
798
,
798
,
798
,
798
,
798
,
798
,
819
,
819
,
819
,
/* 130 */
818
,
818
,
818
,
818
,
818
,
818
,
848
,
818
,
818
,
818
,
/* 140 */
798
,
798
,
798
,
819
,
798
,
819
,
1009
,
1013
,
1007
,
995
,
/* 140 */
818
,
818
,
818
,
839
,
839
,
839
,
818
,
818
,
818
,
839
,
/* 150 */
1003
,
994
,
990
,
988
,
986
,
985
,
1017
,
819
,
819
,
819
,
/* 150 */
818
,
839
,
1029
,
1033
,
1027
,
1015
,
1023
,
1014
,
1010
,
1008
,
/* 160 */
858
,
854
,
854
,
819
,
819
,
876
,
874
,
872
,
864
,
870
,
/* 160 */
1006
,
1005
,
1037
,
839
,
839
,
839
,
878
,
874
,
874
,
839
,
/* 170 */
866
,
868
,
862
,
846
,
819
,
852
,
852
,
819
,
852
,
819
,
/* 170 */
839
,
896
,
894
,
892
,
884
,
890
,
886
,
888
,
882
,
866
,
/* 180 */
852
,
819
,
819
,
895
,
913
,
798
,
1018
,
798
,
1058
,
1008
,
/* 180 */
839
,
872
,
872
,
839
,
872
,
839
,
872
,
839
,
839
,
915
,
/* 190 */
1048
,
1047
,
1054
,
1046
,
1045
,
1044
,
798
,
798
,
798
,
1040
,
/* 190 */
933
,
818
,
1038
,
818
,
1078
,
1028
,
1068
,
1067
,
1074
,
1066
,
/* 200 */
1041
,
1043
,
1042
,
798
,
798
,
1050
,
1049
,
798
,
798
,
798
,
/* 200 */
1065
,
1064
,
818
,
818
,
818
,
1060
,
1061
,
1063
,
1062
,
818
,
/* 210 */
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
/* 210 */
818
,
818
,
1070
,
1069
,
818
,
818
,
818
,
818
,
818
,
818
,
/* 220 */
798
,
798
,
1020
,
798
,
1014
,
1010
,
798
,
798
,
798
,
798
,
/* 220 */
818
,
818
,
818
,
818
,
818
,
818
,
818
,
818
,
1040
,
818
,
/* 230 */
798
,
798
,
798
,
798
,
798
,
925
,
798
,
798
,
798
,
798
,
/* 230 */
1034
,
1030
,
818
,
818
,
818
,
818
,
818
,
818
,
818
,
818
,
/* 240 */
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
/* 240 */
818
,
818
,
818
,
945
,
818
,
818
,
818
,
818
,
818
,
818
,
/* 250 */
962
,
798
,
798
,
798
,
798
,
798
,
974
,
973
,
798
,
798
,
/* 250 */
818
,
818
,
818
,
818
,
818
,
818
,
818
,
818
,
982
,
818
,
/* 260 */
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
1004
,
/* 260 */
818
,
818
,
818
,
818
,
994
,
993
,
818
,
818
,
818
,
818
,
/* 270 */
798
,
996
,
798
,
798
,
798
,
798
,
798
,
937
,
798
,
798
,
/* 270 */
818
,
818
,
818
,
818
,
818
,
818
,
818
,
1024
,
818
,
1016
,
/* 280 */
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
/* 280 */
818
,
818
,
818
,
818
,
818
,
957
,
818
,
818
,
818
,
818
,
/* 290 */
798
,
798
,
798
,
1070
,
1068
,
798
,
798
,
798
,
1064
,
798
,
/* 290 */
818
,
818
,
818
,
818
,
818
,
818
,
818
,
818
,
818
,
818
,
/* 300 */
798
,
798
,
1062
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
/* 300 */
818
,
818
,
818
,
1097
,
1092
,
1093
,
1090
,
818
,
818
,
818
,
/* 310 */
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
798
,
/* 310 */
1089
,
1084
,
1085
,
818
,
818
,
818
,
1082
,
818
,
818
,
818
,
/* 320 */
879
,
798
,
826
,
824
,
798
,
815
,
798
,
/* 320 */
818
,
818
,
818
,
818
,
818
,
818
,
818
,
818
,
818
,
818
,
/* 330 */
818
,
818
,
818
,
818
,
899
,
818
,
846
,
844
,
818
,
835
,
/* 340 */
818
,
};
};
/********** End of lemon-generated parsing tables *****************************/
/********** End of lemon-generated parsing tables *****************************/
...
@@ -623,6 +645,7 @@ static const YYCODETYPE yyFallback[] = {
...
@@ -623,6 +645,7 @@ static const YYCODETYPE yyFallback[] = {
0
,
/* SYNCDB => nothing */
0
,
/* SYNCDB => nothing */
0
,
/* ADD => nothing */
0
,
/* ADD => nothing */
0
,
/* COLUMN => nothing */
0
,
/* COLUMN => nothing */
0
,
/* MODIFY => nothing */
0
,
/* TAG => nothing */
0
,
/* TAG => nothing */
0
,
/* CHANGE => nothing */
0
,
/* CHANGE => nothing */
0
,
/* SET => nothing */
0
,
/* SET => nothing */
...
@@ -710,6 +733,7 @@ struct yyParser {
...
@@ -710,6 +733,7 @@ struct yyParser {
int
yyerrcnt
;
/* Shifts left before out of the error */
int
yyerrcnt
;
/* Shifts left before out of the error */
#endif
#endif
ParseARG_SDECL
/* A place to hold %extra_argument */
ParseARG_SDECL
/* A place to hold %extra_argument */
ParseCTX_SDECL
/* A place to hold %extra_context */
#if YYSTACKDEPTH<=0
#if YYSTACKDEPTH<=0
int
yystksz
;
/* Current side of the stack */
int
yystksz
;
/* Current side of the stack */
yyStackEntry
*
yystack
;
/* The parser's stack */
yyStackEntry
*
yystack
;
/* The parser's stack */
...
@@ -897,55 +921,55 @@ static const char *const yyTokenName[] = {
...
@@ -897,55 +921,55 @@ static const char *const yyTokenName[] = {
/* 137 */
"SYNCDB"
,
/* 137 */
"SYNCDB"
,
/* 138 */
"ADD"
,
/* 138 */
"ADD"
,
/* 139 */
"COLUMN"
,
/* 139 */
"COLUMN"
,
/* 140 */
"
TAG
"
,
/* 140 */
"
MODIFY
"
,
/* 141 */
"
CHANGE
"
,
/* 141 */
"
TAG
"
,
/* 142 */
"
SET
"
,
/* 142 */
"
CHANGE
"
,
/* 143 */
"
KILL
"
,
/* 143 */
"
SET
"
,
/* 144 */
"
CONNECTION
"
,
/* 144 */
"
KILL
"
,
/* 145 */
"
STREAM
"
,
/* 145 */
"
CONNECTION
"
,
/* 146 */
"
COLON
"
,
/* 146 */
"
STREAM
"
,
/* 147 */
"
ABORT
"
,
/* 147 */
"
COLON
"
,
/* 148 */
"A
FTER
"
,
/* 148 */
"A
BORT
"
,
/* 149 */
"A
TTACH
"
,
/* 149 */
"A
FTER
"
,
/* 150 */
"
BEFORE
"
,
/* 150 */
"
ATTACH
"
,
/* 151 */
"BE
GIN
"
,
/* 151 */
"BE
FORE
"
,
/* 152 */
"
CASCADE
"
,
/* 152 */
"
BEGIN
"
,
/* 153 */
"C
LUSTER
"
,
/* 153 */
"C
ASCADE
"
,
/* 154 */
"C
ONFLICT
"
,
/* 154 */
"C
LUSTER
"
,
/* 155 */
"CO
PY
"
,
/* 155 */
"CO
NFLICT
"
,
/* 156 */
"
DEFERRED
"
,
/* 156 */
"
COPY
"
,
/* 157 */
"DE
LIMITERS
"
,
/* 157 */
"DE
FERRED
"
,
/* 158 */
"DE
TACH
"
,
/* 158 */
"DE
LIMITERS
"
,
/* 159 */
"
E
ACH"
,
/* 159 */
"
DET
ACH"
,
/* 160 */
"E
ND
"
,
/* 160 */
"E
ACH
"
,
/* 161 */
"E
XPLAIN
"
,
/* 161 */
"E
ND
"
,
/* 162 */
"
FAIL
"
,
/* 162 */
"
EXPLAIN
"
,
/* 163 */
"F
OR
"
,
/* 163 */
"F
AIL
"
,
/* 164 */
"
IGNORE
"
,
/* 164 */
"
FOR
"
,
/* 165 */
"I
MMEDIAT
E"
,
/* 165 */
"I
GNOR
E"
,
/* 166 */
"I
NITIALLY
"
,
/* 166 */
"I
MMEDIATE
"
,
/* 167 */
"IN
STEAD
"
,
/* 167 */
"IN
ITIALLY
"
,
/* 168 */
"
MATCH
"
,
/* 168 */
"
INSTEAD
"
,
/* 169 */
"
KEY
"
,
/* 169 */
"
MATCH
"
,
/* 170 */
"
OF
"
,
/* 170 */
"
KEY
"
,
/* 171 */
"
RAISE
"
,
/* 171 */
"
OF
"
,
/* 172 */
"R
EPLAC
E"
,
/* 172 */
"R
AIS
E"
,
/* 173 */
"RE
STRICT
"
,
/* 173 */
"RE
PLACE
"
,
/* 174 */
"R
OW
"
,
/* 174 */
"R
ESTRICT
"
,
/* 175 */
"
STATEMENT
"
,
/* 175 */
"
ROW
"
,
/* 176 */
"
TRIGGER
"
,
/* 176 */
"
STATEMENT
"
,
/* 177 */
"
VIEW
"
,
/* 177 */
"
TRIGGER
"
,
/* 178 */
"
SEMI
"
,
/* 178 */
"
VIEW
"
,
/* 179 */
"
NONE
"
,
/* 179 */
"
SEMI
"
,
/* 180 */
"
PREV
"
,
/* 180 */
"
NONE
"
,
/* 181 */
"
LINEAR
"
,
/* 181 */
"
PREV
"
,
/* 182 */
"
IMPORT
"
,
/* 182 */
"
LINEAR
"
,
/* 183 */
"
TBNAME
"
,
/* 183 */
"
IMPORT
"
,
/* 184 */
"
JOIN
"
,
/* 184 */
"
TBNAME
"
,
/* 185 */
"
INSERT
"
,
/* 185 */
"
JOIN
"
,
/* 186 */
"IN
TO
"
,
/* 186 */
"IN
SERT
"
,
/* 187 */
"
VALUES
"
,
/* 187 */
"
INTO
"
,
/* 188 */
"
error
"
,
/* 188 */
"
VALUES
"
,
/* 189 */
"program"
,
/* 189 */
"program"
,
/* 190 */
"cmd"
,
/* 190 */
"cmd"
,
/* 191 */
"dbPrefix"
,
/* 191 */
"dbPrefix"
,
...
@@ -1293,18 +1317,23 @@ static const char *const yyRuleName[] = {
...
@@ -1293,18 +1317,23 @@ static const char *const yyRuleName[] = {
/* 260 */
"cmd ::= SYNCDB ids REPLICA"
,
/* 260 */
"cmd ::= SYNCDB ids REPLICA"
,
/* 261 */
"cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist"
,
/* 261 */
"cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist"
,
/* 262 */
"cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids"
,
/* 262 */
"cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids"
,
/* 263 */
"cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist"
,
/* 263 */
"cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist"
,
/* 264 */
"cmd ::= ALTER TABLE ids cpxName DROP TAG ids"
,
/* 264 */
"cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist"
,
/* 265 */
"cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids"
,
/* 265 */
"cmd ::= ALTER TABLE ids cpxName DROP TAG ids"
,
/* 266 */
"cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem"
,
/* 266 */
"cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids"
,
/* 267 */
"cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist"
,
/* 267 */
"cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem"
,
/* 268 */
"cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids"
,
/* 268 */
"cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist"
,
/* 269 */
"cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist"
,
/* 269 */
"cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist"
,
/* 270 */
"cmd ::= ALTER STABLE ids cpxName DROP TAG ids"
,
/* 270 */
"cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids"
,
/* 271 */
"cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids"
,
/* 271 */
"cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist"
,
/* 272 */
"cmd ::= KILL CONNECTION INTEGER"
,
/* 272 */
"cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist"
,
/* 273 */
"cmd ::= KILL STREAM INTEGER COLON INTEGER"
,
/* 273 */
"cmd ::= ALTER STABLE ids cpxName DROP TAG ids"
,
/* 274 */
"cmd ::= KILL QUERY INTEGER COLON INTEGER"
,
/* 274 */
"cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids"
,
/* 275 */
"cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem"
,
/* 276 */
"cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist"
,
/* 277 */
"cmd ::= KILL CONNECTION INTEGER"
,
/* 278 */
"cmd ::= KILL STREAM INTEGER COLON INTEGER"
,
/* 279 */
"cmd ::= KILL QUERY INTEGER COLON INTEGER"
,
};
};
#endif
/* NDEBUG */
#endif
/* NDEBUG */
...
@@ -1353,28 +1382,29 @@ static int yyGrowStack(yyParser *p){
...
@@ -1353,28 +1382,29 @@ static int yyGrowStack(yyParser *p){
/* Initialize a new parser that has already been allocated.
/* Initialize a new parser that has already been allocated.
*/
*/
void
ParseInit
(
void
*
yypParser
){
void
ParseInit
(
void
*
yypRawParser
ParseCTX_PDECL
){
yyParser
*
pParser
=
(
yyParser
*
)
yypParser
;
yyParser
*
yypParser
=
(
yyParser
*
)
yypRawParser
;
ParseCTX_STORE
#ifdef YYTRACKMAXSTACKDEPTH
#ifdef YYTRACKMAXSTACKDEPTH
pParser
->
yyhwm
=
0
;
yy
pParser
->
yyhwm
=
0
;
#endif
#endif
#if YYSTACKDEPTH<=0
#if YYSTACKDEPTH<=0
pParser
->
yytos
=
NULL
;
yy
pParser
->
yytos
=
NULL
;
pParser
->
yystack
=
NULL
;
yy
pParser
->
yystack
=
NULL
;
pParser
->
yystksz
=
0
;
yy
pParser
->
yystksz
=
0
;
if
(
yyGrowStack
(
pParser
)
){
if
(
yyGrowStack
(
yy
pParser
)
){
pParser
->
yystack
=
&
pParser
->
yystk0
;
yypParser
->
yystack
=
&
yy
pParser
->
yystk0
;
pParser
->
yystksz
=
1
;
yy
pParser
->
yystksz
=
1
;
}
}
#endif
#endif
#ifndef YYNOERRORRECOVERY
#ifndef YYNOERRORRECOVERY
pParser
->
yyerrcnt
=
-
1
;
yy
pParser
->
yyerrcnt
=
-
1
;
#endif
#endif
pParser
->
yytos
=
pParser
->
yystack
;
yypParser
->
yytos
=
yy
pParser
->
yystack
;
pParser
->
yystack
[
0
].
stateno
=
0
;
yy
pParser
->
yystack
[
0
].
stateno
=
0
;
pParser
->
yystack
[
0
].
major
=
0
;
yy
pParser
->
yystack
[
0
].
major
=
0
;
#if YYSTACKDEPTH>0
#if YYSTACKDEPTH>0
pParser
->
yystackEnd
=
&
pParser
->
yystack
[
YYSTACKDEPTH
-
1
];
yypParser
->
yystackEnd
=
&
yy
pParser
->
yystack
[
YYSTACKDEPTH
-
1
];
#endif
#endif
}
}
...
@@ -1391,11 +1421,14 @@ void ParseInit(void *yypParser){
...
@@ -1391,11 +1421,14 @@ void ParseInit(void *yypParser){
** A pointer to a parser. This pointer is used in subsequent calls
** A pointer to a parser. This pointer is used in subsequent calls
** to Parse and ParseFree.
** to Parse and ParseFree.
*/
*/
void
*
ParseAlloc
(
void
*
(
*
mallocProc
)(
YYMALLOCARGTYPE
)){
void
*
ParseAlloc
(
void
*
(
*
mallocProc
)(
YYMALLOCARGTYPE
)
ParseCTX_PDECL
){
yyParser
*
pParser
;
yyParser
*
yypParser
;
pParser
=
(
yyParser
*
)(
*
mallocProc
)(
(
YYMALLOCARGTYPE
)
sizeof
(
yyParser
)
);
yypParser
=
(
yyParser
*
)(
*
mallocProc
)(
(
YYMALLOCARGTYPE
)
sizeof
(
yyParser
)
);
if
(
pParser
)
ParseInit
(
pParser
);
if
(
yypParser
){
return
pParser
;
ParseCTX_STORE
ParseInit
(
yypParser
ParseCTX_PARAM
);
}
return
(
void
*
)
yypParser
;
}
}
#endif
/* Parse_ENGINEALWAYSONSTACK */
#endif
/* Parse_ENGINEALWAYSONSTACK */
...
@@ -1412,7 +1445,8 @@ static void yy_destructor(
...
@@ -1412,7 +1445,8 @@ static void yy_destructor(
YYCODETYPE
yymajor
,
/* Type code for object to destroy */
YYCODETYPE
yymajor
,
/* Type code for object to destroy */
YYMINORTYPE
*
yypminor
/* The object to be destroyed */
YYMINORTYPE
*
yypminor
/* The object to be destroyed */
){
){
ParseARG_FETCH
;
ParseARG_FETCH
ParseCTX_FETCH
switch
(
yymajor
){
switch
(
yymajor
){
/* Here is inserted the actions which take place when a
/* Here is inserted the actions which take place when a
** terminal or non-terminal is destroyed. This can happen
** terminal or non-terminal is destroyed. This can happen
...
@@ -1589,12 +1623,11 @@ int ParseCoverage(FILE *out){
...
@@ -1589,12 +1623,11 @@ int ParseCoverage(FILE *out){
** Find the appropriate action for a parser given the terminal
** Find the appropriate action for a parser given the terminal
** look-ahead token iLookAhead.
** look-ahead token iLookAhead.
*/
*/
static
unsigned
int
yy_find_shift_action
(
static
YYACTIONTYPE
yy_find_shift_action
(
yyParser
*
pParser
,
/* The parser
*/
YYCODETYPE
iLookAhead
,
/* The look-ahead token
*/
YY
CODETYPE
iLookAhead
/* The look-ahead token
*/
YY
ACTIONTYPE
stateno
/* Current state number
*/
){
){
int
i
;
int
i
;
int
stateno
=
pParser
->
yytos
->
stateno
;
if
(
stateno
>
YY_MAX_SHIFT
)
return
stateno
;
if
(
stateno
>
YY_MAX_SHIFT
)
return
stateno
;
assert
(
stateno
<=
YY_SHIFT_COUNT
);
assert
(
stateno
<=
YY_SHIFT_COUNT
);
...
@@ -1603,15 +1636,19 @@ static unsigned int yy_find_shift_action(
...
@@ -1603,15 +1636,19 @@ static unsigned int yy_find_shift_action(
#endif
#endif
do
{
do
{
i
=
yy_shift_ofst
[
stateno
];
i
=
yy_shift_ofst
[
stateno
];
assert
(
i
>=
0
&&
i
+
YYNTOKEN
<=
sizeof
(
yy_lookahead
)
/
sizeof
(
yy_lookahead
[
0
])
);
assert
(
i
>=
0
);
assert
(
i
<=
YY_ACTTAB_COUNT
);
assert
(
i
+
YYNTOKEN
<=
(
int
)
YY_NLOOKAHEAD
);
assert
(
iLookAhead
!=
YYNOCODE
);
assert
(
iLookAhead
!=
YYNOCODE
);
assert
(
iLookAhead
<
YYNTOKEN
);
assert
(
iLookAhead
<
YYNTOKEN
);
i
+=
iLookAhead
;
i
+=
iLookAhead
;
assert
(
i
<
(
int
)
YY_NLOOKAHEAD
);
if
(
yy_lookahead
[
i
]
!=
iLookAhead
){
if
(
yy_lookahead
[
i
]
!=
iLookAhead
){
#ifdef YYFALLBACK
#ifdef YYFALLBACK
YYCODETYPE
iFallback
;
/* Fallback token */
YYCODETYPE
iFallback
;
/* Fallback token */
if
(
iLookAhead
<
sizeof
(
yyFallback
)
/
sizeof
(
yyFallback
[
0
])
assert
(
iLookAhead
<
sizeof
(
yyFallback
)
/
sizeof
(
yyFallback
[
0
])
);
&&
(
iFallback
=
yyFallback
[
iLookAhead
])
!=
0
){
iFallback
=
yyFallback
[
iLookAhead
];
if
(
iFallback
!=
0
){
#ifndef NDEBUG
#ifndef NDEBUG
if
(
yyTraceFILE
){
if
(
yyTraceFILE
){
fprintf
(
yyTraceFILE
,
"%sFALLBACK %s => %s
\n
"
,
fprintf
(
yyTraceFILE
,
"%sFALLBACK %s => %s
\n
"
,
...
@@ -1626,15 +1663,8 @@ static unsigned int yy_find_shift_action(
...
@@ -1626,15 +1663,8 @@ static unsigned int yy_find_shift_action(
#ifdef YYWILDCARD
#ifdef YYWILDCARD
{
{
int
j
=
i
-
iLookAhead
+
YYWILDCARD
;
int
j
=
i
-
iLookAhead
+
YYWILDCARD
;
if
(
assert
(
j
<
(
int
)(
sizeof
(
yy_lookahead
)
/
sizeof
(
yy_lookahead
[
0
]))
);
#if YY_SHIFT_MIN+YYWILDCARD<0
if
(
yy_lookahead
[
j
]
==
YYWILDCARD
&&
iLookAhead
>
0
){
j
>=
0
&&
#endif
#if YY_SHIFT_MAX+YYWILDCARD>=YY_ACTTAB_COUNT
j
<
YY_ACTTAB_COUNT
&&
#endif
yy_lookahead
[
j
]
==
YYWILDCARD
&&
iLookAhead
>
0
){
#ifndef NDEBUG
#ifndef NDEBUG
if
(
yyTraceFILE
){
if
(
yyTraceFILE
){
fprintf
(
yyTraceFILE
,
"%sWILDCARD %s => %s
\n
"
,
fprintf
(
yyTraceFILE
,
"%sWILDCARD %s => %s
\n
"
,
...
@@ -1648,6 +1678,7 @@ static unsigned int yy_find_shift_action(
...
@@ -1648,6 +1678,7 @@ static unsigned int yy_find_shift_action(
#endif
/* YYWILDCARD */
#endif
/* YYWILDCARD */
return
yy_default
[
stateno
];
return
yy_default
[
stateno
];
}
else
{
}
else
{
assert
(
i
>=
0
&&
i
<
sizeof
(
yy_action
)
/
sizeof
(
yy_action
[
0
])
);
return
yy_action
[
i
];
return
yy_action
[
i
];
}
}
}
while
(
1
);
}
while
(
1
);
...
@@ -1657,8 +1688,8 @@ static unsigned int yy_find_shift_action(
...
@@ -1657,8 +1688,8 @@ static unsigned int yy_find_shift_action(
** Find the appropriate action for a parser given the non-terminal
** Find the appropriate action for a parser given the non-terminal
** look-ahead token iLookAhead.
** look-ahead token iLookAhead.
*/
*/
static
int
yy_find_reduce_action
(
static
YYACTIONTYPE
yy_find_reduce_action
(
int
stateno
,
/* Current state number */
YYACTIONTYPE
stateno
,
/* Current state number */
YYCODETYPE
iLookAhead
/* The look-ahead token */
YYCODETYPE
iLookAhead
/* The look-ahead token */
){
){
int
i
;
int
i
;
...
@@ -1687,7 +1718,8 @@ static int yy_find_reduce_action(
...
@@ -1687,7 +1718,8 @@ static int yy_find_reduce_action(
** The following routine is called if the stack overflows.
** The following routine is called if the stack overflows.
*/
*/
static
void
yyStackOverflow
(
yyParser
*
yypParser
){
static
void
yyStackOverflow
(
yyParser
*
yypParser
){
ParseARG_FETCH
;
ParseARG_FETCH
ParseCTX_FETCH
#ifndef NDEBUG
#ifndef NDEBUG
if
(
yyTraceFILE
){
if
(
yyTraceFILE
){
fprintf
(
yyTraceFILE
,
"%sStack Overflow!
\n
"
,
yyTracePrompt
);
fprintf
(
yyTraceFILE
,
"%sStack Overflow!
\n
"
,
yyTracePrompt
);
...
@@ -1698,7 +1730,8 @@ static void yyStackOverflow(yyParser *yypParser){
...
@@ -1698,7 +1730,8 @@ static void yyStackOverflow(yyParser *yypParser){
** stack every overflows */
** stack every overflows */
/******** Begin %stack_overflow code ******************************************/
/******** Begin %stack_overflow code ******************************************/
/******** End %stack_overflow code ********************************************/
/******** End %stack_overflow code ********************************************/
ParseARG_STORE
;
/* Suppress warning about unused %extra_argument var */
ParseARG_STORE
/* Suppress warning about unused %extra_argument var */
ParseCTX_STORE
}
}
/*
/*
...
@@ -1727,8 +1760,8 @@ static void yyTraceShift(yyParser *yypParser, int yyNewState, const char *zTag){
...
@@ -1727,8 +1760,8 @@ static void yyTraceShift(yyParser *yypParser, int yyNewState, const char *zTag){
*/
*/
static
void
yy_shift
(
static
void
yy_shift
(
yyParser
*
yypParser
,
/* The parser to be shifted */
yyParser
*
yypParser
,
/* The parser to be shifted */
int
yyNewState
,
/* The new state to shift in */
YYACTIONTYPE
yyNewState
,
/* The new state to shift in */
int
yyMajor
,
/* The major token to shift in */
YYCODETYPE
yyMajor
,
/* The major token to shift in */
ParseTOKENTYPE
yyMinor
/* The minor token to shift in */
ParseTOKENTYPE
yyMinor
/* The minor token to shift in */
){
){
yyStackEntry
*
yytos
;
yyStackEntry
*
yytos
;
...
@@ -1758,294 +1791,580 @@ static void yy_shift(
...
@@ -1758,294 +1791,580 @@ static void yy_shift(
yyNewState
+=
YY_MIN_REDUCE
-
YY_MIN_SHIFTREDUCE
;
yyNewState
+=
YY_MIN_REDUCE
-
YY_MIN_SHIFTREDUCE
;
}
}
yytos
=
yypParser
->
yytos
;
yytos
=
yypParser
->
yytos
;
yytos
->
stateno
=
(
YYACTIONTYPE
)
yyNewState
;
yytos
->
stateno
=
yyNewState
;
yytos
->
major
=
(
YYCODETYPE
)
yyMajor
;
yytos
->
major
=
yyMajor
;
yytos
->
minor
.
yy0
=
yyMinor
;
yytos
->
minor
.
yy0
=
yyMinor
;
yyTraceShift
(
yypParser
,
yyNewState
,
"Shift"
);
yyTraceShift
(
yypParser
,
yyNewState
,
"Shift"
);
}
}
/* The following table contains information about every rule that
/* For rule J, yyRuleInfoLhs[J] contains the symbol on the left-hand side
** is used during the reduce.
** of that rule */
*/
static
const
YYCODETYPE
yyRuleInfoLhs
[]
=
{
static
const
struct
{
189
,
/* (0) program ::= cmd */
YYCODETYPE
lhs
;
/* Symbol on the left-hand side of the rule */
190
,
/* (1) cmd ::= SHOW DATABASES */
signed
char
nrhs
;
/* Negative of the number of RHS symbols in the rule */
190
,
/* (2) cmd ::= SHOW TOPICS */
}
yyRuleInfo
[]
=
{
190
,
/* (3) cmd ::= SHOW MNODES */
{
189
,
-
1
},
/* (0) program ::= cmd */
190
,
/* (4) cmd ::= SHOW DNODES */
{
190
,
-
2
},
/* (1) cmd ::= SHOW DATABASES */
190
,
/* (5) cmd ::= SHOW ACCOUNTS */
{
190
,
-
2
},
/* (2) cmd ::= SHOW TOPICS */
190
,
/* (6) cmd ::= SHOW USERS */
{
190
,
-
2
},
/* (3) cmd ::= SHOW MNODES */
190
,
/* (7) cmd ::= SHOW MODULES */
{
190
,
-
2
},
/* (4) cmd ::= SHOW DNODES */
190
,
/* (8) cmd ::= SHOW QUERIES */
{
190
,
-
2
},
/* (5) cmd ::= SHOW ACCOUNTS */
190
,
/* (9) cmd ::= SHOW CONNECTIONS */
{
190
,
-
2
},
/* (6) cmd ::= SHOW USERS */
190
,
/* (10) cmd ::= SHOW STREAMS */
{
190
,
-
2
},
/* (7) cmd ::= SHOW MODULES */
190
,
/* (11) cmd ::= SHOW VARIABLES */
{
190
,
-
2
},
/* (8) cmd ::= SHOW QUERIES */
190
,
/* (12) cmd ::= SHOW SCORES */
{
190
,
-
2
},
/* (9) cmd ::= SHOW CONNECTIONS */
190
,
/* (13) cmd ::= SHOW GRANTS */
{
190
,
-
2
},
/* (10) cmd ::= SHOW STREAMS */
190
,
/* (14) cmd ::= SHOW VNODES */
{
190
,
-
2
},
/* (11) cmd ::= SHOW VARIABLES */
190
,
/* (15) cmd ::= SHOW VNODES IPTOKEN */
{
190
,
-
2
},
/* (12) cmd ::= SHOW SCORES */
191
,
/* (16) dbPrefix ::= */
{
190
,
-
2
},
/* (13) cmd ::= SHOW GRANTS */
191
,
/* (17) dbPrefix ::= ids DOT */
{
190
,
-
2
},
/* (14) cmd ::= SHOW VNODES */
193
,
/* (18) cpxName ::= */
{
190
,
-
3
},
/* (15) cmd ::= SHOW VNODES IPTOKEN */
193
,
/* (19) cpxName ::= DOT ids */
{
191
,
0
},
/* (16) dbPrefix ::= */
190
,
/* (20) cmd ::= SHOW CREATE TABLE ids cpxName */
{
191
,
-
2
},
/* (17) dbPrefix ::= ids DOT */
190
,
/* (21) cmd ::= SHOW CREATE STABLE ids cpxName */
{
193
,
0
},
/* (18) cpxName ::= */
190
,
/* (22) cmd ::= SHOW CREATE DATABASE ids */
{
193
,
-
2
},
/* (19) cpxName ::= DOT ids */
190
,
/* (23) cmd ::= SHOW dbPrefix TABLES */
{
190
,
-
5
},
/* (20) cmd ::= SHOW CREATE TABLE ids cpxName */
190
,
/* (24) cmd ::= SHOW dbPrefix TABLES LIKE ids */
{
190
,
-
5
},
/* (21) cmd ::= SHOW CREATE STABLE ids cpxName */
190
,
/* (25) cmd ::= SHOW dbPrefix STABLES */
{
190
,
-
4
},
/* (22) cmd ::= SHOW CREATE DATABASE ids */
190
,
/* (26) cmd ::= SHOW dbPrefix STABLES LIKE ids */
{
190
,
-
3
},
/* (23) cmd ::= SHOW dbPrefix TABLES */
190
,
/* (27) cmd ::= SHOW dbPrefix VGROUPS */
{
190
,
-
5
},
/* (24) cmd ::= SHOW dbPrefix TABLES LIKE ids */
190
,
/* (28) cmd ::= SHOW dbPrefix VGROUPS ids */
{
190
,
-
3
},
/* (25) cmd ::= SHOW dbPrefix STABLES */
190
,
/* (29) cmd ::= DROP TABLE ifexists ids cpxName */
{
190
,
-
5
},
/* (26) cmd ::= SHOW dbPrefix STABLES LIKE ids */
190
,
/* (30) cmd ::= DROP STABLE ifexists ids cpxName */
{
190
,
-
3
},
/* (27) cmd ::= SHOW dbPrefix VGROUPS */
190
,
/* (31) cmd ::= DROP DATABASE ifexists ids */
{
190
,
-
4
},
/* (28) cmd ::= SHOW dbPrefix VGROUPS ids */
190
,
/* (32) cmd ::= DROP TOPIC ifexists ids */
{
190
,
-
5
},
/* (29) cmd ::= DROP TABLE ifexists ids cpxName */
190
,
/* (33) cmd ::= DROP DNODE ids */
{
190
,
-
5
},
/* (30) cmd ::= DROP STABLE ifexists ids cpxName */
190
,
/* (34) cmd ::= DROP USER ids */
{
190
,
-
4
},
/* (31) cmd ::= DROP DATABASE ifexists ids */
190
,
/* (35) cmd ::= DROP ACCOUNT ids */
{
190
,
-
4
},
/* (32) cmd ::= DROP TOPIC ifexists ids */
190
,
/* (36) cmd ::= USE ids */
{
190
,
-
3
},
/* (33) cmd ::= DROP DNODE ids */
190
,
/* (37) cmd ::= DESCRIBE ids cpxName */
{
190
,
-
3
},
/* (34) cmd ::= DROP USER ids */
190
,
/* (38) cmd ::= ALTER USER ids PASS ids */
{
190
,
-
3
},
/* (35) cmd ::= DROP ACCOUNT ids */
190
,
/* (39) cmd ::= ALTER USER ids PRIVILEGE ids */
{
190
,
-
2
},
/* (36) cmd ::= USE ids */
190
,
/* (40) cmd ::= ALTER DNODE ids ids */
{
190
,
-
3
},
/* (37) cmd ::= DESCRIBE ids cpxName */
190
,
/* (41) cmd ::= ALTER DNODE ids ids ids */
{
190
,
-
5
},
/* (38) cmd ::= ALTER USER ids PASS ids */
190
,
/* (42) cmd ::= ALTER LOCAL ids */
{
190
,
-
5
},
/* (39) cmd ::= ALTER USER ids PRIVILEGE ids */
190
,
/* (43) cmd ::= ALTER LOCAL ids ids */
{
190
,
-
4
},
/* (40) cmd ::= ALTER DNODE ids ids */
190
,
/* (44) cmd ::= ALTER DATABASE ids alter_db_optr */
{
190
,
-
5
},
/* (41) cmd ::= ALTER DNODE ids ids ids */
190
,
/* (45) cmd ::= ALTER TOPIC ids alter_topic_optr */
{
190
,
-
3
},
/* (42) cmd ::= ALTER LOCAL ids */
190
,
/* (46) cmd ::= ALTER ACCOUNT ids acct_optr */
{
190
,
-
4
},
/* (43) cmd ::= ALTER LOCAL ids ids */
190
,
/* (47) cmd ::= ALTER ACCOUNT ids PASS ids acct_optr */
{
190
,
-
4
},
/* (44) cmd ::= ALTER DATABASE ids alter_db_optr */
192
,
/* (48) ids ::= ID */
{
190
,
-
4
},
/* (45) cmd ::= ALTER TOPIC ids alter_topic_optr */
192
,
/* (49) ids ::= STRING */
{
190
,
-
4
},
/* (46) cmd ::= ALTER ACCOUNT ids acct_optr */
194
,
/* (50) ifexists ::= IF EXISTS */
{
190
,
-
6
},
/* (47) cmd ::= ALTER ACCOUNT ids PASS ids acct_optr */
194
,
/* (51) ifexists ::= */
{
192
,
-
1
},
/* (48) ids ::= ID */
198
,
/* (52) ifnotexists ::= IF NOT EXISTS */
{
192
,
-
1
},
/* (49) ids ::= STRING */
198
,
/* (53) ifnotexists ::= */
{
194
,
-
2
},
/* (50) ifexists ::= IF EXISTS */
190
,
/* (54) cmd ::= CREATE DNODE ids */
{
194
,
0
},
/* (51) ifexists ::= */
190
,
/* (55) cmd ::= CREATE ACCOUNT ids PASS ids acct_optr */
{
198
,
-
3
},
/* (52) ifnotexists ::= IF NOT EXISTS */
190
,
/* (56) cmd ::= CREATE DATABASE ifnotexists ids db_optr */
{
198
,
0
},
/* (53) ifnotexists ::= */
190
,
/* (57) cmd ::= CREATE TOPIC ifnotexists ids topic_optr */
{
190
,
-
3
},
/* (54) cmd ::= CREATE DNODE ids */
190
,
/* (58) cmd ::= CREATE USER ids PASS ids */
{
190
,
-
6
},
/* (55) cmd ::= CREATE ACCOUNT ids PASS ids acct_optr */
201
,
/* (59) pps ::= */
{
190
,
-
5
},
/* (56) cmd ::= CREATE DATABASE ifnotexists ids db_optr */
201
,
/* (60) pps ::= PPS INTEGER */
{
190
,
-
5
},
/* (57) cmd ::= CREATE TOPIC ifnotexists ids topic_optr */
202
,
/* (61) tseries ::= */
{
190
,
-
5
},
/* (58) cmd ::= CREATE USER ids PASS ids */
202
,
/* (62) tseries ::= TSERIES INTEGER */
{
201
,
0
},
/* (59) pps ::= */
203
,
/* (63) dbs ::= */
{
201
,
-
2
},
/* (60) pps ::= PPS INTEGER */
203
,
/* (64) dbs ::= DBS INTEGER */
{
202
,
0
},
/* (61) tseries ::= */
204
,
/* (65) streams ::= */
{
202
,
-
2
},
/* (62) tseries ::= TSERIES INTEGER */
204
,
/* (66) streams ::= STREAMS INTEGER */
{
203
,
0
},
/* (63) dbs ::= */
205
,
/* (67) storage ::= */
{
203
,
-
2
},
/* (64) dbs ::= DBS INTEGER */
205
,
/* (68) storage ::= STORAGE INTEGER */
{
204
,
0
},
/* (65) streams ::= */
206
,
/* (69) qtime ::= */
{
204
,
-
2
},
/* (66) streams ::= STREAMS INTEGER */
206
,
/* (70) qtime ::= QTIME INTEGER */
{
205
,
0
},
/* (67) storage ::= */
207
,
/* (71) users ::= */
{
205
,
-
2
},
/* (68) storage ::= STORAGE INTEGER */
207
,
/* (72) users ::= USERS INTEGER */
{
206
,
0
},
/* (69) qtime ::= */
208
,
/* (73) conns ::= */
{
206
,
-
2
},
/* (70) qtime ::= QTIME INTEGER */
208
,
/* (74) conns ::= CONNS INTEGER */
{
207
,
0
},
/* (71) users ::= */
209
,
/* (75) state ::= */
{
207
,
-
2
},
/* (72) users ::= USERS INTEGER */
209
,
/* (76) state ::= STATE ids */
{
208
,
0
},
/* (73) conns ::= */
197
,
/* (77) acct_optr ::= pps tseries storage streams qtime dbs users conns state */
{
208
,
-
2
},
/* (74) conns ::= CONNS INTEGER */
210
,
/* (78) keep ::= KEEP tagitemlist */
{
209
,
0
},
/* (75) state ::= */
212
,
/* (79) cache ::= CACHE INTEGER */
{
209
,
-
2
},
/* (76) state ::= STATE ids */
213
,
/* (80) replica ::= REPLICA INTEGER */
{
197
,
-
9
},
/* (77) acct_optr ::= pps tseries storage streams qtime dbs users conns state */
214
,
/* (81) quorum ::= QUORUM INTEGER */
{
210
,
-
2
},
/* (78) keep ::= KEEP tagitemlist */
215
,
/* (82) days ::= DAYS INTEGER */
{
212
,
-
2
},
/* (79) cache ::= CACHE INTEGER */
216
,
/* (83) minrows ::= MINROWS INTEGER */
{
213
,
-
2
},
/* (80) replica ::= REPLICA INTEGER */
217
,
/* (84) maxrows ::= MAXROWS INTEGER */
{
214
,
-
2
},
/* (81) quorum ::= QUORUM INTEGER */
218
,
/* (85) blocks ::= BLOCKS INTEGER */
{
215
,
-
2
},
/* (82) days ::= DAYS INTEGER */
219
,
/* (86) ctime ::= CTIME INTEGER */
{
216
,
-
2
},
/* (83) minrows ::= MINROWS INTEGER */
220
,
/* (87) wal ::= WAL INTEGER */
{
217
,
-
2
},
/* (84) maxrows ::= MAXROWS INTEGER */
221
,
/* (88) fsync ::= FSYNC INTEGER */
{
218
,
-
2
},
/* (85) blocks ::= BLOCKS INTEGER */
222
,
/* (89) comp ::= COMP INTEGER */
{
219
,
-
2
},
/* (86) ctime ::= CTIME INTEGER */
223
,
/* (90) prec ::= PRECISION STRING */
{
220
,
-
2
},
/* (87) wal ::= WAL INTEGER */
224
,
/* (91) update ::= UPDATE INTEGER */
{
221
,
-
2
},
/* (88) fsync ::= FSYNC INTEGER */
225
,
/* (92) cachelast ::= CACHELAST INTEGER */
{
222
,
-
2
},
/* (89) comp ::= COMP INTEGER */
226
,
/* (93) partitions ::= PARTITIONS INTEGER */
{
223
,
-
2
},
/* (90) prec ::= PRECISION STRING */
199
,
/* (94) db_optr ::= */
{
224
,
-
2
},
/* (91) update ::= UPDATE INTEGER */
199
,
/* (95) db_optr ::= db_optr cache */
{
225
,
-
2
},
/* (92) cachelast ::= CACHELAST INTEGER */
199
,
/* (96) db_optr ::= db_optr replica */
{
226
,
-
2
},
/* (93) partitions ::= PARTITIONS INTEGER */
199
,
/* (97) db_optr ::= db_optr quorum */
{
199
,
0
},
/* (94) db_optr ::= */
199
,
/* (98) db_optr ::= db_optr days */
{
199
,
-
2
},
/* (95) db_optr ::= db_optr cache */
199
,
/* (99) db_optr ::= db_optr minrows */
{
199
,
-
2
},
/* (96) db_optr ::= db_optr replica */
199
,
/* (100) db_optr ::= db_optr maxrows */
{
199
,
-
2
},
/* (97) db_optr ::= db_optr quorum */
199
,
/* (101) db_optr ::= db_optr blocks */
{
199
,
-
2
},
/* (98) db_optr ::= db_optr days */
199
,
/* (102) db_optr ::= db_optr ctime */
{
199
,
-
2
},
/* (99) db_optr ::= db_optr minrows */
199
,
/* (103) db_optr ::= db_optr wal */
{
199
,
-
2
},
/* (100) db_optr ::= db_optr maxrows */
199
,
/* (104) db_optr ::= db_optr fsync */
{
199
,
-
2
},
/* (101) db_optr ::= db_optr blocks */
199
,
/* (105) db_optr ::= db_optr comp */
{
199
,
-
2
},
/* (102) db_optr ::= db_optr ctime */
199
,
/* (106) db_optr ::= db_optr prec */
{
199
,
-
2
},
/* (103) db_optr ::= db_optr wal */
199
,
/* (107) db_optr ::= db_optr keep */
{
199
,
-
2
},
/* (104) db_optr ::= db_optr fsync */
199
,
/* (108) db_optr ::= db_optr update */
{
199
,
-
2
},
/* (105) db_optr ::= db_optr comp */
199
,
/* (109) db_optr ::= db_optr cachelast */
{
199
,
-
2
},
/* (106) db_optr ::= db_optr prec */
200
,
/* (110) topic_optr ::= db_optr */
{
199
,
-
2
},
/* (107) db_optr ::= db_optr keep */
200
,
/* (111) topic_optr ::= topic_optr partitions */
{
199
,
-
2
},
/* (108) db_optr ::= db_optr update */
195
,
/* (112) alter_db_optr ::= */
{
199
,
-
2
},
/* (109) db_optr ::= db_optr cachelast */
195
,
/* (113) alter_db_optr ::= alter_db_optr replica */
{
200
,
-
1
},
/* (110) topic_optr ::= db_optr */
195
,
/* (114) alter_db_optr ::= alter_db_optr quorum */
{
200
,
-
2
},
/* (111) topic_optr ::= topic_optr partitions */
195
,
/* (115) alter_db_optr ::= alter_db_optr keep */
{
195
,
0
},
/* (112) alter_db_optr ::= */
195
,
/* (116) alter_db_optr ::= alter_db_optr blocks */
{
195
,
-
2
},
/* (113) alter_db_optr ::= alter_db_optr replica */
195
,
/* (117) alter_db_optr ::= alter_db_optr comp */
{
195
,
-
2
},
/* (114) alter_db_optr ::= alter_db_optr quorum */
195
,
/* (118) alter_db_optr ::= alter_db_optr wal */
{
195
,
-
2
},
/* (115) alter_db_optr ::= alter_db_optr keep */
195
,
/* (119) alter_db_optr ::= alter_db_optr fsync */
{
195
,
-
2
},
/* (116) alter_db_optr ::= alter_db_optr blocks */
195
,
/* (120) alter_db_optr ::= alter_db_optr update */
{
195
,
-
2
},
/* (117) alter_db_optr ::= alter_db_optr comp */
195
,
/* (121) alter_db_optr ::= alter_db_optr cachelast */
{
195
,
-
2
},
/* (118) alter_db_optr ::= alter_db_optr wal */
196
,
/* (122) alter_topic_optr ::= alter_db_optr */
{
195
,
-
2
},
/* (119) alter_db_optr ::= alter_db_optr fsync */
196
,
/* (123) alter_topic_optr ::= alter_topic_optr partitions */
{
195
,
-
2
},
/* (120) alter_db_optr ::= alter_db_optr update */
227
,
/* (124) typename ::= ids */
{
195
,
-
2
},
/* (121) alter_db_optr ::= alter_db_optr cachelast */
227
,
/* (125) typename ::= ids LP signed RP */
{
196
,
-
1
},
/* (122) alter_topic_optr ::= alter_db_optr */
227
,
/* (126) typename ::= ids UNSIGNED */
{
196
,
-
2
},
/* (123) alter_topic_optr ::= alter_topic_optr partitions */
228
,
/* (127) signed ::= INTEGER */
{
227
,
-
1
},
/* (124) typename ::= ids */
228
,
/* (128) signed ::= PLUS INTEGER */
{
227
,
-
4
},
/* (125) typename ::= ids LP signed RP */
228
,
/* (129) signed ::= MINUS INTEGER */
{
227
,
-
2
},
/* (126) typename ::= ids UNSIGNED */
190
,
/* (130) cmd ::= CREATE TABLE create_table_args */
{
228
,
-
1
},
/* (127) signed ::= INTEGER */
190
,
/* (131) cmd ::= CREATE TABLE create_stable_args */
{
228
,
-
2
},
/* (128) signed ::= PLUS INTEGER */
190
,
/* (132) cmd ::= CREATE STABLE create_stable_args */
{
228
,
-
2
},
/* (129) signed ::= MINUS INTEGER */
190
,
/* (133) cmd ::= CREATE TABLE create_table_list */
{
190
,
-
3
},
/* (130) cmd ::= CREATE TABLE create_table_args */
231
,
/* (134) create_table_list ::= create_from_stable */
{
190
,
-
3
},
/* (131) cmd ::= CREATE TABLE create_stable_args */
231
,
/* (135) create_table_list ::= create_table_list create_from_stable */
{
190
,
-
3
},
/* (132) cmd ::= CREATE STABLE create_stable_args */
229
,
/* (136) create_table_args ::= ifnotexists ids cpxName LP columnlist RP */
{
190
,
-
3
},
/* (133) cmd ::= CREATE TABLE create_table_list */
230
,
/* (137) create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP */
{
231
,
-
1
},
/* (134) create_table_list ::= create_from_stable */
232
,
/* (138) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP */
{
231
,
-
2
},
/* (135) create_table_list ::= create_table_list create_from_stable */
232
,
/* (139) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP */
{
229
,
-
6
},
/* (136) create_table_args ::= ifnotexists ids cpxName LP columnlist RP */
234
,
/* (140) tagNamelist ::= tagNamelist COMMA ids */
{
230
,
-
10
},
/* (137) create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP */
234
,
/* (141) tagNamelist ::= ids */
{
232
,
-
10
},
/* (138) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP */
229
,
/* (142) create_table_args ::= ifnotexists ids cpxName AS select */
{
232
,
-
13
},
/* (139) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP */
233
,
/* (143) columnlist ::= columnlist COMMA column */
{
234
,
-
3
},
/* (140) tagNamelist ::= tagNamelist COMMA ids */
233
,
/* (144) columnlist ::= column */
{
234
,
-
1
},
/* (141) tagNamelist ::= ids */
236
,
/* (145) column ::= ids typename */
{
229
,
-
5
},
/* (142) create_table_args ::= ifnotexists ids cpxName AS select */
211
,
/* (146) tagitemlist ::= tagitemlist COMMA tagitem */
{
233
,
-
3
},
/* (143) columnlist ::= columnlist COMMA column */
211
,
/* (147) tagitemlist ::= tagitem */
{
233
,
-
1
},
/* (144) columnlist ::= column */
237
,
/* (148) tagitem ::= INTEGER */
{
236
,
-
2
},
/* (145) column ::= ids typename */
237
,
/* (149) tagitem ::= FLOAT */
{
211
,
-
3
},
/* (146) tagitemlist ::= tagitemlist COMMA tagitem */
237
,
/* (150) tagitem ::= STRING */
{
211
,
-
1
},
/* (147) tagitemlist ::= tagitem */
237
,
/* (151) tagitem ::= BOOL */
{
237
,
-
1
},
/* (148) tagitem ::= INTEGER */
237
,
/* (152) tagitem ::= NULL */
{
237
,
-
1
},
/* (149) tagitem ::= FLOAT */
237
,
/* (153) tagitem ::= MINUS INTEGER */
{
237
,
-
1
},
/* (150) tagitem ::= STRING */
237
,
/* (154) tagitem ::= MINUS FLOAT */
{
237
,
-
1
},
/* (151) tagitem ::= BOOL */
237
,
/* (155) tagitem ::= PLUS INTEGER */
{
237
,
-
1
},
/* (152) tagitem ::= NULL */
237
,
/* (156) tagitem ::= PLUS FLOAT */
{
237
,
-
2
},
/* (153) tagitem ::= MINUS INTEGER */
235
,
/* (157) select ::= SELECT selcollist from where_opt interval_opt session_option windowstate_option fill_opt sliding_opt groupby_opt orderby_opt having_opt slimit_opt limit_opt */
{
237
,
-
2
},
/* (154) tagitem ::= MINUS FLOAT */
235
,
/* (158) select ::= LP select RP */
{
237
,
-
2
},
/* (155) tagitem ::= PLUS INTEGER */
251
,
/* (159) union ::= select */
{
237
,
-
2
},
/* (156) tagitem ::= PLUS FLOAT */
251
,
/* (160) union ::= union UNION ALL select */
{
235
,
-
14
},
/* (157) select ::= SELECT selcollist from where_opt interval_opt session_option windowstate_option fill_opt sliding_opt groupby_opt orderby_opt having_opt slimit_opt limit_opt */
190
,
/* (161) cmd ::= union */
{
235
,
-
3
},
/* (158) select ::= LP select RP */
235
,
/* (162) select ::= SELECT selcollist */
{
251
,
-
1
},
/* (159) union ::= select */
252
,
/* (163) sclp ::= selcollist COMMA */
{
251
,
-
4
},
/* (160) union ::= union UNION ALL select */
252
,
/* (164) sclp ::= */
{
190
,
-
1
},
/* (161) cmd ::= union */
238
,
/* (165) selcollist ::= sclp distinct expr as */
{
235
,
-
2
},
/* (162) select ::= SELECT selcollist */
238
,
/* (166) selcollist ::= sclp STAR */
{
252
,
-
2
},
/* (163) sclp ::= selcollist COMMA */
255
,
/* (167) as ::= AS ids */
{
252
,
0
},
/* (164) sclp ::= */
255
,
/* (168) as ::= ids */
{
238
,
-
4
},
/* (165) selcollist ::= sclp distinct expr as */
255
,
/* (169) as ::= */
{
238
,
-
2
},
/* (166) selcollist ::= sclp STAR */
253
,
/* (170) distinct ::= DISTINCT */
{
255
,
-
2
},
/* (167) as ::= AS ids */
253
,
/* (171) distinct ::= */
{
255
,
-
1
},
/* (168) as ::= ids */
239
,
/* (172) from ::= FROM tablelist */
{
255
,
0
},
/* (169) as ::= */
239
,
/* (173) from ::= FROM sub */
{
253
,
-
1
},
/* (170) distinct ::= DISTINCT */
257
,
/* (174) sub ::= LP union RP */
{
253
,
0
},
/* (171) distinct ::= */
257
,
/* (175) sub ::= LP union RP ids */
{
239
,
-
2
},
/* (172) from ::= FROM tablelist */
257
,
/* (176) sub ::= sub COMMA LP union RP ids */
{
239
,
-
2
},
/* (173) from ::= FROM sub */
256
,
/* (177) tablelist ::= ids cpxName */
{
257
,
-
3
},
/* (174) sub ::= LP union RP */
256
,
/* (178) tablelist ::= ids cpxName ids */
{
257
,
-
4
},
/* (175) sub ::= LP union RP ids */
256
,
/* (179) tablelist ::= tablelist COMMA ids cpxName */
{
257
,
-
6
},
/* (176) sub ::= sub COMMA LP union RP ids */
256
,
/* (180) tablelist ::= tablelist COMMA ids cpxName ids */
{
256
,
-
2
},
/* (177) tablelist ::= ids cpxName */
258
,
/* (181) tmvar ::= VARIABLE */
{
256
,
-
3
},
/* (178) tablelist ::= ids cpxName ids */
241
,
/* (182) interval_opt ::= INTERVAL LP tmvar RP */
{
256
,
-
4
},
/* (179) tablelist ::= tablelist COMMA ids cpxName */
241
,
/* (183) interval_opt ::= INTERVAL LP tmvar COMMA tmvar RP */
{
256
,
-
5
},
/* (180) tablelist ::= tablelist COMMA ids cpxName ids */
241
,
/* (184) interval_opt ::= */
{
258
,
-
1
},
/* (181) tmvar ::= VARIABLE */
242
,
/* (185) session_option ::= */
{
241
,
-
4
},
/* (182) interval_opt ::= INTERVAL LP tmvar RP */
242
,
/* (186) session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
{
241
,
-
6
},
/* (183) interval_opt ::= INTERVAL LP tmvar COMMA tmvar RP */
243
,
/* (187) windowstate_option ::= */
{
241
,
0
},
/* (184) interval_opt ::= */
243
,
/* (188) windowstate_option ::= STATE_WINDOW LP ids RP */
{
242
,
0
},
/* (185) session_option ::= */
244
,
/* (189) fill_opt ::= */
{
242
,
-
7
},
/* (186) session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
244
,
/* (190) fill_opt ::= FILL LP ID COMMA tagitemlist RP */
{
243
,
0
},
/* (187) windowstate_option ::= */
244
,
/* (191) fill_opt ::= FILL LP ID RP */
{
243
,
-
4
},
/* (188) windowstate_option ::= STATE_WINDOW LP ids RP */
245
,
/* (192) sliding_opt ::= SLIDING LP tmvar RP */
{
244
,
0
},
/* (189) fill_opt ::= */
245
,
/* (193) sliding_opt ::= */
{
244
,
-
6
},
/* (190) fill_opt ::= FILL LP ID COMMA tagitemlist RP */
247
,
/* (194) orderby_opt ::= */
{
244
,
-
4
},
/* (191) fill_opt ::= FILL LP ID RP */
247
,
/* (195) orderby_opt ::= ORDER BY sortlist */
{
245
,
-
4
},
/* (192) sliding_opt ::= SLIDING LP tmvar RP */
259
,
/* (196) sortlist ::= sortlist COMMA item sortorder */
{
245
,
0
},
/* (193) sliding_opt ::= */
259
,
/* (197) sortlist ::= item sortorder */
{
247
,
0
},
/* (194) orderby_opt ::= */
261
,
/* (198) item ::= ids cpxName */
{
247
,
-
3
},
/* (195) orderby_opt ::= ORDER BY sortlist */
262
,
/* (199) sortorder ::= ASC */
{
259
,
-
4
},
/* (196) sortlist ::= sortlist COMMA item sortorder */
262
,
/* (200) sortorder ::= DESC */
{
259
,
-
2
},
/* (197) sortlist ::= item sortorder */
262
,
/* (201) sortorder ::= */
{
261
,
-
2
},
/* (198) item ::= ids cpxName */
246
,
/* (202) groupby_opt ::= */
{
262
,
-
1
},
/* (199) sortorder ::= ASC */
246
,
/* (203) groupby_opt ::= GROUP BY grouplist */
{
262
,
-
1
},
/* (200) sortorder ::= DESC */
263
,
/* (204) grouplist ::= grouplist COMMA item */
{
262
,
0
},
/* (201) sortorder ::= */
263
,
/* (205) grouplist ::= item */
{
246
,
0
},
/* (202) groupby_opt ::= */
248
,
/* (206) having_opt ::= */
{
246
,
-
3
},
/* (203) groupby_opt ::= GROUP BY grouplist */
248
,
/* (207) having_opt ::= HAVING expr */
{
263
,
-
3
},
/* (204) grouplist ::= grouplist COMMA item */
250
,
/* (208) limit_opt ::= */
{
263
,
-
1
},
/* (205) grouplist ::= item */
250
,
/* (209) limit_opt ::= LIMIT signed */
{
248
,
0
},
/* (206) having_opt ::= */
250
,
/* (210) limit_opt ::= LIMIT signed OFFSET signed */
{
248
,
-
2
},
/* (207) having_opt ::= HAVING expr */
250
,
/* (211) limit_opt ::= LIMIT signed COMMA signed */
{
250
,
0
},
/* (208) limit_opt ::= */
249
,
/* (212) slimit_opt ::= */
{
250
,
-
2
},
/* (209) limit_opt ::= LIMIT signed */
249
,
/* (213) slimit_opt ::= SLIMIT signed */
{
250
,
-
4
},
/* (210) limit_opt ::= LIMIT signed OFFSET signed */
249
,
/* (214) slimit_opt ::= SLIMIT signed SOFFSET signed */
{
250
,
-
4
},
/* (211) limit_opt ::= LIMIT signed COMMA signed */
249
,
/* (215) slimit_opt ::= SLIMIT signed COMMA signed */
{
249
,
0
},
/* (212) slimit_opt ::= */
240
,
/* (216) where_opt ::= */
{
249
,
-
2
},
/* (213) slimit_opt ::= SLIMIT signed */
240
,
/* (217) where_opt ::= WHERE expr */
{
249
,
-
4
},
/* (214) slimit_opt ::= SLIMIT signed SOFFSET signed */
254
,
/* (218) expr ::= LP expr RP */
{
249
,
-
4
},
/* (215) slimit_opt ::= SLIMIT signed COMMA signed */
254
,
/* (219) expr ::= ID */
{
240
,
0
},
/* (216) where_opt ::= */
254
,
/* (220) expr ::= ID DOT ID */
{
240
,
-
2
},
/* (217) where_opt ::= WHERE expr */
254
,
/* (221) expr ::= ID DOT STAR */
{
254
,
-
3
},
/* (218) expr ::= LP expr RP */
254
,
/* (222) expr ::= INTEGER */
{
254
,
-
1
},
/* (219) expr ::= ID */
254
,
/* (223) expr ::= MINUS INTEGER */
{
254
,
-
3
},
/* (220) expr ::= ID DOT ID */
254
,
/* (224) expr ::= PLUS INTEGER */
{
254
,
-
3
},
/* (221) expr ::= ID DOT STAR */
254
,
/* (225) expr ::= FLOAT */
{
254
,
-
1
},
/* (222) expr ::= INTEGER */
254
,
/* (226) expr ::= MINUS FLOAT */
{
254
,
-
2
},
/* (223) expr ::= MINUS INTEGER */
254
,
/* (227) expr ::= PLUS FLOAT */
{
254
,
-
2
},
/* (224) expr ::= PLUS INTEGER */
254
,
/* (228) expr ::= STRING */
{
254
,
-
1
},
/* (225) expr ::= FLOAT */
254
,
/* (229) expr ::= NOW */
{
254
,
-
2
},
/* (226) expr ::= MINUS FLOAT */
254
,
/* (230) expr ::= VARIABLE */
{
254
,
-
2
},
/* (227) expr ::= PLUS FLOAT */
254
,
/* (231) expr ::= PLUS VARIABLE */
{
254
,
-
1
},
/* (228) expr ::= STRING */
254
,
/* (232) expr ::= MINUS VARIABLE */
{
254
,
-
1
},
/* (229) expr ::= NOW */
254
,
/* (233) expr ::= BOOL */
{
254
,
-
1
},
/* (230) expr ::= VARIABLE */
254
,
/* (234) expr ::= NULL */
{
254
,
-
2
},
/* (231) expr ::= PLUS VARIABLE */
254
,
/* (235) expr ::= ID LP exprlist RP */
{
254
,
-
2
},
/* (232) expr ::= MINUS VARIABLE */
254
,
/* (236) expr ::= ID LP STAR RP */
{
254
,
-
1
},
/* (233) expr ::= BOOL */
254
,
/* (237) expr ::= expr IS NULL */
{
254
,
-
1
},
/* (234) expr ::= NULL */
254
,
/* (238) expr ::= expr IS NOT NULL */
{
254
,
-
4
},
/* (235) expr ::= ID LP exprlist RP */
254
,
/* (239) expr ::= expr LT expr */
{
254
,
-
4
},
/* (236) expr ::= ID LP STAR RP */
254
,
/* (240) expr ::= expr GT expr */
{
254
,
-
3
},
/* (237) expr ::= expr IS NULL */
254
,
/* (241) expr ::= expr LE expr */
{
254
,
-
4
},
/* (238) expr ::= expr IS NOT NULL */
254
,
/* (242) expr ::= expr GE expr */
{
254
,
-
3
},
/* (239) expr ::= expr LT expr */
254
,
/* (243) expr ::= expr NE expr */
{
254
,
-
3
},
/* (240) expr ::= expr GT expr */
254
,
/* (244) expr ::= expr EQ expr */
{
254
,
-
3
},
/* (241) expr ::= expr LE expr */
254
,
/* (245) expr ::= expr BETWEEN expr AND expr */
{
254
,
-
3
},
/* (242) expr ::= expr GE expr */
254
,
/* (246) expr ::= expr AND expr */
{
254
,
-
3
},
/* (243) expr ::= expr NE expr */
254
,
/* (247) expr ::= expr OR expr */
{
254
,
-
3
},
/* (244) expr ::= expr EQ expr */
254
,
/* (248) expr ::= expr PLUS expr */
{
254
,
-
5
},
/* (245) expr ::= expr BETWEEN expr AND expr */
254
,
/* (249) expr ::= expr MINUS expr */
{
254
,
-
3
},
/* (246) expr ::= expr AND expr */
254
,
/* (250) expr ::= expr STAR expr */
{
254
,
-
3
},
/* (247) expr ::= expr OR expr */
254
,
/* (251) expr ::= expr SLASH expr */
{
254
,
-
3
},
/* (248) expr ::= expr PLUS expr */
254
,
/* (252) expr ::= expr REM expr */
{
254
,
-
3
},
/* (249) expr ::= expr MINUS expr */
254
,
/* (253) expr ::= expr LIKE expr */
{
254
,
-
3
},
/* (250) expr ::= expr STAR expr */
254
,
/* (254) expr ::= expr IN LP exprlist RP */
{
254
,
-
3
},
/* (251) expr ::= expr SLASH expr */
264
,
/* (255) exprlist ::= exprlist COMMA expritem */
{
254
,
-
3
},
/* (252) expr ::= expr REM expr */
264
,
/* (256) exprlist ::= expritem */
{
254
,
-
3
},
/* (253) expr ::= expr LIKE expr */
265
,
/* (257) expritem ::= expr */
{
254
,
-
5
},
/* (254) expr ::= expr IN LP exprlist RP */
265
,
/* (258) expritem ::= */
{
264
,
-
3
},
/* (255) exprlist ::= exprlist COMMA expritem */
190
,
/* (259) cmd ::= RESET QUERY CACHE */
{
264
,
-
1
},
/* (256) exprlist ::= expritem */
190
,
/* (260) cmd ::= SYNCDB ids REPLICA */
{
265
,
-
1
},
/* (257) expritem ::= expr */
190
,
/* (261) cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
{
265
,
0
},
/* (258) expritem ::= */
190
,
/* (262) cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
{
190
,
-
3
},
/* (259) cmd ::= RESET QUERY CACHE */
190
,
/* (263) cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist */
{
190
,
-
3
},
/* (260) cmd ::= SYNCDB ids REPLICA */
190
,
/* (264) cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
{
190
,
-
7
},
/* (261) cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
190
,
/* (265) cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
{
190
,
-
7
},
/* (262) cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
190
,
/* (266) cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
{
190
,
-
7
},
/* (263) cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
190
,
/* (267) cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
{
190
,
-
7
},
/* (264) cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
190
,
/* (268) cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist */
{
190
,
-
8
},
/* (265) cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
190
,
/* (269) cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
{
190
,
-
9
},
/* (266) cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
190
,
/* (270) cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
{
190
,
-
7
},
/* (267) cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
190
,
/* (271) cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist */
{
190
,
-
7
},
/* (268) cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
190
,
/* (272) cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
{
190
,
-
7
},
/* (269) cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
190
,
/* (273) cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
{
190
,
-
7
},
/* (270) cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
190
,
/* (274) cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
{
190
,
-
8
},
/* (271) cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
190
,
/* (275) cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem */
{
190
,
-
3
},
/* (272) cmd ::= KILL CONNECTION INTEGER */
190
,
/* (276) cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist */
{
190
,
-
5
},
/* (273) cmd ::= KILL STREAM INTEGER COLON INTEGER */
190
,
/* (277) cmd ::= KILL CONNECTION INTEGER */
{
190
,
-
5
},
/* (274) cmd ::= KILL QUERY INTEGER COLON INTEGER */
190
,
/* (278) cmd ::= KILL STREAM INTEGER COLON INTEGER */
190
,
/* (279) cmd ::= KILL QUERY INTEGER COLON INTEGER */
};
/* For rule J, yyRuleInfoNRhs[J] contains the negative of the number
** of symbols on the right-hand side of that rule. */
static
const
signed
char
yyRuleInfoNRhs
[]
=
{
-
1
,
/* (0) program ::= cmd */
-
2
,
/* (1) cmd ::= SHOW DATABASES */
-
2
,
/* (2) cmd ::= SHOW TOPICS */
-
2
,
/* (3) cmd ::= SHOW MNODES */
-
2
,
/* (4) cmd ::= SHOW DNODES */
-
2
,
/* (5) cmd ::= SHOW ACCOUNTS */
-
2
,
/* (6) cmd ::= SHOW USERS */
-
2
,
/* (7) cmd ::= SHOW MODULES */
-
2
,
/* (8) cmd ::= SHOW QUERIES */
-
2
,
/* (9) cmd ::= SHOW CONNECTIONS */
-
2
,
/* (10) cmd ::= SHOW STREAMS */
-
2
,
/* (11) cmd ::= SHOW VARIABLES */
-
2
,
/* (12) cmd ::= SHOW SCORES */
-
2
,
/* (13) cmd ::= SHOW GRANTS */
-
2
,
/* (14) cmd ::= SHOW VNODES */
-
3
,
/* (15) cmd ::= SHOW VNODES IPTOKEN */
0
,
/* (16) dbPrefix ::= */
-
2
,
/* (17) dbPrefix ::= ids DOT */
0
,
/* (18) cpxName ::= */
-
2
,
/* (19) cpxName ::= DOT ids */
-
5
,
/* (20) cmd ::= SHOW CREATE TABLE ids cpxName */
-
5
,
/* (21) cmd ::= SHOW CREATE STABLE ids cpxName */
-
4
,
/* (22) cmd ::= SHOW CREATE DATABASE ids */
-
3
,
/* (23) cmd ::= SHOW dbPrefix TABLES */
-
5
,
/* (24) cmd ::= SHOW dbPrefix TABLES LIKE ids */
-
3
,
/* (25) cmd ::= SHOW dbPrefix STABLES */
-
5
,
/* (26) cmd ::= SHOW dbPrefix STABLES LIKE ids */
-
3
,
/* (27) cmd ::= SHOW dbPrefix VGROUPS */
-
4
,
/* (28) cmd ::= SHOW dbPrefix VGROUPS ids */
-
5
,
/* (29) cmd ::= DROP TABLE ifexists ids cpxName */
-
5
,
/* (30) cmd ::= DROP STABLE ifexists ids cpxName */
-
4
,
/* (31) cmd ::= DROP DATABASE ifexists ids */
-
4
,
/* (32) cmd ::= DROP TOPIC ifexists ids */
-
3
,
/* (33) cmd ::= DROP DNODE ids */
-
3
,
/* (34) cmd ::= DROP USER ids */
-
3
,
/* (35) cmd ::= DROP ACCOUNT ids */
-
2
,
/* (36) cmd ::= USE ids */
-
3
,
/* (37) cmd ::= DESCRIBE ids cpxName */
-
5
,
/* (38) cmd ::= ALTER USER ids PASS ids */
-
5
,
/* (39) cmd ::= ALTER USER ids PRIVILEGE ids */
-
4
,
/* (40) cmd ::= ALTER DNODE ids ids */
-
5
,
/* (41) cmd ::= ALTER DNODE ids ids ids */
-
3
,
/* (42) cmd ::= ALTER LOCAL ids */
-
4
,
/* (43) cmd ::= ALTER LOCAL ids ids */
-
4
,
/* (44) cmd ::= ALTER DATABASE ids alter_db_optr */
-
4
,
/* (45) cmd ::= ALTER TOPIC ids alter_topic_optr */
-
4
,
/* (46) cmd ::= ALTER ACCOUNT ids acct_optr */
-
6
,
/* (47) cmd ::= ALTER ACCOUNT ids PASS ids acct_optr */
-
1
,
/* (48) ids ::= ID */
-
1
,
/* (49) ids ::= STRING */
-
2
,
/* (50) ifexists ::= IF EXISTS */
0
,
/* (51) ifexists ::= */
-
3
,
/* (52) ifnotexists ::= IF NOT EXISTS */
0
,
/* (53) ifnotexists ::= */
-
3
,
/* (54) cmd ::= CREATE DNODE ids */
-
6
,
/* (55) cmd ::= CREATE ACCOUNT ids PASS ids acct_optr */
-
5
,
/* (56) cmd ::= CREATE DATABASE ifnotexists ids db_optr */
-
5
,
/* (57) cmd ::= CREATE TOPIC ifnotexists ids topic_optr */
-
5
,
/* (58) cmd ::= CREATE USER ids PASS ids */
0
,
/* (59) pps ::= */
-
2
,
/* (60) pps ::= PPS INTEGER */
0
,
/* (61) tseries ::= */
-
2
,
/* (62) tseries ::= TSERIES INTEGER */
0
,
/* (63) dbs ::= */
-
2
,
/* (64) dbs ::= DBS INTEGER */
0
,
/* (65) streams ::= */
-
2
,
/* (66) streams ::= STREAMS INTEGER */
0
,
/* (67) storage ::= */
-
2
,
/* (68) storage ::= STORAGE INTEGER */
0
,
/* (69) qtime ::= */
-
2
,
/* (70) qtime ::= QTIME INTEGER */
0
,
/* (71) users ::= */
-
2
,
/* (72) users ::= USERS INTEGER */
0
,
/* (73) conns ::= */
-
2
,
/* (74) conns ::= CONNS INTEGER */
0
,
/* (75) state ::= */
-
2
,
/* (76) state ::= STATE ids */
-
9
,
/* (77) acct_optr ::= pps tseries storage streams qtime dbs users conns state */
-
2
,
/* (78) keep ::= KEEP tagitemlist */
-
2
,
/* (79) cache ::= CACHE INTEGER */
-
2
,
/* (80) replica ::= REPLICA INTEGER */
-
2
,
/* (81) quorum ::= QUORUM INTEGER */
-
2
,
/* (82) days ::= DAYS INTEGER */
-
2
,
/* (83) minrows ::= MINROWS INTEGER */
-
2
,
/* (84) maxrows ::= MAXROWS INTEGER */
-
2
,
/* (85) blocks ::= BLOCKS INTEGER */
-
2
,
/* (86) ctime ::= CTIME INTEGER */
-
2
,
/* (87) wal ::= WAL INTEGER */
-
2
,
/* (88) fsync ::= FSYNC INTEGER */
-
2
,
/* (89) comp ::= COMP INTEGER */
-
2
,
/* (90) prec ::= PRECISION STRING */
-
2
,
/* (91) update ::= UPDATE INTEGER */
-
2
,
/* (92) cachelast ::= CACHELAST INTEGER */
-
2
,
/* (93) partitions ::= PARTITIONS INTEGER */
0
,
/* (94) db_optr ::= */
-
2
,
/* (95) db_optr ::= db_optr cache */
-
2
,
/* (96) db_optr ::= db_optr replica */
-
2
,
/* (97) db_optr ::= db_optr quorum */
-
2
,
/* (98) db_optr ::= db_optr days */
-
2
,
/* (99) db_optr ::= db_optr minrows */
-
2
,
/* (100) db_optr ::= db_optr maxrows */
-
2
,
/* (101) db_optr ::= db_optr blocks */
-
2
,
/* (102) db_optr ::= db_optr ctime */
-
2
,
/* (103) db_optr ::= db_optr wal */
-
2
,
/* (104) db_optr ::= db_optr fsync */
-
2
,
/* (105) db_optr ::= db_optr comp */
-
2
,
/* (106) db_optr ::= db_optr prec */
-
2
,
/* (107) db_optr ::= db_optr keep */
-
2
,
/* (108) db_optr ::= db_optr update */
-
2
,
/* (109) db_optr ::= db_optr cachelast */
-
1
,
/* (110) topic_optr ::= db_optr */
-
2
,
/* (111) topic_optr ::= topic_optr partitions */
0
,
/* (112) alter_db_optr ::= */
-
2
,
/* (113) alter_db_optr ::= alter_db_optr replica */
-
2
,
/* (114) alter_db_optr ::= alter_db_optr quorum */
-
2
,
/* (115) alter_db_optr ::= alter_db_optr keep */
-
2
,
/* (116) alter_db_optr ::= alter_db_optr blocks */
-
2
,
/* (117) alter_db_optr ::= alter_db_optr comp */
-
2
,
/* (118) alter_db_optr ::= alter_db_optr wal */
-
2
,
/* (119) alter_db_optr ::= alter_db_optr fsync */
-
2
,
/* (120) alter_db_optr ::= alter_db_optr update */
-
2
,
/* (121) alter_db_optr ::= alter_db_optr cachelast */
-
1
,
/* (122) alter_topic_optr ::= alter_db_optr */
-
2
,
/* (123) alter_topic_optr ::= alter_topic_optr partitions */
-
1
,
/* (124) typename ::= ids */
-
4
,
/* (125) typename ::= ids LP signed RP */
-
2
,
/* (126) typename ::= ids UNSIGNED */
-
1
,
/* (127) signed ::= INTEGER */
-
2
,
/* (128) signed ::= PLUS INTEGER */
-
2
,
/* (129) signed ::= MINUS INTEGER */
-
3
,
/* (130) cmd ::= CREATE TABLE create_table_args */
-
3
,
/* (131) cmd ::= CREATE TABLE create_stable_args */
-
3
,
/* (132) cmd ::= CREATE STABLE create_stable_args */
-
3
,
/* (133) cmd ::= CREATE TABLE create_table_list */
-
1
,
/* (134) create_table_list ::= create_from_stable */
-
2
,
/* (135) create_table_list ::= create_table_list create_from_stable */
-
6
,
/* (136) create_table_args ::= ifnotexists ids cpxName LP columnlist RP */
-
10
,
/* (137) create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP */
-
10
,
/* (138) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP */
-
13
,
/* (139) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP */
-
3
,
/* (140) tagNamelist ::= tagNamelist COMMA ids */
-
1
,
/* (141) tagNamelist ::= ids */
-
5
,
/* (142) create_table_args ::= ifnotexists ids cpxName AS select */
-
3
,
/* (143) columnlist ::= columnlist COMMA column */
-
1
,
/* (144) columnlist ::= column */
-
2
,
/* (145) column ::= ids typename */
-
3
,
/* (146) tagitemlist ::= tagitemlist COMMA tagitem */
-
1
,
/* (147) tagitemlist ::= tagitem */
-
1
,
/* (148) tagitem ::= INTEGER */
-
1
,
/* (149) tagitem ::= FLOAT */
-
1
,
/* (150) tagitem ::= STRING */
-
1
,
/* (151) tagitem ::= BOOL */
-
1
,
/* (152) tagitem ::= NULL */
-
2
,
/* (153) tagitem ::= MINUS INTEGER */
-
2
,
/* (154) tagitem ::= MINUS FLOAT */
-
2
,
/* (155) tagitem ::= PLUS INTEGER */
-
2
,
/* (156) tagitem ::= PLUS FLOAT */
-
14
,
/* (157) select ::= SELECT selcollist from where_opt interval_opt session_option windowstate_option fill_opt sliding_opt groupby_opt orderby_opt having_opt slimit_opt limit_opt */
-
3
,
/* (158) select ::= LP select RP */
-
1
,
/* (159) union ::= select */
-
4
,
/* (160) union ::= union UNION ALL select */
-
1
,
/* (161) cmd ::= union */
-
2
,
/* (162) select ::= SELECT selcollist */
-
2
,
/* (163) sclp ::= selcollist COMMA */
0
,
/* (164) sclp ::= */
-
4
,
/* (165) selcollist ::= sclp distinct expr as */
-
2
,
/* (166) selcollist ::= sclp STAR */
-
2
,
/* (167) as ::= AS ids */
-
1
,
/* (168) as ::= ids */
0
,
/* (169) as ::= */
-
1
,
/* (170) distinct ::= DISTINCT */
0
,
/* (171) distinct ::= */
-
2
,
/* (172) from ::= FROM tablelist */
-
2
,
/* (173) from ::= FROM sub */
-
3
,
/* (174) sub ::= LP union RP */
-
4
,
/* (175) sub ::= LP union RP ids */
-
6
,
/* (176) sub ::= sub COMMA LP union RP ids */
-
2
,
/* (177) tablelist ::= ids cpxName */
-
3
,
/* (178) tablelist ::= ids cpxName ids */
-
4
,
/* (179) tablelist ::= tablelist COMMA ids cpxName */
-
5
,
/* (180) tablelist ::= tablelist COMMA ids cpxName ids */
-
1
,
/* (181) tmvar ::= VARIABLE */
-
4
,
/* (182) interval_opt ::= INTERVAL LP tmvar RP */
-
6
,
/* (183) interval_opt ::= INTERVAL LP tmvar COMMA tmvar RP */
0
,
/* (184) interval_opt ::= */
0
,
/* (185) session_option ::= */
-
7
,
/* (186) session_option ::= SESSION LP ids cpxName COMMA tmvar RP */
0
,
/* (187) windowstate_option ::= */
-
4
,
/* (188) windowstate_option ::= STATE_WINDOW LP ids RP */
0
,
/* (189) fill_opt ::= */
-
6
,
/* (190) fill_opt ::= FILL LP ID COMMA tagitemlist RP */
-
4
,
/* (191) fill_opt ::= FILL LP ID RP */
-
4
,
/* (192) sliding_opt ::= SLIDING LP tmvar RP */
0
,
/* (193) sliding_opt ::= */
0
,
/* (194) orderby_opt ::= */
-
3
,
/* (195) orderby_opt ::= ORDER BY sortlist */
-
4
,
/* (196) sortlist ::= sortlist COMMA item sortorder */
-
2
,
/* (197) sortlist ::= item sortorder */
-
2
,
/* (198) item ::= ids cpxName */
-
1
,
/* (199) sortorder ::= ASC */
-
1
,
/* (200) sortorder ::= DESC */
0
,
/* (201) sortorder ::= */
0
,
/* (202) groupby_opt ::= */
-
3
,
/* (203) groupby_opt ::= GROUP BY grouplist */
-
3
,
/* (204) grouplist ::= grouplist COMMA item */
-
1
,
/* (205) grouplist ::= item */
0
,
/* (206) having_opt ::= */
-
2
,
/* (207) having_opt ::= HAVING expr */
0
,
/* (208) limit_opt ::= */
-
2
,
/* (209) limit_opt ::= LIMIT signed */
-
4
,
/* (210) limit_opt ::= LIMIT signed OFFSET signed */
-
4
,
/* (211) limit_opt ::= LIMIT signed COMMA signed */
0
,
/* (212) slimit_opt ::= */
-
2
,
/* (213) slimit_opt ::= SLIMIT signed */
-
4
,
/* (214) slimit_opt ::= SLIMIT signed SOFFSET signed */
-
4
,
/* (215) slimit_opt ::= SLIMIT signed COMMA signed */
0
,
/* (216) where_opt ::= */
-
2
,
/* (217) where_opt ::= WHERE expr */
-
3
,
/* (218) expr ::= LP expr RP */
-
1
,
/* (219) expr ::= ID */
-
3
,
/* (220) expr ::= ID DOT ID */
-
3
,
/* (221) expr ::= ID DOT STAR */
-
1
,
/* (222) expr ::= INTEGER */
-
2
,
/* (223) expr ::= MINUS INTEGER */
-
2
,
/* (224) expr ::= PLUS INTEGER */
-
1
,
/* (225) expr ::= FLOAT */
-
2
,
/* (226) expr ::= MINUS FLOAT */
-
2
,
/* (227) expr ::= PLUS FLOAT */
-
1
,
/* (228) expr ::= STRING */
-
1
,
/* (229) expr ::= NOW */
-
1
,
/* (230) expr ::= VARIABLE */
-
2
,
/* (231) expr ::= PLUS VARIABLE */
-
2
,
/* (232) expr ::= MINUS VARIABLE */
-
1
,
/* (233) expr ::= BOOL */
-
1
,
/* (234) expr ::= NULL */
-
4
,
/* (235) expr ::= ID LP exprlist RP */
-
4
,
/* (236) expr ::= ID LP STAR RP */
-
3
,
/* (237) expr ::= expr IS NULL */
-
4
,
/* (238) expr ::= expr IS NOT NULL */
-
3
,
/* (239) expr ::= expr LT expr */
-
3
,
/* (240) expr ::= expr GT expr */
-
3
,
/* (241) expr ::= expr LE expr */
-
3
,
/* (242) expr ::= expr GE expr */
-
3
,
/* (243) expr ::= expr NE expr */
-
3
,
/* (244) expr ::= expr EQ expr */
-
5
,
/* (245) expr ::= expr BETWEEN expr AND expr */
-
3
,
/* (246) expr ::= expr AND expr */
-
3
,
/* (247) expr ::= expr OR expr */
-
3
,
/* (248) expr ::= expr PLUS expr */
-
3
,
/* (249) expr ::= expr MINUS expr */
-
3
,
/* (250) expr ::= expr STAR expr */
-
3
,
/* (251) expr ::= expr SLASH expr */
-
3
,
/* (252) expr ::= expr REM expr */
-
3
,
/* (253) expr ::= expr LIKE expr */
-
5
,
/* (254) expr ::= expr IN LP exprlist RP */
-
3
,
/* (255) exprlist ::= exprlist COMMA expritem */
-
1
,
/* (256) exprlist ::= expritem */
-
1
,
/* (257) expritem ::= expr */
0
,
/* (258) expritem ::= */
-
3
,
/* (259) cmd ::= RESET QUERY CACHE */
-
3
,
/* (260) cmd ::= SYNCDB ids REPLICA */
-
7
,
/* (261) cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */
-
7
,
/* (262) cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */
-
7
,
/* (263) cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist */
-
7
,
/* (264) cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
-
7
,
/* (265) cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
-
8
,
/* (266) cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
-
9
,
/* (267) cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
-
7
,
/* (268) cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist */
-
7
,
/* (269) cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
-
7
,
/* (270) cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
-
7
,
/* (271) cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist */
-
7
,
/* (272) cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
-
7
,
/* (273) cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
-
8
,
/* (274) cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
-
9
,
/* (275) cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem */
-
7
,
/* (276) cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist */
-
3
,
/* (277) cmd ::= KILL CONNECTION INTEGER */
-
5
,
/* (278) cmd ::= KILL STREAM INTEGER COLON INTEGER */
-
5
,
/* (279) cmd ::= KILL QUERY INTEGER COLON INTEGER */
};
};
static
void
yy_accept
(
yyParser
*
);
/* Forward Declaration */
static
void
yy_accept
(
yyParser
*
);
/* Forward Declaration */
...
@@ -2060,30 +2379,34 @@ static void yy_accept(yyParser*); /* Forward Declaration */
...
@@ -2060,30 +2379,34 @@ static void yy_accept(yyParser*); /* Forward Declaration */
** only called from one place, optimizing compilers will in-line it, which
** only called from one place, optimizing compilers will in-line it, which
** means that the extra parameters have no performance impact.
** means that the extra parameters have no performance impact.
*/
*/
static
void
yy_reduce
(
static
YYACTIONTYPE
yy_reduce
(
yyParser
*
yypParser
,
/* The parser */
yyParser
*
yypParser
,
/* The parser */
unsigned
int
yyruleno
,
/* Number of the rule by which to reduce */
unsigned
int
yyruleno
,
/* Number of the rule by which to reduce */
int
yyLookahead
,
/* Lookahead token, or YYNOCODE if none */
int
yyLookahead
,
/* Lookahead token, or YYNOCODE if none */
ParseTOKENTYPE
yyLookaheadToken
/* Value of the lookahead token */
ParseTOKENTYPE
yyLookaheadToken
/* Value of the lookahead token */
ParseCTX_PDECL
/* %extra_context */
){
){
int
yygoto
;
/* The next state */
int
yygoto
;
/* The next state */
int
yyact
;
/* The next action */
YYACTIONTYPE
yyact
;
/* The next action */
yyStackEntry
*
yymsp
;
/* The top of the parser's stack */
yyStackEntry
*
yymsp
;
/* The top of the parser's stack */
int
yysize
;
/* Amount to pop the stack */
int
yysize
;
/* Amount to pop the stack */
ParseARG_FETCH
;
ParseARG_FETCH
(
void
)
yyLookahead
;
(
void
)
yyLookahead
;
(
void
)
yyLookaheadToken
;
(
void
)
yyLookaheadToken
;
yymsp
=
yypParser
->
yytos
;
yymsp
=
yypParser
->
yytos
;
#ifndef NDEBUG
#ifndef NDEBUG
if
(
yyTraceFILE
&&
yyruleno
<
(
int
)(
sizeof
(
yyRuleName
)
/
sizeof
(
yyRuleName
[
0
]))
){
if
(
yyTraceFILE
&&
yyruleno
<
(
int
)(
sizeof
(
yyRuleName
)
/
sizeof
(
yyRuleName
[
0
]))
){
yysize
=
yyRuleInfo
[
yyruleno
].
nrhs
;
yysize
=
yyRuleInfo
NRhs
[
yyruleno
]
;
if
(
yysize
){
if
(
yysize
){
fprintf
(
yyTraceFILE
,
"%sReduce %d [%s]
, go
to state %d.
\n
"
,
fprintf
(
yyTraceFILE
,
"%sReduce %d [%s]
%s, pop back
to state %d.
\n
"
,
yyTracePrompt
,
yyTracePrompt
,
yyruleno
,
yyRuleName
[
yyruleno
],
yymsp
[
yysize
].
stateno
);
yyruleno
,
yyRuleName
[
yyruleno
],
yyruleno
<
YYNRULE_WITH_ACTION
?
""
:
" without external action"
,
yymsp
[
yysize
].
stateno
);
}
else
{
}
else
{
fprintf
(
yyTraceFILE
,
"%sReduce %d [%s].
\n
"
,
fprintf
(
yyTraceFILE
,
"%sReduce %d [%s]%s.
\n
"
,
yyTracePrompt
,
yyruleno
,
yyRuleName
[
yyruleno
]);
yyTracePrompt
,
yyruleno
,
yyRuleName
[
yyruleno
],
yyruleno
<
YYNRULE_WITH_ACTION
?
""
:
" without external action"
);
}
}
}
}
#endif
/* NDEBUG */
#endif
/* NDEBUG */
...
@@ -2091,7 +2414,7 @@ static void yy_reduce(
...
@@ -2091,7 +2414,7 @@ static void yy_reduce(
/* Check that the stack is large enough to grow by a single entry
/* Check that the stack is large enough to grow by a single entry
** if the RHS of the rule is empty. This ensures that there is room
** if the RHS of the rule is empty. This ensures that there is room
** enough on the stack to push the LHS value */
** enough on the stack to push the LHS value */
if
(
yyRuleInfo
[
yyruleno
].
nrhs
==
0
){
if
(
yyRuleInfo
NRhs
[
yyruleno
]
==
0
){
#ifdef YYTRACKMAXSTACKDEPTH
#ifdef YYTRACKMAXSTACKDEPTH
if
(
(
int
)(
yypParser
->
yytos
-
yypParser
->
yystack
)
>
yypParser
->
yyhwm
){
if
(
(
int
)(
yypParser
->
yytos
-
yypParser
->
yystack
)
>
yypParser
->
yyhwm
){
yypParser
->
yyhwm
++
;
yypParser
->
yyhwm
++
;
...
@@ -2101,13 +2424,19 @@ static void yy_reduce(
...
@@ -2101,13 +2424,19 @@ static void yy_reduce(
#if YYSTACKDEPTH>0
#if YYSTACKDEPTH>0
if
(
yypParser
->
yytos
>=
yypParser
->
yystackEnd
){
if
(
yypParser
->
yytos
>=
yypParser
->
yystackEnd
){
yyStackOverflow
(
yypParser
);
yyStackOverflow
(
yypParser
);
return
;
/* The call to yyStackOverflow() above pops the stack until it is
** empty, causing the main parser loop to exit. So the return value
** is never used and does not matter. */
return
0
;
}
}
#else
#else
if
(
yypParser
->
yytos
>=&
yypParser
->
yystack
[
yypParser
->
yystksz
-
1
]
){
if
(
yypParser
->
yytos
>=&
yypParser
->
yystack
[
yypParser
->
yystksz
-
1
]
){
if
(
yyGrowStack
(
yypParser
)
){
if
(
yyGrowStack
(
yypParser
)
){
yyStackOverflow
(
yypParser
);
yyStackOverflow
(
yypParser
);
return
;
/* The call to yyStackOverflow() above pops the stack until it is
** empty, causing the main parser loop to exit. So the return value
** is never used and does not matter. */
return
0
;
}
}
yymsp
=
yypParser
->
yytos
;
yymsp
=
yypParser
->
yytos
;
}
}
...
@@ -3047,14 +3376,21 @@ static void yy_reduce(
...
@@ -3047,14 +3376,21 @@ static void yy_reduce(
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
}
break
;
break
;
case
263
:
/* cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
case
263
:
/* cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist */
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy193
,
NULL
,
TSDB_ALTER_TABLE_CHANGE_COLUMN
,
-
1
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
264
:
/* cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */
{
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy193
,
NULL
,
TSDB_ALTER_TABLE_ADD_TAG_COLUMN
,
-
1
);
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy193
,
NULL
,
TSDB_ALTER_TABLE_ADD_TAG_COLUMN
,
-
1
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
}
break
;
break
;
case
26
4
:
/* cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
case
26
5
:
/* cmd ::= ALTER TABLE ids cpxName DROP TAG ids */
{
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
...
@@ -3065,7 +3401,7 @@ static void yy_reduce(
...
@@ -3065,7 +3401,7 @@ static void yy_reduce(
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
}
break
;
break
;
case
26
5
:
/* cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
case
26
6
:
/* cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */
{
{
yymsp
[
-
5
].
minor
.
yy0
.
n
+=
yymsp
[
-
4
].
minor
.
yy0
.
n
;
yymsp
[
-
5
].
minor
.
yy0
.
n
+=
yymsp
[
-
4
].
minor
.
yy0
.
n
;
...
@@ -3079,7 +3415,7 @@ static void yy_reduce(
...
@@ -3079,7 +3415,7 @@ static void yy_reduce(
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
}
break
;
break
;
case
26
6
:
/* cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
case
26
7
:
/* cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */
{
{
yymsp
[
-
6
].
minor
.
yy0
.
n
+=
yymsp
[
-
5
].
minor
.
yy0
.
n
;
yymsp
[
-
6
].
minor
.
yy0
.
n
+=
yymsp
[
-
5
].
minor
.
yy0
.
n
;
...
@@ -3091,14 +3427,21 @@ static void yy_reduce(
...
@@ -3091,14 +3427,21 @@ static void yy_reduce(
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
}
break
;
break
;
case
267
:
/* cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
case
268
:
/* cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist */
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy193
,
NULL
,
TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN
,
-
1
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
269
:
/* cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */
{
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy193
,
NULL
,
TSDB_ALTER_TABLE_ADD_COLUMN
,
TSDB_SUPER_TABLE
);
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy193
,
NULL
,
TSDB_ALTER_TABLE_ADD_COLUMN
,
TSDB_SUPER_TABLE
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
}
break
;
break
;
case
2
68
:
/* cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
case
2
70
:
/* cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */
{
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
...
@@ -3109,14 +3452,21 @@ static void yy_reduce(
...
@@ -3109,14 +3452,21 @@ static void yy_reduce(
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
}
break
;
break
;
case
269
:
/* cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
case
271
:
/* cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist */
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy193
,
NULL
,
TSDB_ALTER_TABLE_CHANGE_COLUMN
,
TSDB_SUPER_TABLE
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
272
:
/* cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */
{
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy193
,
NULL
,
TSDB_ALTER_TABLE_ADD_TAG_COLUMN
,
TSDB_SUPER_TABLE
);
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy193
,
NULL
,
TSDB_ALTER_TABLE_ADD_TAG_COLUMN
,
TSDB_SUPER_TABLE
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
}
break
;
break
;
case
27
0
:
/* cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
case
27
3
:
/* cmd ::= ALTER STABLE ids cpxName DROP TAG ids */
{
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
...
@@ -3127,7 +3477,7 @@ static void yy_reduce(
...
@@ -3127,7 +3477,7 @@ static void yy_reduce(
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
}
break
;
break
;
case
27
1
:
/* cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
case
27
4
:
/* cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */
{
{
yymsp
[
-
5
].
minor
.
yy0
.
n
+=
yymsp
[
-
4
].
minor
.
yy0
.
n
;
yymsp
[
-
5
].
minor
.
yy0
.
n
+=
yymsp
[
-
4
].
minor
.
yy0
.
n
;
...
@@ -3141,22 +3491,41 @@ static void yy_reduce(
...
@@ -3141,22 +3491,41 @@ static void yy_reduce(
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
}
break
;
break
;
case
272
:
/* cmd ::= KILL CONNECTION INTEGER */
case
275
:
/* cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem */
{
yymsp
[
-
6
].
minor
.
yy0
.
n
+=
yymsp
[
-
5
].
minor
.
yy0
.
n
;
toTSDBType
(
yymsp
[
-
2
].
minor
.
yy0
.
type
);
SArray
*
A
=
tVariantListAppendToken
(
NULL
,
&
yymsp
[
-
2
].
minor
.
yy0
,
-
1
);
A
=
tVariantListAppend
(
A
,
&
yymsp
[
0
].
minor
.
yy442
,
-
1
);
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
6
].
minor
.
yy0
,
NULL
,
A
,
TSDB_ALTER_TABLE_UPDATE_TAG_VAL
,
TSDB_SUPER_TABLE
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
276
:
/* cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist */
{
yymsp
[
-
4
].
minor
.
yy0
.
n
+=
yymsp
[
-
3
].
minor
.
yy0
.
n
;
SAlterTableInfo
*
pAlterTable
=
tSetAlterTableInfo
(
&
yymsp
[
-
4
].
minor
.
yy0
,
yymsp
[
0
].
minor
.
yy193
,
NULL
,
TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN
,
TSDB_SUPER_TABLE
);
setSqlInfo
(
pInfo
,
pAlterTable
,
NULL
,
TSDB_SQL_ALTER_TABLE
);
}
break
;
case
277
:
/* cmd ::= KILL CONNECTION INTEGER */
{
setKillSql
(
pInfo
,
TSDB_SQL_KILL_CONNECTION
,
&
yymsp
[
0
].
minor
.
yy0
);}
{
setKillSql
(
pInfo
,
TSDB_SQL_KILL_CONNECTION
,
&
yymsp
[
0
].
minor
.
yy0
);}
break
;
break
;
case
27
3
:
/* cmd ::= KILL STREAM INTEGER COLON INTEGER */
case
27
8
:
/* cmd ::= KILL STREAM INTEGER COLON INTEGER */
{
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
(
yymsp
[
-
1
].
minor
.
yy0
.
n
+
yymsp
[
0
].
minor
.
yy0
.
n
);
setKillSql
(
pInfo
,
TSDB_SQL_KILL_STREAM
,
&
yymsp
[
-
2
].
minor
.
yy0
);}
{
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
(
yymsp
[
-
1
].
minor
.
yy0
.
n
+
yymsp
[
0
].
minor
.
yy0
.
n
);
setKillSql
(
pInfo
,
TSDB_SQL_KILL_STREAM
,
&
yymsp
[
-
2
].
minor
.
yy0
);}
break
;
break
;
case
27
4
:
/* cmd ::= KILL QUERY INTEGER COLON INTEGER */
case
27
9
:
/* cmd ::= KILL QUERY INTEGER COLON INTEGER */
{
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
(
yymsp
[
-
1
].
minor
.
yy0
.
n
+
yymsp
[
0
].
minor
.
yy0
.
n
);
setKillSql
(
pInfo
,
TSDB_SQL_KILL_QUERY
,
&
yymsp
[
-
2
].
minor
.
yy0
);}
{
yymsp
[
-
2
].
minor
.
yy0
.
n
+=
(
yymsp
[
-
1
].
minor
.
yy0
.
n
+
yymsp
[
0
].
minor
.
yy0
.
n
);
setKillSql
(
pInfo
,
TSDB_SQL_KILL_QUERY
,
&
yymsp
[
-
2
].
minor
.
yy0
);}
break
;
break
;
default:
default:
break
;
break
;
/********** End reduce actions ************************************************/
/********** End reduce actions ************************************************/
};
};
assert
(
yyruleno
<
sizeof
(
yyRuleInfo
)
/
sizeof
(
yyRuleInfo
[
0
])
);
assert
(
yyruleno
<
sizeof
(
yyRuleInfo
Lhs
)
/
sizeof
(
yyRuleInfoLhs
[
0
])
);
yygoto
=
yyRuleInfo
[
yyruleno
].
lhs
;
yygoto
=
yyRuleInfo
Lhs
[
yyruleno
]
;
yysize
=
yyRuleInfo
[
yyruleno
].
nrhs
;
yysize
=
yyRuleInfo
NRhs
[
yyruleno
]
;
yyact
=
yy_find_reduce_action
(
yymsp
[
yysize
].
stateno
,(
YYCODETYPE
)
yygoto
);
yyact
=
yy_find_reduce_action
(
yymsp
[
yysize
].
stateno
,(
YYCODETYPE
)
yygoto
);
/* There are no SHIFTREDUCE actions on nonterminals because the table
/* There are no SHIFTREDUCE actions on nonterminals because the table
...
@@ -3171,6 +3540,7 @@ static void yy_reduce(
...
@@ -3171,6 +3540,7 @@ static void yy_reduce(
yymsp
->
stateno
=
(
YYACTIONTYPE
)
yyact
;
yymsp
->
stateno
=
(
YYACTIONTYPE
)
yyact
;
yymsp
->
major
=
(
YYCODETYPE
)
yygoto
;
yymsp
->
major
=
(
YYCODETYPE
)
yygoto
;
yyTraceShift
(
yypParser
,
yyact
,
"... then shift"
);
yyTraceShift
(
yypParser
,
yyact
,
"... then shift"
);
return
yyact
;
}
}
/*
/*
...
@@ -3180,7 +3550,8 @@ static void yy_reduce(
...
@@ -3180,7 +3550,8 @@ static void yy_reduce(
static
void
yy_parse_failed
(
static
void
yy_parse_failed
(
yyParser
*
yypParser
/* The parser */
yyParser
*
yypParser
/* The parser */
){
){
ParseARG_FETCH
;
ParseARG_FETCH
ParseCTX_FETCH
#ifndef NDEBUG
#ifndef NDEBUG
if
(
yyTraceFILE
){
if
(
yyTraceFILE
){
fprintf
(
yyTraceFILE
,
"%sFail!
\n
"
,
yyTracePrompt
);
fprintf
(
yyTraceFILE
,
"%sFail!
\n
"
,
yyTracePrompt
);
...
@@ -3191,7 +3562,8 @@ static void yy_parse_failed(
...
@@ -3191,7 +3562,8 @@ static void yy_parse_failed(
** parser fails */
** parser fails */
/************ Begin %parse_failure code ***************************************/
/************ Begin %parse_failure code ***************************************/
/************ End %parse_failure code *****************************************/
/************ End %parse_failure code *****************************************/
ParseARG_STORE
;
/* Suppress warning about unused %extra_argument variable */
ParseARG_STORE
/* Suppress warning about unused %extra_argument variable */
ParseCTX_STORE
}
}
#endif
/* YYNOERRORRECOVERY */
#endif
/* YYNOERRORRECOVERY */
...
@@ -3203,7 +3575,8 @@ static void yy_syntax_error(
...
@@ -3203,7 +3575,8 @@ static void yy_syntax_error(
int
yymajor
,
/* The major type of the error token */
int
yymajor
,
/* The major type of the error token */
ParseTOKENTYPE
yyminor
/* The minor type of the error token */
ParseTOKENTYPE
yyminor
/* The minor type of the error token */
){
){
ParseARG_FETCH
;
ParseARG_FETCH
ParseCTX_FETCH
#define TOKEN yyminor
#define TOKEN yyminor
/************ Begin %syntax_error code ****************************************/
/************ Begin %syntax_error code ****************************************/
...
@@ -3229,7 +3602,8 @@ static void yy_syntax_error(
...
@@ -3229,7 +3602,8 @@ static void yy_syntax_error(
assert
(
len
<=
outputBufLen
);
assert
(
len
<=
outputBufLen
);
/************ End %syntax_error code ******************************************/
/************ End %syntax_error code ******************************************/
ParseARG_STORE
;
/* Suppress warning about unused %extra_argument variable */
ParseARG_STORE
/* Suppress warning about unused %extra_argument variable */
ParseCTX_STORE
}
}
/*
/*
...
@@ -3238,7 +3612,8 @@ static void yy_syntax_error(
...
@@ -3238,7 +3612,8 @@ static void yy_syntax_error(
static
void
yy_accept
(
static
void
yy_accept
(
yyParser
*
yypParser
/* The parser */
yyParser
*
yypParser
/* The parser */
){
){
ParseARG_FETCH
;
ParseARG_FETCH
ParseCTX_FETCH
#ifndef NDEBUG
#ifndef NDEBUG
if
(
yyTraceFILE
){
if
(
yyTraceFILE
){
fprintf
(
yyTraceFILE
,
"%sAccept!
\n
"
,
yyTracePrompt
);
fprintf
(
yyTraceFILE
,
"%sAccept!
\n
"
,
yyTracePrompt
);
...
@@ -3253,7 +3628,8 @@ static void yy_accept(
...
@@ -3253,7 +3628,8 @@ static void yy_accept(
/*********** Begin %parse_accept code *****************************************/
/*********** Begin %parse_accept code *****************************************/
/*********** End %parse_accept code *******************************************/
/*********** End %parse_accept code *******************************************/
ParseARG_STORE
;
/* Suppress warning about unused %extra_argument variable */
ParseARG_STORE
/* Suppress warning about unused %extra_argument variable */
ParseCTX_STORE
}
}
/* The main parser program.
/* The main parser program.
...
@@ -3282,45 +3658,47 @@ void Parse(
...
@@ -3282,45 +3658,47 @@ void Parse(
ParseARG_PDECL
/* Optional %extra_argument parameter */
ParseARG_PDECL
/* Optional %extra_argument parameter */
){
){
YYMINORTYPE
yyminorunion
;
YYMINORTYPE
yyminorunion
;
unsigned
int
yyact
;
/* The parser action. */
YYACTIONTYPE
yyact
;
/* The parser action. */
#if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY)
#if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY)
int
yyendofinput
;
/* True if we are at the end of input */
int
yyendofinput
;
/* True if we are at the end of input */
#endif
#endif
#ifdef YYERRORSYMBOL
#ifdef YYERRORSYMBOL
int
yyerrorhit
=
0
;
/* True if yymajor has invoked an error */
int
yyerrorhit
=
0
;
/* True if yymajor has invoked an error */
#endif
#endif
yyParser
*
yypParser
;
/* The parser */
yyParser
*
yypParser
=
(
yyParser
*
)
yyp
;
/* The parser */
ParseCTX_FETCH
ParseARG_STORE
yypParser
=
(
yyParser
*
)
yyp
;
assert
(
yypParser
->
yytos
!=
0
);
assert
(
yypParser
->
yytos
!=
0
);
#if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY)
#if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY)
yyendofinput
=
(
yymajor
==
0
);
yyendofinput
=
(
yymajor
==
0
);
#endif
#endif
ParseARG_STORE
;
yyact
=
yypParser
->
yytos
->
stateno
;
#ifndef NDEBUG
#ifndef NDEBUG
if
(
yyTraceFILE
){
if
(
yyTraceFILE
){
int
stateno
=
yypParser
->
yytos
->
stateno
;
if
(
yyact
<
YY_MIN_REDUCE
){
if
(
stateno
<
YY_MIN_REDUCE
){
fprintf
(
yyTraceFILE
,
"%sInput '%s' in state %d
\n
"
,
fprintf
(
yyTraceFILE
,
"%sInput '%s' in state %d
\n
"
,
yyTracePrompt
,
yyTokenName
[
yymajor
],
stateno
);
yyTracePrompt
,
yyTokenName
[
yymajor
],
yyact
);
}
else
{
}
else
{
fprintf
(
yyTraceFILE
,
"%sInput '%s' with pending reduce %d
\n
"
,
fprintf
(
yyTraceFILE
,
"%sInput '%s' with pending reduce %d
\n
"
,
yyTracePrompt
,
yyTokenName
[
yymajor
],
stateno
-
YY_MIN_REDUCE
);
yyTracePrompt
,
yyTokenName
[
yymajor
],
yyact
-
YY_MIN_REDUCE
);
}
}
}
}
#endif
#endif
do
{
do
{
yyact
=
yy_find_shift_action
(
yypParser
,(
YYCODETYPE
)
yymajor
);
assert
(
yyact
==
yypParser
->
yytos
->
stateno
);
yyact
=
yy_find_shift_action
((
YYCODETYPE
)
yymajor
,
yyact
);
if
(
yyact
>=
YY_MIN_REDUCE
){
if
(
yyact
>=
YY_MIN_REDUCE
){
yy_reduce
(
yypParser
,
yyact
-
YY_MIN_REDUCE
,
yymajor
,
yyminor
);
yyact
=
yy_reduce
(
yypParser
,
yyact
-
YY_MIN_REDUCE
,
yymajor
,
yyminor
ParseCTX_PARAM
);
}
else
if
(
yyact
<=
YY_MAX_SHIFTREDUCE
){
}
else
if
(
yyact
<=
YY_MAX_SHIFTREDUCE
){
yy_shift
(
yypParser
,
yyact
,
yymajor
,
yyminor
);
yy_shift
(
yypParser
,
yyact
,
(
YYCODETYPE
)
yymajor
,
yyminor
);
#ifndef YYNOERRORRECOVERY
#ifndef YYNOERRORRECOVERY
yypParser
->
yyerrcnt
--
;
yypParser
->
yyerrcnt
--
;
#endif
#endif
yymajor
=
YYNOCODE
;
break
;
}
else
if
(
yyact
==
YY_ACCEPT_ACTION
){
}
else
if
(
yyact
==
YY_ACCEPT_ACTION
){
yypParser
->
yytos
--
;
yypParser
->
yytos
--
;
yy_accept
(
yypParser
);
yy_accept
(
yypParser
);
...
@@ -3371,10 +3749,9 @@ void Parse(
...
@@ -3371,10 +3749,9 @@ void Parse(
yymajor
=
YYNOCODE
;
yymajor
=
YYNOCODE
;
}
else
{
}
else
{
while
(
yypParser
->
yytos
>=
yypParser
->
yystack
while
(
yypParser
->
yytos
>=
yypParser
->
yystack
&&
yymx
!=
YYERRORSYMBOL
&&
(
yyact
=
yy_find_reduce_action
(
&&
(
yyact
=
yy_find_reduce_action
(
yypParser
->
yytos
->
stateno
,
yypParser
->
yytos
->
stateno
,
YYERRORSYMBOL
))
>
=
YY_MIN_
REDUCE
YYERRORSYMBOL
))
>
YY_MAX_SHIFT
REDUCE
){
){
yy_pop_parser_stack
(
yypParser
);
yy_pop_parser_stack
(
yypParser
);
}
}
...
@@ -3391,6 +3768,8 @@ void Parse(
...
@@ -3391,6 +3768,8 @@ void Parse(
}
}
yypParser
->
yyerrcnt
=
3
;
yypParser
->
yyerrcnt
=
3
;
yyerrorhit
=
1
;
yyerrorhit
=
1
;
if
(
yymajor
==
YYNOCODE
)
break
;
yyact
=
yypParser
->
yytos
->
stateno
;
#elif defined(YYNOERRORRECOVERY)
#elif defined(YYNOERRORRECOVERY)
/* If the YYNOERRORRECOVERY macro is defined, then do not attempt to
/* If the YYNOERRORRECOVERY macro is defined, then do not attempt to
** do any kind of error recovery. Instead, simply invoke the syntax
** do any kind of error recovery. Instead, simply invoke the syntax
...
@@ -3401,8 +3780,7 @@ void Parse(
...
@@ -3401,8 +3780,7 @@ void Parse(
*/
*/
yy_syntax_error
(
yypParser
,
yymajor
,
yyminor
);
yy_syntax_error
(
yypParser
,
yymajor
,
yyminor
);
yy_destructor
(
yypParser
,(
YYCODETYPE
)
yymajor
,
&
yyminorunion
);
yy_destructor
(
yypParser
,(
YYCODETYPE
)
yymajor
,
&
yyminorunion
);
yymajor
=
YYNOCODE
;
break
;
#else
/* YYERRORSYMBOL is not defined */
#else
/* YYERRORSYMBOL is not defined */
/* This is what we do if the grammar does not define ERROR:
/* This is what we do if the grammar does not define ERROR:
**
**
...
@@ -3424,10 +3802,10 @@ void Parse(
...
@@ -3424,10 +3802,10 @@ void Parse(
yypParser
->
yyerrcnt
=
-
1
;
yypParser
->
yyerrcnt
=
-
1
;
#endif
#endif
}
}
yymajor
=
YYNOCODE
;
break
;
#endif
#endif
}
}
}
while
(
yy
major
!=
YYNOCODE
&&
yy
pParser
->
yytos
>
yypParser
->
yystack
);
}
while
(
yypParser
->
yytos
>
yypParser
->
yystack
);
#ifndef NDEBUG
#ifndef NDEBUG
if
(
yyTraceFILE
){
if
(
yyTraceFILE
){
yyStackEntry
*
i
;
yyStackEntry
*
i
;
...
@@ -3442,3 +3820,17 @@ void Parse(
...
@@ -3442,3 +3820,17 @@ void Parse(
#endif
#endif
return
;
return
;
}
}
/*
** Return the fallback token corresponding to canonical token iToken, or
** 0 if iToken has no fallback.
*/
int
ParseFallback
(
int
iToken
){
#ifdef YYFALLBACK
assert
(
iToken
<
(
int
)(
sizeof
(
yyFallback
)
/
sizeof
(
yyFallback
[
0
]))
);
return
yyFallback
[
iToken
];
#else
(
void
)
iToken
;
return
0
;
#endif
}
src/util/src/ttokenizer.c
浏览文件 @
72e981ef
...
@@ -218,7 +218,8 @@ static SKeyword keywordTable[] = {
...
@@ -218,7 +218,8 @@ static SKeyword keywordTable[] = {
{
"DISTINCT"
,
TK_DISTINCT
},
{
"DISTINCT"
,
TK_DISTINCT
},
{
"PARTITIONS"
,
TK_PARTITIONS
},
{
"PARTITIONS"
,
TK_PARTITIONS
},
{
"TOPIC"
,
TK_TOPIC
},
{
"TOPIC"
,
TK_TOPIC
},
{
"TOPICS"
,
TK_TOPICS
}
{
"TOPICS"
,
TK_TOPICS
},
{
"MODIFY"
,
TK_MODIFY
}
};
};
static
const
char
isIdChar
[]
=
{
static
const
char
isIdChar
[]
=
{
...
...
tests/pytest/fulltest.sh
浏览文件 @
72e981ef
...
@@ -314,6 +314,8 @@ python3 ./test.py -f query/last_row_cache.py
...
@@ -314,6 +314,8 @@ python3 ./test.py -f query/last_row_cache.py
python3 ./test.py
-f
account/account_create.py
python3 ./test.py
-f
account/account_create.py
python3 ./test.py
-f
alter/alter_table.py
python3 ./test.py
-f
alter/alter_table.py
python3 ./test.py
-f
query/queryGroupbySort.py
python3 ./test.py
-f
query/queryGroupbySort.py
python3 ./test.py
-f
functions/function_session.py
python3 ./test.py
-f
functions/function_stateWindow.py
python3 ./test.py
-f
insert/unsignedInt.py
python3 ./test.py
-f
insert/unsignedInt.py
python3 ./test.py
-f
insert/unsignedBigint.py
python3 ./test.py
-f
insert/unsignedBigint.py
...
...
tests/pytest/functions/function_session.py
0 → 100644
浏览文件 @
72e981ef
###################################################################
# 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
sys
import
taos
from
util.log
import
*
from
util.cases
import
*
from
util.sql
import
*
#import numpy as np
class
TDTestCase
:
def
init
(
self
,
conn
,
logSql
):
tdLog
.
debug
(
"start to execute %s"
%
__file__
)
tdSql
.
init
(
conn
.
cursor
())
self
.
rowNum
=
10
self
.
ts
=
1537146000000
def
run
(
self
):
tdSql
.
prepare
()
tdSql
.
execute
(
'''create table test(ts timestamp, col1 tinyint, col2 smallint, col3 int, col4 bigint, col5 float, col6 double,
col7 bool, col8 binary(20), col9 nchar(20), col11 tinyint unsigned, col12 smallint unsigned, col13 int unsigned, col14 bigint unsigned) tags(loc nchar(20))'''
)
tdSql
.
execute
(
"create table test1 using test tags('beijing')"
)
for
i
in
range
(
self
.
rowNum
):
tdSql
.
execute
(
"insert into test1 values(%d, %d, %d, %d, %d, %f, %f, %d, 'taosdata%d', '涛思数据%d', %d, %d, %d, %d)"
%
(
self
.
ts
+
i
,
i
+
1
,
i
+
1
,
i
+
1
,
i
+
1
,
i
+
0.1
,
i
+
0.1
,
i
%
2
,
i
+
1
,
i
+
1
,
i
+
1
,
i
+
1
,
i
+
1
,
i
+
1
))
# operation not allowed on super table
tdSql
.
error
(
"select count(*) from test session(ts, 1s)"
)
# operation not allowde on col pro
tdSql
.
error
(
"select * from test1 session(ts, 1s)"
)
# operation not allowed on col except primary ts
tdSql
.
error
(
"select * from test1 session(col1, 1s)"
)
tdSql
.
query
(
"select count(*) from test1 session(ts, 1s)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
1
,
10
)
# append more data
for
i
in
range
(
self
.
rowNum
):
tdSql
.
execute
(
"insert into test1 values(%d, %d, %d, %d, %d, %f, %f, %d, 'taosdata%d', '涛思数据%d', %d, %d, %d, %d)"
%
(
self
.
ts
+
2000
,
i
+
1
,
i
+
1
,
i
+
1
,
i
+
1
,
i
+
0.1
,
i
+
0.1
,
i
%
2
,
i
+
1
,
i
+
1
,
i
+
1
,
i
+
1
,
i
+
1
,
i
+
1
))
tdSql
.
query
(
"select count(*) from test1 session(ts, 1s)"
)
tdSql
.
checkRows
(
2
)
tdSql
.
checkData
(
0
,
1
,
10
)
tdSql
.
checkData
(
1
,
1
,
1
)
tdSql
.
query
(
"select count(*) from test1 session(ts, 1m)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
1
,
11
)
tdSql
.
query
(
"select first(col1) from test1 session(ts, 1s)"
)
tdSql
.
checkRows
(
2
)
tdSql
.
checkData
(
0
,
1
,
1
)
tdSql
.
checkData
(
1
,
1
,
1
)
tdSql
.
query
(
"select first(col1), last(col2) from test1 session(ts, 1s)"
)
tdSql
.
checkRows
(
2
)
tdSql
.
checkData
(
0
,
1
,
1
)
tdSql
.
checkData
(
0
,
2
,
10
)
tdSql
.
checkData
(
1
,
1
,
1
)
tdSql
.
checkData
(
1
,
1
,
1
)
# add more function
def
stop
(
self
):
tdSql
.
close
()
tdLog
.
success
(
"%s successfully executed"
%
__file__
)
tdCases
.
addWindows
(
__file__
,
TDTestCase
())
tdCases
.
addLinux
(
__file__
,
TDTestCase
())
tests/pytest/functions/function_stateWindow.py
0 → 100644
浏览文件 @
72e981ef
###################################################################
# 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
sys
import
taos
from
util.log
import
*
from
util.cases
import
*
from
util.sql
import
*
#import numpy as np
class
TDTestCase
:
def
init
(
self
,
conn
,
logSql
):
tdLog
.
debug
(
"start to execute %s"
%
__file__
)
tdSql
.
init
(
conn
.
cursor
())
self
.
rowNum
=
10
self
.
ts
=
1537146000000
def
run
(
self
):
tdSql
.
prepare
()
tdSql
.
execute
(
'''create table test(ts timestamp, col1 tinyint, col2 smallint, col3 int, col4 bigint, col5 float, col6 double,
col7 bool, col8 binary(20), col9 nchar(20), col11 tinyint unsigned, col12 smallint unsigned, col13 int unsigned, col14 bigint unsigned) tags(loc nchar(20))'''
)
tdSql
.
execute
(
"create table test1 using test tags('beijing')"
)
col0
=
0
for
i
in
range
(
self
.
rowNum
):
tdSql
.
execute
(
"insert into test1 values(%d, %d, %d, %d, %d, %f, %f, %d, 'taosdata%d', '涛思数据%d', %d, %d, %d, %d)"
%
(
self
.
ts
+
i
,
col0
,
i
+
1
,
i
+
1
,
i
+
1
,
i
+
0.1
,
i
+
0.1
,
i
%
2
,
i
+
1
,
i
+
1
,
i
+
1
,
i
+
1
,
i
+
1
,
i
+
1
))
# operation not allowed on super table
tdSql
.
error
(
"select count(*) from test session(ts, 1s)"
)
# operation not allowde on col pro
tdSql
.
error
(
"select * from test1 session(ts, 1s)"
)
# operation not allowed on col except primary ts
tdSql
.
error
(
"select * from test1 session(col1, 1s)"
)
tdSql
.
query
(
"select count(*) from test1 state_window(col1)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
self
.
rowNum
)
# append more data
col0
=
col0
+
1
for
i
in
range
(
self
.
rowNum
):
tdSql
.
execute
(
"insert into test1 values(%d, %d, %d, %d, %d, %f, %f, %d, 'taosdata%d', '涛思数据%d', %d, %d, %d, %d)"
%
(
self
.
ts
+
i
+
10000
,
col0
,
i
+
1
,
i
+
1
,
i
+
1
,
i
+
0.1
,
i
+
0.1
,
i
%
2
,
i
+
1
,
i
+
1
,
i
+
1
,
i
+
1
,
i
+
1
,
i
+
1
))
tdSql
.
query
(
"select count(*) from test1 state_window(col1)"
)
tdSql
.
checkRows
(
2
)
tdSql
.
checkData
(
0
,
0
,
self
.
rowNum
)
tdSql
.
checkData
(
1
,
0
,
self
.
rowNum
)
tdSql
.
query
(
"select first(col1) from test1 state_window(col1)"
)
tdSql
.
checkRows
(
2
)
col0
=
col0
-
1
tdSql
.
checkData
(
0
,
0
,
col0
)
col0
=
col0
+
1
tdSql
.
checkData
(
1
,
0
,
col0
)
tdSql
.
query
(
"select first(col2) from test1 state_window(col1)"
)
tdSql
.
checkRows
(
2
)
tdSql
.
checkData
(
0
,
0
,
1
)
tdSql
.
checkData
(
1
,
0
,
1
)
tdSql
.
query
(
"select count(col1), first(col2) from test1 state_window(col1)"
)
tdSql
.
checkRows
(
2
)
tdSql
.
checkData
(
0
,
0
,
10
)
tdSql
.
checkData
(
0
,
1
,
1
)
tdSql
.
checkData
(
1
,
0
,
10
)
tdSql
.
checkData
(
1
,
1
,
1
)
#tdSql.query("select count(*) from test1 session(ts, 1m)")
#tdSql.checkRows(1)
#tdSql.checkData(0, 1, 11)
#tdSql.query("select first(col1) from test1 session(ts, 1s)")
#tdSql.checkRows(2)
#tdSql.checkData(0, 1, 1)
#tdSql.checkData(1, 1, 1)
#tdSql.query("select first(col1), last(col2) from test1 session(ts, 1s)")
#tdSql.checkRows(2)
#tdSql.checkData(0, 1, 1)
#tdSql.checkData(0, 2, 10)
#tdSql.checkData(1, 1, 1)
#tdSql.checkData(1, 1, 1)
def
stop
(
self
):
tdSql
.
close
()
tdLog
.
success
(
"%s successfully executed"
%
__file__
)
tdCases
.
addWindows
(
__file__
,
TDTestCase
())
tdCases
.
addLinux
(
__file__
,
TDTestCase
())
tests/pytest/manualTest/manual_alter_block.py
0 → 100644
浏览文件 @
72e981ef
###################################################################
# 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
sys
from
util.log
import
*
from
util.cases
import
*
from
util.sql
import
*
from
util.dnodes
import
tdDnodes
##TODO: auto test version is currently unsupported, need to come up with
# an auto test version in the future
class
TDTestCase
:
def
init
(
self
,
conn
,
logSql
):
tdLog
.
debug
(
"start to execute %s"
%
__file__
)
tdSql
.
init
(
conn
.
cursor
(),
logSql
)
def
getBuildPath
(
self
):
selfPath
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
if
(
"community"
in
selfPath
):
projPath
=
selfPath
[:
selfPath
.
find
(
"community"
)]
else
:
projPath
=
selfPath
[:
selfPath
.
find
(
"tests"
)]
for
root
,
dirs
,
files
in
os
.
walk
(
projPath
):
if
(
"taosd"
in
files
):
rootRealPath
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
root
))
if
(
"packaging"
not
in
rootRealPath
):
buildPath
=
root
[:
len
(
root
)
-
len
(
"/build/bin"
)]
break
return
buildPath
def
run
(
self
):
tdSql
.
prepare
()
buildPath
=
self
.
getBuildPath
()
if
(
buildPath
==
""
):
tdLog
.
exit
(
"taosd not found!"
)
else
:
tdLog
.
info
(
"taosd found in %s"
%
buildPath
)
binPath
=
buildPath
+
"/build/bin/"
#alter cache block to 3, then check alter
tdSql
.
execute
(
'alter database db blocks 3'
)
tdSql
.
query
(
'show databases'
)
tdSql
.
checkData
(
0
,
9
,
3
)
#run taosdemo to occupy all cache, need to manually check memory consumption
os
.
system
(
"%staosdemo -f tools/taosdemoAllTest/manual_block1_comp.json"
%
binPath
)
input
(
"please check memory usage for taosd. After checking, press enter"
)
#alter cache block to 8, then check alter
tdSql
.
execute
(
'alter database db blocks 8'
)
tdSql
.
query
(
'show databases'
)
tdSql
.
checkData
(
0
,
9
,
8
)
#run taosdemo to occupy all cache, need to manually check memory consumption
os
.
system
(
"%staosdemo -f tools/taosdemoAllTest/manual_block2.json"
%
binPath
)
input
(
"please check memory usage for taosd. After checking, press enter"
)
##expected result the peak memory consumption should increase by around 80MB = 5 blocks of cache
##test results
#2021/06/02 before:2621700K after: 2703640K memory usage increased by 80MB = 5 block
# confirm with the change in block. Baosheng Chang
def
stop
(
self
):
tdSql
.
close
()
tdLog
.
debug
(
"%s alter block manual check finish"
%
__file__
)
tdCases
.
addWindows
(
__file__
,
TDTestCase
())
tdCases
.
addLinux
(
__file__
,
TDTestCase
())
tests/pytest/manualTest/manual_alter_comp.py
0 → 100644
浏览文件 @
72e981ef
###################################################################
# 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
sys
from
util.log
import
*
from
util.cases
import
*
from
util.sql
import
*
from
util.dnodes
import
tdDnodes
##TODO: auto test version is currently unsupported, need to come up with
# an auto test version in the future
class
TDTestCase
:
def
init
(
self
,
conn
,
logSql
):
tdLog
.
debug
(
"start to execute %s"
%
__file__
)
tdSql
.
init
(
conn
.
cursor
(),
logSql
)
def
getRootPath
(
self
):
selfPath
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
print
(
selfPath
)
if
(
"community"
in
selfPath
):
projPath
=
selfPath
[:
selfPath
.
find
(
"community"
)]
print
(
projPath
)
else
:
projPath
=
selfPath
[:
selfPath
.
find
(
"tests"
)]
print
(
"test"
+
projPath
)
for
root
,
dirs
,
files
in
os
.
walk
(
projPath
):
if
(
'data'
in
dirs
and
'sim'
in
root
):
rootPath
=
root
return
rootPath
def
getBuildPath
(
self
):
selfPath
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
if
(
"community"
in
selfPath
):
projPath
=
selfPath
[:
selfPath
.
find
(
"community"
)]
else
:
projPath
=
selfPath
[:
selfPath
.
find
(
"tests"
)]
for
root
,
dirs
,
files
in
os
.
walk
(
projPath
):
if
(
"taosd"
in
files
):
rootRealPath
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
root
))
if
(
"packaging"
not
in
rootRealPath
):
buildPath
=
root
[:
len
(
root
)
-
len
(
"/build/bin"
)]
break
return
buildPath
def
run
(
self
):
dnodePath
=
self
.
getRootPath
()
os
.
system
(
f
'rm -rf
{
dnodePath
}
/data/*
{
dnodePath
}
/log/*'
)
tdSql
.
prepare
()
buildPath
=
self
.
getBuildPath
()
if
(
buildPath
==
""
):
tdLog
.
exit
(
"taosd not found!"
)
else
:
tdLog
.
info
(
"taosd found in %s"
%
buildPath
)
binPath
=
buildPath
+
"/build/bin/"
#comp is at 14
#check disk usage when comp=2
tdSql
.
query
(
'show databases'
)
tdSql
.
execute
(
'alter database db blocks 3'
)
# minimize the data in cache
tdSql
.
checkData
(
0
,
14
,
2
)
os
.
system
(
"%staosdemo -f tools/taosdemoAllTest/manual_block1_comp.json"
%
binPath
)
print
(
"default location is at /home/bryan/Documents/Github/TDengine/sim/dnode1/data/vnode"
)
print
(
'comp = 2'
)
input
(
"please check disk usage for taosd. After checking, press enter"
)
#removing all data file
os
.
system
(
f
'sudo rm -rf
{
dnodePath
}
/data/*
{
dnodePath
}
/log/*'
)
#print(f'rm -rf {dnodePath}/data/* {dnodePath}/log/*') #for showing the command ran
input
(
"please check if the pervious data is being deleted. Then, press enter"
)
#check disk usage when comp=0
tdSql
.
prepare
()
tdSql
.
query
(
'show databases'
)
tdSql
.
checkData
(
0
,
14
,
2
)
tdSql
.
execute
(
'alter database db comp 0'
)
tdSql
.
query
(
'show databases'
)
tdSql
.
checkData
(
0
,
14
,
0
)
os
.
system
(
"%staosdemo -f tools/taosdemoAllTest/manual_block1_comp.json"
%
binPath
)
print
(
"default location is at /home/bryan/Documents/Github/TDengine/sim/dnode1/data"
)
print
(
'comp = 0'
)
input
(
"please check disk usage for taosd. After checking, press enter"
)
#removing all data file
os
.
system
(
f
'sudo rm -rf
{
dnodePath
}
/data/*
{
dnodePath
}
/log/*'
)
#print(f'rm -rf {dnodePath}/data/* {dnodePath}/log/*') #for showing the command ran
input
(
"please check if the pervious data is being deleted. Then, press enter"
)
#check disk usage when comp=1
tdSql
.
prepare
()
tdSql
.
query
(
'show databases'
)
tdSql
.
checkData
(
0
,
14
,
2
)
tdSql
.
execute
(
'alter database db comp 1'
)
tdSql
.
query
(
'show databases'
)
tdSql
.
checkData
(
0
,
14
,
1
)
os
.
system
(
"%staosdemo -f tools/taosdemoAllTest/manual_block1_comp.json"
%
binPath
)
print
(
"default location is at /home/bryan/Documents/Github/TDengine/sim/dnode1/data"
)
print
(
'comp = 1'
)
input
(
"please check disk usage for taosd. After checking, press enter"
)
##test result
# 2021/06/02 comp=2:13M comp=1:57M comp=0:399M. Test past
# each row entered is identical Tester - Baosheng Chang
def
stop
(
self
):
tdSql
.
close
()
tdLog
.
debug
(
"%s alter block manual check finish"
%
__file__
)
tdCases
.
addWindows
(
__file__
,
TDTestCase
())
tdCases
.
addLinux
(
__file__
,
TDTestCase
())
tests/pytest/query/queryInsertValue.py
浏览文件 @
72e981ef
...
@@ -45,7 +45,7 @@ class TDTestCase:
...
@@ -45,7 +45,7 @@ class TDTestCase:
tdSql
.
query
(
"select * from st"
)
tdSql
.
query
(
"select * from st"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkRows
(
1
)
tdSql
.
execute
(
"alter table st add column len
gth
int"
)
tdSql
.
execute
(
"alter table st add column len int"
)
tdSql
.
execute
(
"insert into t1 values(now, 1, 2)"
)
tdSql
.
execute
(
"insert into t1 values(now, 1, 2)"
)
tdSql
.
query
(
"select last(*) from st"
)
tdSql
.
query
(
"select last(*) from st"
)
tdSql
.
checkData
(
0
,
2
,
2
);
tdSql
.
checkData
(
0
,
2
,
2
);
...
...
tests/pytest/tools/taosdemoAllTest/manual_block1_comp.json
0 → 100644
浏览文件 @
72e981ef
{
"filetype"
:
"insert"
,
"cfgdir"
:
"/etc/taos"
,
"host"
:
"127.0.0.1"
,
"port"
:
6030
,
"user"
:
"root"
,
"password"
:
"taosdata"
,
"thread_count"
:
4
,
"thread_count_create_tbl"
:
4
,
"result_file"
:
"./insert_res.txt"
,
"confirm_parameter_prompt"
:
"no"
,
"insert_interval"
:
0
,
"interlace_rows"
:
100
,
"num_of_records_per_req"
:
32766
,
"databases"
:
[{
"dbinfo"
:
{
"name"
:
"db"
,
"drop"
:
"no"
,
"replica"
:
1
,
"days"
:
10
,
"cache"
:
16
,
"blocks"
:
3
,
"precision"
:
"ms"
,
"keep"
:
3650
,
"minRows"
:
1000
,
"maxRows"
:
4096
,
"comp"
:
2
,
"walLevel"
:
1
,
"cachelast"
:
0
,
"quorum"
:
1
,
"fsync"
:
3000
,
"update"
:
0
},
"super_tables"
:
[{
"name"
:
"stb"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
500
,
"childtable_prefix"
:
"stb_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
20
,
"data_source"
:
"sample"
,
"insert_mode"
:
"taosc"
,
"insert_rows"
:
10000
,
"childtable_limit"
:
10
,
"childtable_offset"
:
100
,
"interlace_rows"
:
0
,
"insert_interval"
:
0
,
"max_sql_len"
:
1024000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"2019-10-01 00:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./tools/taosdemoAllTest/sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"INT"
,
"count"
:
3
},
{
"type"
:
"DOUBLE"
,
"count"
:
3
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
1
},
{
"type"
:
"BINARY"
,
"len"
:
32
,
"count"
:
1
},
{
"type"
:
"BOOL"
}],
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
2
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
5
}]
}]
}]
}
\ No newline at end of file
tests/pytest/tools/taosdemoAllTest/manual_block2.json
0 → 100644
浏览文件 @
72e981ef
{
"filetype"
:
"insert"
,
"cfgdir"
:
"/etc/taos"
,
"host"
:
"127.0.0.1"
,
"port"
:
6030
,
"user"
:
"root"
,
"password"
:
"taosdata"
,
"thread_count"
:
4
,
"thread_count_create_tbl"
:
4
,
"result_file"
:
"./insert_res.txt"
,
"confirm_parameter_prompt"
:
"no"
,
"insert_interval"
:
0
,
"interlace_rows"
:
100
,
"num_of_records_per_req"
:
32766
,
"databases"
:
[{
"dbinfo"
:
{
"name"
:
"db"
,
"drop"
:
"no"
,
"replica"
:
1
,
"days"
:
10
,
"cache"
:
16
,
"blocks"
:
8
,
"precision"
:
"ms"
,
"keep"
:
3650
,
"minRows"
:
100
,
"maxRows"
:
4096
,
"comp"
:
2
,
"walLevel"
:
1
,
"cachelast"
:
0
,
"quorum"
:
1
,
"fsync"
:
3000
,
"update"
:
0
},
"super_tables"
:
[{
"name"
:
"stb"
,
"child_table_exists"
:
"yes"
,
"childtable_count"
:
500
,
"childtable_prefix"
:
"stb_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
20
,
"data_source"
:
"rand"
,
"insert_mode"
:
"taosc"
,
"insert_rows"
:
100000
,
"childtable_limit"
:
500
,
"childtable_offset"
:
0
,
"interlace_rows"
:
0
,
"insert_interval"
:
0
,
"max_sql_len"
:
1024000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1
,
"start_timestamp"
:
"now"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"INT"
}],
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
2
}]
}]
}]
}
\ No newline at end of file
tests/script/general/parser/alter_column.sim
0 → 100644
浏览文件 @
72e981ef
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 1
system sh/exec.sh -n dnode1 -s start
sleep 100
sql connect
$dbPrefix = m_alt_db
$tbPrefix = m_alt_tb
$mtPrefix = m_alt_mt
$tbNum = 10
$rowNum = 5
$totalNum = $tbNum * $rowNum
$ts0 = 1537146000000
$delta = 600000
print ========== alter.sim
$i = 0
$db = $dbPrefix . $i
$mt = $mtPrefix . $i
sql drop database if exists $db
sql create database $db
sql use $db
##### alter table test, simeplest case
sql create table tb (ts timestamp, c1 int, c2 binary(10), c3 nchar(10))
sql insert into tb values (now, 1, "1", "1")
sql alter table tb modify column c2 binary(20);
if $rows != 0 then
return -1
endi
sql alter table tb modify column c3 nchar(20);
if $rows != 0 then
return -1
endi
sql create stable stb (ts timestamp, c1 int, c2 binary(10), c3 nchar(10)) tags(id1 int, id2 binary(10), id3 nchar(10))
sql create table tb1 using stb tags(1, "a", "b")
sql insert into tb1 values (now, 1, "1", "1")
sql alter stable stb modify column c2 binary(20);
if $rows != 0 then
return -1
endi
sql alter table stb modify column c2 binary(30);
if $rows != 0 then
return -1
endi
sql alter stable stb modify column c3 nchar(20);
if $rows != 0 then
return -1
endi
sql alter table stb modify column c3 nchar(30);
if $rows != 0 then
return -1
endi
sql alter table stb modify tag id2 binary(11);
if $rows != 0 then
return -1
endi
sql alter stable stb modify tag id2 binary(11);
if $rows != 0 then
return -1
endi
sql alter table stb modify tag id3 nchar(11);
if $rows != 0 then
return -1
endi
sql alter stable stb modify tag id3 nchar(11);
if $rows != 0 then
return -1
endi
##### ILLEGAL OPERATIONS
# try dropping columns that are defined in metric
sql_error alter table tb modify column c1 binary(10);
sql_error alter table tb modify column c1 double;
sql_error alter table tb modify column c2 int;
sql_error alter table tb modify column c2 binary(10);
sql_error alter table tb modify column c2 binary(9);
sql_error alter table tb modify column c2 binary(-9);
sql_error alter table tb modify column c2 binary(0);
sql_error alter table tb modify column c2 binary(17000);
sql_error alter table tb modify column c2 nchar(30);
sql_error alter table tb modify column c3 double;
sql_error alter table tb modify column c3 nchar(10);
sql_error alter table tb modify column c3 nchar(0);
sql_error alter table tb modify column c3 nchar(-1);
sql_error alter table tb modify column c3 binary(80);
sql_error alter table tb modify column c3 nchar(17000);
sql_error alter table tb modify column c3 nchar(100), c2 binary(30);
sql_error alter table tb modify column c1 nchar(100), c2 binary(30);
sql_error alter stable tb modify column c2 binary(30);
sql_error alter table tb modify tag c2 binary(30);
sql_error alter table stb modify tag id2 binary(10);
sql_error alter table stb modify tag id2 nchar(30);
sql_error alter stable stb modify tag id2 binary(10);
sql_error alter stable stb modify tag id2 nchar(30);
sql_error alter table stb modify tag id3 nchar(10);
sql_error alter table stb modify tag id3 binary(30);
sql_error alter stable stb modify tag id3 nchar(10);
sql_error alter stable stb modify tag id3 binary(30);
sql_error alter stable stb modify tag id1 binary(30);
sql_error alter stable stb modify tag c1 binary(30);
sql_error alter table tb1 modify column c2 binary(30);
sql_error alter table tb1 modify column c3 nchar(30);
sql_error alter table tb1 modify tag id2 binary(30);
sql_error alter table tb1 modify tag id3 nchar(30);
sql_error alter stable tb1 modify tag id2 binary(30);
sql_error alter stable tb1 modify tag id3 nchar(30);
sql_error alter stable tb1 modify column c2 binary(30);
system sh/exec.sh -n dnode1 -s stop -x SIGINT
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录