[ https://issues.apache.org/jira/browse/HIVE-26175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17528742#comment-17528742 ]
renjianting edited comment on HIVE-26175 at 4/27/22 11:25 AM: -------------------------------------------------------------- I found in the HIVE-24348 update, the HIVE script added "USE_BEELINE_FOR_HIVE_CLI=true", so the client driver class by default will be org.apache.hive.beeline.cli.HiveCli, Instead of the original org.apache.hadoop.hive.cli.CliDriver. The Beeline client fixed this in previous versions, so the Master branch does not cause this problem. [~asolimando] was (Author: renjianting001): I found in the HIVE-26175 update, the HIVE script added "USE_BEELINE_FOR_HIVE_CLI=true", so the client driver class by default will be org.apache.hive.beeline.cli.HiveCli, Instead of the original org.apache.hadoop.hive.cli.CliDriver. The Beeline client fixed this in previous versions, so the Master branch does not cause this problem. [~asolimando] > Fixed ParseException caused by unpaired quotation marks in a line of comments > ----------------------------------------------------------------------------- > > Key: HIVE-26175 > URL: https://issues.apache.org/jira/browse/HIVE-26175 > Project: Hive > Issue Type: Bug > Components: CLI, Parser > Affects Versions: 3.1.3 > Reporter: renjianting > Assignee: renjianting > Priority: Major > Labels: pull-request-available > Fix For: 4.0.0 > > Time Spent: 1h 10m > Remaining Estimate: 0h > > Unpaired quotation marks in a line of comments causes ParseException : > task.sql > {code:java} > select 1 -- comment I'm col1"xxx > ; > select 2 -- comment I'm col2"xxx > ;{code} > The following error occurs when I run a similar task using the "hive -f > task.sql" command : > {code:java} > FAILED: ParseException line 2:0 cannot recognize input near '1' ';' 'select' > in constant{code} -- This message was sent by Atlassian Jira (v8.20.7#820007)