Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
89ade5fa
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
89ade5fa
编写于
12月 07, 2021
作者:
C
Cary Xu
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'develop' into hotfix/TS-784-D
上级
dcb9f852
ad797413
变更
74
隐藏空白更改
内联
并排
Showing
74 changed file
with
82 addition
and
33 deletion
+82
-33
packaging/deb/makedeb.sh
packaging/deb/makedeb.sh
+0
-1
packaging/release.sh
packaging/release.sh
+2
-2
packaging/rpm/tdengine.spec
packaging/rpm/tdengine.spec
+0
-2
packaging/tools/install.sh
packaging/tools/install.sh
+4
-4
packaging/tools/makeclient.sh
packaging/tools/makeclient.sh
+3
-2
packaging/tools/makepkg.sh
packaging/tools/makepkg.sh
+53
-6
src/client/src/tscSQLParser.c
src/client/src/tscSQLParser.c
+10
-11
src/common/inc/tdataformat.h
src/common/inc/tdataformat.h
+3
-2
src/kit/taos-tools
src/kit/taos-tools
+1
-1
src/tsdb/src/tsdbMemTable.c
src/tsdb/src/tsdbMemTable.c
+1
-1
tests/develop-test/0-management/0-database/.gitkeep
tests/develop-test/0-management/0-database/.gitkeep
+0
-0
tests/develop-test/0-management/1-stable/.gitkeep
tests/develop-test/0-management/1-stable/.gitkeep
+0
-0
tests/develop-test/0-management/2-table/.gitkeep
tests/develop-test/0-management/2-table/.gitkeep
+0
-0
tests/develop-test/0-management/3-tag/.gitkeep
tests/develop-test/0-management/3-tag/.gitkeep
+0
-0
tests/develop-test/0-management/4-others/.gitkeep
tests/develop-test/0-management/4-others/.gitkeep
+0
-0
tests/develop-test/1-insert/0-sql/.gitkeep
tests/develop-test/1-insert/0-sql/.gitkeep
+0
-0
tests/develop-test/1-insert/1-stmt/.gitkeep
tests/develop-test/1-insert/1-stmt/.gitkeep
+0
-0
tests/develop-test/1-insert/2-schemaless/json/.gitkeep
tests/develop-test/1-insert/2-schemaless/json/.gitkeep
+0
-0
tests/develop-test/1-insert/2-schemaless/line/.gitkeep
tests/develop-test/1-insert/2-schemaless/line/.gitkeep
+0
-0
tests/develop-test/1-insert/2-schemaless/telnet/.gitkeep
tests/develop-test/1-insert/2-schemaless/telnet/.gitkeep
+0
-0
tests/develop-test/2-query/0-aggregate/.gitkeep
tests/develop-test/2-query/0-aggregate/.gitkeep
+0
-0
tests/develop-test/2-query/1-select/.gitkeep
tests/develop-test/2-query/1-select/.gitkeep
+0
-0
tests/develop-test/2-query/2-compute/.gitkeep
tests/develop-test/2-query/2-compute/.gitkeep
+0
-0
tests/develop-test/2-query/3-join/.gitkeep
tests/develop-test/2-query/3-join/.gitkeep
+0
-0
tests/develop-test/2-query/4-union/.gitkeep
tests/develop-test/2-query/4-union/.gitkeep
+0
-0
tests/develop-test/2-query/5-session/.gitkeep
tests/develop-test/2-query/5-session/.gitkeep
+0
-0
tests/develop-test/2-query/6-state_window/.gitkeep
tests/develop-test/2-query/6-state_window/.gitkeep
+0
-0
tests/develop-test/2-query/7-nest/.gitkeep
tests/develop-test/2-query/7-nest/.gitkeep
+0
-0
tests/develop-test/2-query/8-udf/.gitkeep
tests/develop-test/2-query/8-udf/.gitkeep
+0
-0
tests/develop-test/2-query/9-others/.gitkeep
tests/develop-test/2-query/9-others/.gitkeep
+0
-0
tests/develop-test/3-connectors/c#/.gitkeep
tests/develop-test/3-connectors/c#/.gitkeep
+0
-0
tests/develop-test/3-connectors/go/.gitkeep
tests/develop-test/3-connectors/go/.gitkeep
+0
-0
tests/develop-test/3-connectors/java/.gitkeep
tests/develop-test/3-connectors/java/.gitkeep
+0
-0
tests/develop-test/3-connectors/nodejs/.gitkeep
tests/develop-test/3-connectors/nodejs/.gitkeep
+0
-0
tests/develop-test/3-connectors/restful/.gitkeep
tests/develop-test/3-connectors/restful/.gitkeep
+0
-0
tests/develop-test/3-connectors/rust/.gitkeep
tests/develop-test/3-connectors/rust/.gitkeep
+0
-0
tests/develop-test/4-taosAdapter/.gitkeep
tests/develop-test/4-taosAdapter/.gitkeep
+0
-0
tests/develop-test/5-taos-tools/taosbenchmark/.gitkeep
tests/develop-test/5-taos-tools/taosbenchmark/.gitkeep
+0
-0
tests/develop-test/5-taos-tools/taosdump/.gitkeep
tests/develop-test/5-taos-tools/taosdump/.gitkeep
+0
-0
tests/develop-test/6-feature/.gitkeep
tests/develop-test/6-feature/.gitkeep
+0
-0
tests/develop-test/7-cluster/.gitkeep
tests/develop-test/7-cluster/.gitkeep
+0
-0
tests/script/general/parser/nestquery.sim
tests/script/general/parser/nestquery.sim
+3
-1
tests/script/general/parser/slimit_query.sim
tests/script/general/parser/slimit_query.sim
+2
-0
tests/system-test/0-management/0-database/.gitkeep
tests/system-test/0-management/0-database/.gitkeep
+0
-0
tests/system-test/0-management/1-stable/.gitkeep
tests/system-test/0-management/1-stable/.gitkeep
+0
-0
tests/system-test/0-management/2-table/.gitkeep
tests/system-test/0-management/2-table/.gitkeep
+0
-0
tests/system-test/0-management/3-tag/.gitkeep
tests/system-test/0-management/3-tag/.gitkeep
+0
-0
tests/system-test/0-management/4-others/.gitkeep
tests/system-test/0-management/4-others/.gitkeep
+0
-0
tests/system-test/1-insert/0-sql/.gitkeep
tests/system-test/1-insert/0-sql/.gitkeep
+0
-0
tests/system-test/1-insert/1-stmt/.gitkeep
tests/system-test/1-insert/1-stmt/.gitkeep
+0
-0
tests/system-test/1-insert/2-schemaless/json/.gitkeep
tests/system-test/1-insert/2-schemaless/json/.gitkeep
+0
-0
tests/system-test/1-insert/2-schemaless/line/.gitkeep
tests/system-test/1-insert/2-schemaless/line/.gitkeep
+0
-0
tests/system-test/1-insert/2-schemaless/telnet/.gitkeep
tests/system-test/1-insert/2-schemaless/telnet/.gitkeep
+0
-0
tests/system-test/2-query/0-aggregate/.gitkeep
tests/system-test/2-query/0-aggregate/.gitkeep
+0
-0
tests/system-test/2-query/1-select/.gitkeep
tests/system-test/2-query/1-select/.gitkeep
+0
-0
tests/system-test/2-query/2-compute/.gitkeep
tests/system-test/2-query/2-compute/.gitkeep
+0
-0
tests/system-test/2-query/3-join/.gitkeep
tests/system-test/2-query/3-join/.gitkeep
+0
-0
tests/system-test/2-query/4-union/.gitkeep
tests/system-test/2-query/4-union/.gitkeep
+0
-0
tests/system-test/2-query/5-session/.gitkeep
tests/system-test/2-query/5-session/.gitkeep
+0
-0
tests/system-test/2-query/6-state_window/.gitkeep
tests/system-test/2-query/6-state_window/.gitkeep
+0
-0
tests/system-test/2-query/7-nest/.gitkeep
tests/system-test/2-query/7-nest/.gitkeep
+0
-0
tests/system-test/2-query/8-udf/.gitkeep
tests/system-test/2-query/8-udf/.gitkeep
+0
-0
tests/system-test/2-query/9-others/.gitkeep
tests/system-test/2-query/9-others/.gitkeep
+0
-0
tests/system-test/3-connectors/c#/.gitkeep
tests/system-test/3-connectors/c#/.gitkeep
+0
-0
tests/system-test/3-connectors/go/.gitkeep
tests/system-test/3-connectors/go/.gitkeep
+0
-0
tests/system-test/3-connectors/java/.gitkeep
tests/system-test/3-connectors/java/.gitkeep
+0
-0
tests/system-test/3-connectors/nodejs/.gitkeep
tests/system-test/3-connectors/nodejs/.gitkeep
+0
-0
tests/system-test/3-connectors/restful/.gitkeep
tests/system-test/3-connectors/restful/.gitkeep
+0
-0
tests/system-test/3-connectors/rust/.gitkeep
tests/system-test/3-connectors/rust/.gitkeep
+0
-0
tests/system-test/4-taosAdapter/.gitkeep
tests/system-test/4-taosAdapter/.gitkeep
+0
-0
tests/system-test/5-taos-tools/taosbenchmark/.gitkeep
tests/system-test/5-taos-tools/taosbenchmark/.gitkeep
+0
-0
tests/system-test/5-taos-tools/taosdump/.gitkeep
tests/system-test/5-taos-tools/taosdump/.gitkeep
+0
-0
tests/system-test/6-feature/.gitkeep
tests/system-test/6-feature/.gitkeep
+0
-0
tests/system-test/7-cluster/.gitkeep
tests/system-test/7-cluster/.gitkeep
+0
-0
未找到文件。
packaging/deb/makedeb.sh
浏览文件 @
89ade5fa
...
...
@@ -58,7 +58,6 @@ cp ${compile_dir}/../packaging/tools/startPre.sh ${pkg_dir}${install_home_pat
cp
${
compile_dir
}
/../packaging/tools/set_core.sh
${
pkg_dir
}${
install_home_path
}
/bin
cp
${
compile_dir
}
/../packaging/tools/taosd-dump-cfg.gdb
${
pkg_dir
}${
install_home_path
}
/bin
cp
${
compile_dir
}
/build/bin/taosdemo
${
pkg_dir
}${
install_home_path
}
/bin
cp
${
compile_dir
}
/build/bin/taosd
${
pkg_dir
}${
install_home_path
}
/bin
if
[
-f
"
${
compile_dir
}
/build/bin/taosadapter"
]
;
then
...
...
packaging/release.sh
浏览文件 @
89ade5fa
...
...
@@ -518,7 +518,7 @@ if [ "$osType" != "Darwin" ]; then
cd
${
top_dir
}
/src/kit/taos-tools/packaging/deb
[
-z
"
$taos_tools_ver
"
]
&&
taos_tools_ver
=
"0.1.0"
taos_tools_ver
=
$(
git describe
--tags
|sed
-e
's/ver-//g'
)
taos_tools_ver
=
$(
git describe
--tags
|sed
-e
's/ver-//g'
|awk
-F
'-'
'{print $1}'
)
${
csudo
}
./make-taos-tools-deb.sh
${
top_dir
}
\
${
compile_dir
}
${
output_dir
}
${
taos_tools_ver
}
${
cpuType
}
${
osType
}
${
verMode
}
${
verType
}
fi
...
...
@@ -541,7 +541,7 @@ if [ "$osType" != "Darwin" ]; then
cd
${
top_dir
}
/src/kit/taos-tools/packaging/rpm
[
-z
"
$taos_tools_ver
"
]
&&
taos_tools_ver
=
"0.1.0"
taos_tools_ver
=
$(
git describe
--tags
|sed
-e
's/ver-//g'
|sed
-e
's/-/_/g'
)
taos_tools_ver
=
$(
git describe
--tags
|sed
-e
's/ver-//g'
|
awk
-F
'-'
'{print $1}'
|
sed
-e
's/-/_/g'
)
${
csudo
}
./make-taos-tools-rpm.sh
${
top_dir
}
\
${
compile_dir
}
${
output_dir
}
${
taos_tools_ver
}
${
cpuType
}
${
osType
}
${
verMode
}
${
verType
}
fi
...
...
packaging/rpm/tdengine.spec
浏览文件 @
89ade5fa
...
...
@@ -71,7 +71,6 @@ cp %{_compiledir}/build/bin/taosd %{buildroot}%{homepath}/bin
if [ -f %{_compiledir}/build/bin/taosadapter ]; then
cp %{_compiledir}/build/bin/taosadapter %{buildroot}%{homepath}/bin ||:
fi
cp %{_compiledir}/build/bin/taosdemo %{buildroot}%{homepath}/bin
cp %{_compiledir}/build/lib/${libfile} %{buildroot}%{homepath}/driver
cp %{_compiledir}/../src/inc/taos.h %{buildroot}%{homepath}/include
cp %{_compiledir}/../src/inc/taosdef.h %{buildroot}%{homepath}/include
...
...
@@ -196,7 +195,6 @@ if [ $1 -eq 0 ];then
${csudo} rm -f ${bin_link_dir}/taos || :
${csudo} rm -f ${bin_link_dir}/taosd || :
${csudo} rm -f ${bin_link_dir}/taosadapter || :
${csudo} rm -f ${bin_link_dir}/taosdemo || :
${csudo} rm -f ${cfg_link_dir}/* || :
${csudo} rm -f ${inc_link_dir}/taos.h || :
${csudo} rm -f ${inc_link_dir}/taosdef.h || :
...
...
packaging/tools/install.sh
浏览文件 @
89ade5fa
...
...
@@ -887,8 +887,8 @@ function update_TDengine() {
fi
tar
-zxf
taos.tar.gz
install_jemalloc
install_avro lib
install_avro lib64
#
install_avro lib
#
install_avro lib64
echo
-e
"
${
GREEN
}
Start to update TDengine...
${
NC
}
"
# Stop the service if running
...
...
@@ -1001,8 +1001,8 @@ function install_TDengine() {
install_header
install_lib
install_jemalloc
install_avro lib
install_avro lib64
#
install_avro lib
#
install_avro lib64
if
[
"
$pagMode
"
!=
"lite"
]
;
then
install_connector
...
...
packaging/tools/makeclient.sh
浏览文件 @
89ade5fa
...
...
@@ -45,8 +45,9 @@ if [ "$osType" != "Darwin" ]; then
strip
${
build_dir
}
/bin/taos
bin_files
=
"
${
build_dir
}
/bin/taos
${
script_dir
}
/remove_client.sh"
else
bin_files
=
"
${
build_dir
}
/bin/taos
${
build_dir
}
/bin/taosdemo
\
${
script_dir
}
/remove_client.sh
${
script_dir
}
/set_core.sh
${
script_dir
}
/get_client.sh
${
script_dir
}
/taosd-dump-cfg.gdb"
bin_files
=
"
${
script_dir
}
/remove_client.sh
\
${
script_dir
}
/set_core.sh
\
${
script_dir
}
/get_client.sh
${
script_dir
}
/taosd-dump-cfg.gdb"
fi
lib_files
=
"
${
build_dir
}
/lib/libtaos.so.
${
version
}
"
else
...
...
packaging/tools/makepkg.sh
浏览文件 @
89ade5fa
...
...
@@ -31,23 +31,37 @@ else
install_dir
=
"
${
release_dir
}
/TDengine-server-
${
version
}
"
fi
if
[
-d
${
top_dir
}
/src/kit/taos-tools/packaging/deb
]
;
then
cd
${
top_dir
}
/src/kit/taos-tools/packaging/deb
[
-z
"
$taos_tools_ver
"
]
&&
taos_tools_ver
=
"0.1.0"
taostools_ver
=
$(
git describe
--tags
|sed
-e
's/ver-//g'
|awk
-F
'-'
'{print $1}'
)
taostools_install_dir
=
"
${
release_dir
}
/taos-tools-
${
taostools_ver
}
"
cd
${
curr_dir
}
else
taostools_install_dir
=
"
${
release_dir
}
/taos-tools-
${
version
}
"
fi
# Directories and files
if
[
"
$pagMode
"
==
"lite"
]
;
then
strip
${
build_dir
}
/bin/taosd
strip
${
build_dir
}
/bin/taos
# lite version doesn't include taosadapter, which will lead to no restful interface
bin_files
=
"
${
build_dir
}
/bin/taosd
${
build_dir
}
/bin/taos
${
script_dir
}
/remove.sh
${
script_dir
}
/startPre.sh"
taostools_bin_files
=
""
else
bin_files
=
"
${
build_dir
}
/bin/taosd
\
${
build_dir
}
/bin/taos
\
${
build_dir
}
/bin/taosadapter
\
${
build_dir
}
/bin/taosdump
\
${
build_dir
}
/bin/taosdemo
\
${
build_dir
}
/bin/tarbitrator
\
${
script_dir
}
/remove.sh
\
${
script_dir
}
/set_core.sh
\
${
script_dir
}
/startPre.sh
\
${
script_dir
}
/taosd-dump-cfg.gdb"
taostools_bin_files
=
"
${
build_dir
}
/bin/taosdump
\
${
build_dir
}
/bin/taosBenchmark"
fi
lib_files
=
"
${
build_dir
}
/lib/libtaos.so.
${
version
}
"
...
...
@@ -78,6 +92,7 @@ mkdir -p ${install_dir}
mkdir
-p
${
install_dir
}
/inc
&&
cp
${
header_files
}
${
install_dir
}
/inc
mkdir
-p
${
install_dir
}
/cfg
&&
cp
${
cfg_dir
}
/taos.cfg
${
install_dir
}
/cfg/taos.cfg
if
[
-f
"
${
compile_dir
}
/test/cfg/taosadapter.toml"
]
;
then
cp
${
compile_dir
}
/test/cfg/taosadapter.toml
${
install_dir
}
/cfg
||
:
fi
...
...
@@ -102,10 +117,29 @@ mkdir -p ${install_dir}/init.d && cp ${init_file_rpm} ${install_dir}/init.d/taos
mkdir
-p
${
install_dir
}
/init.d
&&
cp
${
init_file_tarbitrator_deb
}
${
install_dir
}
/init.d/tarbitratord.deb
||
:
mkdir
-p
${
install_dir
}
/init.d
&&
cp
${
init_file_tarbitrator_rpm
}
${
install_dir
}
/init.d/tarbitratord.rpm
||
:
if
[
-f
${
build_dir
}
/lib/libavro.so.23.0.0
]
;
then
mkdir
-p
${
install_dir
}
/avro/
{
lib,lib/pkgconfig
}
cp
${
build_dir
}
/lib/libavro.
*
${
install_dir
}
/avro/lib
cp
${
build_dir
}
/lib/pkgconfig/avro-c.pc
${
install_dir
}
/avro/lib/pkgconfig
if
[
-n
"
${
taostools_bin_files
}
"
]
;
then
mkdir
-p
${
taostools_install_dir
}
||
echo
-e
"failed to create
${
taostools_install_dir
}
"
mkdir
-p
${
taostools_install_dir
}
/bin
\
&&
cp
${
taostools_bin_files
}
${
taostools_install_dir
}
/bin
\
&&
chmod
a+x
${
taostools_install_dir
}
/bin/
*
||
:
[
-f
${
taostools_install_dir
}
/bin/taosBenchmark
]
&&
\
ln
-sf
${
taostools_install_dir
}
/bin/taosBenchmark
\
${
taostools_install_dir
}
/bin/taosdemo
if
[
-f
${
top_dir
}
/src/kit/taos-tools/packaging/tools/install-taostools.sh
]
;
then
cp
${
top_dir
}
/src/kit/taos-tools/packaging/tools/install-taostools.sh
\
${
taostools_install_dir
}
/
>
/dev/null
\
&&
chmod
a+x
{
taostools_install_dir
}
/install-taostools.sh
\
||
echo
-e
"failed to copy install-taostools.sh"
else
echo
-e
"install-taostools.sh not found"
fi
if
[
-f
${
build_dir
}
/lib/libavro.so.23.0.0
]
;
then
mkdir
-p
${
taostools_install_dir
}
/avro/
{
lib,lib/pkgconfig
}
||
echo
-e
"failed to create
${
taostools_install_dir
}
/avro"
cp
${
build_dir
}
/lib/libavro.
*
${
taostools_install_dir
}
/avro/lib
cp
${
build_dir
}
/lib/pkgconfig/avro-c.pc
${
taostools_install_dir
}
/avro/lib/pkgconfig
fi
fi
if
[
-f
${
build_dir
}
/bin/jemalloc-config
]
;
then
...
...
@@ -235,6 +269,8 @@ cd ${release_dir}
# install_dir has been distinguishes cluster from edege, so comments this code
pkg_name
=
${
install_dir
}
-
${
osType
}
-
${
cpuType
}
taostools_pkg_name
=
${
taostools_install_dir
}
-
${
osType
}
-
${
cpuType
}
# if [ "$verMode" == "cluster" ]; then
# pkg_name=${install_dir}-${osType}-${cpuType}
# elif [ "$verMode" == "edge" ]; then
...
...
@@ -246,8 +282,10 @@ pkg_name=${install_dir}-${osType}-${cpuType}
if
[[
"
$verType
"
==
"beta"
]]
||
[[
"
$verType
"
==
"preRelease"
]]
;
then
pkg_name
=
${
install_dir
}
-
${
verType
}
-
${
osType
}
-
${
cpuType
}
taostools_pkg_name
=
${
taostools_install_dir
}
-
${
verType
}
-
${
osType
}
-
${
cpuType
}
elif
[
"
$verType
"
==
"stable"
]
;
then
pkg_name
=
${
pkg_name
}
taostools_pkg_name
=
${
taostools_pkg_name
}
else
echo
"unknow verType, nor stabel or beta"
exit
1
...
...
@@ -264,4 +302,13 @@ if [ "$exitcode" != "0" ]; then
exit
$exitcode
fi
if
[
-n
"
${
taostools_bin_files
}
"
]
;
then
tar
-zcv
-f
"
$(
basename
${
taostools_pkg_name
}
)
.tar.gz"
$(
basename
${
taostools_install_dir
}
)
--remove-files
||
:
exitcode
=
$?
if
[
"
$exitcode
"
!=
"0"
]
;
then
echo
"tar
${
taostools_pkg_name
}
.tar.gz error !!!"
exit
$exitcode
fi
fi
cd
${
curr_dir
}
src/client/src/tscSQLParser.c
浏览文件 @
89ade5fa
...
...
@@ -6898,17 +6898,15 @@ int32_t validateLimitNode(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, SSqlNode* pSqlN
// todo refactor
if
(
UTIL_TABLE_IS_SUPER_TABLE
(
pTableMetaInfo
))
{
if
(
!
tscQueryTags
(
pQueryInfo
))
{
// local handle the super table tag query
if
(
tscIsProjectionQueryOnSTable
(
pQueryInfo
,
0
))
{
if
(
pQueryInfo
->
slimit
.
limit
>
0
||
pQueryInfo
->
slimit
.
offset
>
0
)
{
return
invalidOperationMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg2
);
}
if
(
tscIsProjectionQueryOnSTable
(
pQueryInfo
,
0
))
{
if
(
pQueryInfo
->
slimit
.
limit
>
0
||
pQueryInfo
->
slimit
.
offset
>
0
)
{
return
invalidOperationMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg2
);
}
// for projection query on super table, all queries are subqueries
if
(
tscNonOrderedProjectionQueryOnSTable
(
pQueryInfo
,
0
)
&&
!
TSDB_QUERY_HAS_TYPE
(
pQueryInfo
->
type
,
TSDB_QUERY_TYPE_JOIN_QUERY
))
{
pQueryInfo
->
type
|=
TSDB_QUERY_TYPE_SUBQUERY
;
}
// for projection query on super table, all queries are subqueries
if
(
tscNonOrderedProjectionQueryOnSTable
(
pQueryInfo
,
0
)
&&
!
TSDB_QUERY_HAS_TYPE
(
pQueryInfo
->
type
,
TSDB_QUERY_TYPE_JOIN_QUERY
))
{
pQueryInfo
->
type
|=
TSDB_QUERY_TYPE_SUBQUERY
;
}
}
...
...
@@ -9226,7 +9224,8 @@ int32_t validateSqlNode(SSqlObj* pSql, SSqlNode* pSqlNode, SQueryInfo* pQueryInf
SExprInfo
*
pExpr
=
tscExprGet
(
pQueryInfo
,
i
);
int32_t
f
=
pExpr
->
base
.
functionId
;
if
(
f
==
TSDB_FUNC_DERIVATIVE
||
f
==
TSDB_FUNC_TWA
||
f
==
TSDB_FUNC_IRATE
||
f
==
TSDB_FUNC_RATE
||
f
==
TSDB_FUNC_DIFF
)
{
if
(
f
==
TSDB_FUNC_DERIVATIVE
||
f
==
TSDB_FUNC_TWA
||
f
==
TSDB_FUNC_IRATE
||
f
==
TSDB_FUNC_RATE
||
f
==
TSDB_FUNC_DIFF
)
{
return
invalidOperationMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg7
);
}
}
...
...
src/common/inc/tdataformat.h
浏览文件 @
89ade5fa
...
...
@@ -448,13 +448,14 @@ typedef struct {
#define kvRowSetNCols(r, n) kvRowNCols(r) = (n)
#define kvRowColIdx(r) (SColIdx *)POINTER_SHIFT(r, TD_KV_ROW_HEAD_SIZE)
#define kvRowValues(r) POINTER_SHIFT(r, TD_KV_ROW_HEAD_SIZE + sizeof(SColIdx) * kvRowNCols(r))
#define kvRowKeys(r) POINTER_SHIFT(r, *(uint16_t *)POINTER_SHIFT(r, TD_KV_ROW_HEAD_SIZE + sizeof(int16_t)))
#define kvRowCpy(dst, r) memcpy((dst), (r), kvRowLen(r))
#define kvRowColVal(r, colIdx) POINTER_SHIFT(kvRowValues(r), (colIdx)->offset)
#define kvRowColIdxAt(r, i) (kvRowColIdx(r) + (i))
#define kvRowFree(r) tfree(r)
#define kvRowEnd(r) POINTER_SHIFT(r, kvRowLen(r))
#define kvRowValLen(r) (kvRowLen(r) - TD_KV_ROW_HEAD_SIZE - sizeof(SColIdx) * kvRowNCols(r))
#define kvRowTKey(r) (*(TKEY *)(kvRow
Value
s(r)))
#define kvRowTKey(r) (*(TKEY *)(kvRow
Key
s(r)))
#define kvRowKey(r) tdGetKey(kvRowTKey(r))
#define kvRowDeleted(r) TKEY_IS_DELETED(kvRowTKey(r))
...
...
@@ -652,7 +653,7 @@ static FORCE_INLINE char *memRowEnd(SMemRow row) {
#define memRowKvVersion(r) (*(int16_t *)POINTER_SHIFT(r, TD_MEM_ROW_TYPE_SIZE))
#define memRowVersion(r) (isDataRow(r) ? memRowDataVersion(r) : memRowKvVersion(r)) // schema version
#define memRowSetKvVersion(r, v) (memRowKvVersion(r) = (v))
#define memRow
Tuple(r) (isDataRow(r) ? dataRowTuple(memRowDataBody(r)) : kvRowValue
s(memRowKvBody(r)))
#define memRow
Keys(r) (isDataRow(r) ? dataRowTuple(memRowDataBody(r)) : kvRowKey
s(memRowKvBody(r)))
#define memRowTKey(r) (isDataRow(r) ? dataRowTKey(memRowDataBody(r)) : kvRowTKey(memRowKvBody(r)))
#define memRowKey(r) (isDataRow(r) ? dataRowKey(memRowDataBody(r)) : kvRowKey(memRowKvBody(r)))
...
...
taos-tools
@
26f90b54
比较
b76b5a76
...
26f90b54
Subproject commit
b76b5a76756a5c6530ba1d418de51fd336ae23b1
Subproject commit
26f90b549f6e113ef3d275775062e674b0119645
src/tsdb/src/tsdbMemTable.c
浏览文件 @
89ade5fa
...
...
@@ -564,7 +564,7 @@ static void tsdbFreeTableData(STableData *pTableData) {
}
}
static
char
*
tsdbGetTsTupleKey
(
const
void
*
data
)
{
return
memRow
Tuple
((
SMemRow
)
data
);
}
static
char
*
tsdbGetTsTupleKey
(
const
void
*
data
)
{
return
memRow
Keys
((
SMemRow
)
data
);
}
static
int
tsdbAdjustMemMaxTables
(
SMemTable
*
pMemTable
,
int
maxTables
)
{
ASSERT
(
pMemTable
->
maxTables
<
maxTables
);
...
...
tests/develop-test/0-management/0-database/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/develop-test/0-management/1-stable/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/develop-test/0-management/2-table/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/develop-test/0-management/3-tag/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/develop-test/0-management/4-others/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/develop-test/1-insert/0-sql/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/develop-test/1-insert/1-stmt/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/develop-test/1-insert/2-schemaless/json/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/develop-test/1-insert/2-schemaless/line/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/develop-test/1-insert/2-schemaless/telnet/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/develop-test/2-query/0-aggregate/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/develop-test/2-query/1-select/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/develop-test/2-query/2-compute/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/develop-test/2-query/3-join/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/develop-test/2-query/4-union/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/develop-test/2-query/5-session/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/develop-test/2-query/6-state_window/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/develop-test/2-query/7-nest/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/develop-test/2-query/8-udf/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/develop-test/2-query/9-others/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/develop-test/3-connectors/c#/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/develop-test/3-connectors/go/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/develop-test/3-connectors/java/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/develop-test/3-connectors/nodejs/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/develop-test/3-connectors/restful/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/develop-test/3-connectors/rust/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/develop-test/4-taosAdapter/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/develop-test/5-taos-tools/taosbenchmark/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/develop-test/5-taos-tools/taosdump/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/develop-test/6-feature/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/develop-test/7-cluster/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/script/general/parser/nestquery.sim
浏览文件 @
89ade5fa
...
...
@@ -419,12 +419,14 @@ if $data03 != @20-09-15 00:00:00.000@ then
return -1
endi
sql_error select diff(val) from (select c1 val from nest_tb0);
sql select diff(val) from (select ts,c1 val from nest_tb0);
if $rows != 9999 then
return -1
endi
if $data00 != @
70-01-01 08:00
:00.000@ then
if $data00 != @
20-09-15 00:01
:00.000@ then
return -1
endi
...
...
tests/script/general/parser/slimit_query.sim
浏览文件 @
89ade5fa
...
...
@@ -31,6 +31,8 @@ $tsu = $tsu + $ts0
#sql_error select top(c1, 1) from $stb where ts >= $ts0 and ts <= $tsu slimit 5 offset 1
#sql_error select bottom(c1, 1) from $stb where ts >= $ts0 and ts <= $tsu slimit 5 offset 1
sql_error select t1 from $stb slimit 5 offset 1;
### select from stb + group by + slimit offset
sql select max(c1), min(c2), avg(c3), sum(c4), spread(c5), sum(c6), count(c7), first(c8), last(c9) from $stb group by t1 slimit 5 soffset 0
if $rows != 5 then
...
...
tests/system-test/0-management/0-database/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/system-test/0-management/1-stable/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/system-test/0-management/2-table/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/system-test/0-management/3-tag/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/system-test/0-management/4-others/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/system-test/1-insert/0-sql/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/system-test/1-insert/1-stmt/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/system-test/1-insert/2-schemaless/json/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/system-test/1-insert/2-schemaless/line/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/system-test/1-insert/2-schemaless/telnet/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/system-test/2-query/0-aggregate/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/system-test/2-query/1-select/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/system-test/2-query/2-compute/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/system-test/2-query/3-join/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/system-test/2-query/4-union/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/system-test/2-query/5-session/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/system-test/2-query/6-state_window/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/system-test/2-query/7-nest/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/system-test/2-query/8-udf/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/system-test/2-query/9-others/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/system-test/3-connectors/c#/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/system-test/3-connectors/go/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/system-test/3-connectors/java/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/system-test/3-connectors/nodejs/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/system-test/3-connectors/restful/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/system-test/3-connectors/rust/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/system-test/4-taosAdapter/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/system-test/5-taos-tools/taosbenchmark/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/system-test/5-taos-tools/taosdump/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/system-test/6-feature/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
tests/system-test/7-cluster/.gitkeep
0 → 100644
浏览文件 @
89ade5fa
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录