赞
踩
问题:
创建虚拟表时,使用result作为表名报错tableEnv.createTemporaryView("result", resultTable);
Caused by: org.apache.flink.sql.parser.impl.ParseException: Encountered "result" at line 1, column 24.
Was expecting one of:
"LATERAL" ...
"TABLE" ...
"UNNEST" ...
<IDENTIFIER> ...
<HYPHENATED_IDENTIFIER> ...
<QUOTED_IDENTIFIER> ...
<BACK_QUOTED_IDENTIFIER> ...
<BRACKET_QUOTED_IDENTIFIER> ...
<UNICODE_QUOTED_IDENTIFIER> ...
"(" ...
原因:
与Flink Table&SQL的关键字冲突
解决:
使用不与关键字冲突的表名
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。