关于case when 在ksql 中使用,编辑KSQL语句时,测试通过并查询出数据,但是点击确定后控制台就报错
控制台错误信息:
[ERROR] check error! [com.justep.design.model.ksql.Utils 2018-12-28 18:30:43]
com.justep.design.model.ksql.KSQLException: 错误的表达式, 位置:127, 此时不应该有关键字:case
at com.justep.design.model.ksql.Utils.check(Unknown Source)
at com.justep.design.model.ksql.KSQLParser.constExpression(Unknown Source)
at com.justep.design.model.ksql.KSQLParser.unaryExpression(Unknown Source)
at com.justep.design.model.ksql.KSQLParser.multiExpression(Unknown Source)
at com.justep.design.model.ksql.KSQLParser.addExpression(Unknown Source)
at com.justep.design.model.ksql.KSQLParser.functionExpression(Unknown Source)
at com.justep.design.model.ksql.KSQLParser.unaryExpression(Unknown Source)
at com.justep.design.model.ksql.KSQLParser.multiExpression(Unknown Source)
at com.justep.design.model.ksql.KSQLParser.addExpression(Unknown Source)
at com.justep.design.model.ksql.KSQLParser.selectColumn(Unknown Source)
at com.justep.design.model.ksql.KSQLParser.selectListNode(Unknown Source)
at com.justep.design.model.ksql.KSQLParser.selectSentenceNode(Unknown Source)
at com.justep.design.model.ksql.KSQLParser.start(Unknown Source)
at com.justep.design.model.ksql.KSQLParser.parse(Unknown Source)