提交 e846ac56 编写于 作者: S Shengliang Guan

Merge remote-tracking branch 'origin/3.0' into feature/node

...@@ -6,13 +6,17 @@ project( ...@@ -6,13 +6,17 @@ project(
DESCRIPTION "An open-source big data platform designed and optimized for the Internet of Things(IOT)" DESCRIPTION "An open-source big data platform designed and optimized for the Internet of Things(IOT)"
) )
set(CMAKE_SUPPORT_DIR "${CMAKE_SOURCE_DIR}/cmake") if (NOT DEFINED TD_SOURCE_DIR)
set(CMAKE_CONTRIB_DIR "${CMAKE_SOURCE_DIR}/contrib") set( TD_SOURCE_DIR ${CMAKE_SOURCE_DIR} )
endif()
include(${CMAKE_SUPPORT_DIR}/cmake.platform) set(TD_SUPPORT_DIR "${TD_SOURCE_DIR}/cmake")
include(${CMAKE_SUPPORT_DIR}/cmake.define) set(TD_CONTRIB_DIR "${TD_SOURCE_DIR}/contrib")
include(${CMAKE_SUPPORT_DIR}/cmake.options)
include(${CMAKE_SUPPORT_DIR}/cmake.version) include(${TD_SUPPORT_DIR}/cmake.platform)
include(${TD_SUPPORT_DIR}/cmake.define)
include(${TD_SUPPORT_DIR}/cmake.options)
include(${TD_SUPPORT_DIR}/cmake.version)
# contrib # contrib
add_subdirectory(contrib) add_subdirectory(contrib)
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
ExternalProject_Add(bdb ExternalProject_Add(bdb
GIT_REPOSITORY https://github.com/berkeleydb/libdb.git GIT_REPOSITORY https://github.com/berkeleydb/libdb.git
GIT_TAG v5.3.28 GIT_TAG v5.3.28
SOURCE_DIR "${CMAKE_CONTRIB_DIR}/bdb" SOURCE_DIR "${TD_CONTRIB_DIR}/bdb"
BINARY_DIR "${CMAKE_CONTRIB_DIR}/bdb" BINARY_DIR "${TD_CONTRIB_DIR}/bdb"
#BUILD_IN_SOURCE TRUE #BUILD_IN_SOURCE TRUE
CONFIGURE_COMMAND COMMAND ./dist/configure --enable-debug CONFIGURE_COMMAND COMMAND ./dist/configure --enable-debug
BUILD_COMMAND "$(MAKE)" BUILD_COMMAND "$(MAKE)"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
ExternalProject_Add(cjson ExternalProject_Add(cjson
GIT_REPOSITORY https://github.com/taosdata-contrib/cJSON.git GIT_REPOSITORY https://github.com/taosdata-contrib/cJSON.git
GIT_TAG v1.7.15 GIT_TAG v1.7.15
SOURCE_DIR "${CMAKE_CONTRIB_DIR}/cJson" SOURCE_DIR "${TD_CONTRIB_DIR}/cJson"
BINARY_DIR "" BINARY_DIR ""
CONFIGURE_COMMAND "" CONFIGURE_COMMAND ""
BUILD_COMMAND "" BUILD_COMMAND ""
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
ExternalProject_Add(craft ExternalProject_Add(craft
GIT_REPOSITORY https://github.com/canonical/raft.git GIT_REPOSITORY https://github.com/canonical/raft.git
GIT_TAG v0.11.2 GIT_TAG v0.11.2
SOURCE_DIR "${CMAKE_CONTRIB_DIR}/craft" SOURCE_DIR "${TD_CONTRIB_DIR}/craft"
BINARY_DIR "${CMAKE_CONTRIB_DIR}/craft" BINARY_DIR "${TD_CONTRIB_DIR}/craft"
#BUILD_IN_SOURCE TRUE #BUILD_IN_SOURCE TRUE
# https://answers.ros.org/question/333125/how-to-include-external-automakeautoconf-projects-into-ament_cmake/ # https://answers.ros.org/question/333125/how-to-include-external-automakeautoconf-projects-into-ament_cmake/
CONFIGURE_COMMAND COMMAND autoreconf -i COMMAND ./configure --enable-example CONFIGURE_COMMAND COMMAND autoreconf -i COMMAND ./configure --enable-example
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
ExternalProject_Add(gnuregex ExternalProject_Add(gnuregex
URL https://launchpad.net/gnuregex/trunk/2.9/+download/libgnurx-src-2.9.zip URL https://launchpad.net/gnuregex/trunk/2.9/+download/libgnurx-src-2.9.zip
DOWNLOAD_NAME libgnurx-src.zip DOWNLOAD_NAME libgnurx-src.zip
SOURCE_DIR "${CMAKE_CONTRIB_DIR}/gnuregex" SOURCE_DIR "${TD_CONTRIB_DIR}/gnuregex"
BINARY_DIR "" BINARY_DIR ""
#BUILD_IN_SOURCE TRUE #BUILD_IN_SOURCE TRUE
CONFIGURE_COMMAND "" CONFIGURE_COMMAND ""
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
ExternalProject_Add(googletest ExternalProject_Add(googletest
GIT_REPOSITORY https://github.com/taosdata-contrib/googletest.git GIT_REPOSITORY https://github.com/taosdata-contrib/googletest.git
GIT_TAG release-1.11.0 GIT_TAG release-1.11.0
SOURCE_DIR "${CMAKE_CONTRIB_DIR}/googletest" SOURCE_DIR "${TD_CONTRIB_DIR}/googletest"
BINARY_DIR "" BINARY_DIR ""
CONFIGURE_COMMAND "" CONFIGURE_COMMAND ""
BUILD_COMMAND "" BUILD_COMMAND ""
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
ExternalProject_Add(iconv ExternalProject_Add(iconv
GIT_REPOSITORY https://github.com/win-iconv/win-iconv.git GIT_REPOSITORY https://github.com/win-iconv/win-iconv.git
GIT_TAG v0.0.8 GIT_TAG v0.0.8
SOURCE_DIR "${CMAKE_CONTRIB_DIR}/iconv" SOURCE_DIR "${TD_CONTRIB_DIR}/iconv"
BINARY_DIR "" BINARY_DIR ""
CONFIGURE_COMMAND "" CONFIGURE_COMMAND ""
BUILD_COMMAND "" BUILD_COMMAND ""
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
ExternalProject_Add(leveldb ExternalProject_Add(leveldb
GIT_REPOSITORY https://github.com/taosdata-contrib/leveldb.git GIT_REPOSITORY https://github.com/taosdata-contrib/leveldb.git
GIT_TAG master GIT_TAG master
SOURCE_DIR "${CMAKE_CONTRIB_DIR}/leveldb" SOURCE_DIR "${TD_CONTRIB_DIR}/leveldb"
BINARY_DIR "" BINARY_DIR ""
#BUILD_IN_SOURCE TRUE #BUILD_IN_SOURCE TRUE
CONFIGURE_COMMAND "" CONFIGURE_COMMAND ""
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
ExternalProject_Add(libuv ExternalProject_Add(libuv
GIT_REPOSITORY https://github.com/libuv/libuv.git GIT_REPOSITORY https://github.com/libuv/libuv.git
GIT_TAG v1.42.0 GIT_TAG v1.42.0
SOURCE_DIR "${CMAKE_CONTRIB_DIR}/libuv" SOURCE_DIR "${TD_CONTRIB_DIR}/libuv"
BINARY_DIR "${CMAKE_CONTRIB_DIR}/libuv" BINARY_DIR "${TD_CONTRIB_DIR}/libuv"
CONFIGURE_COMMAND "" CONFIGURE_COMMAND ""
BUILD_COMMAND "" BUILD_COMMAND ""
INSTALL_COMMAND "" INSTALL_COMMAND ""
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# lucene # lucene
ExternalProject_Add(lucene ExternalProject_Add(lucene
GIT_REPOSITORY https://github.com/yihaoDeng/LucenePlusPlus.git GIT_REPOSITORY https://github.com/yihaoDeng/LucenePlusPlus.git
SOURCE_DIR "${CMAKE_CONTRIB_DIR}/lucene" SOURCE_DIR "${TD_CONTRIB_DIR}/lucene"
BINARY_DIR "" BINARY_DIR ""
#BUILD_IN_SOURCE TRUE #BUILD_IN_SOURCE TRUE
CONFIGURE_COMMAND "" CONFIGURE_COMMAND ""
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
ExternalProject_Add(lz4 ExternalProject_Add(lz4
GIT_REPOSITORY https://github.com/taosdata-contrib/lz4.git GIT_REPOSITORY https://github.com/taosdata-contrib/lz4.git
GIT_TAG v1.9.3 GIT_TAG v1.9.3
SOURCE_DIR "${CMAKE_CONTRIB_DIR}/lz4" SOURCE_DIR "${TD_CONTRIB_DIR}/lz4"
BINARY_DIR "" BINARY_DIR ""
CONFIGURE_COMMAND "" CONFIGURE_COMMAND ""
BUILD_COMMAND "" BUILD_COMMAND ""
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
ExternalProject_Add(NuRaft ExternalProject_Add(NuRaft
GIT_REPOSITORY https://github.com/eBay/NuRaft.git GIT_REPOSITORY https://github.com/eBay/NuRaft.git
GIT_TAG v1.3.0 GIT_TAG v1.3.0
SOURCE_DIR "${CMAKE_CONTRIB_DIR}/nuraft" SOURCE_DIR "${TD_CONTRIB_DIR}/nuraft"
BINARY_DIR "${CMAKE_CONTRIB_DIR}/nuraft" BINARY_DIR "${TD_CONTRIB_DIR}/nuraft"
CONFIGURE_COMMAND "./prepare.sh" CONFIGURE_COMMAND "./prepare.sh"
BUILD_COMMAND "" BUILD_COMMAND ""
INSTALL_COMMAND "" INSTALL_COMMAND ""
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
ExternalProject_Add(pthread ExternalProject_Add(pthread
GIT_REPOSITORY https://github.com/GerHobbelt/pthread-win32 GIT_REPOSITORY https://github.com/GerHobbelt/pthread-win32
GIT_TAG v3.0.3.1 GIT_TAG v3.0.3.1
SOURCE_DIR "${CMAKE_CONTRIB_DIR}/pthread-win32" SOURCE_DIR "${TD_CONTRIB_DIR}/pthread-win32"
BINARY_DIR "" BINARY_DIR ""
#BUILD_IN_SOURCE TRUE #BUILD_IN_SOURCE TRUE
CONFIGURE_COMMAND "" CONFIGURE_COMMAND ""
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
ExternalProject_Add(rocksdb ExternalProject_Add(rocksdb
GIT_REPOSITORY https://github.com/taosdata-contrib/rocksdb.git GIT_REPOSITORY https://github.com/taosdata-contrib/rocksdb.git
GIT_TAG v6.23.3 GIT_TAG v6.23.3
SOURCE_DIR "${CMAKE_CONTRIB_DIR}/rocksdb" SOURCE_DIR "${TD_CONTRIB_DIR}/rocksdb"
CONFIGURE_COMMAND "" CONFIGURE_COMMAND ""
BUILD_COMMAND "" BUILD_COMMAND ""
INSTALL_COMMAND "" INSTALL_COMMAND ""
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
ExternalProject_Add(sqlite ExternalProject_Add(sqlite
GIT_REPOSITORY https://github.com/sqlite/sqlite.git GIT_REPOSITORY https://github.com/sqlite/sqlite.git
GIT_TAG version-3.36.0 GIT_TAG version-3.36.0
SOURCE_DIR "${CMAKE_CONTRIB_DIR}/sqlite" SOURCE_DIR "${TD_CONTRIB_DIR}/sqlite"
BINARY_DIR "${CMAKE_CONTRIB_DIR}/sqlite" BINARY_DIR "${TD_CONTRIB_DIR}/sqlite"
#BUILD_IN_SOURCE TRUE #BUILD_IN_SOURCE TRUE
CONFIGURE_COMMAND "./configure" CONFIGURE_COMMAND "./configure"
BUILD_COMMAND "$(MAKE)" BUILD_COMMAND "$(MAKE)"
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
ExternalProject_Add(stub ExternalProject_Add(stub
GIT_REPOSITORY https://github.com/coolxv/cpp-stub.git GIT_REPOSITORY https://github.com/coolxv/cpp-stub.git
GIT_SUBMODULES "src" GIT_SUBMODULES "src"
SOURCE_DIR "${CMAKE_CONTRIB_DIR}/cpp-stub" SOURCE_DIR "${TD_CONTRIB_DIR}/cpp-stub"
BINARY_DIR "${CMAKE_CONTRIB_DIR}/cpp-stub/src" BINARY_DIR "${TD_CONTRIB_DIR}/cpp-stub/src"
CONFIGURE_COMMAND "" CONFIGURE_COMMAND ""
BUILD_COMMAND "" BUILD_COMMAND ""
INSTALL_COMMAND "" INSTALL_COMMAND ""
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
ExternalProject_Add(traft ExternalProject_Add(traft
GIT_REPOSITORY https://github.com/taosdata/traft.git GIT_REPOSITORY https://github.com/taosdata/traft.git
GIT_TAG for_3.0 GIT_TAG for_3.0
SOURCE_DIR "${CMAKE_CONTRIB_DIR}/traft" SOURCE_DIR "${TD_CONTRIB_DIR}/traft"
BINARY_DIR "${CMAKE_CONTRIB_DIR}/traft" BINARY_DIR "${TD_CONTRIB_DIR}/traft"
#BUILD_IN_SOURCE TRUE #BUILD_IN_SOURCE TRUE
# https://answers.ros.org/question/333125/how-to-include-external-automakeautoconf-projects-into-ament_cmake/ # https://answers.ros.org/question/333125/how-to-include-external-automakeautoconf-projects-into-ament_cmake/
CONFIGURE_COMMAND COMMAND autoreconf -i COMMAND ./configure CONFIGURE_COMMAND COMMAND autoreconf -i COMMAND ./configure
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
ExternalProject_Add(zlib ExternalProject_Add(zlib
GIT_REPOSITORY https://github.com/taosdata-contrib/zlib.git GIT_REPOSITORY https://github.com/taosdata-contrib/zlib.git
GIT_TAG v1.2.11 GIT_TAG v1.2.11
SOURCE_DIR "${CMAKE_CONTRIB_DIR}/zlib" SOURCE_DIR "${TD_CONTRIB_DIR}/zlib"
BINARY_DIR "" BINARY_DIR ""
#BUILD_IN_SOURCE TRUE #BUILD_IN_SOURCE TRUE
CONFIGURE_COMMAND "" CONFIGURE_COMMAND ""
......
...@@ -7,88 +7,88 @@ function(cat IN_FILE OUT_FILE) ...@@ -7,88 +7,88 @@ function(cat IN_FILE OUT_FILE)
endfunction(cat IN_FILE OUT_FILE) endfunction(cat IN_FILE OUT_FILE)
set(CONTRIB_TMP_FILE "${CMAKE_BINARY_DIR}/deps_tmp_CMakeLists.txt.in") set(CONTRIB_TMP_FILE "${CMAKE_BINARY_DIR}/deps_tmp_CMakeLists.txt.in")
configure_file("${CMAKE_SUPPORT_DIR}/deps_CMakeLists.txt.in" ${CONTRIB_TMP_FILE}) configure_file("${TD_SUPPORT_DIR}/deps_CMakeLists.txt.in" ${CONTRIB_TMP_FILE})
# pthread # pthread
if(${BUILD_PTHREAD}) if(${BUILD_PTHREAD})
cat("${CMAKE_SUPPORT_DIR}/pthread_CMakeLists.txt.in" ${CONTRIB_TMP_FILE}) cat("${TD_SUPPORT_DIR}/pthread_CMakeLists.txt.in" ${CONTRIB_TMP_FILE})
endif() endif()
# gnu regex # gnu regex
if(${BUILD_GNUREGEX}) if(${BUILD_GNUREGEX})
cat("${CMAKE_SUPPORT_DIR}/gnuregex_CMakeLists.txt.in" ${CONTRIB_TMP_FILE}) cat("${TD_SUPPORT_DIR}/gnuregex_CMakeLists.txt.in" ${CONTRIB_TMP_FILE})
endif() endif()
# googletest # googletest
if(${BUILD_TEST}) if(${BUILD_TEST})
cat("${CMAKE_SUPPORT_DIR}/gtest_CMakeLists.txt.in" ${CONTRIB_TMP_FILE}) cat("${TD_SUPPORT_DIR}/gtest_CMakeLists.txt.in" ${CONTRIB_TMP_FILE})
cat("${CMAKE_SUPPORT_DIR}/stub_CMakeLists.txt.in" ${CONTRIB_TMP_FILE}) cat("${TD_SUPPORT_DIR}/stub_CMakeLists.txt.in" ${CONTRIB_TMP_FILE})
endif(${BUILD_TEST}) endif(${BUILD_TEST})
# lz4 # lz4
cat("${CMAKE_SUPPORT_DIR}/lz4_CMakeLists.txt.in" ${CONTRIB_TMP_FILE}) cat("${TD_SUPPORT_DIR}/lz4_CMakeLists.txt.in" ${CONTRIB_TMP_FILE})
# zlib # zlib
cat("${CMAKE_SUPPORT_DIR}/zlib_CMakeLists.txt.in" ${CONTRIB_TMP_FILE}) cat("${TD_SUPPORT_DIR}/zlib_CMakeLists.txt.in" ${CONTRIB_TMP_FILE})
# cJson # cJson
cat("${CMAKE_SUPPORT_DIR}/cjson_CMakeLists.txt.in" ${CONTRIB_TMP_FILE}) cat("${TD_SUPPORT_DIR}/cjson_CMakeLists.txt.in" ${CONTRIB_TMP_FILE})
# leveldb # leveldb
if(${BUILD_WITH_LEVELDB}) if(${BUILD_WITH_LEVELDB})
cat("${CMAKE_SUPPORT_DIR}/leveldb_CMakeLists.txt.in" ${CONTRIB_TMP_FILE}) cat("${TD_SUPPORT_DIR}/leveldb_CMakeLists.txt.in" ${CONTRIB_TMP_FILE})
endif(${BUILD_WITH_LEVELDB}) endif(${BUILD_WITH_LEVELDB})
# rocksdb # rocksdb
if(${BUILD_WITH_ROCKSDB}) if(${BUILD_WITH_ROCKSDB})
cat("${CMAKE_SUPPORT_DIR}/rocksdb_CMakeLists.txt.in" ${CONTRIB_TMP_FILE}) cat("${TD_SUPPORT_DIR}/rocksdb_CMakeLists.txt.in" ${CONTRIB_TMP_FILE})
add_definitions(-DUSE_ROCKSDB) add_definitions(-DUSE_ROCKSDB)
endif(${BUILD_WITH_ROCKSDB}) endif(${BUILD_WITH_ROCKSDB})
# canonical-raft # canonical-raft
if(${BUILD_WITH_CRAFT}) if(${BUILD_WITH_CRAFT})
cat("${CMAKE_SUPPORT_DIR}/craft_CMakeLists.txt.in" ${CONTRIB_TMP_FILE}) cat("${TD_SUPPORT_DIR}/craft_CMakeLists.txt.in" ${CONTRIB_TMP_FILE})
SET(BUILD_WITH_UV ON CACHE BOOL "craft need libuv" FORCE) SET(BUILD_WITH_UV ON CACHE BOOL "craft need libuv" FORCE)
endif(${BUILD_WITH_CRAFT}) endif(${BUILD_WITH_CRAFT})
# traft # traft
if(${BUILD_WITH_TRAFT}) if(${BUILD_WITH_TRAFT})
cat("${CMAKE_SUPPORT_DIR}/traft_CMakeLists.txt.in" ${CONTRIB_TMP_FILE}) cat("${TD_SUPPORT_DIR}/traft_CMakeLists.txt.in" ${CONTRIB_TMP_FILE})
SET(BUILD_WITH_UV ON CACHE BOOL "traft need libuv" FORCE) SET(BUILD_WITH_UV ON CACHE BOOL "traft need libuv" FORCE)
endif(${BUILD_WITH_TRAFT}) endif(${BUILD_WITH_TRAFT})
#libuv #libuv
if(${BUILD_WITH_UV}) if(${BUILD_WITH_UV})
cat("${CMAKE_SUPPORT_DIR}/libuv_CMakeLists.txt.in" ${CONTRIB_TMP_FILE}) cat("${TD_SUPPORT_DIR}/libuv_CMakeLists.txt.in" ${CONTRIB_TMP_FILE})
endif(${BUILD_WITH_UV}) endif(${BUILD_WITH_UV})
# bdb # bdb
#if(${BUILD_WITH_BDB}) #if(${BUILD_WITH_BDB})
#cat("${CMAKE_SUPPORT_DIR}/bdb_CMakeLists.txt.in" ${CONTRIB_TMP_FILE}) #cat("${TD_SUPPORT_DIR}/bdb_CMakeLists.txt.in" ${CONTRIB_TMP_FILE})
#endif(${BUILD_WITH_BDB}) #endif(${BUILD_WITH_BDB})
# sqlite # sqlite
if(${BUILD_WITH_SQLITE}) if(${BUILD_WITH_SQLITE})
cat("${CMAKE_SUPPORT_DIR}/sqlite_CMakeLists.txt.in" ${CONTRIB_TMP_FILE}) cat("${TD_SUPPORT_DIR}/sqlite_CMakeLists.txt.in" ${CONTRIB_TMP_FILE})
endif(${BUILD_WITH_SQLITE}) endif(${BUILD_WITH_SQLITE})
# lucene # lucene
if(${BUILD_WITH_LUCENE}) if(${BUILD_WITH_LUCENE})
cat("${CMAKE_SUPPORT_DIR}/lucene_CMakeLists.txt.in" ${CONTRIB_TMP_FILE}) cat("${TD_SUPPORT_DIR}/lucene_CMakeLists.txt.in" ${CONTRIB_TMP_FILE})
add_definitions(-DUSE_LUCENE) add_definitions(-DUSE_LUCENE)
endif(${BUILD_WITH_LUCENE}) endif(${BUILD_WITH_LUCENE})
# NuRaft # NuRaft
if(${BUILD_WITH_NURAFT}) if(${BUILD_WITH_NURAFT})
cat("${CMAKE_SUPPORT_DIR}/nuraft_CMakeLists.txt.in" ${CONTRIB_TMP_FILE}) cat("${TD_SUPPORT_DIR}/nuraft_CMakeLists.txt.in" ${CONTRIB_TMP_FILE})
endif(${BUILD_WITH_NURAFT}) endif(${BUILD_WITH_NURAFT})
# download dependencies # download dependencies
configure_file(${CONTRIB_TMP_FILE} "${CMAKE_CONTRIB_DIR}/deps-download/CMakeLists.txt") configure_file(${CONTRIB_TMP_FILE} "${TD_CONTRIB_DIR}/deps-download/CMakeLists.txt")
execute_process(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" . execute_process(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" .
WORKING_DIRECTORY "${CMAKE_CONTRIB_DIR}/deps-download") WORKING_DIRECTORY "${TD_CONTRIB_DIR}/deps-download")
execute_process(COMMAND "${CMAKE_COMMAND}" --build . execute_process(COMMAND "${CMAKE_COMMAND}" --build .
WORKING_DIRECTORY "${CMAKE_CONTRIB_DIR}/deps-download") WORKING_DIRECTORY "${TD_CONTRIB_DIR}/deps-download")
# ================================================================================================ # ================================================================================================
# Build # Build
...@@ -105,7 +105,7 @@ endif(${BUILD_TEST}) ...@@ -105,7 +105,7 @@ endif(${BUILD_TEST})
# cJson # cJson
# see https://stackoverflow.com/questions/37582508/silence-cmp0048-warnings-in-vendored-projects # see https://stackoverflow.com/questions/37582508/silence-cmp0048-warnings-in-vendored-projects
set(CMAKE_PROJECT_INCLUDE_BEFORE "${CMAKE_SUPPORT_DIR}/EnableCMP0048.txt.in") set(CMAKE_PROJECT_INCLUDE_BEFORE "${TD_SUPPORT_DIR}/EnableCMP0048.txt.in")
option(ENABLE_CJSON_TEST "Enable building cJSON test" OFF) option(ENABLE_CJSON_TEST "Enable building cJSON test" OFF)
option(CJSON_OVERRIDE_BUILD_SHARED_LIBS "Override BUILD_SHARED_LIBS with CJSON_BUILD_SHARED_LIBS" ON) option(CJSON_OVERRIDE_BUILD_SHARED_LIBS "Override BUILD_SHARED_LIBS with CJSON_BUILD_SHARED_LIBS" ON)
option(CJSON_BUILD_SHARED_LIBS "Overrides BUILD_SHARED_LIBS if CJSON_OVERRIDE_BUILD_SHARED_LIBS is enabled" OFF) option(CJSON_BUILD_SHARED_LIBS "Overrides BUILD_SHARED_LIBS if CJSON_OVERRIDE_BUILD_SHARED_LIBS is enabled" OFF)
...@@ -125,7 +125,7 @@ target_include_directories( ...@@ -125,7 +125,7 @@ target_include_directories(
) )
# zlib # zlib
set(CMAKE_PROJECT_INCLUDE_BEFORE "${CMAKE_SUPPORT_DIR}/EnableCMP0048.txt.in") set(CMAKE_PROJECT_INCLUDE_BEFORE "${TD_SUPPORT_DIR}/EnableCMP0048.txt.in")
add_subdirectory(zlib) add_subdirectory(zlib)
target_include_directories( target_include_directories(
zlibstatic zlibstatic
......
...@@ -4,7 +4,7 @@ if(${BUILD_DOCS}) ...@@ -4,7 +4,7 @@ if(${BUILD_DOCS})
find_package(Doxygen) find_package(Doxygen)
if (DOXYGEN_FOUND) if (DOXYGEN_FOUND)
# Build the doc # Build the doc
set(DOXYGEN_IN ${CMAKE_SOURCE_DIR}/docs/Doxyfile.in) set(DOXYGEN_IN ${TD_SOURCE_DIR}/docs/Doxyfile.in)
set(DOXYGEN_OUT ${CMAKE_BINARY_DIR}/Doxyfile) set(DOXYGEN_OUT ${CMAKE_BINARY_DIR}/Doxyfile)
configure_file(${DOXYGEN_IN} ${DOXYGEN_OUT} @ONLY) configure_file(${DOXYGEN_IN} ${DOXYGEN_OUT} @ONLY)
......
...@@ -829,7 +829,7 @@ WARN_LOGFILE = ...@@ -829,7 +829,7 @@ WARN_LOGFILE =
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING # spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
# Note: If this tag is empty the current directory is searched. # Note: If this tag is empty the current directory is searched.
INPUT = @CMAKE_SOURCE_DIR@/include @CMAKE_SOURCE_DIR@/source INPUT = @TD_SOURCE_DIR@/include @TD_SOURCE_DIR@/source
# This tag can be used to specify the character encoding of the source files # This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses # that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
......
...@@ -126,6 +126,7 @@ int32_t taosCreateLog(const char *logname, int32_t logFileNum, const char *cfgDi ...@@ -126,6 +126,7 @@ int32_t taosCreateLog(const char *logname, int32_t logFileNum, const char *cfgDi
int32_t taosInitCfg(const char *cfgDir, const char *envFile, const char *apolloUrl, SArray *pArgs, bool tsc); int32_t taosInitCfg(const char *cfgDir, const char *envFile, const char *apolloUrl, SArray *pArgs, bool tsc);
void taosCleanupCfg(); void taosCleanupCfg();
void taosCfgDynamicOptions(const char *option, const char *value); void taosCfgDynamicOptions(const char *option, const char *value);
void taosAddDataDir(int32_t index, char *v1, int32_t level, int32_t primary);
struct SConfig *taosGetCfg(); struct SConfig *taosGetCfg();
......
/*
* Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
*
* This program is free software: you can use, redistribute, and/or modify
* it under the terms of the GNU Affero General Public License, version 3
* or later ("AGPL"), as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef TDENGINE_GTANT_H
#define TDENGINE_GTANT_H
#ifdef __cplusplus
"C" {
#endif
typedef enum {
TSDB_GRANT_ALL,
TSDB_GRANT_TIME,
TSDB_GRANT_USER,
TSDB_GRANT_DB,
TSDB_GRANT_TIMESERIES,
TSDB_GRANT_DNODE,
TSDB_GRANT_ACCT,
TSDB_GRANT_STORAGE,
TSDB_GRANT_SPEED,
TSDB_GRANT_QUERY_TIME,
TSDB_GRANT_CONNS,
TSDB_GRANT_STREAMS,
TSDB_GRANT_CPU_CORES,
} EGrantType;
int32_t grantInit();
void grantCleanUp();
void grantParseParameter();
int32_t grantCheck(EGrantType grant);
void grantReset(EGrantType grant, uint64_t value);
void grantAdd(EGrantType grant, uint64_t value);
void grantRestore(EGrantType grant, uint64_t value);
#ifdef __cplusplus
}
#endif
#endif
...@@ -428,6 +428,108 @@ int32_t* taosGetErrno(); ...@@ -428,6 +428,108 @@ int32_t* taosGetErrno();
#define TSDB_CODE_WAL_INVALID_VER TAOS_DEF_ERROR_CODE(0, 0x1003) #define TSDB_CODE_WAL_INVALID_VER TAOS_DEF_ERROR_CODE(0, 0x1003)
#define TSDB_CODE_WAL_OUT_OF_MEMORY TAOS_DEF_ERROR_CODE(0, 0x1004) #define TSDB_CODE_WAL_OUT_OF_MEMORY TAOS_DEF_ERROR_CODE(0, 0x1004)
// http
#define TSDB_CODE_HTTP_SERVER_OFFLINE TAOS_DEF_ERROR_CODE(0, 0x1100) //"http server is not online"
#define TSDB_CODE_HTTP_UNSUPPORT_URL TAOS_DEF_ERROR_CODE(0, 0x1101) //"url is not support"
#define TSDB_CODE_HTTP_INVALID_URL TAOS_DEF_ERROR_CODE(0, 0x1102) //invalid url format"
#define TSDB_CODE_HTTP_NO_ENOUGH_MEMORY TAOS_DEF_ERROR_CODE(0, 0x1103) //"no enough memory"
#define TSDB_CODE_HTTP_REQUSET_TOO_BIG TAOS_DEF_ERROR_CODE(0, 0x1104) //"request size is too big"
#define TSDB_CODE_HTTP_NO_AUTH_INFO TAOS_DEF_ERROR_CODE(0, 0x1105) //"no auth info input"
#define TSDB_CODE_HTTP_NO_MSG_INPUT TAOS_DEF_ERROR_CODE(0, 0x1106) //"request is empty"
#define TSDB_CODE_HTTP_NO_SQL_INPUT TAOS_DEF_ERROR_CODE(0, 0x1107) //"no sql input"
#define TSDB_CODE_HTTP_NO_EXEC_USEDB TAOS_DEF_ERROR_CODE(0, 0x1108) //"no need to execute use db cmd"
#define TSDB_CODE_HTTP_SESSION_FULL TAOS_DEF_ERROR_CODE(0, 0x1109) //"session list was full"
#define TSDB_CODE_HTTP_GEN_TAOSD_TOKEN_ERR TAOS_DEF_ERROR_CODE(0, 0x110A) //"generate taosd token error"
#define TSDB_CODE_HTTP_INVALID_MULTI_REQUEST TAOS_DEF_ERROR_CODE(0, 0x110B) //"size of multi request is 0"
#define TSDB_CODE_HTTP_CREATE_GZIP_FAILED TAOS_DEF_ERROR_CODE(0, 0x110C) //"failed to create gzip"
#define TSDB_CODE_HTTP_FINISH_GZIP_FAILED TAOS_DEF_ERROR_CODE(0, 0x110D) //"failed to finish gzip"
#define TSDB_CODE_HTTP_LOGIN_FAILED TAOS_DEF_ERROR_CODE(0, 0x110E) //"failed to login"
#define TSDB_CODE_HTTP_INVALID_VERSION TAOS_DEF_ERROR_CODE(0, 0x1120) //"invalid http version"
#define TSDB_CODE_HTTP_INVALID_CONTENT_LENGTH TAOS_DEF_ERROR_CODE(0, 0x1121) //"invalid content length"
#define TSDB_CODE_HTTP_INVALID_AUTH_TYPE TAOS_DEF_ERROR_CODE(0, 0x1122) //"invalid type of Authorization"
#define TSDB_CODE_HTTP_INVALID_AUTH_FORMAT TAOS_DEF_ERROR_CODE(0, 0x1123) //"invalid format of Authorization"
#define TSDB_CODE_HTTP_INVALID_BASIC_AUTH TAOS_DEF_ERROR_CODE(0, 0x1124) //"invalid basic Authorization"
#define TSDB_CODE_HTTP_INVALID_TAOSD_AUTH TAOS_DEF_ERROR_CODE(0, 0x1125) //"invalid taosd Authorization"
#define TSDB_CODE_HTTP_PARSE_METHOD_FAILED TAOS_DEF_ERROR_CODE(0, 0x1126) //"failed to parse method"
#define TSDB_CODE_HTTP_PARSE_TARGET_FAILED TAOS_DEF_ERROR_CODE(0, 0x1127) //"failed to parse target"
#define TSDB_CODE_HTTP_PARSE_VERSION_FAILED TAOS_DEF_ERROR_CODE(0, 0x1128) //"failed to parse http version"
#define TSDB_CODE_HTTP_PARSE_SP_FAILED TAOS_DEF_ERROR_CODE(0, 0x1129) //"failed to parse sp"
#define TSDB_CODE_HTTP_PARSE_STATUS_FAILED TAOS_DEF_ERROR_CODE(0, 0x112A) //"failed to parse status"
#define TSDB_CODE_HTTP_PARSE_PHRASE_FAILED TAOS_DEF_ERROR_CODE(0, 0x112B) //"failed to parse phrase"
#define TSDB_CODE_HTTP_PARSE_CRLF_FAILED TAOS_DEF_ERROR_CODE(0, 0x112C) //"failed to parse crlf"
#define TSDB_CODE_HTTP_PARSE_HEADER_FAILED TAOS_DEF_ERROR_CODE(0, 0x112D) //"failed to parse header"
#define TSDB_CODE_HTTP_PARSE_HEADER_KEY_FAILED TAOS_DEF_ERROR_CODE(0, 0x112E) //"failed to parse header key"
#define TSDB_CODE_HTTP_PARSE_HEADER_VAL_FAILED TAOS_DEF_ERROR_CODE(0, 0x112F) //"failed to parse header val"
#define TSDB_CODE_HTTP_PARSE_CHUNK_SIZE_FAILED TAOS_DEF_ERROR_CODE(0, 0x1130) //"failed to parse chunk size"
#define TSDB_CODE_HTTP_PARSE_CHUNK_FAILED TAOS_DEF_ERROR_CODE(0, 0x1131) //"failed to parse chunk"
#define TSDB_CODE_HTTP_PARSE_END_FAILED TAOS_DEF_ERROR_CODE(0, 0x1132) //"failed to parse end section"
#define TSDB_CODE_HTTP_PARSE_INVALID_STATE TAOS_DEF_ERROR_CODE(0, 0x1134) //"invalid parse state"
#define TSDB_CODE_HTTP_PARSE_ERROR_STATE TAOS_DEF_ERROR_CODE(0, 0x1135) //"failed to parse error section"
#define TSDB_CODE_HTTP_GC_QUERY_NULL TAOS_DEF_ERROR_CODE(0, 0x1150) //"query size is 0"
#define TSDB_CODE_HTTP_GC_QUERY_SIZE TAOS_DEF_ERROR_CODE(0, 0x1151) //"query size can not more than 100"
#define TSDB_CODE_HTTP_GC_REQ_PARSE_ERROR TAOS_DEF_ERROR_CODE(0, 0x1152) //"parse grafana json error"
#define TSDB_CODE_HTTP_TG_DB_NOT_INPUT TAOS_DEF_ERROR_CODE(0, 0x1160) //"database name can not be null"
#define TSDB_CODE_HTTP_TG_DB_TOO_LONG TAOS_DEF_ERROR_CODE(0, 0x1161) //"database name too long"
#define TSDB_CODE_HTTP_TG_INVALID_JSON TAOS_DEF_ERROR_CODE(0, 0x1162) //"invalid telegraf json fromat"
#define TSDB_CODE_HTTP_TG_METRICS_NULL TAOS_DEF_ERROR_CODE(0, 0x1163) //"metrics size is 0"
#define TSDB_CODE_HTTP_TG_METRICS_SIZE TAOS_DEF_ERROR_CODE(0, 0x1164) //"metrics size can not more than 1K"
#define TSDB_CODE_HTTP_TG_METRIC_NULL TAOS_DEF_ERROR_CODE(0, 0x1165) //"metric name not find"
#define TSDB_CODE_HTTP_TG_METRIC_TYPE TAOS_DEF_ERROR_CODE(0, 0x1166) //"metric name type should be string"
#define TSDB_CODE_HTTP_TG_METRIC_NAME_NULL TAOS_DEF_ERROR_CODE(0, 0x1167) //"metric name length is 0"
#define TSDB_CODE_HTTP_TG_METRIC_NAME_LONG TAOS_DEF_ERROR_CODE(0, 0x1168) //"metric name length too long"
#define TSDB_CODE_HTTP_TG_TIMESTAMP_NULL TAOS_DEF_ERROR_CODE(0, 0x1169) //"timestamp not find"
#define TSDB_CODE_HTTP_TG_TIMESTAMP_TYPE TAOS_DEF_ERROR_CODE(0, 0x116A) //"timestamp type should be integer"
#define TSDB_CODE_HTTP_TG_TIMESTAMP_VAL_NULL TAOS_DEF_ERROR_CODE(0, 0x116B) //"timestamp value smaller than 0"
#define TSDB_CODE_HTTP_TG_TAGS_NULL TAOS_DEF_ERROR_CODE(0, 0x116C) //"tags not find"
#define TSDB_CODE_HTTP_TG_TAGS_SIZE_0 TAOS_DEF_ERROR_CODE(0, 0x116D) //"tags size is 0"
#define TSDB_CODE_HTTP_TG_TAGS_SIZE_LONG TAOS_DEF_ERROR_CODE(0, 0x116E) //"tags size too long"
#define TSDB_CODE_HTTP_TG_TAG_NULL TAOS_DEF_ERROR_CODE(0, 0x116F) //"tag is null"
#define TSDB_CODE_HTTP_TG_TAG_NAME_NULL TAOS_DEF_ERROR_CODE(0, 0x1170) //"tag name is null"
#define TSDB_CODE_HTTP_TG_TAG_NAME_SIZE TAOS_DEF_ERROR_CODE(0, 0x1171) //"tag name length too long"
#define TSDB_CODE_HTTP_TG_TAG_VALUE_TYPE TAOS_DEF_ERROR_CODE(0, 0x1172) //"tag value type should be number or string"
#define TSDB_CODE_HTTP_TG_TAG_VALUE_NULL TAOS_DEF_ERROR_CODE(0, 0x1173) //"tag value is null"
#define TSDB_CODE_HTTP_TG_TABLE_NULL TAOS_DEF_ERROR_CODE(0, 0x1174) //"table is null"
#define TSDB_CODE_HTTP_TG_TABLE_SIZE TAOS_DEF_ERROR_CODE(0, 0x1175) //"table name length too long"
#define TSDB_CODE_HTTP_TG_FIELDS_NULL TAOS_DEF_ERROR_CODE(0, 0x1176) //"fields not find"
#define TSDB_CODE_HTTP_TG_FIELDS_SIZE_0 TAOS_DEF_ERROR_CODE(0, 0x1177) //"fields size is 0"
#define TSDB_CODE_HTTP_TG_FIELDS_SIZE_LONG TAOS_DEF_ERROR_CODE(0, 0x1178) //"fields size too long"
#define TSDB_CODE_HTTP_TG_FIELD_NULL TAOS_DEF_ERROR_CODE(0, 0x1179) //"field is null"
#define TSDB_CODE_HTTP_TG_FIELD_NAME_NULL TAOS_DEF_ERROR_CODE(0, 0x117A) //"field name is null"
#define TSDB_CODE_HTTP_TG_FIELD_NAME_SIZE TAOS_DEF_ERROR_CODE(0, 0x117B) //"field name length too long"
#define TSDB_CODE_HTTP_TG_FIELD_VALUE_TYPE TAOS_DEF_ERROR_CODE(0, 0x117C) //"field value type should be number or string"
#define TSDB_CODE_HTTP_TG_FIELD_VALUE_NULL TAOS_DEF_ERROR_CODE(0, 0x117D) //"field value is null"
#define TSDB_CODE_HTTP_TG_HOST_NOT_STRING TAOS_DEF_ERROR_CODE(0, 0x117E) //"host type should be string"
#define TSDB_CODE_HTTP_TG_STABLE_NOT_EXIST TAOS_DEF_ERROR_CODE(0, 0x117F) //"stable not exist"
#define TSDB_CODE_HTTP_OP_DB_NOT_INPUT TAOS_DEF_ERROR_CODE(0, 0x1190) //"database name can not be null"
#define TSDB_CODE_HTTP_OP_DB_TOO_LONG TAOS_DEF_ERROR_CODE(0, 0x1191) //"database name too long"
#define TSDB_CODE_HTTP_OP_INVALID_JSON TAOS_DEF_ERROR_CODE(0, 0x1192) //"invalid opentsdb json fromat"
#define TSDB_CODE_HTTP_OP_METRICS_NULL TAOS_DEF_ERROR_CODE(0, 0x1193) //"metrics size is 0"
#define TSDB_CODE_HTTP_OP_METRICS_SIZE TAOS_DEF_ERROR_CODE(0, 0x1194) //"metrics size can not more than 10K"
#define TSDB_CODE_HTTP_OP_METRIC_NULL TAOS_DEF_ERROR_CODE(0, 0x1195) //"metric name not find"
#define TSDB_CODE_HTTP_OP_METRIC_TYPE TAOS_DEF_ERROR_CODE(0, 0x1196) //"metric name type should be string"
#define TSDB_CODE_HTTP_OP_METRIC_NAME_NULL TAOS_DEF_ERROR_CODE(0, 0x1197) //"metric name length is 0"
#define TSDB_CODE_HTTP_OP_METRIC_NAME_LONG TAOS_DEF_ERROR_CODE(0, 0x1198) //"metric name length can not more than 22"
#define TSDB_CODE_HTTP_OP_TIMESTAMP_NULL TAOS_DEF_ERROR_CODE(0, 0x1199) //"timestamp not find"
#define TSDB_CODE_HTTP_OP_TIMESTAMP_TYPE TAOS_DEF_ERROR_CODE(0, 0x119A) //"timestamp type should be integer"
#define TSDB_CODE_HTTP_OP_TIMESTAMP_VAL_NULL TAOS_DEF_ERROR_CODE(0, 0x119B) //"timestamp value smaller than 0"
#define TSDB_CODE_HTTP_OP_TAGS_NULL TAOS_DEF_ERROR_CODE(0, 0x119C) //"tags not find"
#define TSDB_CODE_HTTP_OP_TAGS_SIZE_0 TAOS_DEF_ERROR_CODE(0, 0x119D) //"tags size is 0"
#define TSDB_CODE_HTTP_OP_TAGS_SIZE_LONG TAOS_DEF_ERROR_CODE(0, 0x119E) //"tags size too long"
#define TSDB_CODE_HTTP_OP_TAG_NULL TAOS_DEF_ERROR_CODE(0, 0x119F) //"tag is null"
#define TSDB_CODE_HTTP_OP_TAG_NAME_NULL TAOS_DEF_ERROR_CODE(0, 0x11A0) //"tag name is null"
#define TSDB_CODE_HTTP_OP_TAG_NAME_SIZE TAOS_DEF_ERROR_CODE(0, 0x11A1) //"tag name length too long"
#define TSDB_CODE_HTTP_OP_TAG_VALUE_TYPE TAOS_DEF_ERROR_CODE(0, 0x11A2) //"tag value type should be boolean number or string"
#define TSDB_CODE_HTTP_OP_TAG_VALUE_NULL TAOS_DEF_ERROR_CODE(0, 0x11A3) //"tag value is null"
#define TSDB_CODE_HTTP_OP_TAG_VALUE_TOO_LONG TAOS_DEF_ERROR_CODE(0, 0x11A4) //"tag value can not more than 64"
#define TSDB_CODE_HTTP_OP_VALUE_NULL TAOS_DEF_ERROR_CODE(0, 0x11A5) //"value not find"
#define TSDB_CODE_HTTP_OP_VALUE_TYPE TAOS_DEF_ERROR_CODE(0, 0x11A6) //"value type should be boolean number or string"
#define TSDB_CODE_HTTP_REQUEST_JSON_ERROR TAOS_DEF_ERROR_CODE(0, 0x1F00) //"http request json error"
// tfs // tfs
#define TSDB_CODE_FS_APP_ERROR TAOS_DEF_ERROR_CODE(0, 0x2200) #define TSDB_CODE_FS_APP_ERROR TAOS_DEF_ERROR_CODE(0, 0x2200)
#define TSDB_CODE_FS_INVLD_CFG TAOS_DEF_ERROR_CODE(0, 0x2201) #define TSDB_CODE_FS_INVLD_CFG TAOS_DEF_ERROR_CODE(0, 0x2201)
......
...@@ -2,7 +2,7 @@ aux_source_directory(src CLIENT_SRC) ...@@ -2,7 +2,7 @@ aux_source_directory(src CLIENT_SRC)
add_library(taos ${CLIENT_SRC}) add_library(taos ${CLIENT_SRC})
target_include_directories( target_include_directories(
taos taos
PUBLIC "${CMAKE_SOURCE_DIR}/include/client" PUBLIC "${TD_SOURCE_DIR}/include/client"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
) )
target_link_libraries( target_link_libraries(
......
...@@ -19,12 +19,12 @@ TARGET_LINK_LIBRARIES( ...@@ -19,12 +19,12 @@ TARGET_LINK_LIBRARIES(
TARGET_INCLUDE_DIRECTORIES( TARGET_INCLUDE_DIRECTORIES(
clientTest clientTest
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/client/" PUBLIC "${TD_SOURCE_DIR}/include/libs/client/"
PRIVATE "${CMAKE_SOURCE_DIR}/source/libs/client/inc" PRIVATE "${TD_SOURCE_DIR}/source/libs/client/inc"
) )
TARGET_INCLUDE_DIRECTORIES( TARGET_INCLUDE_DIRECTORIES(
tmqTest tmqTest
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/client/" PUBLIC "${TD_SOURCE_DIR}/include/libs/client/"
PRIVATE "${CMAKE_SOURCE_DIR}/source/libs/client/inc" PRIVATE "${TD_SOURCE_DIR}/source/libs/client/inc"
) )
...@@ -2,11 +2,11 @@ aux_source_directory(src COMMON_SRC) ...@@ -2,11 +2,11 @@ aux_source_directory(src COMMON_SRC)
add_library(common STATIC ${COMMON_SRC}) add_library(common STATIC ${COMMON_SRC})
target_include_directories( target_include_directories(
common common
PUBLIC "${CMAKE_SOURCE_DIR}/include/common" PUBLIC "${TD_SOURCE_DIR}/include/common"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
IF(${TD_WINDOWS}) IF(${TD_WINDOWS})
PRIVATE "${CMAKE_SOURCE_DIR}/contrib/pthread-win32" PRIVATE "${TD_SOURCE_DIR}/contrib/pthread-win32"
PRIVATE "${CMAKE_SOURCE_DIR}/contrib/gnuregex" PRIVATE "${TD_SOURCE_DIR}/contrib/gnuregex"
ENDIF () ENDIF ()
) )
target_link_libraries( target_link_libraries(
......
...@@ -173,7 +173,7 @@ uint32_t tsMaxRange = 500; // max range ...@@ -173,7 +173,7 @@ uint32_t tsMaxRange = 500; // max range
uint32_t tsCurRange = 100; // range uint32_t tsCurRange = 100; // range
char tsCompressor[32] = "ZSTD_COMPRESSOR"; // ZSTD_COMPRESSOR or GZIP_COMPRESSOR char tsCompressor[32] = "ZSTD_COMPRESSOR"; // ZSTD_COMPRESSOR or GZIP_COMPRESSOR
static void taosAddDataDir(int32_t index, char *v1, int32_t level, int32_t primary) { void taosAddDataDir(int32_t index, char *v1, int32_t level, int32_t primary) {
tstrncpy(tsDiskCfg[index].dir, v1, TSDB_FILENAME_LEN); tstrncpy(tsDiskCfg[index].dir, v1, TSDB_FILENAME_LEN);
tsDiskCfg[index].level = level; tsDiskCfg[index].level = level;
tsDiskCfg[index].primary = primary; tsDiskCfg[index].primary = primary;
......
...@@ -13,8 +13,8 @@ TARGET_LINK_LIBRARIES( ...@@ -13,8 +13,8 @@ TARGET_LINK_LIBRARIES(
TARGET_INCLUDE_DIRECTORIES( TARGET_INCLUDE_DIRECTORIES(
commonTest commonTest
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/common/" PUBLIC "${TD_SOURCE_DIR}/include/libs/common/"
PRIVATE "${CMAKE_SOURCE_DIR}/source/libs/common/inc" PRIVATE "${TD_SOURCE_DIR}/source/libs/common/inc"
) )
# tmsg test # tmsg test
...@@ -24,5 +24,5 @@ TARGET_INCLUDE_DIRECTORIES( ...@@ -24,5 +24,5 @@ TARGET_INCLUDE_DIRECTORIES(
# "tmsgTest.cpp" # "tmsgTest.cpp"
# "../src/tmsg.c" # "../src/tmsg.c"
# ) # )
# target_include_directories(tmsgTest PUBLIC "${CMAKE_SOURCE_DIR}/include/common/") # target_include_directories(tmsgTest PUBLIC "${TD_SOURCE_DIR}/include/common/")
# target_link_libraries(tmsgTest PUBLIC os util gtest gtest_main) # target_link_libraries(tmsgTest PUBLIC os util gtest gtest_main)
\ No newline at end of file
...@@ -2,7 +2,7 @@ aux_source_directory(src BNODE_SRC) ...@@ -2,7 +2,7 @@ aux_source_directory(src BNODE_SRC)
add_library(bnode STATIC ${BNODE_SRC}) add_library(bnode STATIC ${BNODE_SRC})
target_include_directories( target_include_directories(
bnode bnode
PUBLIC "${CMAKE_SOURCE_DIR}/include/dnode/bnode" PUBLIC "${TD_SOURCE_DIR}/include/dnode/bnode"
private "${CMAKE_CURRENT_SOURCE_DIR}/inc" private "${CMAKE_CURRENT_SOURCE_DIR}/inc"
) )
target_link_libraries( target_link_libraries(
......
...@@ -11,7 +11,7 @@ target_link_libraries( ...@@ -11,7 +11,7 @@ target_link_libraries(
) )
target_include_directories( target_include_directories(
dnode dnode
PUBLIC "${CMAKE_SOURCE_DIR}/include/dnode/mgmt" PUBLIC "${TD_SOURCE_DIR}/include/dnode/mgmt"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
) )
......
...@@ -2,7 +2,7 @@ aux_source_directory(src MNODE_SRC) ...@@ -2,7 +2,7 @@ aux_source_directory(src MNODE_SRC)
add_library(mnode STATIC ${MNODE_SRC}) add_library(mnode STATIC ${MNODE_SRC})
target_include_directories( target_include_directories(
mnode mnode
PUBLIC "${CMAKE_SOURCE_DIR}/include/dnode/mnode" PUBLIC "${TD_SOURCE_DIR}/include/dnode/mnode"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
) )
target_link_libraries( target_link_libraries(
......
...@@ -2,7 +2,7 @@ aux_source_directory(src MNODE_SRC) ...@@ -2,7 +2,7 @@ aux_source_directory(src MNODE_SRC)
add_library(sdb STATIC ${MNODE_SRC}) add_library(sdb STATIC ${MNODE_SRC})
target_include_directories( target_include_directories(
sdb sdb
PUBLIC "${CMAKE_SOURCE_DIR}/include/dnode/mnode/sdb" PUBLIC "${TD_SOURCE_DIR}/include/dnode/mnode/sdb"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
) )
target_link_libraries( target_link_libraries(
......
...@@ -2,7 +2,7 @@ aux_source_directory(src QNODE_SRC) ...@@ -2,7 +2,7 @@ aux_source_directory(src QNODE_SRC)
add_library(qnode STATIC ${QNODE_SRC}) add_library(qnode STATIC ${QNODE_SRC})
target_include_directories( target_include_directories(
qnode qnode
PUBLIC "${CMAKE_SOURCE_DIR}/include/dnode/qnode" PUBLIC "${TD_SOURCE_DIR}/include/dnode/qnode"
private "${CMAKE_CURRENT_SOURCE_DIR}/inc" private "${CMAKE_CURRENT_SOURCE_DIR}/inc"
) )
target_link_libraries( target_link_libraries(
......
...@@ -2,7 +2,7 @@ aux_source_directory(src SNODE_SRC) ...@@ -2,7 +2,7 @@ aux_source_directory(src SNODE_SRC)
add_library(snode STATIC ${SNODE_SRC}) add_library(snode STATIC ${SNODE_SRC})
target_include_directories( target_include_directories(
snode snode
PUBLIC "${CMAKE_SOURCE_DIR}/include/dnode/snode" PUBLIC "${TD_SOURCE_DIR}/include/dnode/snode"
private "${CMAKE_CURRENT_SOURCE_DIR}/inc" private "${CMAKE_CURRENT_SOURCE_DIR}/inc"
) )
target_link_libraries( target_link_libraries(
......
...@@ -11,7 +11,7 @@ AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR} SOURCE_LIST) ...@@ -11,7 +11,7 @@ AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR} SOURCE_LIST)
# ) # )
# target_include_directories(tqTest # target_include_directories(tqTest
# PUBLIC # PUBLIC
# "${CMAKE_SOURCE_DIR}/include/server/vnode/tq" # "${TD_SOURCE_DIR}/include/server/vnode/tq"
# "${CMAKE_CURRENT_SOURCE_DIR}/../inc" # "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
# ) # )
...@@ -33,7 +33,7 @@ AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR} SOURCE_LIST) ...@@ -33,7 +33,7 @@ AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR} SOURCE_LIST)
# TARGET_INCLUDE_DIRECTORIES( # TARGET_INCLUDE_DIRECTORIES(
# tsdbSmaTest # tsdbSmaTest
# PUBLIC "${CMAKE_SOURCE_DIR}/include/common" # PUBLIC "${TD_SOURCE_DIR}/include/common"
# PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/../src/inc" # PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/../src/inc"
# PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/../inc" # PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
# ) # )
\ No newline at end of file
...@@ -2,6 +2,6 @@ aux_source_directory(src CACHE_SRC) ...@@ -2,6 +2,6 @@ aux_source_directory(src CACHE_SRC)
add_library(cache STATIC ${CACHE_SRC}) add_library(cache STATIC ${CACHE_SRC})
target_include_directories( target_include_directories(
cache cache
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/cache" PUBLIC "${TD_SOURCE_DIR}/include/libs/cache"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
) )
\ No newline at end of file
...@@ -2,7 +2,7 @@ aux_source_directory(src CATALOG_SRC) ...@@ -2,7 +2,7 @@ aux_source_directory(src CATALOG_SRC)
add_library(catalog STATIC ${CATALOG_SRC}) add_library(catalog STATIC ${CATALOG_SRC})
target_include_directories( target_include_directories(
catalog catalog
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/catalog" PUBLIC "${TD_SOURCE_DIR}/include/libs/catalog"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
) )
......
...@@ -13,8 +13,8 @@ TARGET_LINK_LIBRARIES( ...@@ -13,8 +13,8 @@ TARGET_LINK_LIBRARIES(
TARGET_INCLUDE_DIRECTORIES( TARGET_INCLUDE_DIRECTORIES(
catalogTest catalogTest
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/catalog/" PUBLIC "${TD_SOURCE_DIR}/include/libs/catalog/"
PRIVATE "${CMAKE_SOURCE_DIR}/source/libs/catalog/inc" PRIVATE "${TD_SOURCE_DIR}/source/libs/catalog/inc"
) )
# add_test( # add_test(
......
...@@ -2,7 +2,7 @@ aux_source_directory(src COMMAND_SRC) ...@@ -2,7 +2,7 @@ aux_source_directory(src COMMAND_SRC)
add_library(command STATIC ${COMMAND_SRC}) add_library(command STATIC ${COMMAND_SRC})
target_include_directories( target_include_directories(
command command
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/command" PUBLIC "${TD_SOURCE_DIR}/include/libs/command"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
) )
......
...@@ -8,8 +8,8 @@ ADD_EXECUTABLE(commandTest ${SOURCE_LIST}) ...@@ -8,8 +8,8 @@ ADD_EXECUTABLE(commandTest ${SOURCE_LIST})
TARGET_INCLUDE_DIRECTORIES( TARGET_INCLUDE_DIRECTORIES(
commandTest commandTest
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/command/" PUBLIC "${TD_SOURCE_DIR}/include/libs/command/"
PRIVATE "${CMAKE_SOURCE_DIR}/source/libs/command/inc" PRIVATE "${TD_SOURCE_DIR}/source/libs/command/inc"
) )
TARGET_LINK_LIBRARIES( TARGET_LINK_LIBRARIES(
......
...@@ -4,7 +4,7 @@ aux_source_directory(src EXECUTOR_SRC) ...@@ -4,7 +4,7 @@ aux_source_directory(src EXECUTOR_SRC)
add_library(executor STATIC ${EXECUTOR_SRC}) add_library(executor STATIC ${EXECUTOR_SRC})
#set_target_properties(executor PROPERTIES #set_target_properties(executor PROPERTIES
# IMPORTED_LOCATION "${CMAKE_CURRENT_SOURCE_DIR}/libexecutor.a" # IMPORTED_LOCATION "${CMAKE_CURRENT_SOURCE_DIR}/libexecutor.a"
# INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_SOURCE_DIR}/include/libs/executor" # INTERFACE_INCLUDE_DIRECTORIES "${TD_SOURCE_DIR}/include/libs/executor"
# ) # )
target_link_libraries(executor target_link_libraries(executor
...@@ -13,7 +13,7 @@ target_link_libraries(executor ...@@ -13,7 +13,7 @@ target_link_libraries(executor
target_include_directories( target_include_directories(
executor executor
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/executor" PUBLIC "${TD_SOURCE_DIR}/include/libs/executor"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
) )
......
...@@ -13,6 +13,6 @@ TARGET_LINK_LIBRARIES( ...@@ -13,6 +13,6 @@ TARGET_LINK_LIBRARIES(
TARGET_INCLUDE_DIRECTORIES( TARGET_INCLUDE_DIRECTORIES(
executorTest executorTest
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/executor/" PUBLIC "${TD_SOURCE_DIR}/include/libs/executor/"
PRIVATE "${CMAKE_SOURCE_DIR}/source/libs/executor/inc" PRIVATE "${TD_SOURCE_DIR}/source/libs/executor/inc"
) )
...@@ -4,8 +4,8 @@ add_library(function STATIC ${FUNCTION_SRC}) ...@@ -4,8 +4,8 @@ add_library(function STATIC ${FUNCTION_SRC})
target_include_directories( target_include_directories(
function function
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/function" "${TD_SOURCE_DIR}/include/libs/function"
"${CMAKE_SOURCE_DIR}/contrib/libuv/include" "${TD_SOURCE_DIR}/contrib/libuv/include"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
) )
...@@ -19,9 +19,9 @@ add_executable(runUdf test/runUdf.c) ...@@ -19,9 +19,9 @@ add_executable(runUdf test/runUdf.c)
target_include_directories( target_include_directories(
runUdf runUdf
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/function" "${TD_SOURCE_DIR}/include/libs/function"
"${CMAKE_SOURCE_DIR}/contrib/libuv/include" "${TD_SOURCE_DIR}/contrib/libuv/include"
"${CMAKE_SOURCE_DIR}/include/os" "${TD_SOURCE_DIR}/include/os"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
) )
target_link_libraries( target_link_libraries(
...@@ -34,8 +34,8 @@ add_library(udf1 MODULE test/udf1.c) ...@@ -34,8 +34,8 @@ add_library(udf1 MODULE test/udf1.c)
target_include_directories( target_include_directories(
udf1 udf1
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/function" "${TD_SOURCE_DIR}/include/libs/function"
"${CMAKE_SOURCE_DIR}/include/os" "${TD_SOURCE_DIR}/include/os"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
) )
...@@ -44,8 +44,8 @@ add_executable(udfd src/udfd.c) ...@@ -44,8 +44,8 @@ add_executable(udfd src/udfd.c)
target_include_directories( target_include_directories(
udfd udfd
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/function" "${TD_SOURCE_DIR}/include/libs/function"
"${CMAKE_SOURCE_DIR}/contrib/libuv/include" "${TD_SOURCE_DIR}/contrib/libuv/include"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
) )
......
...@@ -382,6 +382,16 @@ const SBuiltinFuncDefinition funcMgtBuiltins[] = { ...@@ -382,6 +382,16 @@ const SBuiltinFuncDefinition funcMgtBuiltins[] = {
.sprocessFunc = substrFunction, .sprocessFunc = substrFunction,
.finalizeFunc = NULL .finalizeFunc = NULL
}, },
{
.name = "cast",
.type = FUNCTION_TYPE_CAST,
.classification = FUNC_MGT_SCALAR_FUNC,
.checkFunc = stubCheckAndGetResultType,
.getEnvFunc = NULL,
.initFunc = NULL,
.sprocessFunc = NULL,
.finalizeFunc = NULL
},
{ {
.name = "_rowts", .name = "_rowts",
.type = FUNCTION_TYPE_ROWTS, .type = FUNCTION_TYPE_ROWTS,
...@@ -588,6 +598,10 @@ int32_t stubCheckAndGetResultType(SFunctionNode* pFunc) { ...@@ -588,6 +598,10 @@ int32_t stubCheckAndGetResultType(SFunctionNode* pFunc) {
pFunc->node.resType = (SDataType) { .bytes = paraBytes, .type = paraType }; pFunc->node.resType = (SDataType) { .bytes = paraBytes, .type = paraType };
break; break;
} }
case FUNCTION_TYPE_CAST: {
pFunc->node.resType = (SDataType) { .bytes = tDataTypes[TSDB_DATA_TYPE_BIGINT].bytes, .type = TSDB_DATA_TYPE_BIGINT };
break;
}
case FUNCTION_TYPE_TBNAME: { case FUNCTION_TYPE_TBNAME: {
// todo // todo
......
...@@ -2,8 +2,8 @@ aux_source_directory(src INDEX_SRC) ...@@ -2,8 +2,8 @@ aux_source_directory(src INDEX_SRC)
add_library(index STATIC ${INDEX_SRC}) add_library(index STATIC ${INDEX_SRC})
target_include_directories( target_include_directories(
index index
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/index" PUBLIC "${TD_SOURCE_DIR}/include/libs/index"
PUBLIC "${CMAKE_SOURCE_DIR}/include/os" PUBLIC "${TD_SOURCE_DIR}/include/os"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
) )
...@@ -17,9 +17,9 @@ target_link_libraries( ...@@ -17,9 +17,9 @@ target_link_libraries(
if (${BUILD_WITH_LUCENE}) if (${BUILD_WITH_LUCENE})
target_include_directories( target_include_directories(
index index
PUBLIC "${CMAKE_SOURCE_DIR}/deps/lucene/include" PUBLIC "${TD_SOURCE_DIR}/deps/lucene/include"
) )
LINK_DIRECTORIES("${CMAKE_SOURCE_DIR}/deps/lucene/debug/src/core") LINK_DIRECTORIES("${TD_SOURCE_DIR}/deps/lucene/debug/src/core")
target_link_libraries( target_link_libraries(
index index
PUBLIC lucene++ PUBLIC lucene++
......
...@@ -28,30 +28,30 @@ target_sources(jsonUT ...@@ -28,30 +28,30 @@ target_sources(jsonUT
) )
target_include_directories ( indexTest target_include_directories ( indexTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/index" "${TD_SOURCE_DIR}/include/libs/index"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories ( fstTest target_include_directories ( fstTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/index" "${TD_SOURCE_DIR}/include/libs/index"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories ( fstUT target_include_directories ( fstUT
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/index" "${TD_SOURCE_DIR}/include/libs/index"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories ( UtilUT target_include_directories ( UtilUT
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/index" "${TD_SOURCE_DIR}/include/libs/index"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories (jsonUT target_include_directories (jsonUT
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/index" "${TD_SOURCE_DIR}/include/libs/index"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_link_libraries (indexTest target_link_libraries (indexTest
......
...@@ -2,7 +2,7 @@ aux_source_directory(src MONITOR_SRC) ...@@ -2,7 +2,7 @@ aux_source_directory(src MONITOR_SRC)
add_library(monitor STATIC ${MONITOR_SRC}) add_library(monitor STATIC ${MONITOR_SRC})
target_include_directories( target_include_directories(
monitor monitor
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/monitor" PUBLIC "${TD_SOURCE_DIR}/include/libs/monitor"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
) )
......
...@@ -2,7 +2,7 @@ aux_source_directory(src NODES_SRC) ...@@ -2,7 +2,7 @@ aux_source_directory(src NODES_SRC)
add_library(nodes STATIC ${NODES_SRC}) add_library(nodes STATIC ${NODES_SRC})
target_include_directories( target_include_directories(
nodes nodes
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/nodes" PUBLIC "${TD_SOURCE_DIR}/include/libs/nodes"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
) )
target_link_libraries( target_link_libraries(
......
...@@ -9,8 +9,8 @@ ADD_EXECUTABLE(nodesTest ${SOURCE_LIST}) ...@@ -9,8 +9,8 @@ ADD_EXECUTABLE(nodesTest ${SOURCE_LIST})
TARGET_INCLUDE_DIRECTORIES( TARGET_INCLUDE_DIRECTORIES(
nodesTest nodesTest
PUBLIC "${CMAKE_SOURCE_DIR}/include/nodes/" PUBLIC "${TD_SOURCE_DIR}/include/nodes/"
PRIVATE "${CMAKE_SOURCE_DIR}/source/nodes/inc" PRIVATE "${TD_SOURCE_DIR}/source/nodes/inc"
) )
TARGET_LINK_LIBRARIES( TARGET_LINK_LIBRARIES(
......
...@@ -2,7 +2,7 @@ aux_source_directory(src PARSER_SRC) ...@@ -2,7 +2,7 @@ aux_source_directory(src PARSER_SRC)
add_library(parser STATIC ${PARSER_SRC}) add_library(parser STATIC ${PARSER_SRC})
target_include_directories( target_include_directories(
parser parser
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/parser" PUBLIC "${TD_SOURCE_DIR}/include/libs/parser"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
) )
......
...@@ -81,6 +81,7 @@ SToken getTokenFromRawExprNode(SAstCreateContext* pCxt, SNode* pNode); ...@@ -81,6 +81,7 @@ SToken getTokenFromRawExprNode(SAstCreateContext* pCxt, SNode* pNode);
SNodeList* createNodeList(SAstCreateContext* pCxt, SNode* pNode); SNodeList* createNodeList(SAstCreateContext* pCxt, SNode* pNode);
SNodeList* addNodeToList(SAstCreateContext* pCxt, SNodeList* pList, SNode* pNode); SNodeList* addNodeToList(SAstCreateContext* pCxt, SNodeList* pList, SNode* pNode);
SNodeList* addValueNodeFromTypeToList(SAstCreateContext* pCxt, SDataType dataType, SNodeList* pList);
SNode* createColumnNode(SAstCreateContext* pCxt, SToken* pTableAlias, SToken* pColumnName); SNode* createColumnNode(SAstCreateContext* pCxt, SToken* pTableAlias, SToken* pColumnName);
SNode* createValueNode(SAstCreateContext* pCxt, int32_t dataType, const SToken* pLiteral); SNode* createValueNode(SAstCreateContext* pCxt, int32_t dataType, const SToken* pLiteral);
......
...@@ -534,6 +534,12 @@ expression(A) ::= pseudo_column(B). ...@@ -534,6 +534,12 @@ expression(A) ::= pseudo_column(B).
expression(A) ::= column_reference(B). { A = B; } expression(A) ::= column_reference(B). { A = B; }
expression(A) ::= function_name(B) NK_LP expression_list(C) NK_RP(D). { A = createRawExprNodeExt(pCxt, &B, &D, createFunctionNode(pCxt, &B, C)); } expression(A) ::= function_name(B) NK_LP expression_list(C) NK_RP(D). { A = createRawExprNodeExt(pCxt, &B, &D, createFunctionNode(pCxt, &B, C)); }
expression(A) ::= function_name(B) NK_LP NK_STAR(C) NK_RP(D). { A = createRawExprNodeExt(pCxt, &B, &D, createFunctionNode(pCxt, &B, createNodeList(pCxt, createColumnNode(pCxt, NULL, &C)))); } expression(A) ::= function_name(B) NK_LP NK_STAR(C) NK_RP(D). { A = createRawExprNodeExt(pCxt, &B, &D, createFunctionNode(pCxt, &B, createNodeList(pCxt, createColumnNode(pCxt, NULL, &C)))); }
//for CAST function CAST(expr AS type_name)
expression(A) ::= function_name(B) NK_LP expression(C) AS type_name(D) NK_RP(E). {
SNodeList *p = createNodeList(pCxt, releaseRawExprNode(pCxt, C));
p = addValueNodeFromTypeToList(pCxt, D, p);
A = createRawExprNodeExt(pCxt, &B, &E, createFunctionNode(pCxt, &B, p));
}
//expression(A) ::= cast_expression(B). { A = B; } //expression(A) ::= cast_expression(B). { A = B; }
//expression(A) ::= case_expression(B). { A = B; } //expression(A) ::= case_expression(B). { A = B; }
expression(A) ::= subquery(B). { A = B; } expression(A) ::= subquery(B). { A = B; }
......
...@@ -251,6 +251,26 @@ SNode* createColumnNode(SAstCreateContext* pCxt, SToken* pTableAlias, SToken* pC ...@@ -251,6 +251,26 @@ SNode* createColumnNode(SAstCreateContext* pCxt, SToken* pTableAlias, SToken* pC
return (SNode*)col; return (SNode*)col;
} }
SNodeList* addValueNodeFromTypeToList(SAstCreateContext* pCxt, SDataType dataType, SNodeList* pList) {
char buf[64] = {0};
//add value node for type
snprintf(buf, sizeof(buf), "%u", dataType.type);
SToken token = {.type = TSDB_DATA_TYPE_TINYINT, .n = strlen(buf), .z = buf};
SNode* pNode = createValueNode(pCxt, token.type, &token);
addNodeToList(pCxt, pList, pNode);
//add value node for bytes
memset(buf, 0, sizeof(buf));
snprintf(buf, sizeof(buf), "%u", dataType.bytes);
token.type = TSDB_DATA_TYPE_BIGINT;
token.n = strlen(buf);
token.z = buf;
pNode = createValueNode(pCxt, token.type, &token);
addNodeToList(pCxt, pList, pNode);
return pList;
}
SNode* createValueNode(SAstCreateContext* pCxt, int32_t dataType, const SToken* pLiteral) { SNode* createValueNode(SAstCreateContext* pCxt, int32_t dataType, const SToken* pLiteral) {
SValueNode* val = (SValueNode*)nodesMakeNode(QUERY_NODE_VALUE); SValueNode* val = (SValueNode*)nodesMakeNode(QUERY_NODE_VALUE);
CHECK_OUT_OF_MEM(val); CHECK_OUT_OF_MEM(val);
......
...@@ -132,17 +132,18 @@ typedef union { ...@@ -132,17 +132,18 @@ typedef union {
#define ParseCTX_PARAM #define ParseCTX_PARAM
#define ParseCTX_FETCH #define ParseCTX_FETCH
#define ParseCTX_STORE #define ParseCTX_STORE
#define YYNSTATE 544 #define YYNSTATE 547
#define YYNRULE 408 #define YYNRULE 409
#define YYNRULE_WITH_ACTION 409
#define YYNTOKEN 207 #define YYNTOKEN 207
#define YY_MAX_SHIFT 543 #define YY_MAX_SHIFT 546
#define YY_MIN_SHIFTREDUCE 802 #define YY_MIN_SHIFTREDUCE 806
#define YY_MAX_SHIFTREDUCE 1209 #define YY_MAX_SHIFTREDUCE 1214
#define YY_ERROR_ACTION 1210 #define YY_ERROR_ACTION 1215
#define YY_ACCEPT_ACTION 1211 #define YY_ACCEPT_ACTION 1216
#define YY_NO_ACTION 1212 #define YY_NO_ACTION 1217
#define YY_MIN_REDUCE 1213 #define YY_MIN_REDUCE 1218
#define YY_MAX_REDUCE 1620 #define YY_MAX_REDUCE 1626
/************* End control #defines *******************************************/ /************* End control #defines *******************************************/
#define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0]))) #define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0])))
...@@ -209,161 +210,161 @@ typedef union { ...@@ -209,161 +210,161 @@ 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 (1523) #define YY_ACTTAB_COUNT (1529)
static const YYACTIONTYPE yy_action[] = { static const YYACTIONTYPE yy_action[] = {
/* 0 */ 25, 193, 1473, 1322, 255, 446, 1489, 459, 267, 310, /* 0 */ 25, 194, 1478, 1327, 257, 449, 1494, 462, 269, 312,
/* 10 */ 275, 1422, 31, 29, 1469, 1476, 308, 1413, 1415, 1449, /* 10 */ 277, 1427, 30, 28, 1474, 1481, 310, 1418, 1420, 1454,
/* 20 */ 264, 1473, 1046, 272, 427, 32, 30, 28, 27, 26, /* 20 */ 266, 1478, 1050, 274, 429, 32, 31, 29, 27, 26,
/* 30 */ 1505, 21, 1333, 1469, 1475, 304, 458, 443, 1044, 236, /* 30 */ 1511, 21, 1338, 1474, 1480, 306, 461, 445, 1048, 238,
/* 40 */ 1473, 32, 30, 28, 27, 26, 1068, 445, 23, 100, /* 40 */ 1478, 32, 31, 29, 27, 26, 1072, 448, 23, 100,
/* 50 */ 11, 1460, 1469, 1475, 1489, 287, 431, 1051, 32, 30, /* 50 */ 11, 1465, 1474, 1480, 1494, 289, 433, 1055, 32, 31,
/* 60 */ 28, 27, 26, 31, 29, 1152, 1599, 227, 1490, 1491, /* 60 */ 29, 27, 26, 30, 28, 1157, 1605, 228, 1495, 1496,
/* 70 */ 1494, 264, 215, 1046, 1, 1363, 31, 29, 1505, 130, /* 70 */ 1500, 266, 216, 1050, 1, 1368, 30, 28, 1511, 131,
/* 80 */ 1552, 136, 98, 1597, 264, 443, 1046, 1599, 1166, 1044, /* 80 */ 1558, 137, 98, 1603, 266, 445, 1050, 1605, 1171, 1048,
/* 90 */ 52, 429, 126, 1545, 1546, 445, 1550, 540, 1549, 1460, /* 90 */ 52, 431, 127, 1551, 1552, 448, 1556, 543, 1555, 1465,
/* 100 */ 130, 11, 1044, 96, 1597, 1069, 1211, 50, 1051, 1045, /* 100 */ 131, 11, 1048, 96, 1603, 1073, 1216, 50, 1055, 1049,
/* 110 */ 49, 1328, 378, 377, 11, 70, 1490, 1491, 1494, 1538, /* 110 */ 49, 1333, 380, 379, 11, 70, 1495, 1496, 1500, 1544,
/* 120 */ 458, 1051, 345, 1537, 1534, 1, 1214, 928, 482, 481, /* 120 */ 461, 1055, 347, 1543, 1540, 1, 1219, 932, 485, 484,
/* 130 */ 480, 932, 479, 934, 935, 478, 937, 475, 1, 943, /* 130 */ 483, 936, 482, 938, 939, 481, 941, 478, 1, 947,
/* 140 */ 472, 945, 946, 469, 466, 1047, 485, 84, 540, 1324, /* 140 */ 475, 949, 950, 472, 469, 1051, 488, 84, 543, 1329,
/* 150 */ 83, 82, 81, 80, 79, 78, 77, 76, 75, 280, /* 150 */ 83, 82, 81, 80, 79, 78, 77, 76, 75, 282,
/* 160 */ 1045, 540, 1050, 1070, 1071, 1096, 1097, 1098, 1099, 1100, /* 160 */ 1049, 543, 1054, 1074, 1075, 1101, 1102, 1103, 1104, 1105,
/* 170 */ 1101, 1102, 1103, 1045, 12, 1046, 459, 1066, 163, 31, /* 170 */ 1106, 1107, 1108, 1049, 12, 1050, 462, 1070, 164, 30,
/* 180 */ 29, 116, 369, 1225, 131, 309, 380, 264, 374, 1046, /* 180 */ 28, 117, 371, 1230, 132, 311, 382, 266, 376, 1050,
/* 190 */ 1599, 1044, 379, 403, 1460, 97, 1047, 375, 373, 156, /* 190 */ 1605, 1048, 381, 405, 1465, 97, 1051, 377, 375, 157,
/* 200 */ 376, 1333, 154, 130, 371, 1044, 303, 1597, 302, 1047, /* 200 */ 378, 1338, 155, 131, 373, 1048, 305, 1603, 304, 1051,
/* 210 */ 1051, 394, 458, 1050, 1070, 1071, 1096, 1097, 1098, 1099, /* 210 */ 1055, 396, 461, 1054, 1074, 1075, 1101, 1102, 1103, 1104,
/* 220 */ 1100, 1101, 1102, 1103, 1051, 417, 1050, 1070, 1071, 1096, /* 220 */ 1105, 1106, 1107, 1108, 1055, 419, 1054, 1074, 1075, 1101,
/* 230 */ 1097, 1098, 1099, 1100, 1101, 1102, 1103, 404, 459, 1176, /* 230 */ 1102, 1103, 1104, 1105, 1106, 1107, 1108, 406, 462, 1181,
/* 240 */ 131, 7, 1599, 31, 29, 444, 131, 72, 1070, 1071, /* 240 */ 132, 7, 1605, 30, 28, 447, 132, 72, 1074, 1075,
/* 250 */ 540, 264, 459, 1046, 366, 130, 890, 31, 29, 1597, /* 250 */ 543, 266, 462, 1050, 368, 131, 894, 30, 28, 1603,
/* 260 */ 1072, 317, 1045, 1333, 540, 264, 12, 1046, 1599, 1044, /* 260 */ 1076, 319, 1049, 1338, 543, 266, 12, 1050, 1605, 1048,
/* 270 */ 414, 1174, 1175, 1177, 1178, 892, 1045, 1333, 52, 422, /* 270 */ 416, 1179, 1180, 1182, 1183, 896, 1049, 1338, 52, 424,
/* 280 */ 418, 130, 1489, 1044, 131, 1597, 84, 1599, 1051, 83, /* 280 */ 420, 131, 1494, 1048, 132, 1603, 84, 1605, 1055, 83,
/* 290 */ 82, 81, 80, 79, 78, 77, 76, 75, 1047, 1329, /* 290 */ 82, 81, 80, 79, 78, 77, 76, 75, 1051, 1334,
/* 300 */ 1598, 331, 1051, 65, 1597, 7, 1505, 32, 30, 28, /* 300 */ 1604, 333, 1055, 65, 1603, 7, 1511, 32, 31, 29,
/* 310 */ 27, 26, 1047, 443, 1505, 1050, 117, 101, 1236, 7, /* 310 */ 27, 26, 1051, 445, 1511, 1054, 118, 101, 1241, 7,
/* 320 */ 1291, 443, 421, 445, 1325, 1489, 1311, 1460, 540, 1050, /* 320 */ 1296, 445, 423, 448, 1330, 1494, 1316, 1465, 543, 1054,
/* 330 */ 1070, 1071, 1096, 1097, 1098, 1099, 1100, 1101, 1102, 1103, /* 330 */ 1074, 1075, 1101, 1102, 1103, 1104, 1105, 1106, 1107, 1108,
/* 340 */ 1045, 131, 540, 118, 1490, 1491, 1494, 140, 139, 1505, /* 340 */ 1049, 132, 543, 119, 1495, 1496, 1500, 141, 140, 1511,
/* 350 */ 235, 131, 1066, 420, 1045, 459, 443, 121, 494, 324, /* 350 */ 237, 132, 1070, 422, 1049, 462, 445, 122, 497, 326,
/* 360 */ 459, 1552, 336, 1460, 318, 1067, 445, 427, 1373, 344, /* 360 */ 462, 1558, 338, 1465, 320, 1071, 448, 429, 1378, 346,
/* 370 */ 1460, 337, 1380, 263, 1235, 345, 1047, 188, 254, 1548, /* 370 */ 1465, 339, 1385, 265, 1240, 347, 1051, 189, 256, 1554,
/* 380 */ 1333, 432, 1612, 1378, 1309, 1333, 231, 1490, 1491, 1494, /* 380 */ 1338, 434, 1618, 1383, 59, 1338, 229, 1495, 1496, 1500,
/* 390 */ 1047, 496, 100, 1050, 1070, 1071, 1096, 1097, 1098, 1099, /* 390 */ 1051, 499, 100, 1054, 1074, 1075, 1101, 1102, 1103, 1104,
/* 400 */ 1100, 1101, 1102, 1103, 28, 27, 26, 1050, 1070, 1071, /* 400 */ 1105, 1106, 1107, 1108, 843, 1331, 842, 1054, 1074, 1075,
/* 410 */ 1096, 1097, 1098, 1099, 1100, 1101, 1102, 1103, 459, 1460, /* 410 */ 1101, 1102, 1103, 1104, 1105, 1106, 1107, 1108, 462, 1465,
/* 420 */ 31, 29, 434, 1380, 268, 98, 1234, 1330, 264, 269, /* 420 */ 30, 28, 1385, 1385, 844, 98, 1239, 1335, 266, 271,
/* 430 */ 1046, 1262, 114, 494, 1378, 127, 1545, 1546, 1410, 1550, /* 430 */ 1050, 1267, 114, 1419, 1383, 128, 1551, 1552, 1415, 1556,
/* 440 */ 1335, 536, 535, 1333, 335, 138, 1044, 330, 329, 328, /* 440 */ 29, 27, 26, 1338, 337, 139, 1048, 332, 331, 330,
/* 450 */ 327, 326, 59, 323, 322, 321, 320, 316, 315, 314, /* 450 */ 329, 328, 1485, 325, 324, 323, 322, 318, 317, 316,
/* 460 */ 313, 312, 311, 459, 1151, 1051, 32, 30, 28, 27, /* 460 */ 315, 314, 313, 462, 1483, 1055, 32, 31, 29, 27,
/* 470 */ 26, 1460, 456, 1326, 1318, 32, 30, 28, 27, 26, /* 470 */ 26, 1465, 459, 539, 538, 32, 31, 29, 27, 26,
/* 480 */ 248, 1320, 1, 516, 515, 514, 513, 279, 1333, 512, /* 480 */ 250, 1323, 1, 519, 518, 517, 516, 281, 1338, 515,
/* 490 */ 511, 510, 102, 505, 504, 503, 502, 501, 500, 499, /* 490 */ 514, 513, 102, 508, 507, 506, 505, 504, 503, 502,
/* 500 */ 498, 108, 1489, 459, 238, 540, 163, 508, 114, 459, /* 500 */ 501, 108, 1494, 462, 241, 543, 164, 511, 115, 462,
/* 510 */ 369, 298, 72, 238, 446, 274, 1336, 1045, 457, 372, /* 510 */ 371, 300, 72, 241, 449, 270, 1341, 1049, 460, 374,
/* 520 */ 1423, 1316, 249, 114, 247, 246, 1505, 368, 1333, 1084, /* 520 */ 1428, 1325, 251, 115, 249, 248, 1511, 370, 1338, 1089,
/* 530 */ 1213, 1335, 371, 443, 1333, 1073, 277, 1115, 32, 30, /* 530 */ 1218, 1340, 373, 445, 1338, 842, 276, 1120, 32, 31,
/* 540 */ 28, 27, 26, 445, 114, 1292, 1115, 1460, 839, 1117, /* 540 */ 29, 27, 26, 448, 115, 404, 1120, 1465, 9, 8,
/* 550 */ 838, 1552, 1335, 1047, 93, 92, 91, 90, 89, 88, /* 550 */ 1558, 366, 1340, 1051, 93, 92, 91, 90, 89, 88,
/* 560 */ 87, 86, 85, 224, 1490, 1491, 1494, 1121, 840, 1547, /* 560 */ 87, 86, 85, 225, 1495, 1496, 1500, 1314, 1553, 1122,
/* 570 */ 1050, 1070, 1071, 1096, 1097, 1098, 1099, 1100, 1101, 1102, /* 570 */ 1054, 1074, 1075, 1101, 1102, 1103, 1104, 1105, 1106, 1107,
/* 580 */ 1103, 385, 9, 8, 459, 1116, 1380, 509, 507, 459, /* 580 */ 1108, 387, 1164, 279, 462, 1121, 1385, 1126, 1072, 462,
/* 590 */ 115, 22, 276, 207, 1116, 221, 393, 1378, 278, 1480, /* 590 */ 116, 115, 278, 208, 1121, 222, 395, 1383, 280, 1340,
/* 600 */ 497, 1084, 1305, 1120, 1233, 838, 1232, 219, 1265, 1333, /* 600 */ 1238, 1089, 868, 1125, 1237, 6, 1236, 220, 1270, 1338,
/* 610 */ 165, 1478, 1120, 388, 1333, 1380, 1231, 6, 382, 433, /* 610 */ 166, 22, 1125, 390, 1338, 1385, 497, 500, 384, 1310,
/* 620 */ 141, 364, 1230, 1489, 164, 1229, 1414, 24, 262, 1110, /* 620 */ 142, 869, 1133, 1494, 165, 1235, 1384, 24, 264, 1115,
/* 630 */ 1111, 1112, 1113, 1114, 1118, 1119, 24, 262, 1110, 1111, /* 630 */ 1116, 1117, 1118, 1119, 1123, 1124, 24, 264, 1115, 1116,
/* 640 */ 1112, 1113, 1114, 1118, 1119, 1150, 168, 1505, 1380, 1460, /* 640 */ 1117, 1118, 1119, 1123, 1124, 1465, 1077, 1511, 1156, 1465,
/* 650 */ 42, 1460, 174, 41, 443, 435, 1128, 1228, 1227, 1379, /* 650 */ 42, 1465, 1234, 41, 445, 32, 31, 29, 27, 26,
/* 660 */ 380, 1460, 374, 484, 445, 1054, 379, 1460, 1460, 97, /* 660 */ 382, 1233, 376, 106, 448, 1321, 381, 408, 1465, 97,
/* 670 */ 1460, 375, 373, 431, 376, 1557, 1147, 1489, 1224, 1223, /* 670 */ 1465, 377, 375, 433, 378, 512, 510, 1494, 1232, 1229,
/* 680 */ 1222, 1221, 295, 67, 68, 1490, 1491, 1494, 1538, 1220, /* 680 */ 1228, 1227, 436, 67, 68, 1495, 1496, 1500, 1544, 1226,
/* 690 */ 271, 270, 237, 1534, 392, 9, 8, 297, 1219, 1218, /* 690 */ 273, 272, 240, 1540, 394, 9, 8, 1465, 1225, 1224,
/* 700 */ 1059, 1505, 1460, 1460, 1599, 1217, 438, 390, 430, 1216, /* 700 */ 1063, 1511, 1563, 1152, 1605, 1223, 1465, 392, 432, 1222,
/* 710 */ 48, 47, 307, 402, 135, 1252, 1052, 130, 445, 301, /* 710 */ 48, 47, 309, 1221, 136, 297, 1056, 131, 448, 303,
/* 720 */ 1226, 1597, 1460, 1460, 1460, 1460, 1460, 244, 1489, 293, /* 720 */ 437, 1603, 1465, 1465, 1465, 1465, 1465, 246, 1494, 295,
/* 730 */ 1053, 289, 285, 132, 1460, 1051, 1057, 381, 69, 1490, /* 730 */ 299, 291, 287, 133, 1465, 1055, 440, 444, 69, 1495,
/* 740 */ 1491, 1494, 1538, 1460, 1460, 864, 257, 1534, 125, 1159, /* 740 */ 1496, 1500, 1544, 1465, 1465, 1152, 259, 1540, 126, 169,
/* 750 */ 1460, 543, 1505, 190, 1460, 1068, 131, 1147, 158, 430, /* 750 */ 1465, 546, 1511, 44, 1465, 1231, 132, 1178, 1465, 432,
/* 760 */ 189, 157, 1208, 1209, 865, 212, 410, 1565, 95, 445, /* 760 */ 190, 159, 446, 175, 158, 213, 412, 1571, 95, 448,
/* 770 */ 442, 1489, 1247, 1460, 532, 460, 528, 524, 520, 211, /* 770 */ 64, 1494, 1257, 1465, 535, 463, 531, 527, 523, 212,
/* 780 */ 415, 160, 162, 1489, 159, 161, 436, 1055, 1245, 69, /* 780 */ 61, 161, 163, 1494, 160, 162, 487, 1059, 1252, 69,
/* 790 */ 1490, 1491, 1494, 1538, 383, 1505, 1489, 257, 1534, 125, /* 790 */ 1495, 1496, 1500, 1544, 383, 1511, 1494, 259, 1540, 126,
/* 800 */ 340, 1056, 443, 1374, 401, 66, 183, 1505, 205, 106, /* 800 */ 1250, 1297, 445, 1213, 1214, 66, 417, 1511, 206, 191,
/* 810 */ 386, 363, 445, 406, 443, 44, 1460, 1568, 1566, 1173, /* 810 */ 385, 342, 448, 178, 445, 33, 1465, 180, 1572, 1127,
/* 820 */ 1505, 177, 33, 1060, 445, 179, 1122, 443, 1460, 428, /* 820 */ 1511, 403, 388, 1064, 448, 1379, 33, 445, 1465, 1155,
/* 830 */ 1506, 1489, 229, 1490, 1491, 1494, 192, 445, 455, 439, /* 830 */ 1085, 1494, 231, 1495, 1496, 1500, 184, 448, 458, 1058,
/* 840 */ 1063, 1460, 2, 1489, 69, 1490, 1491, 1494, 1538, 1066, /* 840 */ 1067, 1465, 365, 1494, 69, 1495, 1496, 1500, 1544, 1112,
/* 850 */ 282, 243, 257, 1534, 1611, 1505, 286, 70, 1490, 1491, /* 850 */ 1574, 438, 259, 1540, 1617, 1511, 1512, 70, 1495, 1496,
/* 860 */ 1494, 1538, 443, 1572, 890, 409, 1535, 1505, 170, 33, /* 860 */ 1500, 1544, 445, 1578, 430, 411, 1541, 1511, 171, 441,
/* 870 */ 64, 33, 445, 1081, 443, 1013, 1460, 196, 245, 1022, /* 870 */ 1057, 193, 448, 1070, 445, 2, 1465, 33, 284, 435,
/* 880 */ 61, 198, 1107, 1030, 445, 167, 94, 104, 1460, 213, /* 880 */ 245, 1017, 197, 1034, 448, 168, 199, 94, 1465, 894,
/* 890 */ 451, 204, 69, 1490, 1491, 1494, 1538, 319, 1412, 137, /* 890 */ 247, 454, 69, 1495, 1496, 1500, 1544, 1026, 214, 288,
/* 900 */ 257, 1534, 1611, 1489, 69, 1490, 1491, 1494, 1538, 325, /* 900 */ 259, 1540, 1617, 1494, 69, 1495, 1496, 1500, 1544, 138,
/* 910 */ 332, 1595, 257, 1534, 1611, 106, 333, 151, 427, 921, /* 910 */ 1061, 1601, 259, 1540, 1617, 104, 321, 152, 429, 205,
/* 920 */ 124, 334, 338, 1556, 339, 1077, 362, 1505, 358, 354, /* 920 */ 125, 106, 1417, 1562, 327, 925, 364, 1511, 360, 356,
/* 930 */ 350, 150, 44, 464, 443, 1076, 916, 949, 104, 1489, /* 930 */ 352, 151, 44, 467, 445, 335, 920, 953, 104, 1494,
/* 940 */ 143, 105, 953, 100, 445, 959, 341, 106, 1460, 342, /* 940 */ 340, 1060, 957, 100, 448, 334, 336, 1081, 1465, 341,
/* 950 */ 1489, 958, 32, 30, 28, 27, 26, 53, 1075, 146, /* 950 */ 1494, 1080, 32, 31, 29, 27, 26, 53, 344, 144,
/* 960 */ 148, 343, 431, 1505, 70, 1490, 1491, 1494, 1538, 365, /* 960 */ 149, 1079, 433, 1511, 70, 1495, 1496, 1500, 1544, 343,
/* 970 */ 443, 51, 441, 1534, 1505, 104, 98, 346, 149, 107, /* 970 */ 445, 345, 443, 1540, 1511, 105, 98, 147, 51, 963,
/* 980 */ 445, 443, 1074, 427, 1460, 74, 186, 1545, 426, 367, /* 980 */ 448, 445, 348, 429, 1465, 106, 187, 1551, 428, 962,
/* 990 */ 425, 445, 1323, 1599, 370, 1460, 153, 1319, 411, 155, /* 990 */ 427, 448, 104, 1605, 150, 1465, 107, 1078, 413, 367,
/* 1000 */ 230, 1490, 1491, 1494, 1489, 109, 130, 110, 100, 1489, /* 1000 */ 232, 1495, 1496, 1500, 1494, 369, 131, 1328, 100, 1494,
/* 1010 */ 1597, 231, 1490, 1491, 1494, 1321, 147, 1317, 120, 253, /* 1010 */ 1603, 233, 1495, 1496, 1500, 154, 148, 1324, 121, 156,
/* 1020 */ 144, 111, 408, 112, 396, 395, 397, 405, 1505, 169, /* 1020 */ 145, 74, 372, 397, 109, 110, 1326, 1322, 1511, 111,
/* 1030 */ 398, 407, 423, 1505, 172, 443, 1073, 142, 1489, 416, /* 1030 */ 112, 255, 425, 1511, 398, 445, 407, 143, 1494, 399,
/* 1040 */ 443, 98, 449, 1579, 1051, 445, 1569, 175, 413, 1460, /* 1040 */ 445, 98, 400, 1077, 170, 448, 173, 418, 409, 1465,
/* 1050 */ 445, 128, 1545, 1546, 1460, 1550, 256, 261, 178, 419, /* 1050 */ 448, 129, 1551, 1552, 1465, 1556, 1575, 263, 1585, 452,
/* 1060 */ 412, 424, 1505, 5, 1489, 118, 1490, 1491, 1494, 443, /* 1060 */ 410, 1055, 1511, 1584, 1494, 119, 1495, 1496, 1500, 445,
/* 1070 */ 231, 1490, 1491, 1494, 4, 1559, 1578, 182, 1206, 445, /* 1070 */ 233, 1495, 1496, 1500, 176, 415, 5, 179, 1211, 448,
/* 1080 */ 1147, 123, 99, 1460, 1072, 34, 265, 1553, 1505, 184, /* 1080 */ 258, 421, 1565, 1465, 426, 414, 267, 99, 1511, 4,
/* 1090 */ 185, 258, 440, 437, 1614, 443, 17, 447, 191, 231, /* 1090 */ 1076, 1152, 1559, 124, 183, 445, 34, 185, 260, 233,
/* 1100 */ 1490, 1491, 1494, 1520, 1613, 445, 1489, 452, 1421, 1460, /* 1100 */ 1495, 1496, 1500, 442, 1619, 448, 1494, 439, 17, 1465,
/* 1110 */ 1596, 1489, 448, 200, 1420, 266, 214, 1489, 453, 1334, /* 1110 */ 456, 1494, 186, 1526, 1426, 450, 192, 1494, 455, 1602,
/* 1120 */ 454, 202, 60, 58, 462, 232, 1490, 1491, 1494, 491, /* 1120 */ 451, 1620, 1425, 201, 268, 234, 1495, 1496, 1500, 215,
/* 1130 */ 1505, 539, 216, 210, 1306, 1505, 220, 443, 218, 40, /* 1130 */ 1511, 457, 203, 58, 1339, 1511, 60, 445, 217, 465,
/* 1140 */ 222, 1505, 443, 1454, 1453, 1205, 281, 445, 443, 1310, /* 1140 */ 494, 1511, 445, 1311, 211, 1210, 542, 448, 445, 1315,
/* 1150 */ 223, 1460, 445, 1450, 283, 284, 1460, 1040, 445, 1489, /* 1150 */ 40, 1465, 448, 223, 224, 219, 1465, 1459, 448, 1494,
/* 1160 */ 1041, 133, 1460, 288, 1448, 290, 291, 225, 1490, 1491, /* 1160 */ 221, 1458, 1465, 283, 1455, 285, 286, 226, 1495, 1496,
/* 1170 */ 1494, 1489, 233, 1490, 1491, 1494, 292, 1447, 226, 1490, /* 1170 */ 1500, 1494, 235, 1495, 1496, 1500, 1044, 1045, 227, 1495,
/* 1180 */ 1491, 1494, 1446, 1505, 1489, 294, 296, 1437, 134, 299, /* 1180 */ 1496, 1500, 134, 1511, 1494, 290, 1453, 1452, 292, 293,
/* 1190 */ 443, 300, 1025, 1431, 1024, 1505, 1430, 306, 305, 1429, /* 1190 */ 445, 294, 296, 1451, 298, 1511, 1442, 135, 301, 302,
/* 1200 */ 445, 1308, 443, 1428, 1460, 1405, 996, 1404, 1505, 1403, /* 1200 */ 448, 1313, 445, 1029, 1465, 1028, 1436, 1435, 1511, 308,
/* 1210 */ 208, 1402, 445, 1489, 490, 443, 1460, 1401, 1400, 1399, /* 1210 */ 209, 307, 448, 1494, 493, 445, 1465, 1434, 1433, 1000,
/* 1220 */ 234, 1490, 1491, 1494, 1398, 445, 1397, 1396, 1395, 1460, /* 1220 */ 236, 1495, 1496, 1500, 1410, 448, 1409, 1408, 1407, 1465,
/* 1230 */ 1394, 1393, 1502, 1490, 1491, 1494, 492, 1505, 1392, 1489, /* 1230 */ 1406, 1405, 1508, 1495, 1496, 1500, 495, 1511, 1404, 1494,
/* 1240 */ 1391, 103, 1390, 1389, 443, 1501, 1490, 1491, 1494, 1388, /* 1240 */ 1403, 1402, 1401, 1400, 445, 1507, 1495, 1496, 1500, 1399,
/* 1250 */ 1387, 1386, 1385, 1384, 445, 489, 488, 487, 1460, 486, /* 1250 */ 1398, 1397, 1396, 1395, 448, 492, 491, 490, 1465, 489,
/* 1260 */ 1383, 998, 208, 1505, 1382, 1489, 490, 1381, 1264, 1445, /* 1260 */ 103, 1394, 209, 1511, 1393, 1494, 493, 1392, 1391, 1390,
/* 1270 */ 443, 1439, 1427, 1489, 1500, 1490, 1491, 1494, 1418, 145, /* 1270 */ 445, 1389, 1388, 1494, 243, 1495, 1496, 1500, 1002, 1387,
/* 1280 */ 445, 1312, 1263, 857, 1460, 1261, 347, 349, 492, 1505, /* 1280 */ 448, 1386, 1269, 1450, 1465, 1444, 1432, 1423, 495, 1511,
/* 1290 */ 348, 1259, 352, 351, 1257, 355, 443, 1505, 1255, 1489, /* 1290 */ 146, 1317, 1268, 1266, 350, 861, 445, 1511, 349, 1494,
/* 1300 */ 241, 1490, 1491, 1494, 443, 353, 445, 489, 488, 487, /* 1300 */ 1506, 1495, 1496, 1500, 445, 351, 448, 492, 491, 490,
/* 1310 */ 1460, 486, 356, 357, 445, 359, 360, 361, 1460, 1244, /* 1310 */ 1465, 489, 1264, 353, 448, 1262, 354, 355, 1465, 359,
/* 1320 */ 1243, 1240, 1314, 1505, 73, 966, 240, 1490, 1491, 1494, /* 1320 */ 1260, 363, 357, 1511, 358, 362, 244, 1495, 1496, 1500,
/* 1330 */ 443, 964, 508, 1313, 242, 1490, 1491, 1494, 889, 152, /* 1330 */ 445, 1249, 361, 1248, 242, 1495, 1496, 1500, 1245, 1319,
/* 1340 */ 445, 1489, 888, 887, 1460, 886, 506, 1253, 883, 882, /* 1340 */ 448, 1494, 73, 970, 1465, 968, 153, 1318, 511, 893,
/* 1350 */ 250, 1248, 251, 384, 1246, 387, 252, 1239, 389, 1238, /* 1350 */ 1258, 892, 891, 1253, 890, 887, 886, 252, 253, 1251,
/* 1360 */ 239, 1490, 1491, 1494, 391, 1505, 71, 1444, 166, 1032, /* 1360 */ 239, 1495, 1496, 1500, 386, 1511, 509, 254, 389, 1244,
/* 1370 */ 43, 1438, 443, 113, 399, 1426, 1425, 1417, 171, 122, /* 1370 */ 391, 1243, 445, 393, 71, 1449, 43, 167, 1036, 1443,
/* 1380 */ 54, 1478, 445, 400, 37, 14, 1460, 3, 176, 33, /* 1380 */ 401, 1431, 448, 113, 1430, 402, 1465, 1422, 123, 172,
/* 1390 */ 1172, 173, 15, 56, 38, 35, 10, 8, 119, 180, /* 1390 */ 14, 15, 37, 54, 1483, 174, 177, 3, 33, 38,
/* 1400 */ 19, 55, 228, 1490, 1491, 1494, 1194, 1165, 181, 20, /* 1400 */ 182, 35, 230, 1495, 1496, 1500, 56, 1177, 120, 10,
/* 1410 */ 1193, 259, 1198, 1416, 1144, 1143, 36, 1197, 260, 1199, /* 1410 */ 188, 181, 1199, 8, 20, 19, 1198, 1170, 55, 1113,
/* 1420 */ 16, 450, 203, 1061, 13, 1108, 201, 187, 1082, 129, /* 1420 */ 261, 1203, 1421, 1202, 1149, 453, 36, 1148, 262, 202,
/* 1430 */ 18, 463, 273, 195, 194, 1170, 197, 199, 45, 57, /* 1430 */ 204, 16, 1204, 466, 1065, 275, 470, 1087, 1086, 13,
/* 1440 */ 467, 1477, 470, 39, 473, 61, 476, 927, 961, 957, /* 1440 */ 18, 198, 130, 196, 473, 1175, 200, 195, 61, 931,
/* 1450 */ 955, 871, 206, 950, 1260, 461, 465, 878, 877, 947, /* 1450 */ 45, 57, 476, 479, 965, 959, 875, 540, 961, 1482,
/* 1460 */ 468, 876, 944, 938, 471, 474, 855, 936, 493, 896, /* 1460 */ 541, 544, 39, 882, 881, 468, 207, 954, 951, 948,
/* 1470 */ 477, 875, 874, 873, 62, 872, 891, 868, 893, 46, /* 1470 */ 471, 1265, 859, 474, 464, 942, 940, 477, 480, 496,
/* 1480 */ 942, 63, 867, 866, 941, 209, 483, 863, 495, 862, /* 1480 */ 900, 880, 879, 878, 877, 876, 895, 62, 897, 872,
/* 1490 */ 861, 860, 518, 517, 1258, 522, 940, 939, 521, 1256, /* 1490 */ 871, 870, 46, 63, 867, 866, 498, 486, 865, 210,
/* 1500 */ 519, 523, 525, 526, 527, 1254, 529, 530, 531, 1242, /* 1500 */ 1263, 864, 520, 521, 946, 525, 945, 944, 943, 522,
/* 1510 */ 533, 534, 960, 1241, 1237, 537, 538, 1212, 1048, 217, /* 1510 */ 524, 526, 1261, 528, 529, 1259, 530, 532, 533, 534,
/* 1520 */ 1212, 541, 542, /* 1520 */ 1247, 536, 537, 1246, 1242, 1052, 964, 218, 545,
}; };
static const YYCODETYPE yy_lookahead[] = { static const YYCODETYPE yy_lookahead[] = {
/* 0 */ 276, 277, 255, 235, 238, 251, 210, 216, 254, 216, /* 0 */ 276, 277, 255, 235, 238, 251, 210, 216, 254, 216,
...@@ -404,121 +405,121 @@ static const YYCODETYPE yy_lookahead[] = { ...@@ -404,121 +405,121 @@ static const YYCODETYPE yy_lookahead[] = {
/* 350 */ 18, 184, 20, 273, 109, 216, 241, 233, 49, 27, /* 350 */ 18, 184, 20, 273, 109, 216, 241, 233, 49, 27,
/* 360 */ 216, 269, 30, 255, 225, 20, 251, 216, 244, 225, /* 360 */ 216, 269, 30, 255, 225, 20, 251, 216, 244, 225,
/* 370 */ 255, 39, 234, 258, 210, 49, 145, 137, 240, 287, /* 370 */ 255, 39, 234, 258, 210, 49, 145, 137, 240, 287,
/* 380 */ 241, 309, 310, 245, 0, 241, 271, 272, 273, 274, /* 380 */ 241, 309, 310, 245, 215, 241, 271, 272, 273, 274,
/* 390 */ 145, 57, 241, 162, 163, 164, 165, 166, 167, 168, /* 390 */ 145, 57, 241, 162, 163, 164, 165, 166, 167, 168,
/* 400 */ 169, 170, 171, 172, 14, 15, 16, 162, 163, 164, /* 400 */ 169, 170, 171, 172, 20, 236, 22, 162, 163, 164,
/* 410 */ 165, 166, 167, 168, 169, 170, 171, 172, 216, 255, /* 410 */ 165, 166, 167, 168, 169, 170, 171, 172, 216, 255,
/* 420 */ 12, 13, 3, 234, 226, 274, 210, 225, 20, 240, /* 420 */ 12, 13, 234, 234, 40, 274, 210, 225, 20, 240,
/* 430 */ 22, 0, 234, 49, 245, 284, 285, 286, 241, 288, /* 430 */ 22, 0, 137, 245, 245, 284, 285, 286, 241, 288,
/* 440 */ 242, 213, 214, 241, 112, 248, 38, 115, 116, 117, /* 440 */ 14, 15, 16, 241, 112, 248, 38, 115, 116, 117,
/* 450 */ 118, 119, 215, 121, 122, 123, 124, 125, 126, 127, /* 450 */ 118, 119, 74, 121, 122, 123, 124, 125, 126, 127,
/* 460 */ 128, 129, 130, 216, 4, 57, 12, 13, 14, 15, /* 460 */ 128, 129, 130, 216, 86, 57, 12, 13, 14, 15,
/* 470 */ 16, 255, 225, 236, 235, 12, 13, 14, 15, 16, /* 470 */ 16, 255, 225, 213, 214, 12, 13, 14, 15, 16,
/* 480 */ 35, 235, 74, 52, 53, 54, 55, 56, 241, 58, /* 480 */ 35, 235, 74, 52, 53, 54, 55, 56, 241, 58,
/* 490 */ 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, /* 490 */ 59, 60, 61, 62, 63, 64, 65, 66, 67, 68,
/* 500 */ 69, 70, 210, 216, 50, 97, 61, 71, 234, 216, /* 500 */ 69, 70, 210, 216, 50, 97, 61, 71, 234, 216,
/* 510 */ 65, 75, 225, 50, 251, 226, 242, 109, 225, 232, /* 510 */ 65, 75, 225, 50, 251, 226, 242, 109, 225, 232,
/* 520 */ 257, 235, 77, 234, 79, 80, 234, 82, 241, 75, /* 520 */ 257, 235, 77, 234, 79, 80, 234, 82, 241, 75,
/* 530 */ 0, 242, 87, 241, 241, 20, 226, 83, 12, 13, /* 530 */ 0, 242, 87, 241, 241, 22, 226, 83, 12, 13,
/* 540 */ 14, 15, 16, 251, 234, 223, 83, 255, 20, 131, /* 540 */ 14, 15, 16, 251, 234, 263, 83, 255, 1, 2,
/* 550 */ 22, 269, 242, 145, 24, 25, 26, 27, 28, 29, /* 550 */ 269, 38, 242, 145, 24, 25, 26, 27, 28, 29,
/* 560 */ 30, 31, 32, 271, 272, 273, 274, 149, 40, 287, /* 560 */ 30, 31, 32, 271, 272, 273, 274, 0, 287, 131,
/* 570 */ 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, /* 570 */ 162, 163, 164, 165, 166, 167, 168, 169, 170, 171,
/* 580 */ 172, 4, 1, 2, 216, 131, 234, 220, 221, 216, /* 580 */ 172, 4, 14, 226, 216, 131, 234, 149, 20, 216,
/* 590 */ 18, 173, 240, 225, 131, 23, 19, 245, 225, 74, /* 590 */ 18, 234, 240, 225, 131, 23, 19, 245, 225, 242,
/* 600 */ 222, 75, 224, 149, 210, 22, 210, 35, 0, 241, /* 600 */ 210, 75, 38, 149, 210, 43, 210, 35, 0, 241,
/* 610 */ 33, 86, 149, 36, 241, 234, 210, 43, 41, 200, /* 610 */ 33, 173, 149, 36, 241, 234, 49, 222, 41, 224,
/* 620 */ 48, 38, 210, 210, 47, 210, 245, 173, 174, 175, /* 620 */ 48, 57, 75, 210, 47, 210, 245, 173, 174, 175,
/* 630 */ 176, 177, 178, 179, 180, 181, 173, 174, 175, 176, /* 630 */ 176, 177, 178, 179, 180, 181, 173, 174, 175, 176,
/* 640 */ 177, 178, 179, 180, 181, 185, 235, 234, 234, 255, /* 640 */ 177, 178, 179, 180, 181, 255, 20, 234, 4, 255,
/* 650 */ 73, 255, 137, 76, 241, 71, 75, 210, 210, 245, /* 650 */ 73, 255, 210, 76, 241, 12, 13, 14, 15, 16,
/* 660 */ 52, 255, 54, 235, 251, 38, 58, 255, 255, 61, /* 660 */ 52, 210, 54, 71, 251, 235, 58, 75, 255, 61,
/* 670 */ 255, 63, 64, 260, 66, 182, 183, 210, 210, 210, /* 670 */ 255, 63, 64, 260, 66, 220, 221, 210, 210, 210,
/* 680 */ 210, 210, 141, 111, 271, 272, 273, 274, 275, 210, /* 680 */ 210, 210, 3, 111, 271, 272, 273, 274, 275, 210,
/* 690 */ 12, 13, 279, 280, 21, 1, 2, 156, 210, 210, /* 690 */ 12, 13, 279, 280, 21, 1, 2, 255, 210, 210,
/* 700 */ 22, 234, 255, 255, 291, 210, 71, 34, 241, 210, /* 700 */ 22, 234, 182, 183, 291, 210, 255, 34, 241, 210,
/* 710 */ 138, 139, 140, 263, 142, 0, 38, 304, 251, 147, /* 710 */ 138, 139, 140, 210, 142, 141, 38, 304, 251, 147,
/* 720 */ 211, 308, 255, 255, 255, 255, 255, 155, 210, 157, /* 720 */ 71, 308, 255, 255, 255, 255, 255, 155, 210, 157,
/* 730 */ 38, 159, 160, 161, 255, 57, 109, 22, 271, 272, /* 730 */ 156, 159, 160, 161, 255, 57, 71, 50, 271, 272,
/* 740 */ 273, 274, 275, 255, 255, 38, 279, 280, 281, 14, /* 740 */ 273, 274, 275, 255, 255, 183, 279, 280, 281, 235,
/* 750 */ 255, 19, 234, 311, 255, 20, 184, 183, 78, 241, /* 750 */ 255, 19, 234, 71, 255, 211, 184, 75, 255, 241,
/* 760 */ 293, 81, 163, 164, 57, 33, 299, 300, 36, 251, /* 760 */ 293, 78, 235, 137, 81, 33, 299, 300, 36, 251,
/* 770 */ 50, 210, 0, 255, 42, 97, 44, 45, 46, 47, /* 770 */ 74, 210, 0, 255, 42, 97, 44, 45, 46, 47,
/* 780 */ 302, 78, 78, 210, 81, 81, 202, 109, 0, 271, /* 780 */ 84, 78, 78, 210, 81, 81, 235, 109, 0, 271,
/* 790 */ 272, 273, 274, 275, 22, 234, 210, 279, 280, 281, /* 790 */ 272, 273, 274, 275, 22, 234, 210, 279, 280, 281,
/* 800 */ 251, 109, 241, 244, 251, 73, 296, 234, 76, 71, /* 800 */ 0, 223, 241, 163, 164, 73, 302, 234, 76, 311,
/* 810 */ 22, 213, 251, 75, 241, 71, 255, 270, 300, 75, /* 810 */ 22, 251, 251, 71, 241, 71, 255, 75, 300, 75,
/* 820 */ 234, 71, 71, 145, 251, 75, 75, 241, 255, 289, /* 820 */ 234, 251, 22, 145, 251, 244, 71, 241, 255, 185,
/* 830 */ 234, 210, 271, 272, 273, 274, 305, 251, 106, 204, /* 830 */ 75, 210, 271, 272, 273, 274, 296, 251, 106, 38,
/* 840 */ 162, 255, 292, 210, 271, 272, 273, 274, 275, 20, /* 840 */ 162, 255, 213, 210, 271, 272, 273, 274, 275, 162,
/* 850 */ 216, 266, 279, 280, 281, 234, 36, 271, 272, 273, /* 850 */ 270, 202, 279, 280, 281, 234, 234, 271, 272, 273,
/* 860 */ 274, 275, 241, 290, 38, 133, 280, 234, 136, 71, /* 860 */ 274, 275, 241, 290, 289, 133, 280, 234, 136, 204,
/* 870 */ 74, 71, 251, 75, 241, 75, 255, 71, 220, 143, /* 870 */ 38, 305, 251, 20, 241, 292, 255, 71, 216, 200,
/* 880 */ 84, 75, 162, 151, 251, 153, 71, 71, 255, 261, /* 880 */ 266, 75, 71, 151, 251, 153, 75, 71, 255, 38,
/* 890 */ 75, 75, 271, 272, 273, 274, 275, 216, 216, 120, /* 890 */ 220, 75, 271, 272, 273, 274, 275, 143, 261, 36,
/* 900 */ 279, 280, 281, 210, 271, 272, 273, 274, 275, 249, /* 900 */ 279, 280, 281, 210, 271, 272, 273, 274, 275, 120,
/* 910 */ 247, 290, 279, 280, 281, 71, 131, 33, 216, 75, /* 910 */ 109, 290, 279, 280, 281, 71, 216, 33, 216, 75,
/* 920 */ 36, 247, 216, 290, 265, 20, 42, 234, 44, 45, /* 920 */ 36, 71, 216, 290, 249, 75, 42, 234, 44, 45,
/* 930 */ 46, 47, 71, 71, 241, 20, 75, 75, 71, 210, /* 930 */ 46, 47, 71, 71, 241, 131, 75, 75, 71, 210,
/* 940 */ 218, 71, 75, 241, 251, 75, 259, 71, 255, 241, /* 940 */ 216, 109, 75, 241, 251, 247, 247, 20, 255, 265,
/* 950 */ 210, 75, 12, 13, 14, 15, 16, 73, 20, 218, /* 950 */ 210, 20, 12, 13, 14, 15, 16, 73, 241, 218,
/* 960 */ 76, 252, 260, 234, 271, 272, 273, 274, 275, 212, /* 960 */ 76, 20, 260, 234, 271, 272, 273, 274, 275, 259,
/* 970 */ 241, 218, 279, 280, 234, 71, 274, 216, 218, 75, /* 970 */ 241, 252, 279, 280, 234, 71, 274, 218, 218, 75,
/* 980 */ 251, 241, 20, 216, 255, 216, 284, 285, 286, 234, /* 980 */ 251, 241, 216, 216, 255, 71, 284, 285, 286, 75,
/* 990 */ 288, 251, 234, 291, 220, 255, 234, 234, 258, 234, /* 990 */ 288, 251, 71, 291, 218, 255, 75, 20, 258, 212,
/* 1000 */ 271, 272, 273, 274, 210, 234, 304, 234, 241, 210, /* 1000 */ 271, 272, 273, 274, 210, 234, 304, 234, 241, 210,
/* 1010 */ 308, 271, 272, 273, 274, 234, 132, 234, 134, 212, /* 1010 */ 308, 271, 272, 273, 274, 234, 132, 234, 134, 234,
/* 1020 */ 136, 234, 252, 234, 265, 241, 152, 259, 234, 215, /* 1020 */ 136, 216, 220, 241, 234, 234, 234, 234, 234, 234,
/* 1030 */ 264, 241, 303, 234, 215, 241, 20, 153, 210, 192, /* 1030 */ 234, 212, 303, 234, 265, 241, 259, 153, 210, 152,
/* 1040 */ 241, 274, 191, 301, 57, 251, 270, 256, 255, 255, /* 1040 */ 241, 274, 264, 20, 215, 251, 215, 192, 241, 255,
/* 1050 */ 251, 284, 285, 286, 255, 288, 255, 258, 256, 255, /* 1050 */ 251, 284, 285, 286, 255, 288, 270, 258, 301, 191,
/* 1060 */ 187, 198, 234, 199, 210, 271, 272, 273, 274, 241, /* 1060 */ 252, 57, 234, 301, 210, 271, 272, 273, 274, 241,
/* 1070 */ 271, 272, 273, 274, 186, 298, 301, 297, 138, 251, /* 1070 */ 271, 272, 273, 274, 256, 255, 199, 256, 138, 251,
/* 1080 */ 183, 295, 241, 255, 20, 120, 258, 269, 234, 294, /* 1080 */ 255, 255, 298, 255, 198, 187, 258, 241, 234, 186,
/* 1090 */ 282, 206, 203, 201, 312, 241, 74, 255, 306, 271, /* 1090 */ 20, 183, 269, 295, 297, 241, 120, 294, 206, 271,
/* 1100 */ 272, 273, 274, 278, 310, 251, 210, 134, 256, 255, /* 1100 */ 272, 273, 274, 203, 310, 251, 210, 201, 74, 255,
/* 1110 */ 307, 210, 255, 241, 256, 255, 230, 210, 253, 241, /* 1110 */ 253, 210, 282, 278, 256, 255, 306, 210, 134, 307,
/* 1120 */ 252, 215, 74, 215, 237, 271, 272, 273, 274, 220, /* 1120 */ 255, 312, 256, 241, 255, 271, 272, 273, 274, 230,
/* 1130 */ 234, 212, 216, 215, 224, 234, 208, 241, 217, 262, /* 1130 */ 234, 252, 215, 215, 241, 234, 74, 241, 216, 237,
/* 1140 */ 228, 234, 241, 0, 0, 205, 64, 251, 241, 0, /* 1140 */ 220, 234, 241, 224, 215, 205, 212, 251, 241, 0,
/* 1150 */ 228, 255, 251, 0, 38, 158, 255, 38, 251, 210, /* 1150 */ 262, 255, 251, 228, 228, 217, 255, 0, 251, 210,
/* 1160 */ 38, 38, 255, 158, 0, 38, 38, 271, 272, 273, /* 1160 */ 208, 0, 255, 64, 0, 38, 158, 271, 272, 273,
/* 1170 */ 274, 210, 271, 272, 273, 274, 158, 0, 271, 272, /* 1170 */ 274, 210, 271, 272, 273, 274, 38, 38, 271, 272,
/* 1180 */ 273, 274, 0, 234, 210, 38, 38, 0, 74, 149, /* 1180 */ 273, 274, 38, 234, 210, 158, 0, 0, 38, 38,
/* 1190 */ 241, 148, 109, 0, 145, 234, 0, 141, 53, 0, /* 1190 */ 241, 158, 38, 0, 38, 234, 0, 74, 149, 148,
/* 1200 */ 251, 0, 241, 0, 255, 0, 86, 0, 234, 0, /* 1200 */ 251, 0, 241, 109, 255, 145, 0, 0, 234, 141,
/* 1210 */ 61, 0, 251, 210, 65, 241, 255, 0, 0, 0, /* 1210 */ 61, 53, 251, 210, 65, 241, 255, 0, 0, 86,
/* 1220 */ 271, 272, 273, 274, 0, 251, 0, 0, 0, 255, /* 1220 */ 271, 272, 273, 274, 0, 251, 0, 0, 0, 255,
/* 1230 */ 0, 0, 271, 272, 273, 274, 87, 234, 0, 210, /* 1230 */ 0, 0, 271, 272, 273, 274, 87, 234, 0, 210,
/* 1240 */ 0, 120, 0, 0, 241, 271, 272, 273, 274, 0, /* 1240 */ 0, 0, 0, 0, 241, 271, 272, 273, 274, 0,
/* 1250 */ 0, 0, 0, 0, 251, 106, 107, 108, 255, 110, /* 1250 */ 0, 0, 0, 0, 251, 106, 107, 108, 255, 110,
/* 1260 */ 0, 22, 61, 234, 0, 210, 65, 0, 0, 0, /* 1260 */ 120, 0, 61, 234, 0, 210, 65, 0, 0, 0,
/* 1270 */ 241, 0, 0, 210, 271, 272, 273, 274, 0, 43, /* 1270 */ 241, 0, 0, 210, 271, 272, 273, 274, 22, 0,
/* 1280 */ 251, 0, 0, 51, 255, 0, 38, 43, 87, 234, /* 1280 */ 251, 0, 0, 0, 255, 0, 0, 0, 87, 234,
/* 1290 */ 36, 0, 36, 38, 0, 38, 241, 234, 0, 210, /* 1290 */ 43, 0, 0, 0, 36, 51, 241, 234, 38, 210,
/* 1300 */ 271, 272, 273, 274, 241, 43, 251, 106, 107, 108, /* 1300 */ 271, 272, 273, 274, 241, 43, 251, 106, 107, 108,
/* 1310 */ 255, 110, 36, 43, 251, 38, 36, 43, 255, 0, /* 1310 */ 255, 110, 0, 38, 251, 0, 36, 43, 255, 43,
/* 1320 */ 0, 0, 0, 234, 83, 38, 271, 272, 273, 274, /* 1320 */ 0, 43, 38, 234, 36, 36, 271, 272, 273, 274,
/* 1330 */ 241, 22, 71, 0, 271, 272, 273, 274, 38, 81, /* 1330 */ 241, 0, 38, 0, 271, 272, 273, 274, 0, 0,
/* 1340 */ 251, 210, 38, 38, 255, 38, 71, 0, 38, 38, /* 1340 */ 251, 210, 83, 38, 255, 22, 81, 0, 71, 38,
/* 1350 */ 22, 0, 22, 39, 0, 38, 22, 0, 22, 0, /* 1350 */ 0, 38, 38, 0, 38, 38, 38, 22, 22, 0,
/* 1360 */ 271, 272, 273, 274, 22, 234, 20, 0, 154, 38, /* 1360 */ 271, 272, 273, 274, 39, 234, 71, 22, 38, 0,
/* 1370 */ 137, 0, 241, 150, 22, 0, 0, 0, 43, 134, /* 1370 */ 22, 0, 241, 22, 20, 0, 137, 154, 38, 0,
/* 1380 */ 74, 86, 251, 137, 137, 188, 255, 71, 75, 71, /* 1380 */ 22, 0, 251, 150, 0, 137, 255, 0, 134, 43,
/* 1390 */ 75, 132, 188, 4, 71, 182, 188, 2, 74, 74, /* 1390 */ 188, 188, 137, 74, 86, 132, 75, 71, 71, 71,
/* 1400 */ 74, 74, 271, 272, 273, 274, 38, 75, 71, 71, /* 1400 */ 71, 182, 271, 272, 273, 274, 4, 75, 74, 188,
/* 1410 */ 38, 38, 38, 0, 75, 75, 71, 38, 38, 75, /* 1410 */ 86, 74, 38, 2, 71, 74, 38, 75, 74, 162,
/* 1420 */ 71, 135, 132, 22, 74, 162, 43, 86, 75, 86, /* 1420 */ 38, 38, 0, 38, 75, 135, 71, 75, 38, 43,
/* 1430 */ 74, 38, 38, 75, 86, 75, 74, 74, 74, 74, /* 1430 */ 132, 71, 75, 38, 22, 38, 38, 75, 75, 74,
/* 1440 */ 38, 86, 38, 74, 38, 84, 38, 22, 38, 38, /* 1440 */ 74, 74, 86, 75, 38, 75, 74, 86, 84, 22,
/* 1450 */ 22, 22, 86, 75, 0, 85, 74, 38, 38, 75, /* 1450 */ 74, 74, 38, 38, 38, 22, 22, 22, 38, 86,
/* 1460 */ 74, 38, 75, 75, 74, 74, 51, 75, 50, 57, /* 1460 */ 21, 21, 74, 38, 38, 74, 86, 75, 75, 75,
/* 1470 */ 74, 38, 38, 38, 74, 38, 38, 38, 57, 74, /* 1470 */ 74, 0, 51, 74, 85, 75, 75, 74, 74, 50,
/* 1480 */ 99, 74, 38, 38, 99, 71, 87, 38, 72, 38, /* 1480 */ 57, 38, 38, 38, 38, 38, 38, 74, 57, 38,
/* 1490 */ 38, 38, 36, 38, 0, 36, 99, 99, 38, 0, /* 1490 */ 38, 38, 74, 74, 38, 38, 72, 87, 38, 71,
/* 1500 */ 43, 43, 38, 36, 43, 0, 38, 36, 43, 0, /* 1500 */ 0, 38, 38, 36, 99, 36, 99, 99, 99, 43,
/* 1510 */ 38, 37, 109, 0, 0, 22, 21, 313, 22, 22, /* 1510 */ 38, 43, 0, 38, 36, 0, 43, 38, 36, 43,
/* 1520 */ 313, 21, 20, 313, 313, 313, 313, 313, 313, 313, /* 1520 */ 0, 38, 37, 0, 0, 22, 109, 22, 20, 313,
/* 1530 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, /* 1530 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313,
/* 1540 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, /* 1540 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313,
/* 1550 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, /* 1550 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313,
...@@ -539,10 +540,11 @@ static const YYCODETYPE yy_lookahead[] = { ...@@ -539,10 +540,11 @@ static const YYCODETYPE yy_lookahead[] = {
/* 1700 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, /* 1700 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313,
/* 1710 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, /* 1710 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313,
/* 1720 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, /* 1720 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313,
/* 1730 */ 313, 313, 313, 313, 313, 313,
}; };
#define YY_SHIFT_COUNT (543) #define YY_SHIFT_COUNT (546)
#define YY_SHIFT_MIN (0) #define YY_SHIFT_MIN (0)
#define YY_SHIFT_MAX (1514) #define YY_SHIFT_MAX (1524)
static const unsigned short int yy_shift_ofst[] = { static const unsigned short int yy_shift_ofst[] = {
/* 0 */ 572, 0, 51, 64, 64, 64, 64, 167, 64, 64, /* 0 */ 572, 0, 51, 64, 64, 64, 64, 167, 64, 64,
/* 10 */ 245, 408, 100, 231, 245, 245, 245, 245, 245, 245, /* 10 */ 245, 408, 100, 231, 245, 245, 245, 245, 245, 245,
...@@ -553,54 +555,54 @@ static const unsigned short int yy_shift_ofst[] = { ...@@ -553,54 +555,54 @@ static const unsigned short int yy_shift_ofst[] = {
/* 60 */ 26, 16, 26, 26, 26, 16, 309, 332, 454, 463, /* 60 */ 26, 16, 26, 26, 26, 16, 309, 332, 454, 463,
/* 70 */ 463, 265, 445, 153, 134, 153, 153, 153, 153, 153, /* 70 */ 463, 265, 445, 153, 134, 153, 153, 153, 153, 153,
/* 80 */ 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, /* 80 */ 153, 153, 153, 153, 153, 153, 153, 153, 153, 153,
/* 90 */ 153, 153, 153, 153, 85, 528, 326, 218, 240, 240, /* 90 */ 153, 153, 153, 153, 85, 384, 326, 218, 240, 240,
/* 100 */ 240, 384, 218, 345, 26, 26, 26, 61, 334, 39, /* 100 */ 240, 567, 218, 345, 26, 26, 26, 61, 334, 39,
/* 110 */ 39, 39, 39, 39, 39, 732, 126, 608, 940, 77, /* 110 */ 39, 39, 39, 39, 39, 39, 732, 126, 608, 940,
/* 120 */ 85, 117, 85, 90, 583, 515, 493, 574, 493, 735, /* 120 */ 77, 85, 117, 85, 90, 513, 626, 520, 562, 520,
/* 130 */ 419, 460, 829, 820, 826, 736, 829, 829, 779, 785, /* 130 */ 568, 679, 644, 853, 863, 851, 754, 853, 853, 789,
/* 140 */ 785, 829, 905, 915, 73, 345, 938, 73, 73, 829, /* 140 */ 804, 804, 853, 927, 931, 73, 345, 941, 73, 73,
/* 150 */ 73, 962, 26, 26, 26, 26, 26, 26, 26, 26, /* 150 */ 853, 73, 977, 26, 26, 26, 26, 26, 26, 26,
/* 160 */ 26, 26, 26, 826, 829, 962, 345, 905, 874, 915, /* 160 */ 26, 26, 26, 26, 851, 853, 977, 345, 927, 887,
/* 170 */ 309, 345, 938, 309, 1016, 847, 851, 987, 847, 851, /* 170 */ 931, 309, 345, 941, 309, 1023, 855, 868, 1004, 855,
/* 180 */ 987, 987, 864, 863, 873, 888, 897, 345, 1064, 965, /* 180 */ 868, 1004, 1004, 877, 886, 898, 903, 908, 345, 1070,
/* 190 */ 885, 889, 892, 1022, 26, 851, 987, 987, 851, 987, /* 190 */ 976, 892, 900, 906, 1034, 26, 868, 1004, 1004, 868,
/* 200 */ 973, 345, 938, 309, 61, 309, 345, 1048, 826, 334, /* 200 */ 1004, 984, 345, 941, 309, 61, 309, 345, 1062, 851,
/* 210 */ 829, 309, 962, 1523, 1523, 1523, 1523, 1523, 431, 884, /* 210 */ 334, 853, 309, 977, 1529, 1529, 1529, 1529, 1529, 431,
/* 220 */ 530, 577, 1149, 1201, 13, 29, 46, 526, 295, 295, /* 220 */ 884, 530, 577, 1149, 1201, 13, 29, 46, 526, 295,
/* 230 */ 295, 295, 295, 295, 295, 34, 234, 581, 418, 390, /* 230 */ 643, 643, 643, 643, 643, 643, 643, 34, 234, 426,
/* 240 */ 390, 390, 390, 19, 541, 436, 121, 680, 703, 704, /* 240 */ 547, 438, 426, 426, 426, 19, 574, 436, 121, 683,
/* 250 */ 715, 772, 788, 673, 738, 744, 750, 694, 599, 584, /* 250 */ 703, 704, 772, 788, 800, 673, 592, 682, 742, 694,
/* 260 */ 635, 751, 720, 798, 525, 800, 806, 815, 816, 844, /* 260 */ 640, 649, 665, 744, 687, 755, 378, 806, 811, 816,
/* 270 */ 627, 692, 861, 862, 867, 870, 876, 904, 796, 707, /* 270 */ 844, 850, 801, 832, 861, 862, 867, 904, 914, 921,
/* 280 */ 1143, 1144, 1082, 1153, 1116, 997, 1119, 1122, 1123, 1005, /* 280 */ 696, 564, 1157, 1161, 1099, 1164, 1127, 1008, 1138, 1139,
/* 290 */ 1164, 1127, 1128, 1018, 1177, 1147, 1182, 1148, 1187, 1114, /* 290 */ 1144, 1027, 1186, 1150, 1151, 1033, 1187, 1154, 1193, 1156,
/* 300 */ 1040, 1043, 1083, 1049, 1193, 1196, 1145, 1056, 1199, 1203, /* 300 */ 1196, 1123, 1049, 1051, 1094, 1060, 1206, 1207, 1158, 1068,
/* 310 */ 1120, 1205, 1207, 1209, 1211, 1217, 1218, 1219, 1224, 1226, /* 310 */ 1217, 1218, 1133, 1224, 1226, 1227, 1228, 1230, 1231, 1238,
/* 320 */ 1227, 1228, 1230, 1231, 1238, 1240, 1121, 1242, 1243, 1249, /* 320 */ 1240, 1241, 1242, 1243, 1249, 1250, 1251, 1252, 1140, 1253,
/* 330 */ 1250, 1251, 1252, 1239, 1253, 1260, 1264, 1267, 1268, 1269, /* 330 */ 1261, 1264, 1267, 1268, 1269, 1256, 1271, 1272, 1279, 1281,
/* 340 */ 1271, 1272, 1278, 1236, 1281, 1232, 1282, 1285, 1248, 1254, /* 340 */ 1282, 1283, 1285, 1286, 1287, 1247, 1291, 1244, 1292, 1293,
/* 350 */ 1244, 1291, 1255, 1256, 1262, 1294, 1257, 1276, 1270, 1298, /* 350 */ 1260, 1258, 1262, 1312, 1275, 1280, 1274, 1315, 1284, 1288,
/* 360 */ 1277, 1280, 1274, 1319, 1320, 1321, 1322, 1241, 1258, 1287, /* 360 */ 1276, 1320, 1294, 1289, 1278, 1331, 1333, 1338, 1339, 1259,
/* 370 */ 1261, 1309, 1333, 1300, 1304, 1305, 1307, 1275, 1261, 1310, /* 370 */ 1265, 1305, 1277, 1323, 1347, 1311, 1313, 1314, 1316, 1295,
/* 380 */ 1311, 1347, 1328, 1351, 1330, 1314, 1354, 1334, 1317, 1357, /* 380 */ 1277, 1317, 1318, 1350, 1335, 1353, 1336, 1325, 1359, 1345,
/* 390 */ 1336, 1359, 1342, 1346, 1367, 1233, 1214, 1331, 1371, 1223, /* 390 */ 1330, 1369, 1348, 1371, 1351, 1354, 1375, 1239, 1223, 1340,
/* 400 */ 1352, 1246, 1245, 1375, 1376, 1247, 1377, 1306, 1335, 1259, /* 400 */ 1379, 1233, 1358, 1248, 1254, 1381, 1384, 1255, 1387, 1319,
/* 410 */ 1316, 1318, 1197, 1313, 1323, 1315, 1324, 1325, 1326, 1332, /* 410 */ 1346, 1263, 1326, 1327, 1202, 1321, 1328, 1332, 1334, 1337,
/* 420 */ 1337, 1295, 1327, 1338, 1204, 1339, 1340, 1341, 1213, 1345, /* 420 */ 1341, 1342, 1329, 1308, 1344, 1343, 1203, 1349, 1352, 1324,
/* 430 */ 1343, 1344, 1349, 1208, 1389, 1368, 1372, 1373, 1374, 1379, /* 430 */ 1219, 1355, 1356, 1357, 1360, 1221, 1402, 1374, 1378, 1382,
/* 440 */ 1380, 1395, 1263, 1348, 1353, 1350, 1356, 1358, 1360, 1362, /* 440 */ 1383, 1385, 1390, 1411, 1257, 1361, 1362, 1363, 1365, 1366,
/* 450 */ 1363, 1286, 1364, 1413, 1383, 1290, 1365, 1361, 1355, 1366, /* 450 */ 1368, 1370, 1367, 1372, 1290, 1376, 1422, 1386, 1298, 1377,
/* 460 */ 1401, 1369, 1370, 1378, 1393, 1394, 1382, 1384, 1402, 1386, /* 460 */ 1364, 1373, 1380, 1412, 1388, 1389, 1392, 1395, 1397, 1391,
/* 470 */ 1387, 1404, 1390, 1388, 1406, 1391, 1392, 1408, 1396, 1381, /* 470 */ 1393, 1398, 1396, 1394, 1406, 1399, 1400, 1414, 1403, 1401,
/* 480 */ 1385, 1397, 1398, 1425, 1399, 1400, 1410, 1403, 1405, 1407, /* 480 */ 1415, 1404, 1405, 1407, 1408, 1409, 1427, 1410, 1413, 1416,
/* 490 */ 1411, 1261, 1428, 1415, 1418, 1412, 1416, 1414, 1419, 1420, /* 490 */ 1417, 1418, 1419, 1420, 1277, 1433, 1421, 1429, 1423, 1424,
/* 500 */ 1423, 1433, 1434, 1435, 1437, 1429, 1421, 1275, 1438, 1261, /* 500 */ 1428, 1425, 1426, 1443, 1444, 1445, 1446, 1447, 1434, 1431,
/* 510 */ 1439, 1444, 1445, 1449, 1451, 1452, 1453, 1454, 1455, 1456, /* 510 */ 1295, 1448, 1277, 1451, 1452, 1453, 1456, 1457, 1460, 1463,
/* 520 */ 1457, 1494, 1460, 1459, 1458, 1499, 1464, 1467, 1461, 1505, /* 520 */ 1471, 1464, 1467, 1466, 1500, 1472, 1469, 1468, 1512, 1475,
/* 530 */ 1468, 1471, 1465, 1509, 1472, 1474, 1513, 1514, 1493, 1495, /* 530 */ 1478, 1473, 1515, 1479, 1482, 1476, 1520, 1483, 1485, 1523,
/* 540 */ 1496, 1497, 1500, 1502, /* 540 */ 1524, 1435, 1439, 1503, 1505, 1440, 1508,
}; };
#define YY_REDUCE_COUNT (217) #define YY_REDUCE_COUNT (218)
#define YY_REDUCE_MIN (-276) #define YY_REDUCE_MIN (-276)
#define YY_REDUCE_MAX (1131) #define YY_REDUCE_MAX (1131)
static const short yy_reduce_ofst[] = { static const short yy_reduce_ofst[] = {
...@@ -609,80 +611,80 @@ static const short yy_reduce_ofst[] = { ...@@ -609,80 +611,80 @@ static const short yy_reduce_ofst[] = {
/* 20 */ 561, 854, 896, 901, 907, 949, 961, 974, 1003, 1029, /* 20 */ 561, 854, 896, 901, 907, 949, 961, 974, 1003, 1029,
/* 30 */ 1055, 1063, 1089, 1131, -192, 151, 767, -23, -234, -215, /* 30 */ 1055, 1063, 1089, 1131, -192, 151, 767, -23, -234, -215,
/* 40 */ -225, 22, 287, -49, -253, -246, -233, -209, -40, 36, /* 40 */ -225, 22, 287, -49, -253, -246, -233, -209, -40, 36,
/* 50 */ 139, 144, 202, -128, 138, 80, -4, 198, 247, 293, /* 50 */ 139, 144, 202, -128, 138, 80, -4, 289, 247, 293,
/* 60 */ 189, 368, 289, 352, 310, 373, 88, -207, -276, -276, /* 60 */ 189, 368, 310, 352, 357, 373, 88, -207, -276, -276,
/* 70 */ -276, -28, 124, -61, 97, 108, 164, 216, 394, 396, /* 70 */ -276, -28, 124, -61, 97, 108, 164, 216, 390, 394,
/* 80 */ 406, 412, 415, 447, 448, 468, 469, 470, 471, 479, /* 80 */ 396, 415, 442, 451, 468, 469, 470, 471, 479, 488,
/* 90 */ 488, 489, 495, 499, 263, 228, 60, -108, -189, 92, /* 90 */ 489, 495, 499, 503, 263, 260, 60, -108, -189, 92,
/* 100 */ 282, 237, 367, 197, 274, 381, 414, -155, 378, -232, /* 100 */ 281, 169, 455, 197, 274, 188, 381, -155, 395, -232,
/* 110 */ 239, 246, 286, 411, 428, 450, 509, 322, 442, 478, /* 110 */ 246, 286, 430, 514, 527, 551, 282, 544, 578, 498,
/* 120 */ 549, 559, 553, 510, 598, 547, 540, 540, 540, 596, /* 120 */ 504, 560, 581, 570, 540, 629, 580, 575, 575, 575,
/* 130 */ 531, 550, 634, 585, 658, 628, 681, 682, 660, 663, /* 130 */ 622, 566, 583, 662, 614, 670, 637, 700, 706, 675,
/* 140 */ 674, 706, 659, 687, 722, 708, 709, 741, 753, 761, /* 140 */ 698, 699, 724, 684, 710, 741, 717, 719, 759, 760,
/* 150 */ 760, 757, 755, 758, 762, 763, 765, 771, 773, 781, /* 150 */ 766, 776, 787, 771, 773, 781, 783, 785, 790, 791,
/* 160 */ 783, 787, 789, 774, 769, 807, 784, 759, 766, 768, /* 160 */ 792, 793, 795, 796, 802, 805, 819, 782, 769, 778,
/* 170 */ 814, 790, 770, 819, 776, 742, 791, 793, 775, 802, /* 170 */ 777, 829, 807, 808, 831, 786, 757, 818, 820, 762,
/* 180 */ 801, 804, 777, 780, 786, 795, 540, 841, 818, 808, /* 180 */ 821, 825, 826, 784, 797, 798, 803, 575, 846, 823,
/* 190 */ 782, 803, 792, 825, 596, 852, 842, 857, 858, 860, /* 190 */ 830, 809, 812, 810, 835, 622, 858, 860, 865, 866,
/* 200 */ 865, 872, 868, 906, 886, 908, 878, 887, 909, 910, /* 200 */ 869, 857, 882, 879, 917, 899, 918, 893, 902, 920,
/* 210 */ 916, 918, 919, 877, 912, 922, 921, 928, /* 210 */ 919, 922, 929, 934, 888, 925, 926, 938, 952,
}; };
static const YYACTIONTYPE yy_default[] = { static const YYACTIONTYPE yy_default[] = {
/* 0 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, /* 0 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215,
/* 10 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, /* 10 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215,
/* 20 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, /* 20 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215,
/* 30 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, /* 30 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215,
/* 40 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, /* 40 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215,
/* 50 */ 1210, 1210, 1210, 1269, 1210, 1210, 1210, 1210, 1210, 1210, /* 50 */ 1215, 1215, 1215, 1274, 1215, 1215, 1215, 1215, 1215, 1215,
/* 60 */ 1210, 1210, 1210, 1210, 1210, 1210, 1267, 1406, 1210, 1540, /* 60 */ 1215, 1215, 1215, 1215, 1215, 1215, 1272, 1411, 1215, 1546,
/* 70 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, /* 70 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215,
/* 80 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, /* 80 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215,
/* 90 */ 1210, 1210, 1210, 1210, 1210, 1210, 1269, 1210, 1551, 1551, /* 90 */ 1215, 1215, 1215, 1215, 1215, 1215, 1274, 1215, 1557, 1557,
/* 100 */ 1551, 1267, 1210, 1210, 1210, 1210, 1210, 1362, 1210, 1210, /* 100 */ 1557, 1272, 1215, 1215, 1215, 1215, 1215, 1367, 1215, 1215,
/* 110 */ 1210, 1210, 1210, 1210, 1210, 1440, 1210, 1210, 1615, 1210, /* 110 */ 1215, 1215, 1215, 1215, 1215, 1215, 1445, 1215, 1215, 1621,
/* 120 */ 1210, 1315, 1210, 1575, 1210, 1567, 1543, 1557, 1544, 1210, /* 120 */ 1215, 1215, 1320, 1215, 1581, 1215, 1573, 1549, 1563, 1550,
/* 130 */ 1600, 1560, 1210, 1210, 1210, 1432, 1210, 1210, 1411, 1408, /* 130 */ 1215, 1606, 1566, 1215, 1215, 1215, 1437, 1215, 1215, 1416,
/* 140 */ 1408, 1210, 1210, 1210, 1269, 1210, 1210, 1269, 1269, 1210, /* 140 */ 1413, 1413, 1215, 1215, 1215, 1274, 1215, 1215, 1274, 1274,
/* 150 */ 1269, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, /* 150 */ 1215, 1274, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215,
/* 160 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1442, 1210, /* 160 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1447,
/* 170 */ 1267, 1210, 1210, 1267, 1210, 1582, 1580, 1210, 1582, 1580, /* 170 */ 1215, 1272, 1215, 1215, 1272, 1215, 1588, 1586, 1215, 1588,
/* 180 */ 1210, 1210, 1594, 1590, 1573, 1571, 1557, 1210, 1210, 1210, /* 180 */ 1586, 1215, 1215, 1600, 1596, 1579, 1577, 1563, 1215, 1215,
/* 190 */ 1618, 1606, 1602, 1210, 1210, 1580, 1210, 1210, 1580, 1210, /* 190 */ 1215, 1624, 1612, 1608, 1215, 1215, 1586, 1215, 1215, 1586,
/* 200 */ 1419, 1210, 1210, 1267, 1210, 1267, 1210, 1331, 1210, 1210, /* 200 */ 1215, 1424, 1215, 1215, 1272, 1215, 1272, 1215, 1336, 1215,
/* 210 */ 1210, 1267, 1210, 1434, 1365, 1365, 1270, 1215, 1210, 1210, /* 210 */ 1215, 1215, 1272, 1215, 1439, 1370, 1370, 1275, 1220, 1215,
/* 220 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1504, 1593, /* 220 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1509,
/* 230 */ 1592, 1503, 1517, 1516, 1515, 1210, 1210, 1210, 1210, 1498, /* 230 */ 1510, 1599, 1598, 1509, 1523, 1522, 1521, 1215, 1215, 1504,
/* 240 */ 1499, 1497, 1496, 1210, 1210, 1210, 1210, 1210, 1210, 1210, /* 240 */ 1215, 1215, 1505, 1503, 1502, 1215, 1215, 1215, 1215, 1215,
/* 250 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1541, 1210, 1603, /* 250 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1547,
/* 260 */ 1607, 1210, 1210, 1210, 1479, 1210, 1210, 1210, 1210, 1210, /* 260 */ 1215, 1609, 1613, 1215, 1215, 1215, 1484, 1215, 1215, 1215,
/* 270 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, /* 270 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215,
/* 280 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, /* 280 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215,
/* 290 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, /* 290 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215,
/* 300 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, /* 300 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215,
/* 310 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, /* 310 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215,
/* 320 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, /* 320 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215,
/* 330 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, /* 330 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215,
/* 340 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, /* 340 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215,
/* 350 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, /* 350 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215,
/* 360 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, /* 360 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215,
/* 370 */ 1376, 1210, 1210, 1210, 1210, 1210, 1210, 1296, 1295, 1210, /* 370 */ 1215, 1215, 1381, 1215, 1215, 1215, 1215, 1215, 1215, 1301,
/* 380 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, /* 380 */ 1300, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215,
/* 390 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, /* 390 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215,
/* 400 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, /* 400 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215,
/* 410 */ 1564, 1574, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, /* 410 */ 1215, 1215, 1570, 1580, 1215, 1215, 1215, 1215, 1215, 1215,
/* 420 */ 1210, 1479, 1210, 1591, 1210, 1550, 1546, 1210, 1210, 1542, /* 420 */ 1215, 1215, 1215, 1484, 1215, 1597, 1215, 1556, 1552, 1215,
/* 430 */ 1210, 1210, 1601, 1210, 1210, 1210, 1210, 1210, 1210, 1210, /* 430 */ 1215, 1548, 1215, 1215, 1607, 1215, 1215, 1215, 1215, 1215,
/* 440 */ 1210, 1536, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, /* 440 */ 1215, 1215, 1215, 1542, 1215, 1215, 1215, 1215, 1215, 1215,
/* 450 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1478, 1210, /* 450 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215,
/* 460 */ 1210, 1210, 1210, 1210, 1210, 1210, 1359, 1210, 1210, 1210, /* 460 */ 1215, 1483, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1364,
/* 470 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1344, /* 470 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215,
/* 480 */ 1342, 1341, 1340, 1210, 1337, 1210, 1210, 1210, 1210, 1210, /* 480 */ 1215, 1215, 1349, 1347, 1346, 1345, 1215, 1342, 1215, 1215,
/* 490 */ 1210, 1367, 1210, 1210, 1210, 1210, 1210, 1290, 1210, 1210, /* 490 */ 1215, 1215, 1215, 1215, 1372, 1215, 1215, 1215, 1215, 1215,
/* 500 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1281, 1210, 1280, /* 500 */ 1295, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215,
/* 510 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, /* 510 */ 1286, 1215, 1285, 1215, 1215, 1215, 1215, 1215, 1215, 1215,
/* 520 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, /* 520 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215,
/* 530 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, /* 530 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215, 1215,
/* 540 */ 1210, 1210, 1210, 1210, /* 540 */ 1215, 1215, 1215, 1215, 1215, 1215, 1215,
}; };
/********** End of lemon-generated parsing tables *****************************/ /********** End of lemon-generated parsing tables *****************************/
...@@ -1390,133 +1392,134 @@ static const char *const yyRuleName[] = { ...@@ -1390,133 +1392,134 @@ static const char *const yyRuleName[] = {
/* 278 */ "expression ::= column_reference", /* 278 */ "expression ::= column_reference",
/* 279 */ "expression ::= function_name NK_LP expression_list NK_RP", /* 279 */ "expression ::= function_name NK_LP expression_list NK_RP",
/* 280 */ "expression ::= function_name NK_LP NK_STAR NK_RP", /* 280 */ "expression ::= function_name NK_LP NK_STAR NK_RP",
/* 281 */ "expression ::= subquery", /* 281 */ "expression ::= function_name NK_LP expression AS type_name NK_RP",
/* 282 */ "expression ::= NK_LP expression NK_RP", /* 282 */ "expression ::= subquery",
/* 283 */ "expression ::= NK_PLUS expression", /* 283 */ "expression ::= NK_LP expression NK_RP",
/* 284 */ "expression ::= NK_MINUS expression", /* 284 */ "expression ::= NK_PLUS expression",
/* 285 */ "expression ::= expression NK_PLUS expression", /* 285 */ "expression ::= NK_MINUS expression",
/* 286 */ "expression ::= expression NK_MINUS expression", /* 286 */ "expression ::= expression NK_PLUS expression",
/* 287 */ "expression ::= expression NK_STAR expression", /* 287 */ "expression ::= expression NK_MINUS expression",
/* 288 */ "expression ::= expression NK_SLASH expression", /* 288 */ "expression ::= expression NK_STAR expression",
/* 289 */ "expression ::= expression NK_REM expression", /* 289 */ "expression ::= expression NK_SLASH expression",
/* 290 */ "expression_list ::= expression", /* 290 */ "expression ::= expression NK_REM expression",
/* 291 */ "expression_list ::= expression_list NK_COMMA expression", /* 291 */ "expression_list ::= expression",
/* 292 */ "column_reference ::= column_name", /* 292 */ "expression_list ::= expression_list NK_COMMA expression",
/* 293 */ "column_reference ::= table_name NK_DOT column_name", /* 293 */ "column_reference ::= column_name",
/* 294 */ "pseudo_column ::= NOW", /* 294 */ "column_reference ::= table_name NK_DOT column_name",
/* 295 */ "pseudo_column ::= ROWTS", /* 295 */ "pseudo_column ::= NOW",
/* 296 */ "pseudo_column ::= TBNAME", /* 296 */ "pseudo_column ::= ROWTS",
/* 297 */ "pseudo_column ::= QSTARTTS", /* 297 */ "pseudo_column ::= TBNAME",
/* 298 */ "pseudo_column ::= QENDTS", /* 298 */ "pseudo_column ::= QSTARTTS",
/* 299 */ "pseudo_column ::= WSTARTTS", /* 299 */ "pseudo_column ::= QENDTS",
/* 300 */ "pseudo_column ::= WENDTS", /* 300 */ "pseudo_column ::= WSTARTTS",
/* 301 */ "pseudo_column ::= WDURATION", /* 301 */ "pseudo_column ::= WENDTS",
/* 302 */ "predicate ::= expression compare_op expression", /* 302 */ "pseudo_column ::= WDURATION",
/* 303 */ "predicate ::= expression BETWEEN expression AND expression", /* 303 */ "predicate ::= expression compare_op expression",
/* 304 */ "predicate ::= expression NOT BETWEEN expression AND expression", /* 304 */ "predicate ::= expression BETWEEN expression AND expression",
/* 305 */ "predicate ::= expression IS NULL", /* 305 */ "predicate ::= expression NOT BETWEEN expression AND expression",
/* 306 */ "predicate ::= expression IS NOT NULL", /* 306 */ "predicate ::= expression IS NULL",
/* 307 */ "predicate ::= expression in_op in_predicate_value", /* 307 */ "predicate ::= expression IS NOT NULL",
/* 308 */ "compare_op ::= NK_LT", /* 308 */ "predicate ::= expression in_op in_predicate_value",
/* 309 */ "compare_op ::= NK_GT", /* 309 */ "compare_op ::= NK_LT",
/* 310 */ "compare_op ::= NK_LE", /* 310 */ "compare_op ::= NK_GT",
/* 311 */ "compare_op ::= NK_GE", /* 311 */ "compare_op ::= NK_LE",
/* 312 */ "compare_op ::= NK_NE", /* 312 */ "compare_op ::= NK_GE",
/* 313 */ "compare_op ::= NK_EQ", /* 313 */ "compare_op ::= NK_NE",
/* 314 */ "compare_op ::= LIKE", /* 314 */ "compare_op ::= NK_EQ",
/* 315 */ "compare_op ::= NOT LIKE", /* 315 */ "compare_op ::= LIKE",
/* 316 */ "compare_op ::= MATCH", /* 316 */ "compare_op ::= NOT LIKE",
/* 317 */ "compare_op ::= NMATCH", /* 317 */ "compare_op ::= MATCH",
/* 318 */ "in_op ::= IN", /* 318 */ "compare_op ::= NMATCH",
/* 319 */ "in_op ::= NOT IN", /* 319 */ "in_op ::= IN",
/* 320 */ "in_predicate_value ::= NK_LP expression_list NK_RP", /* 320 */ "in_op ::= NOT IN",
/* 321 */ "boolean_value_expression ::= boolean_primary", /* 321 */ "in_predicate_value ::= NK_LP expression_list NK_RP",
/* 322 */ "boolean_value_expression ::= NOT boolean_primary", /* 322 */ "boolean_value_expression ::= boolean_primary",
/* 323 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", /* 323 */ "boolean_value_expression ::= NOT boolean_primary",
/* 324 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", /* 324 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression",
/* 325 */ "boolean_primary ::= predicate", /* 325 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression",
/* 326 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", /* 326 */ "boolean_primary ::= predicate",
/* 327 */ "common_expression ::= expression", /* 327 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP",
/* 328 */ "common_expression ::= boolean_value_expression", /* 328 */ "common_expression ::= expression",
/* 329 */ "from_clause ::= FROM table_reference_list", /* 329 */ "common_expression ::= boolean_value_expression",
/* 330 */ "table_reference_list ::= table_reference", /* 330 */ "from_clause ::= FROM table_reference_list",
/* 331 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", /* 331 */ "table_reference_list ::= table_reference",
/* 332 */ "table_reference ::= table_primary", /* 332 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference",
/* 333 */ "table_reference ::= joined_table", /* 333 */ "table_reference ::= table_primary",
/* 334 */ "table_primary ::= table_name alias_opt", /* 334 */ "table_reference ::= joined_table",
/* 335 */ "table_primary ::= db_name NK_DOT table_name alias_opt", /* 335 */ "table_primary ::= table_name alias_opt",
/* 336 */ "table_primary ::= subquery alias_opt", /* 336 */ "table_primary ::= db_name NK_DOT table_name alias_opt",
/* 337 */ "table_primary ::= parenthesized_joined_table", /* 337 */ "table_primary ::= subquery alias_opt",
/* 338 */ "alias_opt ::=", /* 338 */ "table_primary ::= parenthesized_joined_table",
/* 339 */ "alias_opt ::= table_alias", /* 339 */ "alias_opt ::=",
/* 340 */ "alias_opt ::= AS table_alias", /* 340 */ "alias_opt ::= table_alias",
/* 341 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", /* 341 */ "alias_opt ::= AS table_alias",
/* 342 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", /* 342 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP",
/* 343 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", /* 343 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP",
/* 344 */ "join_type ::=", /* 344 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition",
/* 345 */ "join_type ::= INNER", /* 345 */ "join_type ::=",
/* 346 */ "query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt", /* 346 */ "join_type ::= INNER",
/* 347 */ "set_quantifier_opt ::=", /* 347 */ "query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt",
/* 348 */ "set_quantifier_opt ::= DISTINCT", /* 348 */ "set_quantifier_opt ::=",
/* 349 */ "set_quantifier_opt ::= ALL", /* 349 */ "set_quantifier_opt ::= DISTINCT",
/* 350 */ "select_list ::= NK_STAR", /* 350 */ "set_quantifier_opt ::= ALL",
/* 351 */ "select_list ::= select_sublist", /* 351 */ "select_list ::= NK_STAR",
/* 352 */ "select_sublist ::= select_item", /* 352 */ "select_list ::= select_sublist",
/* 353 */ "select_sublist ::= select_sublist NK_COMMA select_item", /* 353 */ "select_sublist ::= select_item",
/* 354 */ "select_item ::= common_expression", /* 354 */ "select_sublist ::= select_sublist NK_COMMA select_item",
/* 355 */ "select_item ::= common_expression column_alias", /* 355 */ "select_item ::= common_expression",
/* 356 */ "select_item ::= common_expression AS column_alias", /* 356 */ "select_item ::= common_expression column_alias",
/* 357 */ "select_item ::= table_name NK_DOT NK_STAR", /* 357 */ "select_item ::= common_expression AS column_alias",
/* 358 */ "where_clause_opt ::=", /* 358 */ "select_item ::= table_name NK_DOT NK_STAR",
/* 359 */ "where_clause_opt ::= WHERE search_condition", /* 359 */ "where_clause_opt ::=",
/* 360 */ "partition_by_clause_opt ::=", /* 360 */ "where_clause_opt ::= WHERE search_condition",
/* 361 */ "partition_by_clause_opt ::= PARTITION BY expression_list", /* 361 */ "partition_by_clause_opt ::=",
/* 362 */ "twindow_clause_opt ::=", /* 362 */ "partition_by_clause_opt ::= PARTITION BY expression_list",
/* 363 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", /* 363 */ "twindow_clause_opt ::=",
/* 364 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP", /* 364 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP",
/* 365 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", /* 365 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP",
/* 366 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", /* 366 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt",
/* 367 */ "sliding_opt ::=", /* 367 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt",
/* 368 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", /* 368 */ "sliding_opt ::=",
/* 369 */ "fill_opt ::=", /* 369 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP",
/* 370 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", /* 370 */ "fill_opt ::=",
/* 371 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", /* 371 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP",
/* 372 */ "fill_mode ::= NONE", /* 372 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP",
/* 373 */ "fill_mode ::= PREV", /* 373 */ "fill_mode ::= NONE",
/* 374 */ "fill_mode ::= NULL", /* 374 */ "fill_mode ::= PREV",
/* 375 */ "fill_mode ::= LINEAR", /* 375 */ "fill_mode ::= NULL",
/* 376 */ "fill_mode ::= NEXT", /* 376 */ "fill_mode ::= LINEAR",
/* 377 */ "group_by_clause_opt ::=", /* 377 */ "fill_mode ::= NEXT",
/* 378 */ "group_by_clause_opt ::= GROUP BY group_by_list", /* 378 */ "group_by_clause_opt ::=",
/* 379 */ "group_by_list ::= expression", /* 379 */ "group_by_clause_opt ::= GROUP BY group_by_list",
/* 380 */ "group_by_list ::= group_by_list NK_COMMA expression", /* 380 */ "group_by_list ::= expression",
/* 381 */ "having_clause_opt ::=", /* 381 */ "group_by_list ::= group_by_list NK_COMMA expression",
/* 382 */ "having_clause_opt ::= HAVING search_condition", /* 382 */ "having_clause_opt ::=",
/* 383 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", /* 383 */ "having_clause_opt ::= HAVING search_condition",
/* 384 */ "query_expression_body ::= query_primary", /* 384 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt",
/* 385 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", /* 385 */ "query_expression_body ::= query_primary",
/* 386 */ "query_primary ::= query_specification", /* 386 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body",
/* 387 */ "order_by_clause_opt ::=", /* 387 */ "query_primary ::= query_specification",
/* 388 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", /* 388 */ "order_by_clause_opt ::=",
/* 389 */ "slimit_clause_opt ::=", /* 389 */ "order_by_clause_opt ::= ORDER BY sort_specification_list",
/* 390 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", /* 390 */ "slimit_clause_opt ::=",
/* 391 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", /* 391 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER",
/* 392 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", /* 392 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER",
/* 393 */ "limit_clause_opt ::=", /* 393 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER",
/* 394 */ "limit_clause_opt ::= LIMIT NK_INTEGER", /* 394 */ "limit_clause_opt ::=",
/* 395 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", /* 395 */ "limit_clause_opt ::= LIMIT NK_INTEGER",
/* 396 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", /* 396 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER",
/* 397 */ "subquery ::= NK_LP query_expression NK_RP", /* 397 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER",
/* 398 */ "search_condition ::= common_expression", /* 398 */ "subquery ::= NK_LP query_expression NK_RP",
/* 399 */ "sort_specification_list ::= sort_specification", /* 399 */ "search_condition ::= common_expression",
/* 400 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", /* 400 */ "sort_specification_list ::= sort_specification",
/* 401 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", /* 401 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification",
/* 402 */ "ordering_specification_opt ::=", /* 402 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt",
/* 403 */ "ordering_specification_opt ::= ASC", /* 403 */ "ordering_specification_opt ::=",
/* 404 */ "ordering_specification_opt ::= DESC", /* 404 */ "ordering_specification_opt ::= ASC",
/* 405 */ "null_ordering_opt ::=", /* 405 */ "ordering_specification_opt ::= DESC",
/* 406 */ "null_ordering_opt ::= NULLS FIRST", /* 406 */ "null_ordering_opt ::=",
/* 407 */ "null_ordering_opt ::= NULLS LAST", /* 407 */ "null_ordering_opt ::= NULLS FIRST",
/* 408 */ "null_ordering_opt ::= NULLS LAST",
}; };
#endif /* NDEBUG */ #endif /* NDEBUG */
...@@ -1920,15 +1923,18 @@ static YYACTIONTYPE yy_find_shift_action( ...@@ -1920,15 +1923,18 @@ static YYACTIONTYPE yy_find_shift_action(
do{ do{
i = yy_shift_ofst[stateno]; i = yy_shift_ofst[stateno];
assert( i>=0 ); assert( i>=0 );
/* assert( i+YYNTOKEN<=(int)YY_NLOOKAHEAD ); */ 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;
if( i>=YY_NLOOKAHEAD || yy_lookahead[i]!=iLookAhead ){ assert( i<(int)YY_NLOOKAHEAD );
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",
...@@ -1943,16 +1949,8 @@ static YYACTIONTYPE yy_find_shift_action( ...@@ -1943,16 +1949,8 @@ static YYACTIONTYPE 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
j<(int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0])) &&
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",
...@@ -1966,6 +1964,7 @@ static YYACTIONTYPE yy_find_shift_action( ...@@ -1966,6 +1964,7 @@ static YYACTIONTYPE 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);
...@@ -2084,421 +2083,832 @@ static void yy_shift( ...@@ -2084,421 +2083,832 @@ static void yy_shift(
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 { 207, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
YYCODETYPE lhs; /* Symbol on the left-hand side of the rule */ 207, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
signed char nrhs; /* Negative of the number of RHS symbols in the rule */ 208, /* (2) account_options ::= */
} yyRuleInfo[] = { 208, /* (3) account_options ::= account_options PPS literal */
{ 207, -6 }, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ 208, /* (4) account_options ::= account_options TSERIES literal */
{ 207, -4 }, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ 208, /* (5) account_options ::= account_options STORAGE literal */
{ 208, 0 }, /* (2) account_options ::= */ 208, /* (6) account_options ::= account_options STREAMS literal */
{ 208, -3 }, /* (3) account_options ::= account_options PPS literal */ 208, /* (7) account_options ::= account_options QTIME literal */
{ 208, -3 }, /* (4) account_options ::= account_options TSERIES literal */ 208, /* (8) account_options ::= account_options DBS literal */
{ 208, -3 }, /* (5) account_options ::= account_options STORAGE literal */ 208, /* (9) account_options ::= account_options USERS literal */
{ 208, -3 }, /* (6) account_options ::= account_options STREAMS literal */ 208, /* (10) account_options ::= account_options CONNS literal */
{ 208, -3 }, /* (7) account_options ::= account_options QTIME literal */ 208, /* (11) account_options ::= account_options STATE literal */
{ 208, -3 }, /* (8) account_options ::= account_options DBS literal */ 209, /* (12) alter_account_options ::= alter_account_option */
{ 208, -3 }, /* (9) account_options ::= account_options USERS literal */ 209, /* (13) alter_account_options ::= alter_account_options alter_account_option */
{ 208, -3 }, /* (10) account_options ::= account_options CONNS literal */ 211, /* (14) alter_account_option ::= PASS literal */
{ 208, -3 }, /* (11) account_options ::= account_options STATE literal */ 211, /* (15) alter_account_option ::= PPS literal */
{ 209, -1 }, /* (12) alter_account_options ::= alter_account_option */ 211, /* (16) alter_account_option ::= TSERIES literal */
{ 209, -2 }, /* (13) alter_account_options ::= alter_account_options alter_account_option */ 211, /* (17) alter_account_option ::= STORAGE literal */
{ 211, -2 }, /* (14) alter_account_option ::= PASS literal */ 211, /* (18) alter_account_option ::= STREAMS literal */
{ 211, -2 }, /* (15) alter_account_option ::= PPS literal */ 211, /* (19) alter_account_option ::= QTIME literal */
{ 211, -2 }, /* (16) alter_account_option ::= TSERIES literal */ 211, /* (20) alter_account_option ::= DBS literal */
{ 211, -2 }, /* (17) alter_account_option ::= STORAGE literal */ 211, /* (21) alter_account_option ::= USERS literal */
{ 211, -2 }, /* (18) alter_account_option ::= STREAMS literal */ 211, /* (22) alter_account_option ::= CONNS literal */
{ 211, -2 }, /* (19) alter_account_option ::= QTIME literal */ 211, /* (23) alter_account_option ::= STATE literal */
{ 211, -2 }, /* (20) alter_account_option ::= DBS literal */ 207, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING */
{ 211, -2 }, /* (21) alter_account_option ::= USERS literal */ 207, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */
{ 211, -2 }, /* (22) alter_account_option ::= CONNS literal */ 207, /* (26) cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */
{ 211, -2 }, /* (23) alter_account_option ::= STATE literal */ 207, /* (27) cmd ::= DROP USER user_name */
{ 207, -5 }, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING */ 207, /* (28) cmd ::= CREATE DNODE dnode_endpoint */
{ 207, -5 }, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ 207, /* (29) cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */
{ 207, -5 }, /* (26) cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */ 207, /* (30) cmd ::= DROP DNODE NK_INTEGER */
{ 207, -3 }, /* (27) cmd ::= DROP USER user_name */ 207, /* (31) cmd ::= DROP DNODE dnode_endpoint */
{ 207, -3 }, /* (28) cmd ::= CREATE DNODE dnode_endpoint */ 207, /* (32) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
{ 207, -5 }, /* (29) cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */ 207, /* (33) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
{ 207, -3 }, /* (30) cmd ::= DROP DNODE NK_INTEGER */ 207, /* (34) cmd ::= ALTER ALL DNODES NK_STRING */
{ 207, -3 }, /* (31) cmd ::= DROP DNODE dnode_endpoint */ 207, /* (35) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
{ 207, -4 }, /* (32) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ 213, /* (36) dnode_endpoint ::= NK_STRING */
{ 207, -5 }, /* (33) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ 214, /* (37) dnode_host_name ::= NK_ID */
{ 207, -4 }, /* (34) cmd ::= ALTER ALL DNODES NK_STRING */ 214, /* (38) dnode_host_name ::= NK_IPTOKEN */
{ 207, -5 }, /* (35) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ 207, /* (39) cmd ::= ALTER LOCAL NK_STRING */
{ 213, -1 }, /* (36) dnode_endpoint ::= NK_STRING */ 207, /* (40) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
{ 214, -1 }, /* (37) dnode_host_name ::= NK_ID */ 207, /* (41) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
{ 214, -1 }, /* (38) dnode_host_name ::= NK_IPTOKEN */ 207, /* (42) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
{ 207, -3 }, /* (39) cmd ::= ALTER LOCAL NK_STRING */ 207, /* (43) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
{ 207, -4 }, /* (40) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ 207, /* (44) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
{ 207, -5 }, /* (41) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ 207, /* (45) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
{ 207, -5 }, /* (42) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ 207, /* (46) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
{ 207, -5 }, /* (43) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ 207, /* (47) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
{ 207, -5 }, /* (44) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ 207, /* (48) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
{ 207, -5 }, /* (45) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ 207, /* (49) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
{ 207, -5 }, /* (46) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ 207, /* (50) cmd ::= DROP DATABASE exists_opt db_name */
{ 207, -5 }, /* (47) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ 207, /* (51) cmd ::= USE db_name */
{ 207, -5 }, /* (48) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ 207, /* (52) cmd ::= ALTER DATABASE db_name alter_db_options */
{ 207, -5 }, /* (49) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ 215, /* (53) not_exists_opt ::= IF NOT EXISTS */
{ 207, -4 }, /* (50) cmd ::= DROP DATABASE exists_opt db_name */ 215, /* (54) not_exists_opt ::= */
{ 207, -2 }, /* (51) cmd ::= USE db_name */ 218, /* (55) exists_opt ::= IF EXISTS */
{ 207, -4 }, /* (52) cmd ::= ALTER DATABASE db_name alter_db_options */ 218, /* (56) exists_opt ::= */
{ 215, -3 }, /* (53) not_exists_opt ::= IF NOT EXISTS */ 217, /* (57) db_options ::= */
{ 215, 0 }, /* (54) not_exists_opt ::= */ 217, /* (58) db_options ::= db_options BLOCKS NK_INTEGER */
{ 218, -2 }, /* (55) exists_opt ::= IF EXISTS */ 217, /* (59) db_options ::= db_options CACHE NK_INTEGER */
{ 218, 0 }, /* (56) exists_opt ::= */ 217, /* (60) db_options ::= db_options CACHELAST NK_INTEGER */
{ 217, 0 }, /* (57) db_options ::= */ 217, /* (61) db_options ::= db_options COMP NK_INTEGER */
{ 217, -3 }, /* (58) db_options ::= db_options BLOCKS NK_INTEGER */ 217, /* (62) db_options ::= db_options DAYS NK_INTEGER */
{ 217, -3 }, /* (59) db_options ::= db_options CACHE NK_INTEGER */ 217, /* (63) db_options ::= db_options DAYS NK_VARIABLE */
{ 217, -3 }, /* (60) db_options ::= db_options CACHELAST NK_INTEGER */ 217, /* (64) db_options ::= db_options FSYNC NK_INTEGER */
{ 217, -3 }, /* (61) db_options ::= db_options COMP NK_INTEGER */ 217, /* (65) db_options ::= db_options MAXROWS NK_INTEGER */
{ 217, -3 }, /* (62) db_options ::= db_options DAYS NK_INTEGER */ 217, /* (66) db_options ::= db_options MINROWS NK_INTEGER */
{ 217, -3 }, /* (63) db_options ::= db_options DAYS NK_VARIABLE */ 217, /* (67) db_options ::= db_options KEEP integer_list */
{ 217, -3 }, /* (64) db_options ::= db_options FSYNC NK_INTEGER */ 217, /* (68) db_options ::= db_options KEEP variable_list */
{ 217, -3 }, /* (65) db_options ::= db_options MAXROWS NK_INTEGER */ 217, /* (69) db_options ::= db_options PRECISION NK_STRING */
{ 217, -3 }, /* (66) db_options ::= db_options MINROWS NK_INTEGER */ 217, /* (70) db_options ::= db_options QUORUM NK_INTEGER */
{ 217, -3 }, /* (67) db_options ::= db_options KEEP integer_list */ 217, /* (71) db_options ::= db_options REPLICA NK_INTEGER */
{ 217, -3 }, /* (68) db_options ::= db_options KEEP variable_list */ 217, /* (72) db_options ::= db_options TTL NK_INTEGER */
{ 217, -3 }, /* (69) db_options ::= db_options PRECISION NK_STRING */ 217, /* (73) db_options ::= db_options WAL NK_INTEGER */
{ 217, -3 }, /* (70) db_options ::= db_options QUORUM NK_INTEGER */ 217, /* (74) db_options ::= db_options VGROUPS NK_INTEGER */
{ 217, -3 }, /* (71) db_options ::= db_options REPLICA NK_INTEGER */ 217, /* (75) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
{ 217, -3 }, /* (72) db_options ::= db_options TTL NK_INTEGER */ 217, /* (76) db_options ::= db_options STREAM_MODE NK_INTEGER */
{ 217, -3 }, /* (73) db_options ::= db_options WAL NK_INTEGER */ 217, /* (77) db_options ::= db_options RETENTIONS retention_list */
{ 217, -3 }, /* (74) db_options ::= db_options VGROUPS NK_INTEGER */ 219, /* (78) alter_db_options ::= alter_db_option */
{ 217, -3 }, /* (75) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ 219, /* (79) alter_db_options ::= alter_db_options alter_db_option */
{ 217, -3 }, /* (76) db_options ::= db_options STREAM_MODE NK_INTEGER */ 223, /* (80) alter_db_option ::= BLOCKS NK_INTEGER */
{ 217, -3 }, /* (77) db_options ::= db_options RETENTIONS retention_list */ 223, /* (81) alter_db_option ::= FSYNC NK_INTEGER */
{ 219, -1 }, /* (78) alter_db_options ::= alter_db_option */ 223, /* (82) alter_db_option ::= KEEP integer_list */
{ 219, -2 }, /* (79) alter_db_options ::= alter_db_options alter_db_option */ 223, /* (83) alter_db_option ::= KEEP variable_list */
{ 223, -2 }, /* (80) alter_db_option ::= BLOCKS NK_INTEGER */ 223, /* (84) alter_db_option ::= WAL NK_INTEGER */
{ 223, -2 }, /* (81) alter_db_option ::= FSYNC NK_INTEGER */ 223, /* (85) alter_db_option ::= QUORUM NK_INTEGER */
{ 223, -2 }, /* (82) alter_db_option ::= KEEP integer_list */ 223, /* (86) alter_db_option ::= CACHELAST NK_INTEGER */
{ 223, -2 }, /* (83) alter_db_option ::= KEEP variable_list */ 223, /* (87) alter_db_option ::= REPLICA NK_INTEGER */
{ 223, -2 }, /* (84) alter_db_option ::= WAL NK_INTEGER */ 220, /* (88) integer_list ::= NK_INTEGER */
{ 223, -2 }, /* (85) alter_db_option ::= QUORUM NK_INTEGER */ 220, /* (89) integer_list ::= integer_list NK_COMMA NK_INTEGER */
{ 223, -2 }, /* (86) alter_db_option ::= CACHELAST NK_INTEGER */ 221, /* (90) variable_list ::= NK_VARIABLE */
{ 223, -2 }, /* (87) alter_db_option ::= REPLICA NK_INTEGER */ 221, /* (91) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
{ 220, -1 }, /* (88) integer_list ::= NK_INTEGER */ 222, /* (92) retention_list ::= retention */
{ 220, -3 }, /* (89) integer_list ::= integer_list NK_COMMA NK_INTEGER */ 222, /* (93) retention_list ::= retention_list NK_COMMA retention */
{ 221, -1 }, /* (90) variable_list ::= NK_VARIABLE */ 224, /* (94) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
{ 221, -3 }, /* (91) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ 207, /* (95) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
{ 222, -1 }, /* (92) retention_list ::= retention */ 207, /* (96) cmd ::= CREATE TABLE multi_create_clause */
{ 222, -3 }, /* (93) retention_list ::= retention_list NK_COMMA retention */ 207, /* (97) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
{ 224, -3 }, /* (94) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ 207, /* (98) cmd ::= DROP TABLE multi_drop_clause */
{ 207, -9 }, /* (95) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ 207, /* (99) cmd ::= DROP STABLE exists_opt full_table_name */
{ 207, -3 }, /* (96) cmd ::= CREATE TABLE multi_create_clause */ 207, /* (100) cmd ::= ALTER TABLE alter_table_clause */
{ 207, -9 }, /* (97) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ 207, /* (101) cmd ::= ALTER STABLE alter_table_clause */
{ 207, -3 }, /* (98) cmd ::= DROP TABLE multi_drop_clause */ 232, /* (102) alter_table_clause ::= full_table_name alter_table_options */
{ 207, -4 }, /* (99) cmd ::= DROP STABLE exists_opt full_table_name */ 232, /* (103) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
{ 207, -3 }, /* (100) cmd ::= ALTER TABLE alter_table_clause */ 232, /* (104) alter_table_clause ::= full_table_name DROP COLUMN column_name */
{ 207, -3 }, /* (101) cmd ::= ALTER STABLE alter_table_clause */ 232, /* (105) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
{ 232, -2 }, /* (102) alter_table_clause ::= full_table_name alter_table_options */ 232, /* (106) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
{ 232, -5 }, /* (103) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ 232, /* (107) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
{ 232, -4 }, /* (104) alter_table_clause ::= full_table_name DROP COLUMN column_name */ 232, /* (108) alter_table_clause ::= full_table_name DROP TAG column_name */
{ 232, -5 }, /* (105) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ 232, /* (109) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
{ 232, -5 }, /* (106) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ 232, /* (110) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
{ 232, -5 }, /* (107) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ 232, /* (111) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal */
{ 232, -4 }, /* (108) alter_table_clause ::= full_table_name DROP TAG column_name */ 229, /* (112) multi_create_clause ::= create_subtable_clause */
{ 232, -5 }, /* (109) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ 229, /* (113) multi_create_clause ::= multi_create_clause create_subtable_clause */
{ 232, -5 }, /* (110) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ 236, /* (114) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP */
{ 232, -6 }, /* (111) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal */ 231, /* (115) multi_drop_clause ::= drop_table_clause */
{ 229, -1 }, /* (112) multi_create_clause ::= create_subtable_clause */ 231, /* (116) multi_drop_clause ::= multi_drop_clause drop_table_clause */
{ 229, -2 }, /* (113) multi_create_clause ::= multi_create_clause create_subtable_clause */ 239, /* (117) drop_table_clause ::= exists_opt full_table_name */
{ 236, -9 }, /* (114) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP */ 237, /* (118) specific_tags_opt ::= */
{ 231, -1 }, /* (115) multi_drop_clause ::= drop_table_clause */ 237, /* (119) specific_tags_opt ::= NK_LP col_name_list NK_RP */
{ 231, -2 }, /* (116) multi_drop_clause ::= multi_drop_clause drop_table_clause */ 225, /* (120) full_table_name ::= table_name */
{ 239, -2 }, /* (117) drop_table_clause ::= exists_opt full_table_name */ 225, /* (121) full_table_name ::= db_name NK_DOT table_name */
{ 237, 0 }, /* (118) specific_tags_opt ::= */ 226, /* (122) column_def_list ::= column_def */
{ 237, -3 }, /* (119) specific_tags_opt ::= NK_LP col_name_list NK_RP */ 226, /* (123) column_def_list ::= column_def_list NK_COMMA column_def */
{ 225, -1 }, /* (120) full_table_name ::= table_name */ 242, /* (124) column_def ::= column_name type_name */
{ 225, -3 }, /* (121) full_table_name ::= db_name NK_DOT table_name */ 242, /* (125) column_def ::= column_name type_name COMMENT NK_STRING */
{ 226, -1 }, /* (122) column_def_list ::= column_def */ 235, /* (126) type_name ::= BOOL */
{ 226, -3 }, /* (123) column_def_list ::= column_def_list NK_COMMA column_def */ 235, /* (127) type_name ::= TINYINT */
{ 242, -2 }, /* (124) column_def ::= column_name type_name */ 235, /* (128) type_name ::= SMALLINT */
{ 242, -4 }, /* (125) column_def ::= column_name type_name COMMENT NK_STRING */ 235, /* (129) type_name ::= INT */
{ 235, -1 }, /* (126) type_name ::= BOOL */ 235, /* (130) type_name ::= INTEGER */
{ 235, -1 }, /* (127) type_name ::= TINYINT */ 235, /* (131) type_name ::= BIGINT */
{ 235, -1 }, /* (128) type_name ::= SMALLINT */ 235, /* (132) type_name ::= FLOAT */
{ 235, -1 }, /* (129) type_name ::= INT */ 235, /* (133) type_name ::= DOUBLE */
{ 235, -1 }, /* (130) type_name ::= INTEGER */ 235, /* (134) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
{ 235, -1 }, /* (131) type_name ::= BIGINT */ 235, /* (135) type_name ::= TIMESTAMP */
{ 235, -1 }, /* (132) type_name ::= FLOAT */ 235, /* (136) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
{ 235, -1 }, /* (133) type_name ::= DOUBLE */ 235, /* (137) type_name ::= TINYINT UNSIGNED */
{ 235, -4 }, /* (134) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ 235, /* (138) type_name ::= SMALLINT UNSIGNED */
{ 235, -1 }, /* (135) type_name ::= TIMESTAMP */ 235, /* (139) type_name ::= INT UNSIGNED */
{ 235, -4 }, /* (136) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ 235, /* (140) type_name ::= BIGINT UNSIGNED */
{ 235, -2 }, /* (137) type_name ::= TINYINT UNSIGNED */ 235, /* (141) type_name ::= JSON */
{ 235, -2 }, /* (138) type_name ::= SMALLINT UNSIGNED */ 235, /* (142) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
{ 235, -2 }, /* (139) type_name ::= INT UNSIGNED */ 235, /* (143) type_name ::= MEDIUMBLOB */
{ 235, -2 }, /* (140) type_name ::= BIGINT UNSIGNED */ 235, /* (144) type_name ::= BLOB */
{ 235, -1 }, /* (141) type_name ::= JSON */ 235, /* (145) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
{ 235, -4 }, /* (142) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ 235, /* (146) type_name ::= DECIMAL */
{ 235, -1 }, /* (143) type_name ::= MEDIUMBLOB */ 235, /* (147) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
{ 235, -1 }, /* (144) type_name ::= BLOB */ 235, /* (148) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
{ 235, -4 }, /* (145) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ 227, /* (149) tags_def_opt ::= */
{ 235, -1 }, /* (146) type_name ::= DECIMAL */ 227, /* (150) tags_def_opt ::= tags_def */
{ 235, -4 }, /* (147) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ 230, /* (151) tags_def ::= TAGS NK_LP column_def_list NK_RP */
{ 235, -6 }, /* (148) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ 228, /* (152) table_options ::= */
{ 227, 0 }, /* (149) tags_def_opt ::= */ 228, /* (153) table_options ::= table_options COMMENT NK_STRING */
{ 227, -1 }, /* (150) tags_def_opt ::= tags_def */ 228, /* (154) table_options ::= table_options KEEP integer_list */
{ 230, -4 }, /* (151) tags_def ::= TAGS NK_LP column_def_list NK_RP */ 228, /* (155) table_options ::= table_options TTL NK_INTEGER */
{ 228, 0 }, /* (152) table_options ::= */ 228, /* (156) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
{ 228, -3 }, /* (153) table_options ::= table_options COMMENT NK_STRING */ 228, /* (157) table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */
{ 228, -3 }, /* (154) table_options ::= table_options KEEP integer_list */ 228, /* (158) table_options ::= table_options FILE_FACTOR NK_FLOAT */
{ 228, -3 }, /* (155) table_options ::= table_options TTL NK_INTEGER */ 228, /* (159) table_options ::= table_options DELAY NK_INTEGER */
{ 228, -5 }, /* (156) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ 233, /* (160) alter_table_options ::= alter_table_option */
{ 228, -5 }, /* (157) table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */ 233, /* (161) alter_table_options ::= alter_table_options alter_table_option */
{ 228, -3 }, /* (158) table_options ::= table_options FILE_FACTOR NK_FLOAT */ 244, /* (162) alter_table_option ::= COMMENT NK_STRING */
{ 228, -3 }, /* (159) table_options ::= table_options DELAY NK_INTEGER */ 244, /* (163) alter_table_option ::= KEEP integer_list */
{ 233, -1 }, /* (160) alter_table_options ::= alter_table_option */ 244, /* (164) alter_table_option ::= TTL NK_INTEGER */
{ 233, -2 }, /* (161) alter_table_options ::= alter_table_options alter_table_option */ 240, /* (165) col_name_list ::= col_name */
{ 244, -2 }, /* (162) alter_table_option ::= COMMENT NK_STRING */ 240, /* (166) col_name_list ::= col_name_list NK_COMMA col_name */
{ 244, -2 }, /* (163) alter_table_option ::= KEEP integer_list */ 245, /* (167) col_name ::= column_name */
{ 244, -2 }, /* (164) alter_table_option ::= TTL NK_INTEGER */ 207, /* (168) cmd ::= SHOW DNODES */
{ 240, -1 }, /* (165) col_name_list ::= col_name */ 207, /* (169) cmd ::= SHOW USERS */
{ 240, -3 }, /* (166) col_name_list ::= col_name_list NK_COMMA col_name */ 207, /* (170) cmd ::= SHOW DATABASES */
{ 245, -1 }, /* (167) col_name ::= column_name */ 207, /* (171) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */
{ 207, -2 }, /* (168) cmd ::= SHOW DNODES */ 207, /* (172) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
{ 207, -2 }, /* (169) cmd ::= SHOW USERS */ 207, /* (173) cmd ::= SHOW db_name_cond_opt VGROUPS */
{ 207, -2 }, /* (170) cmd ::= SHOW DATABASES */ 207, /* (174) cmd ::= SHOW MNODES */
{ 207, -4 }, /* (171) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ 207, /* (175) cmd ::= SHOW MODULES */
{ 207, -4 }, /* (172) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ 207, /* (176) cmd ::= SHOW QNODES */
{ 207, -3 }, /* (173) cmd ::= SHOW db_name_cond_opt VGROUPS */ 207, /* (177) cmd ::= SHOW FUNCTIONS */
{ 207, -2 }, /* (174) cmd ::= SHOW MNODES */ 207, /* (178) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
{ 207, -2 }, /* (175) cmd ::= SHOW MODULES */ 207, /* (179) cmd ::= SHOW STREAMS */
{ 207, -2 }, /* (176) cmd ::= SHOW QNODES */ 207, /* (180) cmd ::= SHOW ACCOUNTS */
{ 207, -2 }, /* (177) cmd ::= SHOW FUNCTIONS */ 207, /* (181) cmd ::= SHOW APPS */
{ 207, -5 }, /* (178) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ 207, /* (182) cmd ::= SHOW CONNECTIONS */
{ 207, -2 }, /* (179) cmd ::= SHOW STREAMS */ 207, /* (183) cmd ::= SHOW LICENCE */
{ 207, -2 }, /* (180) cmd ::= SHOW ACCOUNTS */ 207, /* (184) cmd ::= SHOW CREATE DATABASE db_name */
{ 207, -2 }, /* (181) cmd ::= SHOW APPS */ 207, /* (185) cmd ::= SHOW CREATE TABLE full_table_name */
{ 207, -2 }, /* (182) cmd ::= SHOW CONNECTIONS */ 207, /* (186) cmd ::= SHOW CREATE STABLE full_table_name */
{ 207, -2 }, /* (183) cmd ::= SHOW LICENCE */ 207, /* (187) cmd ::= SHOW QUERIES */
{ 207, -4 }, /* (184) cmd ::= SHOW CREATE DATABASE db_name */ 207, /* (188) cmd ::= SHOW SCORES */
{ 207, -4 }, /* (185) cmd ::= SHOW CREATE TABLE full_table_name */ 207, /* (189) cmd ::= SHOW TOPICS */
{ 207, -4 }, /* (186) cmd ::= SHOW CREATE STABLE full_table_name */ 207, /* (190) cmd ::= SHOW VARIABLES */
{ 207, -2 }, /* (187) cmd ::= SHOW QUERIES */ 207, /* (191) cmd ::= SHOW BNODES */
{ 207, -2 }, /* (188) cmd ::= SHOW SCORES */ 207, /* (192) cmd ::= SHOW SNODES */
{ 207, -2 }, /* (189) cmd ::= SHOW TOPICS */ 246, /* (193) db_name_cond_opt ::= */
{ 207, -2 }, /* (190) cmd ::= SHOW VARIABLES */ 246, /* (194) db_name_cond_opt ::= db_name NK_DOT */
{ 207, -2 }, /* (191) cmd ::= SHOW BNODES */ 247, /* (195) like_pattern_opt ::= */
{ 207, -2 }, /* (192) cmd ::= SHOW SNODES */ 247, /* (196) like_pattern_opt ::= LIKE NK_STRING */
{ 246, 0 }, /* (193) db_name_cond_opt ::= */ 248, /* (197) table_name_cond ::= table_name */
{ 246, -2 }, /* (194) db_name_cond_opt ::= db_name NK_DOT */ 249, /* (198) from_db_opt ::= */
{ 247, 0 }, /* (195) like_pattern_opt ::= */ 249, /* (199) from_db_opt ::= FROM db_name */
{ 247, -2 }, /* (196) like_pattern_opt ::= LIKE NK_STRING */ 243, /* (200) func_name_list ::= func_name */
{ 248, -1 }, /* (197) table_name_cond ::= table_name */ 243, /* (201) func_name_list ::= func_name_list NK_COMMA col_name */
{ 249, 0 }, /* (198) from_db_opt ::= */ 250, /* (202) func_name ::= function_name */
{ 249, -2 }, /* (199) from_db_opt ::= FROM db_name */ 207, /* (203) cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */
{ 243, -1 }, /* (200) func_name_list ::= func_name */ 207, /* (204) cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */
{ 243, -3 }, /* (201) func_name_list ::= func_name_list NK_COMMA col_name */ 207, /* (205) cmd ::= DROP INDEX exists_opt index_name ON table_name */
{ 250, -1 }, /* (202) func_name ::= function_name */ 253, /* (206) index_options ::= */
{ 207, -8 }, /* (203) cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ 253, /* (207) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */
{ 207, -10 }, /* (204) cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ 253, /* (208) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */
{ 207, -6 }, /* (205) cmd ::= DROP INDEX exists_opt index_name ON table_name */ 254, /* (209) func_list ::= func */
{ 253, 0 }, /* (206) index_options ::= */ 254, /* (210) func_list ::= func_list NK_COMMA func */
{ 253, -9 }, /* (207) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ 257, /* (211) func ::= function_name NK_LP expression_list NK_RP */
{ 253, -11 }, /* (208) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ 207, /* (212) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */
{ 254, -1 }, /* (209) func_list ::= func */ 207, /* (213) cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name */
{ 254, -3 }, /* (210) func_list ::= func_list NK_COMMA func */ 207, /* (214) cmd ::= DROP TOPIC exists_opt topic_name */
{ 257, -4 }, /* (211) func ::= function_name NK_LP expression_list NK_RP */ 207, /* (215) cmd ::= DESC full_table_name */
{ 207, -6 }, /* (212) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ 207, /* (216) cmd ::= DESCRIBE full_table_name */
{ 207, -6 }, /* (213) cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name */ 207, /* (217) cmd ::= RESET QUERY CACHE */
{ 207, -4 }, /* (214) cmd ::= DROP TOPIC exists_opt topic_name */ 207, /* (218) cmd ::= EXPLAIN analyze_opt explain_options query_expression */
{ 207, -2 }, /* (215) cmd ::= DESC full_table_name */ 261, /* (219) analyze_opt ::= */
{ 207, -2 }, /* (216) cmd ::= DESCRIBE full_table_name */ 261, /* (220) analyze_opt ::= ANALYZE */
{ 207, -3 }, /* (217) cmd ::= RESET QUERY CACHE */ 262, /* (221) explain_options ::= */
{ 207, -4 }, /* (218) cmd ::= EXPLAIN analyze_opt explain_options query_expression */ 262, /* (222) explain_options ::= explain_options VERBOSE NK_BOOL */
{ 261, 0 }, /* (219) analyze_opt ::= */ 262, /* (223) explain_options ::= explain_options RATIO NK_FLOAT */
{ 261, -1 }, /* (220) analyze_opt ::= ANALYZE */ 207, /* (224) cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */
{ 262, 0 }, /* (221) explain_options ::= */ 207, /* (225) cmd ::= CREATE agg_func_opt FUNCTION function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */
{ 262, -3 }, /* (222) explain_options ::= explain_options VERBOSE NK_BOOL */ 207, /* (226) cmd ::= DROP FUNCTION function_name */
{ 262, -3 }, /* (223) explain_options ::= explain_options RATIO NK_FLOAT */ 263, /* (227) agg_func_opt ::= */
{ 207, -6 }, /* (224) cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ 263, /* (228) agg_func_opt ::= AGGREGATE */
{ 207, -9 }, /* (225) cmd ::= CREATE agg_func_opt FUNCTION function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ 264, /* (229) bufsize_opt ::= */
{ 207, -3 }, /* (226) cmd ::= DROP FUNCTION function_name */ 264, /* (230) bufsize_opt ::= BUFSIZE NK_INTEGER */
{ 263, 0 }, /* (227) agg_func_opt ::= */ 207, /* (231) cmd ::= CREATE STREAM stream_name INTO table_name AS query_expression */
{ 263, -1 }, /* (228) agg_func_opt ::= AGGREGATE */ 207, /* (232) cmd ::= DROP STREAM stream_name */
{ 264, 0 }, /* (229) bufsize_opt ::= */ 207, /* (233) cmd ::= KILL CONNECTION NK_INTEGER */
{ 264, -2 }, /* (230) bufsize_opt ::= BUFSIZE NK_INTEGER */ 207, /* (234) cmd ::= KILL QUERY NK_INTEGER */
{ 207, -7 }, /* (231) cmd ::= CREATE STREAM stream_name INTO table_name AS query_expression */ 207, /* (235) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
{ 207, -3 }, /* (232) cmd ::= DROP STREAM stream_name */ 207, /* (236) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
{ 207, -3 }, /* (233) cmd ::= KILL CONNECTION NK_INTEGER */ 207, /* (237) cmd ::= SPLIT VGROUP NK_INTEGER */
{ 207, -3 }, /* (234) cmd ::= KILL QUERY NK_INTEGER */ 266, /* (238) dnode_list ::= DNODE NK_INTEGER */
{ 207, -4 }, /* (235) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ 266, /* (239) dnode_list ::= dnode_list DNODE NK_INTEGER */
{ 207, -4 }, /* (236) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ 207, /* (240) cmd ::= SYNCDB db_name REPLICA */
{ 207, -3 }, /* (237) cmd ::= SPLIT VGROUP NK_INTEGER */ 207, /* (241) cmd ::= query_expression */
{ 266, -2 }, /* (238) dnode_list ::= DNODE NK_INTEGER */ 210, /* (242) literal ::= NK_INTEGER */
{ 266, -3 }, /* (239) dnode_list ::= dnode_list DNODE NK_INTEGER */ 210, /* (243) literal ::= NK_FLOAT */
{ 207, -3 }, /* (240) cmd ::= SYNCDB db_name REPLICA */ 210, /* (244) literal ::= NK_STRING */
{ 207, -1 }, /* (241) cmd ::= query_expression */ 210, /* (245) literal ::= NK_BOOL */
{ 210, -1 }, /* (242) literal ::= NK_INTEGER */ 210, /* (246) literal ::= TIMESTAMP NK_STRING */
{ 210, -1 }, /* (243) literal ::= NK_FLOAT */ 210, /* (247) literal ::= duration_literal */
{ 210, -1 }, /* (244) literal ::= NK_STRING */ 210, /* (248) literal ::= NULL */
{ 210, -1 }, /* (245) literal ::= NK_BOOL */ 255, /* (249) duration_literal ::= NK_VARIABLE */
{ 210, -2 }, /* (246) literal ::= TIMESTAMP NK_STRING */ 267, /* (250) signed ::= NK_INTEGER */
{ 210, -1 }, /* (247) literal ::= duration_literal */ 267, /* (251) signed ::= NK_PLUS NK_INTEGER */
{ 210, -1 }, /* (248) literal ::= NULL */ 267, /* (252) signed ::= NK_MINUS NK_INTEGER */
{ 255, -1 }, /* (249) duration_literal ::= NK_VARIABLE */ 267, /* (253) signed ::= NK_FLOAT */
{ 267, -1 }, /* (250) signed ::= NK_INTEGER */ 267, /* (254) signed ::= NK_PLUS NK_FLOAT */
{ 267, -2 }, /* (251) signed ::= NK_PLUS NK_INTEGER */ 267, /* (255) signed ::= NK_MINUS NK_FLOAT */
{ 267, -2 }, /* (252) signed ::= NK_MINUS NK_INTEGER */ 268, /* (256) signed_literal ::= signed */
{ 267, -1 }, /* (253) signed ::= NK_FLOAT */ 268, /* (257) signed_literal ::= NK_STRING */
{ 267, -2 }, /* (254) signed ::= NK_PLUS NK_FLOAT */ 268, /* (258) signed_literal ::= NK_BOOL */
{ 267, -2 }, /* (255) signed ::= NK_MINUS NK_FLOAT */ 268, /* (259) signed_literal ::= TIMESTAMP NK_STRING */
{ 268, -1 }, /* (256) signed_literal ::= signed */ 268, /* (260) signed_literal ::= duration_literal */
{ 268, -1 }, /* (257) signed_literal ::= NK_STRING */ 268, /* (261) signed_literal ::= NULL */
{ 268, -1 }, /* (258) signed_literal ::= NK_BOOL */ 238, /* (262) literal_list ::= signed_literal */
{ 268, -2 }, /* (259) signed_literal ::= TIMESTAMP NK_STRING */ 238, /* (263) literal_list ::= literal_list NK_COMMA signed_literal */
{ 268, -1 }, /* (260) signed_literal ::= duration_literal */ 216, /* (264) db_name ::= NK_ID */
{ 268, -1 }, /* (261) signed_literal ::= NULL */ 241, /* (265) table_name ::= NK_ID */
{ 238, -1 }, /* (262) literal_list ::= signed_literal */ 234, /* (266) column_name ::= NK_ID */
{ 238, -3 }, /* (263) literal_list ::= literal_list NK_COMMA signed_literal */ 251, /* (267) function_name ::= NK_ID */
{ 216, -1 }, /* (264) db_name ::= NK_ID */ 251, /* (268) function_name ::= FIRST */
{ 241, -1 }, /* (265) table_name ::= NK_ID */ 251, /* (269) function_name ::= LAST */
{ 234, -1 }, /* (266) column_name ::= NK_ID */ 269, /* (270) table_alias ::= NK_ID */
{ 251, -1 }, /* (267) function_name ::= NK_ID */ 270, /* (271) column_alias ::= NK_ID */
{ 251, -1 }, /* (268) function_name ::= FIRST */ 212, /* (272) user_name ::= NK_ID */
{ 251, -1 }, /* (269) function_name ::= LAST */ 252, /* (273) index_name ::= NK_ID */
{ 269, -1 }, /* (270) table_alias ::= NK_ID */ 259, /* (274) topic_name ::= NK_ID */
{ 270, -1 }, /* (271) column_alias ::= NK_ID */ 265, /* (275) stream_name ::= NK_ID */
{ 212, -1 }, /* (272) user_name ::= NK_ID */ 271, /* (276) expression ::= literal */
{ 252, -1 }, /* (273) index_name ::= NK_ID */ 271, /* (277) expression ::= pseudo_column */
{ 259, -1 }, /* (274) topic_name ::= NK_ID */ 271, /* (278) expression ::= column_reference */
{ 265, -1 }, /* (275) stream_name ::= NK_ID */ 271, /* (279) expression ::= function_name NK_LP expression_list NK_RP */
{ 271, -1 }, /* (276) expression ::= literal */ 271, /* (280) expression ::= function_name NK_LP NK_STAR NK_RP */
{ 271, -1 }, /* (277) expression ::= pseudo_column */ 271, /* (281) expression ::= function_name NK_LP expression AS type_name NK_RP */
{ 271, -1 }, /* (278) expression ::= column_reference */ 271, /* (282) expression ::= subquery */
{ 271, -4 }, /* (279) expression ::= function_name NK_LP expression_list NK_RP */ 271, /* (283) expression ::= NK_LP expression NK_RP */
{ 271, -4 }, /* (280) expression ::= function_name NK_LP NK_STAR NK_RP */ 271, /* (284) expression ::= NK_PLUS expression */
{ 271, -1 }, /* (281) expression ::= subquery */ 271, /* (285) expression ::= NK_MINUS expression */
{ 271, -3 }, /* (282) expression ::= NK_LP expression NK_RP */ 271, /* (286) expression ::= expression NK_PLUS expression */
{ 271, -2 }, /* (283) expression ::= NK_PLUS expression */ 271, /* (287) expression ::= expression NK_MINUS expression */
{ 271, -2 }, /* (284) expression ::= NK_MINUS expression */ 271, /* (288) expression ::= expression NK_STAR expression */
{ 271, -3 }, /* (285) expression ::= expression NK_PLUS expression */ 271, /* (289) expression ::= expression NK_SLASH expression */
{ 271, -3 }, /* (286) expression ::= expression NK_MINUS expression */ 271, /* (290) expression ::= expression NK_REM expression */
{ 271, -3 }, /* (287) expression ::= expression NK_STAR expression */ 258, /* (291) expression_list ::= expression */
{ 271, -3 }, /* (288) expression ::= expression NK_SLASH expression */ 258, /* (292) expression_list ::= expression_list NK_COMMA expression */
{ 271, -3 }, /* (289) expression ::= expression NK_REM expression */ 273, /* (293) column_reference ::= column_name */
{ 258, -1 }, /* (290) expression_list ::= expression */ 273, /* (294) column_reference ::= table_name NK_DOT column_name */
{ 258, -3 }, /* (291) expression_list ::= expression_list NK_COMMA expression */ 272, /* (295) pseudo_column ::= NOW */
{ 273, -1 }, /* (292) column_reference ::= column_name */ 272, /* (296) pseudo_column ::= ROWTS */
{ 273, -3 }, /* (293) column_reference ::= table_name NK_DOT column_name */ 272, /* (297) pseudo_column ::= TBNAME */
{ 272, -1 }, /* (294) pseudo_column ::= NOW */ 272, /* (298) pseudo_column ::= QSTARTTS */
{ 272, -1 }, /* (295) pseudo_column ::= ROWTS */ 272, /* (299) pseudo_column ::= QENDTS */
{ 272, -1 }, /* (296) pseudo_column ::= TBNAME */ 272, /* (300) pseudo_column ::= WSTARTTS */
{ 272, -1 }, /* (297) pseudo_column ::= QSTARTTS */ 272, /* (301) pseudo_column ::= WENDTS */
{ 272, -1 }, /* (298) pseudo_column ::= QENDTS */ 272, /* (302) pseudo_column ::= WDURATION */
{ 272, -1 }, /* (299) pseudo_column ::= WSTARTTS */ 275, /* (303) predicate ::= expression compare_op expression */
{ 272, -1 }, /* (300) pseudo_column ::= WENDTS */ 275, /* (304) predicate ::= expression BETWEEN expression AND expression */
{ 272, -1 }, /* (301) pseudo_column ::= WDURATION */ 275, /* (305) predicate ::= expression NOT BETWEEN expression AND expression */
{ 275, -3 }, /* (302) predicate ::= expression compare_op expression */ 275, /* (306) predicate ::= expression IS NULL */
{ 275, -5 }, /* (303) predicate ::= expression BETWEEN expression AND expression */ 275, /* (307) predicate ::= expression IS NOT NULL */
{ 275, -6 }, /* (304) predicate ::= expression NOT BETWEEN expression AND expression */ 275, /* (308) predicate ::= expression in_op in_predicate_value */
{ 275, -3 }, /* (305) predicate ::= expression IS NULL */ 276, /* (309) compare_op ::= NK_LT */
{ 275, -4 }, /* (306) predicate ::= expression IS NOT NULL */ 276, /* (310) compare_op ::= NK_GT */
{ 275, -3 }, /* (307) predicate ::= expression in_op in_predicate_value */ 276, /* (311) compare_op ::= NK_LE */
{ 276, -1 }, /* (308) compare_op ::= NK_LT */ 276, /* (312) compare_op ::= NK_GE */
{ 276, -1 }, /* (309) compare_op ::= NK_GT */ 276, /* (313) compare_op ::= NK_NE */
{ 276, -1 }, /* (310) compare_op ::= NK_LE */ 276, /* (314) compare_op ::= NK_EQ */
{ 276, -1 }, /* (311) compare_op ::= NK_GE */ 276, /* (315) compare_op ::= LIKE */
{ 276, -1 }, /* (312) compare_op ::= NK_NE */ 276, /* (316) compare_op ::= NOT LIKE */
{ 276, -1 }, /* (313) compare_op ::= NK_EQ */ 276, /* (317) compare_op ::= MATCH */
{ 276, -1 }, /* (314) compare_op ::= LIKE */ 276, /* (318) compare_op ::= NMATCH */
{ 276, -2 }, /* (315) compare_op ::= NOT LIKE */ 277, /* (319) in_op ::= IN */
{ 276, -1 }, /* (316) compare_op ::= MATCH */ 277, /* (320) in_op ::= NOT IN */
{ 276, -1 }, /* (317) compare_op ::= NMATCH */ 278, /* (321) in_predicate_value ::= NK_LP expression_list NK_RP */
{ 277, -1 }, /* (318) in_op ::= IN */ 279, /* (322) boolean_value_expression ::= boolean_primary */
{ 277, -2 }, /* (319) in_op ::= NOT IN */ 279, /* (323) boolean_value_expression ::= NOT boolean_primary */
{ 278, -3 }, /* (320) in_predicate_value ::= NK_LP expression_list NK_RP */ 279, /* (324) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
{ 279, -1 }, /* (321) boolean_value_expression ::= boolean_primary */ 279, /* (325) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
{ 279, -2 }, /* (322) boolean_value_expression ::= NOT boolean_primary */ 280, /* (326) boolean_primary ::= predicate */
{ 279, -3 }, /* (323) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ 280, /* (327) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
{ 279, -3 }, /* (324) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ 281, /* (328) common_expression ::= expression */
{ 280, -1 }, /* (325) boolean_primary ::= predicate */ 281, /* (329) common_expression ::= boolean_value_expression */
{ 280, -3 }, /* (326) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ 282, /* (330) from_clause ::= FROM table_reference_list */
{ 281, -1 }, /* (327) common_expression ::= expression */ 283, /* (331) table_reference_list ::= table_reference */
{ 281, -1 }, /* (328) common_expression ::= boolean_value_expression */ 283, /* (332) table_reference_list ::= table_reference_list NK_COMMA table_reference */
{ 282, -2 }, /* (329) from_clause ::= FROM table_reference_list */ 284, /* (333) table_reference ::= table_primary */
{ 283, -1 }, /* (330) table_reference_list ::= table_reference */ 284, /* (334) table_reference ::= joined_table */
{ 283, -3 }, /* (331) table_reference_list ::= table_reference_list NK_COMMA table_reference */ 285, /* (335) table_primary ::= table_name alias_opt */
{ 284, -1 }, /* (332) table_reference ::= table_primary */ 285, /* (336) table_primary ::= db_name NK_DOT table_name alias_opt */
{ 284, -1 }, /* (333) table_reference ::= joined_table */ 285, /* (337) table_primary ::= subquery alias_opt */
{ 285, -2 }, /* (334) table_primary ::= table_name alias_opt */ 285, /* (338) table_primary ::= parenthesized_joined_table */
{ 285, -4 }, /* (335) table_primary ::= db_name NK_DOT table_name alias_opt */ 287, /* (339) alias_opt ::= */
{ 285, -2 }, /* (336) table_primary ::= subquery alias_opt */ 287, /* (340) alias_opt ::= table_alias */
{ 285, -1 }, /* (337) table_primary ::= parenthesized_joined_table */ 287, /* (341) alias_opt ::= AS table_alias */
{ 287, 0 }, /* (338) alias_opt ::= */ 288, /* (342) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
{ 287, -1 }, /* (339) alias_opt ::= table_alias */ 288, /* (343) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
{ 287, -2 }, /* (340) alias_opt ::= AS table_alias */ 286, /* (344) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
{ 288, -3 }, /* (341) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ 289, /* (345) join_type ::= */
{ 288, -3 }, /* (342) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ 289, /* (346) join_type ::= INNER */
{ 286, -6 }, /* (343) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ 291, /* (347) query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */
{ 289, 0 }, /* (344) join_type ::= */ 292, /* (348) set_quantifier_opt ::= */
{ 289, -1 }, /* (345) join_type ::= INNER */ 292, /* (349) set_quantifier_opt ::= DISTINCT */
{ 291, -9 }, /* (346) query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ 292, /* (350) set_quantifier_opt ::= ALL */
{ 292, 0 }, /* (347) set_quantifier_opt ::= */ 293, /* (351) select_list ::= NK_STAR */
{ 292, -1 }, /* (348) set_quantifier_opt ::= DISTINCT */ 293, /* (352) select_list ::= select_sublist */
{ 292, -1 }, /* (349) set_quantifier_opt ::= ALL */ 299, /* (353) select_sublist ::= select_item */
{ 293, -1 }, /* (350) select_list ::= NK_STAR */ 299, /* (354) select_sublist ::= select_sublist NK_COMMA select_item */
{ 293, -1 }, /* (351) select_list ::= select_sublist */ 300, /* (355) select_item ::= common_expression */
{ 299, -1 }, /* (352) select_sublist ::= select_item */ 300, /* (356) select_item ::= common_expression column_alias */
{ 299, -3 }, /* (353) select_sublist ::= select_sublist NK_COMMA select_item */ 300, /* (357) select_item ::= common_expression AS column_alias */
{ 300, -1 }, /* (354) select_item ::= common_expression */ 300, /* (358) select_item ::= table_name NK_DOT NK_STAR */
{ 300, -2 }, /* (355) select_item ::= common_expression column_alias */ 294, /* (359) where_clause_opt ::= */
{ 300, -3 }, /* (356) select_item ::= common_expression AS column_alias */ 294, /* (360) where_clause_opt ::= WHERE search_condition */
{ 300, -3 }, /* (357) select_item ::= table_name NK_DOT NK_STAR */ 295, /* (361) partition_by_clause_opt ::= */
{ 294, 0 }, /* (358) where_clause_opt ::= */ 295, /* (362) partition_by_clause_opt ::= PARTITION BY expression_list */
{ 294, -2 }, /* (359) where_clause_opt ::= WHERE search_condition */ 296, /* (363) twindow_clause_opt ::= */
{ 295, 0 }, /* (360) partition_by_clause_opt ::= */ 296, /* (364) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */
{ 295, -3 }, /* (361) partition_by_clause_opt ::= PARTITION BY expression_list */ 296, /* (365) twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */
{ 296, 0 }, /* (362) twindow_clause_opt ::= */ 296, /* (366) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */
{ 296, -6 }, /* (363) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ 296, /* (367) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */
{ 296, -4 }, /* (364) twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ 256, /* (368) sliding_opt ::= */
{ 296, -6 }, /* (365) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ 256, /* (369) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */
{ 296, -8 }, /* (366) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ 301, /* (370) fill_opt ::= */
{ 256, 0 }, /* (367) sliding_opt ::= */ 301, /* (371) fill_opt ::= FILL NK_LP fill_mode NK_RP */
{ 256, -4 }, /* (368) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ 301, /* (372) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */
{ 301, 0 }, /* (369) fill_opt ::= */ 302, /* (373) fill_mode ::= NONE */
{ 301, -4 }, /* (370) fill_opt ::= FILL NK_LP fill_mode NK_RP */ 302, /* (374) fill_mode ::= PREV */
{ 301, -6 }, /* (371) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ 302, /* (375) fill_mode ::= NULL */
{ 302, -1 }, /* (372) fill_mode ::= NONE */ 302, /* (376) fill_mode ::= LINEAR */
{ 302, -1 }, /* (373) fill_mode ::= PREV */ 302, /* (377) fill_mode ::= NEXT */
{ 302, -1 }, /* (374) fill_mode ::= NULL */ 297, /* (378) group_by_clause_opt ::= */
{ 302, -1 }, /* (375) fill_mode ::= LINEAR */ 297, /* (379) group_by_clause_opt ::= GROUP BY group_by_list */
{ 302, -1 }, /* (376) fill_mode ::= NEXT */ 303, /* (380) group_by_list ::= expression */
{ 297, 0 }, /* (377) group_by_clause_opt ::= */ 303, /* (381) group_by_list ::= group_by_list NK_COMMA expression */
{ 297, -3 }, /* (378) group_by_clause_opt ::= GROUP BY group_by_list */ 298, /* (382) having_clause_opt ::= */
{ 303, -1 }, /* (379) group_by_list ::= expression */ 298, /* (383) having_clause_opt ::= HAVING search_condition */
{ 303, -3 }, /* (380) group_by_list ::= group_by_list NK_COMMA expression */ 260, /* (384) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */
{ 298, 0 }, /* (381) having_clause_opt ::= */ 304, /* (385) query_expression_body ::= query_primary */
{ 298, -2 }, /* (382) having_clause_opt ::= HAVING search_condition */ 304, /* (386) query_expression_body ::= query_expression_body UNION ALL query_expression_body */
{ 260, -4 }, /* (383) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ 308, /* (387) query_primary ::= query_specification */
{ 304, -1 }, /* (384) query_expression_body ::= query_primary */ 305, /* (388) order_by_clause_opt ::= */
{ 304, -4 }, /* (385) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ 305, /* (389) order_by_clause_opt ::= ORDER BY sort_specification_list */
{ 308, -1 }, /* (386) query_primary ::= query_specification */ 306, /* (390) slimit_clause_opt ::= */
{ 305, 0 }, /* (387) order_by_clause_opt ::= */ 306, /* (391) slimit_clause_opt ::= SLIMIT NK_INTEGER */
{ 305, -3 }, /* (388) order_by_clause_opt ::= ORDER BY sort_specification_list */ 306, /* (392) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
{ 306, 0 }, /* (389) slimit_clause_opt ::= */ 306, /* (393) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
{ 306, -2 }, /* (390) slimit_clause_opt ::= SLIMIT NK_INTEGER */ 307, /* (394) limit_clause_opt ::= */
{ 306, -4 }, /* (391) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ 307, /* (395) limit_clause_opt ::= LIMIT NK_INTEGER */
{ 306, -4 }, /* (392) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ 307, /* (396) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
{ 307, 0 }, /* (393) limit_clause_opt ::= */ 307, /* (397) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
{ 307, -2 }, /* (394) limit_clause_opt ::= LIMIT NK_INTEGER */ 274, /* (398) subquery ::= NK_LP query_expression NK_RP */
{ 307, -4 }, /* (395) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ 290, /* (399) search_condition ::= common_expression */
{ 307, -4 }, /* (396) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ 309, /* (400) sort_specification_list ::= sort_specification */
{ 274, -3 }, /* (397) subquery ::= NK_LP query_expression NK_RP */ 309, /* (401) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
{ 290, -1 }, /* (398) search_condition ::= common_expression */ 310, /* (402) sort_specification ::= expression ordering_specification_opt null_ordering_opt */
{ 309, -1 }, /* (399) sort_specification_list ::= sort_specification */ 311, /* (403) ordering_specification_opt ::= */
{ 309, -3 }, /* (400) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ 311, /* (404) ordering_specification_opt ::= ASC */
{ 310, -3 }, /* (401) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ 311, /* (405) ordering_specification_opt ::= DESC */
{ 311, 0 }, /* (402) ordering_specification_opt ::= */ 312, /* (406) null_ordering_opt ::= */
{ 311, -1 }, /* (403) ordering_specification_opt ::= ASC */ 312, /* (407) null_ordering_opt ::= NULLS FIRST */
{ 311, -1 }, /* (404) ordering_specification_opt ::= DESC */ 312, /* (408) null_ordering_opt ::= NULLS LAST */
{ 312, 0 }, /* (405) null_ordering_opt ::= */ };
{ 312, -2 }, /* (406) null_ordering_opt ::= NULLS FIRST */
{ 312, -2 }, /* (407) null_ordering_opt ::= NULLS LAST */ /* 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[] = {
-6, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
-4, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
0, /* (2) account_options ::= */
-3, /* (3) account_options ::= account_options PPS literal */
-3, /* (4) account_options ::= account_options TSERIES literal */
-3, /* (5) account_options ::= account_options STORAGE literal */
-3, /* (6) account_options ::= account_options STREAMS literal */
-3, /* (7) account_options ::= account_options QTIME literal */
-3, /* (8) account_options ::= account_options DBS literal */
-3, /* (9) account_options ::= account_options USERS literal */
-3, /* (10) account_options ::= account_options CONNS literal */
-3, /* (11) account_options ::= account_options STATE literal */
-1, /* (12) alter_account_options ::= alter_account_option */
-2, /* (13) alter_account_options ::= alter_account_options alter_account_option */
-2, /* (14) alter_account_option ::= PASS literal */
-2, /* (15) alter_account_option ::= PPS literal */
-2, /* (16) alter_account_option ::= TSERIES literal */
-2, /* (17) alter_account_option ::= STORAGE literal */
-2, /* (18) alter_account_option ::= STREAMS literal */
-2, /* (19) alter_account_option ::= QTIME literal */
-2, /* (20) alter_account_option ::= DBS literal */
-2, /* (21) alter_account_option ::= USERS literal */
-2, /* (22) alter_account_option ::= CONNS literal */
-2, /* (23) alter_account_option ::= STATE literal */
-5, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING */
-5, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */
-5, /* (26) cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */
-3, /* (27) cmd ::= DROP USER user_name */
-3, /* (28) cmd ::= CREATE DNODE dnode_endpoint */
-5, /* (29) cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */
-3, /* (30) cmd ::= DROP DNODE NK_INTEGER */
-3, /* (31) cmd ::= DROP DNODE dnode_endpoint */
-4, /* (32) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
-5, /* (33) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
-4, /* (34) cmd ::= ALTER ALL DNODES NK_STRING */
-5, /* (35) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
-1, /* (36) dnode_endpoint ::= NK_STRING */
-1, /* (37) dnode_host_name ::= NK_ID */
-1, /* (38) dnode_host_name ::= NK_IPTOKEN */
-3, /* (39) cmd ::= ALTER LOCAL NK_STRING */
-4, /* (40) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
-5, /* (41) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
-5, /* (42) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
-5, /* (43) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
-5, /* (44) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
-5, /* (45) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
-5, /* (46) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
-5, /* (47) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
-5, /* (48) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
-5, /* (49) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
-4, /* (50) cmd ::= DROP DATABASE exists_opt db_name */
-2, /* (51) cmd ::= USE db_name */
-4, /* (52) cmd ::= ALTER DATABASE db_name alter_db_options */
-3, /* (53) not_exists_opt ::= IF NOT EXISTS */
0, /* (54) not_exists_opt ::= */
-2, /* (55) exists_opt ::= IF EXISTS */
0, /* (56) exists_opt ::= */
0, /* (57) db_options ::= */
-3, /* (58) db_options ::= db_options BLOCKS NK_INTEGER */
-3, /* (59) db_options ::= db_options CACHE NK_INTEGER */
-3, /* (60) db_options ::= db_options CACHELAST NK_INTEGER */
-3, /* (61) db_options ::= db_options COMP NK_INTEGER */
-3, /* (62) db_options ::= db_options DAYS NK_INTEGER */
-3, /* (63) db_options ::= db_options DAYS NK_VARIABLE */
-3, /* (64) db_options ::= db_options FSYNC NK_INTEGER */
-3, /* (65) db_options ::= db_options MAXROWS NK_INTEGER */
-3, /* (66) db_options ::= db_options MINROWS NK_INTEGER */
-3, /* (67) db_options ::= db_options KEEP integer_list */
-3, /* (68) db_options ::= db_options KEEP variable_list */
-3, /* (69) db_options ::= db_options PRECISION NK_STRING */
-3, /* (70) db_options ::= db_options QUORUM NK_INTEGER */
-3, /* (71) db_options ::= db_options REPLICA NK_INTEGER */
-3, /* (72) db_options ::= db_options TTL NK_INTEGER */
-3, /* (73) db_options ::= db_options WAL NK_INTEGER */
-3, /* (74) db_options ::= db_options VGROUPS NK_INTEGER */
-3, /* (75) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
-3, /* (76) db_options ::= db_options STREAM_MODE NK_INTEGER */
-3, /* (77) db_options ::= db_options RETENTIONS retention_list */
-1, /* (78) alter_db_options ::= alter_db_option */
-2, /* (79) alter_db_options ::= alter_db_options alter_db_option */
-2, /* (80) alter_db_option ::= BLOCKS NK_INTEGER */
-2, /* (81) alter_db_option ::= FSYNC NK_INTEGER */
-2, /* (82) alter_db_option ::= KEEP integer_list */
-2, /* (83) alter_db_option ::= KEEP variable_list */
-2, /* (84) alter_db_option ::= WAL NK_INTEGER */
-2, /* (85) alter_db_option ::= QUORUM NK_INTEGER */
-2, /* (86) alter_db_option ::= CACHELAST NK_INTEGER */
-2, /* (87) alter_db_option ::= REPLICA NK_INTEGER */
-1, /* (88) integer_list ::= NK_INTEGER */
-3, /* (89) integer_list ::= integer_list NK_COMMA NK_INTEGER */
-1, /* (90) variable_list ::= NK_VARIABLE */
-3, /* (91) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
-1, /* (92) retention_list ::= retention */
-3, /* (93) retention_list ::= retention_list NK_COMMA retention */
-3, /* (94) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
-9, /* (95) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
-3, /* (96) cmd ::= CREATE TABLE multi_create_clause */
-9, /* (97) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
-3, /* (98) cmd ::= DROP TABLE multi_drop_clause */
-4, /* (99) cmd ::= DROP STABLE exists_opt full_table_name */
-3, /* (100) cmd ::= ALTER TABLE alter_table_clause */
-3, /* (101) cmd ::= ALTER STABLE alter_table_clause */
-2, /* (102) alter_table_clause ::= full_table_name alter_table_options */
-5, /* (103) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
-4, /* (104) alter_table_clause ::= full_table_name DROP COLUMN column_name */
-5, /* (105) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
-5, /* (106) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
-5, /* (107) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
-4, /* (108) alter_table_clause ::= full_table_name DROP TAG column_name */
-5, /* (109) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
-5, /* (110) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
-6, /* (111) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal */
-1, /* (112) multi_create_clause ::= create_subtable_clause */
-2, /* (113) multi_create_clause ::= multi_create_clause create_subtable_clause */
-9, /* (114) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP */
-1, /* (115) multi_drop_clause ::= drop_table_clause */
-2, /* (116) multi_drop_clause ::= multi_drop_clause drop_table_clause */
-2, /* (117) drop_table_clause ::= exists_opt full_table_name */
0, /* (118) specific_tags_opt ::= */
-3, /* (119) specific_tags_opt ::= NK_LP col_name_list NK_RP */
-1, /* (120) full_table_name ::= table_name */
-3, /* (121) full_table_name ::= db_name NK_DOT table_name */
-1, /* (122) column_def_list ::= column_def */
-3, /* (123) column_def_list ::= column_def_list NK_COMMA column_def */
-2, /* (124) column_def ::= column_name type_name */
-4, /* (125) column_def ::= column_name type_name COMMENT NK_STRING */
-1, /* (126) type_name ::= BOOL */
-1, /* (127) type_name ::= TINYINT */
-1, /* (128) type_name ::= SMALLINT */
-1, /* (129) type_name ::= INT */
-1, /* (130) type_name ::= INTEGER */
-1, /* (131) type_name ::= BIGINT */
-1, /* (132) type_name ::= FLOAT */
-1, /* (133) type_name ::= DOUBLE */
-4, /* (134) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
-1, /* (135) type_name ::= TIMESTAMP */
-4, /* (136) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
-2, /* (137) type_name ::= TINYINT UNSIGNED */
-2, /* (138) type_name ::= SMALLINT UNSIGNED */
-2, /* (139) type_name ::= INT UNSIGNED */
-2, /* (140) type_name ::= BIGINT UNSIGNED */
-1, /* (141) type_name ::= JSON */
-4, /* (142) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
-1, /* (143) type_name ::= MEDIUMBLOB */
-1, /* (144) type_name ::= BLOB */
-4, /* (145) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
-1, /* (146) type_name ::= DECIMAL */
-4, /* (147) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
-6, /* (148) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
0, /* (149) tags_def_opt ::= */
-1, /* (150) tags_def_opt ::= tags_def */
-4, /* (151) tags_def ::= TAGS NK_LP column_def_list NK_RP */
0, /* (152) table_options ::= */
-3, /* (153) table_options ::= table_options COMMENT NK_STRING */
-3, /* (154) table_options ::= table_options KEEP integer_list */
-3, /* (155) table_options ::= table_options TTL NK_INTEGER */
-5, /* (156) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
-5, /* (157) table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */
-3, /* (158) table_options ::= table_options FILE_FACTOR NK_FLOAT */
-3, /* (159) table_options ::= table_options DELAY NK_INTEGER */
-1, /* (160) alter_table_options ::= alter_table_option */
-2, /* (161) alter_table_options ::= alter_table_options alter_table_option */
-2, /* (162) alter_table_option ::= COMMENT NK_STRING */
-2, /* (163) alter_table_option ::= KEEP integer_list */
-2, /* (164) alter_table_option ::= TTL NK_INTEGER */
-1, /* (165) col_name_list ::= col_name */
-3, /* (166) col_name_list ::= col_name_list NK_COMMA col_name */
-1, /* (167) col_name ::= column_name */
-2, /* (168) cmd ::= SHOW DNODES */
-2, /* (169) cmd ::= SHOW USERS */
-2, /* (170) cmd ::= SHOW DATABASES */
-4, /* (171) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */
-4, /* (172) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
-3, /* (173) cmd ::= SHOW db_name_cond_opt VGROUPS */
-2, /* (174) cmd ::= SHOW MNODES */
-2, /* (175) cmd ::= SHOW MODULES */
-2, /* (176) cmd ::= SHOW QNODES */
-2, /* (177) cmd ::= SHOW FUNCTIONS */
-5, /* (178) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
-2, /* (179) cmd ::= SHOW STREAMS */
-2, /* (180) cmd ::= SHOW ACCOUNTS */
-2, /* (181) cmd ::= SHOW APPS */
-2, /* (182) cmd ::= SHOW CONNECTIONS */
-2, /* (183) cmd ::= SHOW LICENCE */
-4, /* (184) cmd ::= SHOW CREATE DATABASE db_name */
-4, /* (185) cmd ::= SHOW CREATE TABLE full_table_name */
-4, /* (186) cmd ::= SHOW CREATE STABLE full_table_name */
-2, /* (187) cmd ::= SHOW QUERIES */
-2, /* (188) cmd ::= SHOW SCORES */
-2, /* (189) cmd ::= SHOW TOPICS */
-2, /* (190) cmd ::= SHOW VARIABLES */
-2, /* (191) cmd ::= SHOW BNODES */
-2, /* (192) cmd ::= SHOW SNODES */
0, /* (193) db_name_cond_opt ::= */
-2, /* (194) db_name_cond_opt ::= db_name NK_DOT */
0, /* (195) like_pattern_opt ::= */
-2, /* (196) like_pattern_opt ::= LIKE NK_STRING */
-1, /* (197) table_name_cond ::= table_name */
0, /* (198) from_db_opt ::= */
-2, /* (199) from_db_opt ::= FROM db_name */
-1, /* (200) func_name_list ::= func_name */
-3, /* (201) func_name_list ::= func_name_list NK_COMMA col_name */
-1, /* (202) func_name ::= function_name */
-8, /* (203) cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */
-10, /* (204) cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */
-6, /* (205) cmd ::= DROP INDEX exists_opt index_name ON table_name */
0, /* (206) index_options ::= */
-9, /* (207) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */
-11, /* (208) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */
-1, /* (209) func_list ::= func */
-3, /* (210) func_list ::= func_list NK_COMMA func */
-4, /* (211) func ::= function_name NK_LP expression_list NK_RP */
-6, /* (212) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */
-6, /* (213) cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name */
-4, /* (214) cmd ::= DROP TOPIC exists_opt topic_name */
-2, /* (215) cmd ::= DESC full_table_name */
-2, /* (216) cmd ::= DESCRIBE full_table_name */
-3, /* (217) cmd ::= RESET QUERY CACHE */
-4, /* (218) cmd ::= EXPLAIN analyze_opt explain_options query_expression */
0, /* (219) analyze_opt ::= */
-1, /* (220) analyze_opt ::= ANALYZE */
0, /* (221) explain_options ::= */
-3, /* (222) explain_options ::= explain_options VERBOSE NK_BOOL */
-3, /* (223) explain_options ::= explain_options RATIO NK_FLOAT */
-6, /* (224) cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */
-9, /* (225) cmd ::= CREATE agg_func_opt FUNCTION function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */
-3, /* (226) cmd ::= DROP FUNCTION function_name */
0, /* (227) agg_func_opt ::= */
-1, /* (228) agg_func_opt ::= AGGREGATE */
0, /* (229) bufsize_opt ::= */
-2, /* (230) bufsize_opt ::= BUFSIZE NK_INTEGER */
-7, /* (231) cmd ::= CREATE STREAM stream_name INTO table_name AS query_expression */
-3, /* (232) cmd ::= DROP STREAM stream_name */
-3, /* (233) cmd ::= KILL CONNECTION NK_INTEGER */
-3, /* (234) cmd ::= KILL QUERY NK_INTEGER */
-4, /* (235) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
-4, /* (236) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
-3, /* (237) cmd ::= SPLIT VGROUP NK_INTEGER */
-2, /* (238) dnode_list ::= DNODE NK_INTEGER */
-3, /* (239) dnode_list ::= dnode_list DNODE NK_INTEGER */
-3, /* (240) cmd ::= SYNCDB db_name REPLICA */
-1, /* (241) cmd ::= query_expression */
-1, /* (242) literal ::= NK_INTEGER */
-1, /* (243) literal ::= NK_FLOAT */
-1, /* (244) literal ::= NK_STRING */
-1, /* (245) literal ::= NK_BOOL */
-2, /* (246) literal ::= TIMESTAMP NK_STRING */
-1, /* (247) literal ::= duration_literal */
-1, /* (248) literal ::= NULL */
-1, /* (249) duration_literal ::= NK_VARIABLE */
-1, /* (250) signed ::= NK_INTEGER */
-2, /* (251) signed ::= NK_PLUS NK_INTEGER */
-2, /* (252) signed ::= NK_MINUS NK_INTEGER */
-1, /* (253) signed ::= NK_FLOAT */
-2, /* (254) signed ::= NK_PLUS NK_FLOAT */
-2, /* (255) signed ::= NK_MINUS NK_FLOAT */
-1, /* (256) signed_literal ::= signed */
-1, /* (257) signed_literal ::= NK_STRING */
-1, /* (258) signed_literal ::= NK_BOOL */
-2, /* (259) signed_literal ::= TIMESTAMP NK_STRING */
-1, /* (260) signed_literal ::= duration_literal */
-1, /* (261) signed_literal ::= NULL */
-1, /* (262) literal_list ::= signed_literal */
-3, /* (263) literal_list ::= literal_list NK_COMMA signed_literal */
-1, /* (264) db_name ::= NK_ID */
-1, /* (265) table_name ::= NK_ID */
-1, /* (266) column_name ::= NK_ID */
-1, /* (267) function_name ::= NK_ID */
-1, /* (268) function_name ::= FIRST */
-1, /* (269) function_name ::= LAST */
-1, /* (270) table_alias ::= NK_ID */
-1, /* (271) column_alias ::= NK_ID */
-1, /* (272) user_name ::= NK_ID */
-1, /* (273) index_name ::= NK_ID */
-1, /* (274) topic_name ::= NK_ID */
-1, /* (275) stream_name ::= NK_ID */
-1, /* (276) expression ::= literal */
-1, /* (277) expression ::= pseudo_column */
-1, /* (278) expression ::= column_reference */
-4, /* (279) expression ::= function_name NK_LP expression_list NK_RP */
-4, /* (280) expression ::= function_name NK_LP NK_STAR NK_RP */
-6, /* (281) expression ::= function_name NK_LP expression AS type_name NK_RP */
-1, /* (282) expression ::= subquery */
-3, /* (283) expression ::= NK_LP expression NK_RP */
-2, /* (284) expression ::= NK_PLUS expression */
-2, /* (285) expression ::= NK_MINUS expression */
-3, /* (286) expression ::= expression NK_PLUS expression */
-3, /* (287) expression ::= expression NK_MINUS expression */
-3, /* (288) expression ::= expression NK_STAR expression */
-3, /* (289) expression ::= expression NK_SLASH expression */
-3, /* (290) expression ::= expression NK_REM expression */
-1, /* (291) expression_list ::= expression */
-3, /* (292) expression_list ::= expression_list NK_COMMA expression */
-1, /* (293) column_reference ::= column_name */
-3, /* (294) column_reference ::= table_name NK_DOT column_name */
-1, /* (295) pseudo_column ::= NOW */
-1, /* (296) pseudo_column ::= ROWTS */
-1, /* (297) pseudo_column ::= TBNAME */
-1, /* (298) pseudo_column ::= QSTARTTS */
-1, /* (299) pseudo_column ::= QENDTS */
-1, /* (300) pseudo_column ::= WSTARTTS */
-1, /* (301) pseudo_column ::= WENDTS */
-1, /* (302) pseudo_column ::= WDURATION */
-3, /* (303) predicate ::= expression compare_op expression */
-5, /* (304) predicate ::= expression BETWEEN expression AND expression */
-6, /* (305) predicate ::= expression NOT BETWEEN expression AND expression */
-3, /* (306) predicate ::= expression IS NULL */
-4, /* (307) predicate ::= expression IS NOT NULL */
-3, /* (308) predicate ::= expression in_op in_predicate_value */
-1, /* (309) compare_op ::= NK_LT */
-1, /* (310) compare_op ::= NK_GT */
-1, /* (311) compare_op ::= NK_LE */
-1, /* (312) compare_op ::= NK_GE */
-1, /* (313) compare_op ::= NK_NE */
-1, /* (314) compare_op ::= NK_EQ */
-1, /* (315) compare_op ::= LIKE */
-2, /* (316) compare_op ::= NOT LIKE */
-1, /* (317) compare_op ::= MATCH */
-1, /* (318) compare_op ::= NMATCH */
-1, /* (319) in_op ::= IN */
-2, /* (320) in_op ::= NOT IN */
-3, /* (321) in_predicate_value ::= NK_LP expression_list NK_RP */
-1, /* (322) boolean_value_expression ::= boolean_primary */
-2, /* (323) boolean_value_expression ::= NOT boolean_primary */
-3, /* (324) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
-3, /* (325) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
-1, /* (326) boolean_primary ::= predicate */
-3, /* (327) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
-1, /* (328) common_expression ::= expression */
-1, /* (329) common_expression ::= boolean_value_expression */
-2, /* (330) from_clause ::= FROM table_reference_list */
-1, /* (331) table_reference_list ::= table_reference */
-3, /* (332) table_reference_list ::= table_reference_list NK_COMMA table_reference */
-1, /* (333) table_reference ::= table_primary */
-1, /* (334) table_reference ::= joined_table */
-2, /* (335) table_primary ::= table_name alias_opt */
-4, /* (336) table_primary ::= db_name NK_DOT table_name alias_opt */
-2, /* (337) table_primary ::= subquery alias_opt */
-1, /* (338) table_primary ::= parenthesized_joined_table */
0, /* (339) alias_opt ::= */
-1, /* (340) alias_opt ::= table_alias */
-2, /* (341) alias_opt ::= AS table_alias */
-3, /* (342) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
-3, /* (343) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
-6, /* (344) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
0, /* (345) join_type ::= */
-1, /* (346) join_type ::= INNER */
-9, /* (347) query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */
0, /* (348) set_quantifier_opt ::= */
-1, /* (349) set_quantifier_opt ::= DISTINCT */
-1, /* (350) set_quantifier_opt ::= ALL */
-1, /* (351) select_list ::= NK_STAR */
-1, /* (352) select_list ::= select_sublist */
-1, /* (353) select_sublist ::= select_item */
-3, /* (354) select_sublist ::= select_sublist NK_COMMA select_item */
-1, /* (355) select_item ::= common_expression */
-2, /* (356) select_item ::= common_expression column_alias */
-3, /* (357) select_item ::= common_expression AS column_alias */
-3, /* (358) select_item ::= table_name NK_DOT NK_STAR */
0, /* (359) where_clause_opt ::= */
-2, /* (360) where_clause_opt ::= WHERE search_condition */
0, /* (361) partition_by_clause_opt ::= */
-3, /* (362) partition_by_clause_opt ::= PARTITION BY expression_list */
0, /* (363) twindow_clause_opt ::= */
-6, /* (364) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */
-4, /* (365) twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */
-6, /* (366) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */
-8, /* (367) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */
0, /* (368) sliding_opt ::= */
-4, /* (369) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */
0, /* (370) fill_opt ::= */
-4, /* (371) fill_opt ::= FILL NK_LP fill_mode NK_RP */
-6, /* (372) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */
-1, /* (373) fill_mode ::= NONE */
-1, /* (374) fill_mode ::= PREV */
-1, /* (375) fill_mode ::= NULL */
-1, /* (376) fill_mode ::= LINEAR */
-1, /* (377) fill_mode ::= NEXT */
0, /* (378) group_by_clause_opt ::= */
-3, /* (379) group_by_clause_opt ::= GROUP BY group_by_list */
-1, /* (380) group_by_list ::= expression */
-3, /* (381) group_by_list ::= group_by_list NK_COMMA expression */
0, /* (382) having_clause_opt ::= */
-2, /* (383) having_clause_opt ::= HAVING search_condition */
-4, /* (384) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */
-1, /* (385) query_expression_body ::= query_primary */
-4, /* (386) query_expression_body ::= query_expression_body UNION ALL query_expression_body */
-1, /* (387) query_primary ::= query_specification */
0, /* (388) order_by_clause_opt ::= */
-3, /* (389) order_by_clause_opt ::= ORDER BY sort_specification_list */
0, /* (390) slimit_clause_opt ::= */
-2, /* (391) slimit_clause_opt ::= SLIMIT NK_INTEGER */
-4, /* (392) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
-4, /* (393) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
0, /* (394) limit_clause_opt ::= */
-2, /* (395) limit_clause_opt ::= LIMIT NK_INTEGER */
-4, /* (396) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
-4, /* (397) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
-3, /* (398) subquery ::= NK_LP query_expression NK_RP */
-1, /* (399) search_condition ::= common_expression */
-1, /* (400) sort_specification_list ::= sort_specification */
-3, /* (401) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
-3, /* (402) sort_specification ::= expression ordering_specification_opt null_ordering_opt */
0, /* (403) ordering_specification_opt ::= */
-1, /* (404) ordering_specification_opt ::= ASC */
-1, /* (405) ordering_specification_opt ::= DESC */
0, /* (406) null_ordering_opt ::= */
-2, /* (407) null_ordering_opt ::= NULLS FIRST */
-2, /* (408) null_ordering_opt ::= NULLS LAST */
}; };
static void yy_accept(yyParser*); /* Forward Declaration */ static void yy_accept(yyParser*); /* Forward Declaration */
...@@ -2530,14 +2940,17 @@ static YYACTIONTYPE yy_reduce( ...@@ -2530,14 +2940,17 @@ static YYACTIONTYPE yy_reduce(
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 = yyRuleInfoNRhs[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 */
...@@ -2545,7 +2958,7 @@ static YYACTIONTYPE yy_reduce( ...@@ -2545,7 +2958,7 @@ static YYACTIONTYPE 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( yyRuleInfoNRhs[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++;
...@@ -2737,7 +3150,7 @@ static YYACTIONTYPE yy_reduce( ...@@ -2737,7 +3150,7 @@ static YYACTIONTYPE yy_reduce(
case 56: /* exists_opt ::= */ yytestcase(yyruleno==56); case 56: /* exists_opt ::= */ yytestcase(yyruleno==56);
case 219: /* analyze_opt ::= */ yytestcase(yyruleno==219); case 219: /* analyze_opt ::= */ yytestcase(yyruleno==219);
case 227: /* agg_func_opt ::= */ yytestcase(yyruleno==227); case 227: /* agg_func_opt ::= */ yytestcase(yyruleno==227);
case 347: /* set_quantifier_opt ::= */ yytestcase(yyruleno==347); case 348: /* set_quantifier_opt ::= */ yytestcase(yyruleno==348);
{ yymsp[1].minor.yy173 = false; } { yymsp[1].minor.yy173 = false; }
break; break;
case 55: /* exists_opt ::= IF EXISTS */ case 55: /* exists_opt ::= IF EXISTS */
...@@ -2878,8 +3291,8 @@ static YYACTIONTYPE yy_reduce( ...@@ -2878,8 +3291,8 @@ static YYACTIONTYPE yy_reduce(
case 200: /* func_name_list ::= func_name */ yytestcase(yyruleno==200); case 200: /* func_name_list ::= func_name */ yytestcase(yyruleno==200);
case 209: /* func_list ::= func */ yytestcase(yyruleno==209); case 209: /* func_list ::= func */ yytestcase(yyruleno==209);
case 262: /* literal_list ::= signed_literal */ yytestcase(yyruleno==262); case 262: /* literal_list ::= signed_literal */ yytestcase(yyruleno==262);
case 352: /* select_sublist ::= select_item */ yytestcase(yyruleno==352); case 353: /* select_sublist ::= select_item */ yytestcase(yyruleno==353);
case 399: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==399); case 400: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==400);
{ yylhsminor.yy476 = createNodeList(pCxt, yymsp[0].minor.yy564); } { yylhsminor.yy476 = createNodeList(pCxt, yymsp[0].minor.yy564); }
yymsp[0].minor.yy476 = yylhsminor.yy476; yymsp[0].minor.yy476 = yylhsminor.yy476;
break; break;
...@@ -2889,8 +3302,8 @@ static YYACTIONTYPE yy_reduce( ...@@ -2889,8 +3302,8 @@ static YYACTIONTYPE yy_reduce(
case 201: /* func_name_list ::= func_name_list NK_COMMA col_name */ yytestcase(yyruleno==201); case 201: /* func_name_list ::= func_name_list NK_COMMA col_name */ yytestcase(yyruleno==201);
case 210: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==210); case 210: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==210);
case 263: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==263); case 263: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==263);
case 353: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==353); case 354: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==354);
case 400: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==400); case 401: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==401);
{ yylhsminor.yy476 = addNodeToList(pCxt, yymsp[-2].minor.yy476, yymsp[0].minor.yy564); } { yylhsminor.yy476 = addNodeToList(pCxt, yymsp[-2].minor.yy476, yymsp[0].minor.yy564); }
yymsp[-2].minor.yy476 = yylhsminor.yy476; yymsp[-2].minor.yy476 = yylhsminor.yy476;
break; break;
...@@ -2971,9 +3384,9 @@ static YYACTIONTYPE yy_reduce( ...@@ -2971,9 +3384,9 @@ static YYACTIONTYPE yy_reduce(
break; break;
case 118: /* specific_tags_opt ::= */ case 118: /* specific_tags_opt ::= */
case 149: /* tags_def_opt ::= */ yytestcase(yyruleno==149); case 149: /* tags_def_opt ::= */ yytestcase(yyruleno==149);
case 360: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==360); case 361: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==361);
case 377: /* group_by_clause_opt ::= */ yytestcase(yyruleno==377); case 378: /* group_by_clause_opt ::= */ yytestcase(yyruleno==378);
case 387: /* order_by_clause_opt ::= */ yytestcase(yyruleno==387); case 388: /* order_by_clause_opt ::= */ yytestcase(yyruleno==388);
{ yymsp[1].minor.yy476 = NULL; } { yymsp[1].minor.yy476 = NULL; }
break; break;
case 119: /* specific_tags_opt ::= NK_LP col_name_list NK_RP */ case 119: /* specific_tags_opt ::= NK_LP col_name_list NK_RP */
...@@ -3063,7 +3476,7 @@ static YYACTIONTYPE yy_reduce( ...@@ -3063,7 +3476,7 @@ static YYACTIONTYPE yy_reduce(
{ yymsp[-5].minor.yy288 = createDataType(TSDB_DATA_TYPE_DECIMAL); } { yymsp[-5].minor.yy288 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
break; break;
case 150: /* tags_def_opt ::= tags_def */ case 150: /* tags_def_opt ::= tags_def */
case 351: /* select_list ::= select_sublist */ yytestcase(yyruleno==351); case 352: /* select_list ::= select_sublist */ yytestcase(yyruleno==352);
{ yylhsminor.yy476 = yymsp[0].minor.yy476; } { yylhsminor.yy476 = yymsp[0].minor.yy476; }
yymsp[0].minor.yy476 = yylhsminor.yy476; yymsp[0].minor.yy476 = yylhsminor.yy476;
break; break;
...@@ -3207,13 +3620,13 @@ static YYACTIONTYPE yy_reduce( ...@@ -3207,13 +3620,13 @@ static YYACTIONTYPE yy_reduce(
break; break;
case 195: /* like_pattern_opt ::= */ case 195: /* like_pattern_opt ::= */
case 206: /* index_options ::= */ yytestcase(yyruleno==206); case 206: /* index_options ::= */ yytestcase(yyruleno==206);
case 358: /* where_clause_opt ::= */ yytestcase(yyruleno==358); case 359: /* where_clause_opt ::= */ yytestcase(yyruleno==359);
case 362: /* twindow_clause_opt ::= */ yytestcase(yyruleno==362); case 363: /* twindow_clause_opt ::= */ yytestcase(yyruleno==363);
case 367: /* sliding_opt ::= */ yytestcase(yyruleno==367); case 368: /* sliding_opt ::= */ yytestcase(yyruleno==368);
case 369: /* fill_opt ::= */ yytestcase(yyruleno==369); case 370: /* fill_opt ::= */ yytestcase(yyruleno==370);
case 381: /* having_clause_opt ::= */ yytestcase(yyruleno==381); case 382: /* having_clause_opt ::= */ yytestcase(yyruleno==382);
case 389: /* slimit_clause_opt ::= */ yytestcase(yyruleno==389); case 390: /* slimit_clause_opt ::= */ yytestcase(yyruleno==390);
case 393: /* limit_clause_opt ::= */ yytestcase(yyruleno==393); case 394: /* limit_clause_opt ::= */ yytestcase(yyruleno==394);
{ yymsp[1].minor.yy564 = NULL; } { yymsp[1].minor.yy564 = NULL; }
break; break;
case 196: /* like_pattern_opt ::= LIKE NK_STRING */ case 196: /* like_pattern_opt ::= LIKE NK_STRING */
...@@ -3270,7 +3683,7 @@ static YYACTIONTYPE yy_reduce( ...@@ -3270,7 +3683,7 @@ static YYACTIONTYPE yy_reduce(
break; break;
case 220: /* analyze_opt ::= ANALYZE */ case 220: /* analyze_opt ::= ANALYZE */
case 228: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==228); case 228: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==228);
case 348: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==348); case 349: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==349);
{ yymsp[0].minor.yy173 = true; } { yymsp[0].minor.yy173 = true; }
break; break;
case 221: /* explain_options ::= */ case 221: /* explain_options ::= */
...@@ -3351,17 +3764,17 @@ static YYACTIONTYPE yy_reduce( ...@@ -3351,17 +3764,17 @@ static YYACTIONTYPE yy_reduce(
case 276: /* expression ::= literal */ yytestcase(yyruleno==276); case 276: /* expression ::= literal */ yytestcase(yyruleno==276);
case 277: /* expression ::= pseudo_column */ yytestcase(yyruleno==277); case 277: /* expression ::= pseudo_column */ yytestcase(yyruleno==277);
case 278: /* expression ::= column_reference */ yytestcase(yyruleno==278); case 278: /* expression ::= column_reference */ yytestcase(yyruleno==278);
case 281: /* expression ::= subquery */ yytestcase(yyruleno==281); case 282: /* expression ::= subquery */ yytestcase(yyruleno==282);
case 321: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==321); case 322: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==322);
case 325: /* boolean_primary ::= predicate */ yytestcase(yyruleno==325); case 326: /* boolean_primary ::= predicate */ yytestcase(yyruleno==326);
case 327: /* common_expression ::= expression */ yytestcase(yyruleno==327); case 328: /* common_expression ::= expression */ yytestcase(yyruleno==328);
case 328: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==328); case 329: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==329);
case 330: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==330); case 331: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==331);
case 332: /* table_reference ::= table_primary */ yytestcase(yyruleno==332); case 333: /* table_reference ::= table_primary */ yytestcase(yyruleno==333);
case 333: /* table_reference ::= joined_table */ yytestcase(yyruleno==333); case 334: /* table_reference ::= joined_table */ yytestcase(yyruleno==334);
case 337: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==337); case 338: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==338);
case 384: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==384); case 385: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==385);
case 386: /* query_primary ::= query_specification */ yytestcase(yyruleno==386); case 387: /* query_primary ::= query_specification */ yytestcase(yyruleno==387);
{ yylhsminor.yy564 = yymsp[0].minor.yy564; } { yylhsminor.yy564 = yymsp[0].minor.yy564; }
yymsp[0].minor.yy564 = yylhsminor.yy564; yymsp[0].minor.yy564 = yylhsminor.yy564;
break; break;
...@@ -3415,8 +3828,8 @@ static YYACTIONTYPE yy_reduce( ...@@ -3415,8 +3828,8 @@ static YYACTIONTYPE yy_reduce(
{ yymsp[-1].minor.yy564 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } { yymsp[-1].minor.yy564 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
break; break;
case 260: /* signed_literal ::= duration_literal */ case 260: /* signed_literal ::= duration_literal */
case 354: /* select_item ::= common_expression */ yytestcase(yyruleno==354); case 355: /* select_item ::= common_expression */ yytestcase(yyruleno==355);
case 398: /* search_condition ::= common_expression */ yytestcase(yyruleno==398); case 399: /* search_condition ::= common_expression */ yytestcase(yyruleno==399);
{ yylhsminor.yy564 = releaseRawExprNode(pCxt, yymsp[0].minor.yy564); } { yylhsminor.yy564 = releaseRawExprNode(pCxt, yymsp[0].minor.yy564); }
yymsp[0].minor.yy564 = yylhsminor.yy564; yymsp[0].minor.yy564 = yylhsminor.yy564;
break; break;
...@@ -3431,26 +3844,34 @@ static YYACTIONTYPE yy_reduce( ...@@ -3431,26 +3844,34 @@ static YYACTIONTYPE yy_reduce(
{ yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy21, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy21, createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy0)))); } { yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy21, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy21, createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy0)))); }
yymsp[-3].minor.yy564 = yylhsminor.yy564; yymsp[-3].minor.yy564 = yylhsminor.yy564;
break; break;
case 282: /* expression ::= NK_LP expression NK_RP */ case 281: /* expression ::= function_name NK_LP expression AS type_name NK_RP */
case 326: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==326); {
SNodeList *p = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy564));
p = addValueNodeFromTypeToList(pCxt, yymsp[-1].minor.yy288, p);
yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy21, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-5].minor.yy21, p));
}
yymsp[-5].minor.yy564 = yylhsminor.yy564;
break;
case 283: /* expression ::= NK_LP expression NK_RP */
case 327: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==327);
{ yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy564)); } { yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy564)); }
yymsp[-2].minor.yy564 = yylhsminor.yy564; yymsp[-2].minor.yy564 = yylhsminor.yy564;
break; break;
case 283: /* expression ::= NK_PLUS expression */ case 284: /* expression ::= NK_PLUS expression */
{ {
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564);
yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy564)); yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy564));
} }
yymsp[-1].minor.yy564 = yylhsminor.yy564; yymsp[-1].minor.yy564 = yylhsminor.yy564;
break; break;
case 284: /* expression ::= NK_MINUS expression */ case 285: /* expression ::= NK_MINUS expression */
{ {
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564);
yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy564), NULL)); yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy564), NULL));
} }
yymsp[-1].minor.yy564 = yylhsminor.yy564; yymsp[-1].minor.yy564 = yylhsminor.yy564;
break; break;
case 285: /* expression ::= expression NK_PLUS expression */ case 286: /* expression ::= expression NK_PLUS expression */
{ {
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564); SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564);
...@@ -3458,7 +3879,7 @@ static YYACTIONTYPE yy_reduce( ...@@ -3458,7 +3879,7 @@ static YYACTIONTYPE yy_reduce(
} }
yymsp[-2].minor.yy564 = yylhsminor.yy564; yymsp[-2].minor.yy564 = yylhsminor.yy564;
break; break;
case 286: /* expression ::= expression NK_MINUS expression */ case 287: /* expression ::= expression NK_MINUS expression */
{ {
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564); SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564);
...@@ -3466,7 +3887,7 @@ static YYACTIONTYPE yy_reduce( ...@@ -3466,7 +3887,7 @@ static YYACTIONTYPE yy_reduce(
} }
yymsp[-2].minor.yy564 = yylhsminor.yy564; yymsp[-2].minor.yy564 = yylhsminor.yy564;
break; break;
case 287: /* expression ::= expression NK_STAR expression */ case 288: /* expression ::= expression NK_STAR expression */
{ {
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564); SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564);
...@@ -3474,7 +3895,7 @@ static YYACTIONTYPE yy_reduce( ...@@ -3474,7 +3895,7 @@ static YYACTIONTYPE yy_reduce(
} }
yymsp[-2].minor.yy564 = yylhsminor.yy564; yymsp[-2].minor.yy564 = yylhsminor.yy564;
break; break;
case 288: /* expression ::= expression NK_SLASH expression */ case 289: /* expression ::= expression NK_SLASH expression */
{ {
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564); SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564);
...@@ -3482,7 +3903,7 @@ static YYACTIONTYPE yy_reduce( ...@@ -3482,7 +3903,7 @@ static YYACTIONTYPE yy_reduce(
} }
yymsp[-2].minor.yy564 = yylhsminor.yy564; yymsp[-2].minor.yy564 = yylhsminor.yy564;
break; break;
case 289: /* expression ::= expression NK_REM expression */ case 290: /* expression ::= expression NK_REM expression */
{ {
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564); SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564);
...@@ -3490,35 +3911,35 @@ static YYACTIONTYPE yy_reduce( ...@@ -3490,35 +3911,35 @@ static YYACTIONTYPE yy_reduce(
} }
yymsp[-2].minor.yy564 = yylhsminor.yy564; yymsp[-2].minor.yy564 = yylhsminor.yy564;
break; break;
case 290: /* expression_list ::= expression */ case 291: /* expression_list ::= expression */
{ yylhsminor.yy476 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy564)); } { yylhsminor.yy476 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy564)); }
yymsp[0].minor.yy476 = yylhsminor.yy476; yymsp[0].minor.yy476 = yylhsminor.yy476;
break; break;
case 291: /* expression_list ::= expression_list NK_COMMA expression */ case 292: /* expression_list ::= expression_list NK_COMMA expression */
{ yylhsminor.yy476 = addNodeToList(pCxt, yymsp[-2].minor.yy476, releaseRawExprNode(pCxt, yymsp[0].minor.yy564)); } { yylhsminor.yy476 = addNodeToList(pCxt, yymsp[-2].minor.yy476, releaseRawExprNode(pCxt, yymsp[0].minor.yy564)); }
yymsp[-2].minor.yy476 = yylhsminor.yy476; yymsp[-2].minor.yy476 = yylhsminor.yy476;
break; break;
case 292: /* column_reference ::= column_name */ case 293: /* column_reference ::= column_name */
{ yylhsminor.yy564 = createRawExprNode(pCxt, &yymsp[0].minor.yy21, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy21)); } { yylhsminor.yy564 = createRawExprNode(pCxt, &yymsp[0].minor.yy21, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy21)); }
yymsp[0].minor.yy564 = yylhsminor.yy564; yymsp[0].minor.yy564 = yylhsminor.yy564;
break; break;
case 293: /* column_reference ::= table_name NK_DOT column_name */ case 294: /* column_reference ::= table_name NK_DOT column_name */
{ yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy21, &yymsp[0].minor.yy21, createColumnNode(pCxt, &yymsp[-2].minor.yy21, &yymsp[0].minor.yy21)); } { yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy21, &yymsp[0].minor.yy21, createColumnNode(pCxt, &yymsp[-2].minor.yy21, &yymsp[0].minor.yy21)); }
yymsp[-2].minor.yy564 = yylhsminor.yy564; yymsp[-2].minor.yy564 = yylhsminor.yy564;
break; break;
case 294: /* pseudo_column ::= NOW */ case 295: /* pseudo_column ::= NOW */
case 295: /* pseudo_column ::= ROWTS */ yytestcase(yyruleno==295); case 296: /* pseudo_column ::= ROWTS */ yytestcase(yyruleno==296);
case 296: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==296); case 297: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==297);
case 297: /* pseudo_column ::= QSTARTTS */ yytestcase(yyruleno==297); case 298: /* pseudo_column ::= QSTARTTS */ yytestcase(yyruleno==298);
case 298: /* pseudo_column ::= QENDTS */ yytestcase(yyruleno==298); case 299: /* pseudo_column ::= QENDTS */ yytestcase(yyruleno==299);
case 299: /* pseudo_column ::= WSTARTTS */ yytestcase(yyruleno==299); case 300: /* pseudo_column ::= WSTARTTS */ yytestcase(yyruleno==300);
case 300: /* pseudo_column ::= WENDTS */ yytestcase(yyruleno==300); case 301: /* pseudo_column ::= WENDTS */ yytestcase(yyruleno==301);
case 301: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==301); case 302: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==302);
{ yylhsminor.yy564 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } { yylhsminor.yy564 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); }
yymsp[0].minor.yy564 = yylhsminor.yy564; yymsp[0].minor.yy564 = yylhsminor.yy564;
break; break;
case 302: /* predicate ::= expression compare_op expression */ case 303: /* predicate ::= expression compare_op expression */
case 307: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==307); case 308: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==308);
{ {
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564); SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564);
...@@ -3526,7 +3947,7 @@ static YYACTIONTYPE yy_reduce( ...@@ -3526,7 +3947,7 @@ static YYACTIONTYPE yy_reduce(
} }
yymsp[-2].minor.yy564 = yylhsminor.yy564; yymsp[-2].minor.yy564 = yylhsminor.yy564;
break; break;
case 303: /* predicate ::= expression BETWEEN expression AND expression */ case 304: /* predicate ::= expression BETWEEN expression AND expression */
{ {
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy564); SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy564);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564);
...@@ -3534,7 +3955,7 @@ static YYACTIONTYPE yy_reduce( ...@@ -3534,7 +3955,7 @@ static YYACTIONTYPE yy_reduce(
} }
yymsp[-4].minor.yy564 = yylhsminor.yy564; yymsp[-4].minor.yy564 = yylhsminor.yy564;
break; break;
case 304: /* predicate ::= expression NOT BETWEEN expression AND expression */ case 305: /* predicate ::= expression NOT BETWEEN expression AND expression */
{ {
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy564); SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy564);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564);
...@@ -3542,68 +3963,68 @@ static YYACTIONTYPE yy_reduce( ...@@ -3542,68 +3963,68 @@ static YYACTIONTYPE yy_reduce(
} }
yymsp[-5].minor.yy564 = yylhsminor.yy564; yymsp[-5].minor.yy564 = yylhsminor.yy564;
break; break;
case 305: /* predicate ::= expression IS NULL */ case 306: /* predicate ::= expression IS NULL */
{ {
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564); SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564);
yylhsminor.yy564 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy564), NULL)); yylhsminor.yy564 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy564), NULL));
} }
yymsp[-2].minor.yy564 = yylhsminor.yy564; yymsp[-2].minor.yy564 = yylhsminor.yy564;
break; break;
case 306: /* predicate ::= expression IS NOT NULL */ case 307: /* predicate ::= expression IS NOT NULL */
{ {
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy564); SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy564);
yylhsminor.yy564 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy564), NULL)); yylhsminor.yy564 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy564), NULL));
} }
yymsp[-3].minor.yy564 = yylhsminor.yy564; yymsp[-3].minor.yy564 = yylhsminor.yy564;
break; break;
case 308: /* compare_op ::= NK_LT */ case 309: /* compare_op ::= NK_LT */
{ yymsp[0].minor.yy468 = OP_TYPE_LOWER_THAN; } { yymsp[0].minor.yy468 = OP_TYPE_LOWER_THAN; }
break; break;
case 309: /* compare_op ::= NK_GT */ case 310: /* compare_op ::= NK_GT */
{ yymsp[0].minor.yy468 = OP_TYPE_GREATER_THAN; } { yymsp[0].minor.yy468 = OP_TYPE_GREATER_THAN; }
break; break;
case 310: /* compare_op ::= NK_LE */ case 311: /* compare_op ::= NK_LE */
{ yymsp[0].minor.yy468 = OP_TYPE_LOWER_EQUAL; } { yymsp[0].minor.yy468 = OP_TYPE_LOWER_EQUAL; }
break; break;
case 311: /* compare_op ::= NK_GE */ case 312: /* compare_op ::= NK_GE */
{ yymsp[0].minor.yy468 = OP_TYPE_GREATER_EQUAL; } { yymsp[0].minor.yy468 = OP_TYPE_GREATER_EQUAL; }
break; break;
case 312: /* compare_op ::= NK_NE */ case 313: /* compare_op ::= NK_NE */
{ yymsp[0].minor.yy468 = OP_TYPE_NOT_EQUAL; } { yymsp[0].minor.yy468 = OP_TYPE_NOT_EQUAL; }
break; break;
case 313: /* compare_op ::= NK_EQ */ case 314: /* compare_op ::= NK_EQ */
{ yymsp[0].minor.yy468 = OP_TYPE_EQUAL; } { yymsp[0].minor.yy468 = OP_TYPE_EQUAL; }
break; break;
case 314: /* compare_op ::= LIKE */ case 315: /* compare_op ::= LIKE */
{ yymsp[0].minor.yy468 = OP_TYPE_LIKE; } { yymsp[0].minor.yy468 = OP_TYPE_LIKE; }
break; break;
case 315: /* compare_op ::= NOT LIKE */ case 316: /* compare_op ::= NOT LIKE */
{ yymsp[-1].minor.yy468 = OP_TYPE_NOT_LIKE; } { yymsp[-1].minor.yy468 = OP_TYPE_NOT_LIKE; }
break; break;
case 316: /* compare_op ::= MATCH */ case 317: /* compare_op ::= MATCH */
{ yymsp[0].minor.yy468 = OP_TYPE_MATCH; } { yymsp[0].minor.yy468 = OP_TYPE_MATCH; }
break; break;
case 317: /* compare_op ::= NMATCH */ case 318: /* compare_op ::= NMATCH */
{ yymsp[0].minor.yy468 = OP_TYPE_NMATCH; } { yymsp[0].minor.yy468 = OP_TYPE_NMATCH; }
break; break;
case 318: /* in_op ::= IN */ case 319: /* in_op ::= IN */
{ yymsp[0].minor.yy468 = OP_TYPE_IN; } { yymsp[0].minor.yy468 = OP_TYPE_IN; }
break; break;
case 319: /* in_op ::= NOT IN */ case 320: /* in_op ::= NOT IN */
{ yymsp[-1].minor.yy468 = OP_TYPE_NOT_IN; } { yymsp[-1].minor.yy468 = OP_TYPE_NOT_IN; }
break; break;
case 320: /* in_predicate_value ::= NK_LP expression_list NK_RP */ case 321: /* in_predicate_value ::= NK_LP expression_list NK_RP */
{ yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy476)); } { yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy476)); }
yymsp[-2].minor.yy564 = yylhsminor.yy564; yymsp[-2].minor.yy564 = yylhsminor.yy564;
break; break;
case 322: /* boolean_value_expression ::= NOT boolean_primary */ case 323: /* boolean_value_expression ::= NOT boolean_primary */
{ {
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564);
yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy564), NULL)); yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy564), NULL));
} }
yymsp[-1].minor.yy564 = yylhsminor.yy564; yymsp[-1].minor.yy564 = yylhsminor.yy564;
break; break;
case 323: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ case 324: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
{ {
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564); SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564);
...@@ -3611,7 +4032,7 @@ static YYACTIONTYPE yy_reduce( ...@@ -3611,7 +4032,7 @@ static YYACTIONTYPE yy_reduce(
} }
yymsp[-2].minor.yy564 = yylhsminor.yy564; yymsp[-2].minor.yy564 = yylhsminor.yy564;
break; break;
case 324: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ case 325: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
{ {
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564); SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564);
...@@ -3619,52 +4040,52 @@ static YYACTIONTYPE yy_reduce( ...@@ -3619,52 +4040,52 @@ static YYACTIONTYPE yy_reduce(
} }
yymsp[-2].minor.yy564 = yylhsminor.yy564; yymsp[-2].minor.yy564 = yylhsminor.yy564;
break; break;
case 329: /* from_clause ::= FROM table_reference_list */ case 330: /* from_clause ::= FROM table_reference_list */
case 359: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==359); case 360: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==360);
case 382: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==382); case 383: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==383);
{ yymsp[-1].minor.yy564 = yymsp[0].minor.yy564; } { yymsp[-1].minor.yy564 = yymsp[0].minor.yy564; }
break; break;
case 331: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ case 332: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */
{ yylhsminor.yy564 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy564, yymsp[0].minor.yy564, NULL); } { yylhsminor.yy564 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy564, yymsp[0].minor.yy564, NULL); }
yymsp[-2].minor.yy564 = yylhsminor.yy564; yymsp[-2].minor.yy564 = yylhsminor.yy564;
break; break;
case 334: /* table_primary ::= table_name alias_opt */ case 335: /* table_primary ::= table_name alias_opt */
{ yylhsminor.yy564 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy21, &yymsp[0].minor.yy21); } { yylhsminor.yy564 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy21, &yymsp[0].minor.yy21); }
yymsp[-1].minor.yy564 = yylhsminor.yy564; yymsp[-1].minor.yy564 = yylhsminor.yy564;
break; break;
case 335: /* table_primary ::= db_name NK_DOT table_name alias_opt */ case 336: /* table_primary ::= db_name NK_DOT table_name alias_opt */
{ yylhsminor.yy564 = createRealTableNode(pCxt, &yymsp[-3].minor.yy21, &yymsp[-1].minor.yy21, &yymsp[0].minor.yy21); } { yylhsminor.yy564 = createRealTableNode(pCxt, &yymsp[-3].minor.yy21, &yymsp[-1].minor.yy21, &yymsp[0].minor.yy21); }
yymsp[-3].minor.yy564 = yylhsminor.yy564; yymsp[-3].minor.yy564 = yylhsminor.yy564;
break; break;
case 336: /* table_primary ::= subquery alias_opt */ case 337: /* table_primary ::= subquery alias_opt */
{ yylhsminor.yy564 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy564), &yymsp[0].minor.yy21); } { yylhsminor.yy564 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy564), &yymsp[0].minor.yy21); }
yymsp[-1].minor.yy564 = yylhsminor.yy564; yymsp[-1].minor.yy564 = yylhsminor.yy564;
break; break;
case 338: /* alias_opt ::= */ case 339: /* alias_opt ::= */
{ yymsp[1].minor.yy21 = nil_token; } { yymsp[1].minor.yy21 = nil_token; }
break; break;
case 339: /* alias_opt ::= table_alias */ case 340: /* alias_opt ::= table_alias */
{ yylhsminor.yy21 = yymsp[0].minor.yy21; } { yylhsminor.yy21 = yymsp[0].minor.yy21; }
yymsp[0].minor.yy21 = yylhsminor.yy21; yymsp[0].minor.yy21 = yylhsminor.yy21;
break; break;
case 340: /* alias_opt ::= AS table_alias */ case 341: /* alias_opt ::= AS table_alias */
{ yymsp[-1].minor.yy21 = yymsp[0].minor.yy21; } { yymsp[-1].minor.yy21 = yymsp[0].minor.yy21; }
break; break;
case 341: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ case 342: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */
case 342: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==342); case 343: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==343);
{ yymsp[-2].minor.yy564 = yymsp[-1].minor.yy564; } { yymsp[-2].minor.yy564 = yymsp[-1].minor.yy564; }
break; break;
case 343: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ case 344: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
{ yylhsminor.yy564 = createJoinTableNode(pCxt, yymsp[-4].minor.yy440, yymsp[-5].minor.yy564, yymsp[-2].minor.yy564, yymsp[0].minor.yy564); } { yylhsminor.yy564 = createJoinTableNode(pCxt, yymsp[-4].minor.yy440, yymsp[-5].minor.yy564, yymsp[-2].minor.yy564, yymsp[0].minor.yy564); }
yymsp[-5].minor.yy564 = yylhsminor.yy564; yymsp[-5].minor.yy564 = yylhsminor.yy564;
break; break;
case 344: /* join_type ::= */ case 345: /* join_type ::= */
{ yymsp[1].minor.yy440 = JOIN_TYPE_INNER; } { yymsp[1].minor.yy440 = JOIN_TYPE_INNER; }
break; break;
case 345: /* join_type ::= INNER */ case 346: /* join_type ::= INNER */
{ yymsp[0].minor.yy440 = JOIN_TYPE_INNER; } { yymsp[0].minor.yy440 = JOIN_TYPE_INNER; }
break; break;
case 346: /* query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ case 347: /* query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */
{ {
yymsp[-8].minor.yy564 = createSelectStmt(pCxt, yymsp[-7].minor.yy173, yymsp[-6].minor.yy476, yymsp[-5].minor.yy564); yymsp[-8].minor.yy564 = createSelectStmt(pCxt, yymsp[-7].minor.yy173, yymsp[-6].minor.yy476, yymsp[-5].minor.yy564);
yymsp[-8].minor.yy564 = addWhereClause(pCxt, yymsp[-8].minor.yy564, yymsp[-4].minor.yy564); yymsp[-8].minor.yy564 = addWhereClause(pCxt, yymsp[-8].minor.yy564, yymsp[-4].minor.yy564);
...@@ -3674,74 +4095,74 @@ static YYACTIONTYPE yy_reduce( ...@@ -3674,74 +4095,74 @@ static YYACTIONTYPE yy_reduce(
yymsp[-8].minor.yy564 = addHavingClause(pCxt, yymsp[-8].minor.yy564, yymsp[0].minor.yy564); yymsp[-8].minor.yy564 = addHavingClause(pCxt, yymsp[-8].minor.yy564, yymsp[0].minor.yy564);
} }
break; break;
case 349: /* set_quantifier_opt ::= ALL */ case 350: /* set_quantifier_opt ::= ALL */
{ yymsp[0].minor.yy173 = false; } { yymsp[0].minor.yy173 = false; }
break; break;
case 350: /* select_list ::= NK_STAR */ case 351: /* select_list ::= NK_STAR */
{ yymsp[0].minor.yy476 = NULL; } { yymsp[0].minor.yy476 = NULL; }
break; break;
case 355: /* select_item ::= common_expression column_alias */ case 356: /* select_item ::= common_expression column_alias */
{ yylhsminor.yy564 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy564), &yymsp[0].minor.yy21); } { yylhsminor.yy564 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy564), &yymsp[0].minor.yy21); }
yymsp[-1].minor.yy564 = yylhsminor.yy564; yymsp[-1].minor.yy564 = yylhsminor.yy564;
break; break;
case 356: /* select_item ::= common_expression AS column_alias */ case 357: /* select_item ::= common_expression AS column_alias */
{ yylhsminor.yy564 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy564), &yymsp[0].minor.yy21); } { yylhsminor.yy564 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy564), &yymsp[0].minor.yy21); }
yymsp[-2].minor.yy564 = yylhsminor.yy564; yymsp[-2].minor.yy564 = yylhsminor.yy564;
break; break;
case 357: /* select_item ::= table_name NK_DOT NK_STAR */ case 358: /* select_item ::= table_name NK_DOT NK_STAR */
{ yylhsminor.yy564 = createColumnNode(pCxt, &yymsp[-2].minor.yy21, &yymsp[0].minor.yy0); } { yylhsminor.yy564 = createColumnNode(pCxt, &yymsp[-2].minor.yy21, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy564 = yylhsminor.yy564; yymsp[-2].minor.yy564 = yylhsminor.yy564;
break; break;
case 361: /* partition_by_clause_opt ::= PARTITION BY expression_list */ case 362: /* partition_by_clause_opt ::= PARTITION BY expression_list */
case 378: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==378); case 379: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==379);
case 388: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==388); case 389: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==389);
{ yymsp[-2].minor.yy476 = yymsp[0].minor.yy476; } { yymsp[-2].minor.yy476 = yymsp[0].minor.yy476; }
break; break;
case 363: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ case 364: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */
{ yymsp[-5].minor.yy564 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy564), releaseRawExprNode(pCxt, yymsp[-1].minor.yy564)); } { yymsp[-5].minor.yy564 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy564), releaseRawExprNode(pCxt, yymsp[-1].minor.yy564)); }
break; break;
case 364: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ case 365: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */
{ yymsp[-3].minor.yy564 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy564)); } { yymsp[-3].minor.yy564 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy564)); }
break; break;
case 365: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ case 366: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */
{ yymsp[-5].minor.yy564 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy564), NULL, yymsp[-1].minor.yy564, yymsp[0].minor.yy564); } { yymsp[-5].minor.yy564 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy564), NULL, yymsp[-1].minor.yy564, yymsp[0].minor.yy564); }
break; break;
case 366: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ case 367: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */
{ yymsp[-7].minor.yy564 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy564), releaseRawExprNode(pCxt, yymsp[-3].minor.yy564), yymsp[-1].minor.yy564, yymsp[0].minor.yy564); } { yymsp[-7].minor.yy564 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy564), releaseRawExprNode(pCxt, yymsp[-3].minor.yy564), yymsp[-1].minor.yy564, yymsp[0].minor.yy564); }
break; break;
case 368: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ case 369: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */
{ yymsp[-3].minor.yy564 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy564); } { yymsp[-3].minor.yy564 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy564); }
break; break;
case 370: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ case 371: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */
{ yymsp[-3].minor.yy564 = createFillNode(pCxt, yymsp[-1].minor.yy268, NULL); } { yymsp[-3].minor.yy564 = createFillNode(pCxt, yymsp[-1].minor.yy268, NULL); }
break; break;
case 371: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ case 372: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */
{ yymsp[-5].minor.yy564 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy476)); } { yymsp[-5].minor.yy564 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy476)); }
break; break;
case 372: /* fill_mode ::= NONE */ case 373: /* fill_mode ::= NONE */
{ yymsp[0].minor.yy268 = FILL_MODE_NONE; } { yymsp[0].minor.yy268 = FILL_MODE_NONE; }
break; break;
case 373: /* fill_mode ::= PREV */ case 374: /* fill_mode ::= PREV */
{ yymsp[0].minor.yy268 = FILL_MODE_PREV; } { yymsp[0].minor.yy268 = FILL_MODE_PREV; }
break; break;
case 374: /* fill_mode ::= NULL */ case 375: /* fill_mode ::= NULL */
{ yymsp[0].minor.yy268 = FILL_MODE_NULL; } { yymsp[0].minor.yy268 = FILL_MODE_NULL; }
break; break;
case 375: /* fill_mode ::= LINEAR */ case 376: /* fill_mode ::= LINEAR */
{ yymsp[0].minor.yy268 = FILL_MODE_LINEAR; } { yymsp[0].minor.yy268 = FILL_MODE_LINEAR; }
break; break;
case 376: /* fill_mode ::= NEXT */ case 377: /* fill_mode ::= NEXT */
{ yymsp[0].minor.yy268 = FILL_MODE_NEXT; } { yymsp[0].minor.yy268 = FILL_MODE_NEXT; }
break; break;
case 379: /* group_by_list ::= expression */ case 380: /* group_by_list ::= expression */
{ yylhsminor.yy476 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy564))); } { yylhsminor.yy476 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy564))); }
yymsp[0].minor.yy476 = yylhsminor.yy476; yymsp[0].minor.yy476 = yylhsminor.yy476;
break; break;
case 380: /* group_by_list ::= group_by_list NK_COMMA expression */ case 381: /* group_by_list ::= group_by_list NK_COMMA expression */
{ yylhsminor.yy476 = addNodeToList(pCxt, yymsp[-2].minor.yy476, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy564))); } { yylhsminor.yy476 = addNodeToList(pCxt, yymsp[-2].minor.yy476, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy564))); }
yymsp[-2].minor.yy476 = yylhsminor.yy476; yymsp[-2].minor.yy476 = yylhsminor.yy476;
break; break;
case 383: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ case 384: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */
{ {
yylhsminor.yy564 = addOrderByClause(pCxt, yymsp[-3].minor.yy564, yymsp[-2].minor.yy476); yylhsminor.yy564 = addOrderByClause(pCxt, yymsp[-3].minor.yy564, yymsp[-2].minor.yy476);
yylhsminor.yy564 = addSlimitClause(pCxt, yylhsminor.yy564, yymsp[-1].minor.yy564); yylhsminor.yy564 = addSlimitClause(pCxt, yylhsminor.yy564, yymsp[-1].minor.yy564);
...@@ -3749,55 +4170,55 @@ static YYACTIONTYPE yy_reduce( ...@@ -3749,55 +4170,55 @@ static YYACTIONTYPE yy_reduce(
} }
yymsp[-3].minor.yy564 = yylhsminor.yy564; yymsp[-3].minor.yy564 = yylhsminor.yy564;
break; break;
case 385: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ case 386: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */
{ yylhsminor.yy564 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy564, yymsp[0].minor.yy564); } { yylhsminor.yy564 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy564, yymsp[0].minor.yy564); }
yymsp[-3].minor.yy564 = yylhsminor.yy564; yymsp[-3].minor.yy564 = yylhsminor.yy564;
break; break;
case 390: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ case 391: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */
case 394: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==394); case 395: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==395);
{ yymsp[-1].minor.yy564 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } { yymsp[-1].minor.yy564 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); }
break; break;
case 391: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ case 392: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
case 395: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==395); case 396: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==396);
{ yymsp[-3].minor.yy564 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } { yymsp[-3].minor.yy564 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); }
break; break;
case 392: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ case 393: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
case 396: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==396); case 397: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==397);
{ yymsp[-3].minor.yy564 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } { yymsp[-3].minor.yy564 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); }
break; break;
case 397: /* subquery ::= NK_LP query_expression NK_RP */ case 398: /* subquery ::= NK_LP query_expression NK_RP */
{ yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy564); } { yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy564); }
yymsp[-2].minor.yy564 = yylhsminor.yy564; yymsp[-2].minor.yy564 = yylhsminor.yy564;
break; break;
case 401: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ case 402: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */
{ yylhsminor.yy564 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy564), yymsp[-1].minor.yy256, yymsp[0].minor.yy525); } { yylhsminor.yy564 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy564), yymsp[-1].minor.yy256, yymsp[0].minor.yy525); }
yymsp[-2].minor.yy564 = yylhsminor.yy564; yymsp[-2].minor.yy564 = yylhsminor.yy564;
break; break;
case 402: /* ordering_specification_opt ::= */ case 403: /* ordering_specification_opt ::= */
{ yymsp[1].minor.yy256 = ORDER_ASC; } { yymsp[1].minor.yy256 = ORDER_ASC; }
break; break;
case 403: /* ordering_specification_opt ::= ASC */ case 404: /* ordering_specification_opt ::= ASC */
{ yymsp[0].minor.yy256 = ORDER_ASC; } { yymsp[0].minor.yy256 = ORDER_ASC; }
break; break;
case 404: /* ordering_specification_opt ::= DESC */ case 405: /* ordering_specification_opt ::= DESC */
{ yymsp[0].minor.yy256 = ORDER_DESC; } { yymsp[0].minor.yy256 = ORDER_DESC; }
break; break;
case 405: /* null_ordering_opt ::= */ case 406: /* null_ordering_opt ::= */
{ yymsp[1].minor.yy525 = NULL_ORDER_DEFAULT; } { yymsp[1].minor.yy525 = NULL_ORDER_DEFAULT; }
break; break;
case 406: /* null_ordering_opt ::= NULLS FIRST */ case 407: /* null_ordering_opt ::= NULLS FIRST */
{ yymsp[-1].minor.yy525 = NULL_ORDER_FIRST; } { yymsp[-1].minor.yy525 = NULL_ORDER_FIRST; }
break; break;
case 407: /* null_ordering_opt ::= NULLS LAST */ case 408: /* null_ordering_opt ::= NULLS LAST */
{ yymsp[-1].minor.yy525 = NULL_ORDER_LAST; } { yymsp[-1].minor.yy525 = NULL_ORDER_LAST; }
break; break;
default: default:
break; break;
/********** End reduce actions ************************************************/ /********** End reduce actions ************************************************/
}; };
assert( yyruleno<sizeof(yyRuleInfo)/sizeof(yyRuleInfo[0]) ); assert( yyruleno<sizeof(yyRuleInfoLhs)/sizeof(yyRuleInfoLhs[0]) );
yygoto = yyRuleInfo[yyruleno].lhs; yygoto = yyRuleInfoLhs[yyruleno];
yysize = yyRuleInfo[yyruleno].nrhs; yysize = yyRuleInfoNRhs[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
...@@ -4085,11 +4506,10 @@ void Parse( ...@@ -4085,11 +4506,10 @@ void Parse(
*/ */
int ParseFallback(int iToken){ int ParseFallback(int iToken){
#ifdef YYFALLBACK #ifdef YYFALLBACK
if( iToken<(int)(sizeof(yyFallback)/sizeof(yyFallback[0])) ){ assert( iToken<(int)(sizeof(yyFallback)/sizeof(yyFallback[0])) );
return yyFallback[iToken]; return yyFallback[iToken];
}
#else #else
(void)iToken; (void)iToken;
#endif
return 0; return 0;
#endif
} }
...@@ -9,8 +9,8 @@ ADD_EXECUTABLE(parserTest ${SOURCE_LIST}) ...@@ -9,8 +9,8 @@ ADD_EXECUTABLE(parserTest ${SOURCE_LIST})
TARGET_INCLUDE_DIRECTORIES( TARGET_INCLUDE_DIRECTORIES(
parserTest parserTest
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/parser/" PUBLIC "${TD_SOURCE_DIR}/include/libs/parser/"
PRIVATE "${CMAKE_SOURCE_DIR}/source/libs/parser/inc" PRIVATE "${TD_SOURCE_DIR}/source/libs/parser/inc"
) )
TARGET_LINK_LIBRARIES( TARGET_LINK_LIBRARIES(
......
...@@ -2,7 +2,7 @@ aux_source_directory(src PLANNER_SRC) ...@@ -2,7 +2,7 @@ aux_source_directory(src PLANNER_SRC)
add_library(planner STATIC ${PLANNER_SRC}) add_library(planner STATIC ${PLANNER_SRC})
target_include_directories( target_include_directories(
planner planner
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/planner" PUBLIC "${TD_SOURCE_DIR}/include/libs/planner"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
) )
......
...@@ -18,7 +18,7 @@ TARGET_LINK_LIBRARIES( ...@@ -18,7 +18,7 @@ TARGET_LINK_LIBRARIES(
TARGET_INCLUDE_DIRECTORIES( TARGET_INCLUDE_DIRECTORIES(
plannerTest plannerTest
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/planner/" PUBLIC "${TD_SOURCE_DIR}/include/libs/planner/"
PRIVATE "${CMAKE_SOURCE_DIR}/source/libs/planner/inc" PRIVATE "${TD_SOURCE_DIR}/source/libs/planner/inc"
PRIVATE "${CMAKE_SOURCE_DIR}/source/libs/parser/test" PRIVATE "${TD_SOURCE_DIR}/source/libs/parser/test"
) )
...@@ -2,7 +2,7 @@ aux_source_directory(src QUERY_SRC) ...@@ -2,7 +2,7 @@ aux_source_directory(src QUERY_SRC)
add_library(qcom STATIC ${QUERY_SRC}) add_library(qcom STATIC ${QUERY_SRC})
target_include_directories( target_include_directories(
qcom qcom
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/qcom" PUBLIC "${TD_SOURCE_DIR}/include/libs/qcom"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
) )
......
...@@ -9,8 +9,8 @@ ADD_EXECUTABLE(queryUtilTest ${SOURCE_LIST}) ...@@ -9,8 +9,8 @@ ADD_EXECUTABLE(queryUtilTest ${SOURCE_LIST})
TARGET_INCLUDE_DIRECTORIES( TARGET_INCLUDE_DIRECTORIES(
queryUtilTest queryUtilTest
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/qcom/" PUBLIC "${TD_SOURCE_DIR}/include/libs/qcom/"
PRIVATE "${CMAKE_SOURCE_DIR}/source/libs/qcom/inc" PRIVATE "${TD_SOURCE_DIR}/source/libs/qcom/inc"
) )
TARGET_LINK_LIBRARIES( TARGET_LINK_LIBRARIES(
......
...@@ -3,7 +3,7 @@ aux_source_directory(src QWORKER_SRC) ...@@ -3,7 +3,7 @@ aux_source_directory(src QWORKER_SRC)
add_library(qworker STATIC ${QWORKER_SRC}) add_library(qworker STATIC ${QWORKER_SRC})
target_include_directories( target_include_directories(
qworker qworker
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/qworker" PUBLIC "${TD_SOURCE_DIR}/include/libs/qworker"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
) )
......
...@@ -13,6 +13,6 @@ TARGET_LINK_LIBRARIES( ...@@ -13,6 +13,6 @@ TARGET_LINK_LIBRARIES(
TARGET_INCLUDE_DIRECTORIES( TARGET_INCLUDE_DIRECTORIES(
qworkerTest qworkerTest
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/qworker/" PUBLIC "${TD_SOURCE_DIR}/include/libs/qworker/"
PRIVATE "${CMAKE_SOURCE_DIR}/source/libs/qworker/inc" PRIVATE "${TD_SOURCE_DIR}/source/libs/qworker/inc"
) )
...@@ -3,7 +3,7 @@ aux_source_directory(src SCALAR_SRC) ...@@ -3,7 +3,7 @@ aux_source_directory(src SCALAR_SRC)
add_library(scalar STATIC ${SCALAR_SRC}) add_library(scalar STATIC ${SCALAR_SRC})
target_include_directories( target_include_directories(
scalar scalar
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/scalar" PUBLIC "${TD_SOURCE_DIR}/include/libs/scalar"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
) )
......
...@@ -13,6 +13,6 @@ TARGET_LINK_LIBRARIES( ...@@ -13,6 +13,6 @@ TARGET_LINK_LIBRARIES(
TARGET_INCLUDE_DIRECTORIES( TARGET_INCLUDE_DIRECTORIES(
filterTest filterTest
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/scalar/" PUBLIC "${TD_SOURCE_DIR}/include/libs/scalar/"
PRIVATE "${CMAKE_SOURCE_DIR}/source/libs/scalar/inc" PRIVATE "${TD_SOURCE_DIR}/source/libs/scalar/inc"
) )
...@@ -13,6 +13,6 @@ TARGET_LINK_LIBRARIES( ...@@ -13,6 +13,6 @@ TARGET_LINK_LIBRARIES(
TARGET_INCLUDE_DIRECTORIES( TARGET_INCLUDE_DIRECTORIES(
scalarTest scalarTest
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/scalar/" PUBLIC "${TD_SOURCE_DIR}/include/libs/scalar/"
PRIVATE "${CMAKE_SOURCE_DIR}/source/libs/scalar/inc" PRIVATE "${TD_SOURCE_DIR}/source/libs/scalar/inc"
) )
...@@ -3,7 +3,7 @@ add_library(scheduler STATIC ${SCHEDULER_SRC}) ...@@ -3,7 +3,7 @@ add_library(scheduler STATIC ${SCHEDULER_SRC})
target_include_directories( target_include_directories(
scheduler scheduler
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/scheduler" PUBLIC "${TD_SOURCE_DIR}/include/libs/scheduler"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
) )
......
...@@ -13,6 +13,6 @@ TARGET_LINK_LIBRARIES( ...@@ -13,6 +13,6 @@ TARGET_LINK_LIBRARIES(
TARGET_INCLUDE_DIRECTORIES( TARGET_INCLUDE_DIRECTORIES(
schedulerTest schedulerTest
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/scheduler/" PUBLIC "${TD_SOURCE_DIR}/include/libs/scheduler/"
PRIVATE "${CMAKE_SOURCE_DIR}/source/libs/scheduler/inc" PRIVATE "${TD_SOURCE_DIR}/source/libs/scheduler/inc"
) )
...@@ -2,7 +2,7 @@ aux_source_directory(src STREAM_SRC) ...@@ -2,7 +2,7 @@ aux_source_directory(src STREAM_SRC)
add_library(stream STATIC ${STREAM_SRC}) add_library(stream STATIC ${STREAM_SRC})
target_include_directories( target_include_directories(
stream stream
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/stream" PUBLIC "${TD_SOURCE_DIR}/include/libs/stream"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
) )
......
...@@ -11,7 +11,7 @@ target_link_libraries( ...@@ -11,7 +11,7 @@ target_link_libraries(
target_include_directories( target_include_directories(
sync sync
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/sync" PUBLIC "${TD_SOURCE_DIR}/include/libs/sync"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
) )
......
...@@ -204,202 +204,202 @@ target_sources(syncLogStoreCheck ...@@ -204,202 +204,202 @@ target_sources(syncLogStoreCheck
target_include_directories(syncTest target_include_directories(syncTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncEnvTest target_include_directories(syncEnvTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncPingTimerTest target_include_directories(syncPingTimerTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncIOTickQTest target_include_directories(syncIOTickQTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncIOTickPingTest target_include_directories(syncIOTickPingTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncIOSendMsgTest target_include_directories(syncIOSendMsgTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncIOClientTest target_include_directories(syncIOClientTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncIOServerTest target_include_directories(syncIOServerTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncRaftStoreTest target_include_directories(syncRaftStoreTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncEnqTest target_include_directories(syncEnqTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncIndexTest target_include_directories(syncIndexTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncInitTest target_include_directories(syncInitTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncUtilTest target_include_directories(syncUtilTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncVotesGrantedTest target_include_directories(syncVotesGrantedTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncVotesRespondTest target_include_directories(syncVotesRespondTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncIndexMgrTest target_include_directories(syncIndexMgrTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncLogStoreTest target_include_directories(syncLogStoreTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncEntryTest target_include_directories(syncEntryTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncRequestVoteTest target_include_directories(syncRequestVoteTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncRequestVoteReplyTest target_include_directories(syncRequestVoteReplyTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncAppendEntriesTest target_include_directories(syncAppendEntriesTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncAppendEntriesReplyTest target_include_directories(syncAppendEntriesReplyTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncClientRequestTest target_include_directories(syncClientRequestTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncTimeoutTest target_include_directories(syncTimeoutTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncPingTest target_include_directories(syncPingTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncPingReplyTest target_include_directories(syncPingReplyTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncRpcMsgTest target_include_directories(syncRpcMsgTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncPingTimerTest2 target_include_directories(syncPingTimerTest2
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncPingSelfTest target_include_directories(syncPingSelfTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncElectTest target_include_directories(syncElectTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncElectTest2 target_include_directories(syncElectTest2
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncElectTest3 target_include_directories(syncElectTest3
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncEncodeTest target_include_directories(syncEncodeTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncWriteTest target_include_directories(syncWriteTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncReplicateTest target_include_directories(syncReplicateTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncReplicateTest2 target_include_directories(syncReplicateTest2
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncReplicateTest3 target_include_directories(syncReplicateTest3
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncReplicateLoadTest target_include_directories(syncReplicateLoadTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncRefTest target_include_directories(syncRefTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(syncLogStoreCheck target_include_directories(syncLogStoreCheck
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/sync" "${TD_SOURCE_DIR}/include/libs/sync"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
......
...@@ -2,7 +2,7 @@ aux_source_directory(src TFS_SRC) ...@@ -2,7 +2,7 @@ aux_source_directory(src TFS_SRC)
add_library(tfs STATIC ${TFS_SRC}) add_library(tfs STATIC ${TFS_SRC})
target_include_directories( target_include_directories(
tfs tfs
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/tfs" PUBLIC "${TD_SOURCE_DIR}/include/libs/tfs"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
) )
......
...@@ -2,7 +2,7 @@ aux_source_directory(src TRANSPORT_SRC) ...@@ -2,7 +2,7 @@ aux_source_directory(src TRANSPORT_SRC)
add_library(transport STATIC ${TRANSPORT_SRC}) add_library(transport STATIC ${TRANSPORT_SRC})
target_include_directories( target_include_directories(
transport transport
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/transport" PUBLIC "${TD_SOURCE_DIR}/include/libs/transport"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
) )
...@@ -18,7 +18,7 @@ if (${BUILD_WITH_UV_TRANS}) ...@@ -18,7 +18,7 @@ if (${BUILD_WITH_UV_TRANS})
if (${BUILD_WITH_UV}) if (${BUILD_WITH_UV})
target_include_directories( target_include_directories(
transport transport
PUBLIC "${CMAKE_SOURCE_DIR}/contrib/libuv/include" PUBLIC "${TD_SOURCE_DIR}/contrib/libuv/include"
) )
target_link_libraries( target_link_libraries(
......
...@@ -33,7 +33,7 @@ target_sources(pushServer ...@@ -33,7 +33,7 @@ target_sources(pushServer
target_include_directories(transportTest target_include_directories(transportTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/transport" "${TD_SOURCE_DIR}/include/libs/transport"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
...@@ -54,7 +54,7 @@ target_link_libraries (transUT ...@@ -54,7 +54,7 @@ target_link_libraries (transUT
target_include_directories(client target_include_directories(client
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/transport" "${TD_SOURCE_DIR}/include/libs/transport"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
...@@ -67,13 +67,13 @@ target_link_libraries (client ...@@ -67,13 +67,13 @@ target_link_libraries (client
) )
target_include_directories(server target_include_directories(server
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/transport" "${TD_SOURCE_DIR}/include/libs/transport"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_include_directories(transUT target_include_directories(transUT
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/transport" "${TD_SOURCE_DIR}/include/libs/transport"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
...@@ -86,7 +86,7 @@ target_link_libraries (server ...@@ -86,7 +86,7 @@ target_link_libraries (server
) )
target_include_directories(syncClient target_include_directories(syncClient
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/transport" "${TD_SOURCE_DIR}/include/libs/transport"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_link_libraries (syncClient target_link_libraries (syncClient
...@@ -99,7 +99,7 @@ target_link_libraries (syncClient ...@@ -99,7 +99,7 @@ target_link_libraries (syncClient
target_include_directories(pushServer target_include_directories(pushServer
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/transport" "${TD_SOURCE_DIR}/include/libs/transport"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
target_link_libraries (pushServer target_link_libraries (pushServer
......
...@@ -2,7 +2,7 @@ aux_source_directory(src WAL_SRC) ...@@ -2,7 +2,7 @@ aux_source_directory(src WAL_SRC)
add_library(wal STATIC ${WAL_SRC}) add_library(wal STATIC ${WAL_SRC})
target_include_directories( target_include_directories(
wal wal
PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/wal" PUBLIC "${TD_SOURCE_DIR}/include/libs/wal"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
) )
......
...@@ -5,7 +5,7 @@ target_sources(walTest ...@@ -5,7 +5,7 @@ target_sources(walTest
) )
target_include_directories(walTest target_include_directories(walTest
PUBLIC PUBLIC
"${CMAKE_SOURCE_DIR}/include/libs/wal" "${TD_SOURCE_DIR}/include/libs/wal"
"${CMAKE_CURRENT_SOURCE_DIR}/../inc" "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
) )
......
...@@ -2,11 +2,11 @@ aux_source_directory(src OS_SRC) ...@@ -2,11 +2,11 @@ aux_source_directory(src OS_SRC)
add_library(os STATIC ${OS_SRC}) add_library(os STATIC ${OS_SRC})
target_include_directories( target_include_directories(
os os
PUBLIC "${CMAKE_SOURCE_DIR}/include/os" PUBLIC "${TD_SOURCE_DIR}/include/os"
PUBLIC "${CMAKE_SOURCE_DIR}/include" PUBLIC "${TD_SOURCE_DIR}/include"
PUBLIC "${CMAKE_SOURCE_DIR}/include/util" PUBLIC "${TD_SOURCE_DIR}/include/util"
PUBLIC "${CMAKE_SOURCE_DIR}/contrib/pthread" PUBLIC "${TD_SOURCE_DIR}/contrib/pthread"
PUBLIC "${CMAKE_SOURCE_DIR}/contrib/gnuregex" PUBLIC "${TD_SOURCE_DIR}/contrib/gnuregex"
) )
# iconv # iconv
find_path(IconvApiIncludes iconv.h PATHS) find_path(IconvApiIncludes iconv.h PATHS)
......
...@@ -3,7 +3,7 @@ aux_source_directory(src UTIL_SRC) ...@@ -3,7 +3,7 @@ aux_source_directory(src UTIL_SRC)
add_library(util STATIC ${UTIL_SRC}) add_library(util STATIC ${UTIL_SRC})
target_include_directories( target_include_directories(
util util
PUBLIC "${CMAKE_SOURCE_DIR}/include/util" PUBLIC "${TD_SOURCE_DIR}/include/util"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
) )
target_link_libraries( target_link_libraries(
......
IF (TD_TAOS_TOOLS) IF (TD_TAOS_TOOLS)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/tools/taos_tools/deps/avro/lang/c/src) INCLUDE_DIRECTORIES(${TD_SOURCE_DIR}/tools/taos_tools/deps/avro/lang/c/src)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include/client) INCLUDE_DIRECTORIES(${TD_SOURCE_DIR}/include/client)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include/common) INCLUDE_DIRECTORIES(${TD_SOURCE_DIR}/include/common)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include/util) INCLUDE_DIRECTORIES(${TD_SOURCE_DIR}/include/util)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include/os) INCLUDE_DIRECTORIES(${TD_SOURCE_DIR}/include/os)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include/libs/transport) INCLUDE_DIRECTORIES(${TD_SOURCE_DIR}/include/libs/transport)
ADD_SUBDIRECTORY(taos-tools) ADD_SUBDIRECTORY(taos-tools)
ENDIF () ENDIF ()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册