luoyuxia created FLINK-26681:
--------------------------------
Summary: Remove possbile semicolon in the end of SQL statemnt in
HiveParser
Key: FLINK-26681
URL: https://issues.apache.org/jira/browse/FLINK-26681
Project: Flink
Issue Type: Improvement
Components: Connectors / Hive
Affects Versions: 1.15.0
Reporter: luoyuxia
Fix For: 1.15.0
In [FLINK-25600|https://issues.apache.org/jira/browse/FLINK-25600], the sql
client won't remove ';' at the end of command, so the sql statement will keep
the semicolon. When using Hive dialect, it'll be passed to HiveParser and then
throw the ParseException likeĀ
{code:java}
org.apache.flink.table.planner.delegation.hive.copy.HiveASTParseException: line
1:28 cannot recognize input near ';' '<EOF>' ..{code}
So we need to remove the semicolon in HiveParser to fix the issue.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)