TDengine算术查询操作导致coredump使用无数字操作数



我正在尝试使用select子句进行算术运算。我发现当使用数字作为操作数时,结果看起来很好,但没有数字值,如字符串/字符串或数字/字符串的混合TDengine核心转储。我在想可能是ASCII值最初可以在计算中使用,但期望至少TDengine抛出错误。有人知道使用非数值是否是算术查询的标准方式吗?

taos> select 2 + 3.0 from tb;
2 + 3.0          |
============================
5.000000000 |
5.000000000 |
Query OK, 2 row(s) in set (0.014870s)
taos> select 'a' + 'b' from tb;
taos: /root/wz_test/TDengine/src/client/src/tscSQLParser.c:3506: functionCompatibleCheck: Assertion `numOfExpr > 0' failed.
Aborted (core dumped)

taos> select "a" - 1 from db.tb;
taos: /root/wz_test/TDengine/src/client/src/tscSQLParser.c:3506: functionCompatibleCheck: Assertion `numOfExpr > 0' failed.
Aborted (core dumped)

我认为应该在以后的版本中修复。

最新更新