okumin opened a new pull request, #4829: URL: https://github.com/apache/hive/pull/4829
### What changes were proposed in this pull request? Show more hints such as a line number when a user hits the issue. ### Why are the changes needed? The current message doesn't include any context about Hive's grammar. It is not helpful when a submitted SQL is complex. ### Does this PR introduce _any_ user-facing change? The type of exception and an error message can change. ### Is the change a dependency upgrade? No ### How was this patch tested? Unit tests and manual tests on my local machine. ``` 0: jdbc:hive2://hive-hiveserver2:10000/defaul> SELECT `` FROM ``; Error: Error while compiling statement: FAILED: ParseException line 1:10 cannot recognize input near 'FROM' '<EOF>' '<EOF>' in select clause (state=42000,code=40000) 0: jdbc:hive2://hive-hiveserver2:10000/defaul> SELECT * FROM a.``; Error: Error while compiling statement: FAILED: ParseException line 1:18 cannot recognize input near 'a' '.' '<EOF>' in table name (state=42000,code=40000) ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org