You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
taos> SELECT TIMETRUNCATE(ts, 1d, 0) AS ts, max(engine_load) AS "max(engine_load)" FROM abacus.log_combikat GR
OUP BY TIMETRUNCATE(ts, 1d, 0) ORDER BY engine_load DESC;
DB error: syntax error near ""max(engine_load)" from abacus.log_combikat group by timetruncate(ts, 1d, 0) order by engine_load desc;" (0.000060s)
Error: [0x2600]: syntax error near ""MAX(engine_load)"
from abacus.log_combikat group by timetruncate(ts, 1d, 0) order by "MAX(engine_load)" desc
limit 10000"
其次,COUNT 函数无法使用 AS,报错如下:
taos> SELECT TIMETRUNCATE(ts, 1d, 0) AS ts, count(*) AS count FROM abacus.log_combikat GROUP BY TIMETRUNCATE(t
s, 1d, 0);
DB error: syntax error near "count from abacus.log_combikat group by timetruncate(ts, 1d, 0);" (0.000144s)
Bug Description
Aliases 即
AS
存在兼容性问题:首先,
AS
不支持单双引号,即"
和'
去除
'
或"
后仅支持简单字符,但存在歧义:不支持单双引号导致与其他软件如 Superset 存在兼容问题:
其次,
COUNT
函数无法使用AS
,报错如下:移除
AS
可正常查询:To Reproduce
参考以上 SQL 语句。
Expected Behavior
AS
需支持单双引号;AS
可以与COUNT
函数共同使用。Environment (please complete the following information):
Additional Context
目前我正在尝试将 taospy 集成进 Superset 的过程中,相关代码会在集成验证完成后提交 taospy 以及 Superset 合并,谢谢。
The text was updated successfully, but these errors were encountered: