hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (Jira)" <>
Subject [jira] [Work logged] (HIVE-25095) Beeline/hive -e command can't deal with query with trailing quote
Date Sat, 24 Jul 2021 11:15:00 GMT


ASF GitHub Bot logged work on HIVE-25095:

                Author: ASF GitHub Bot
            Created on: 24/Jul/21 11:14
            Start Date: 24/Jul/21 11:14
    Worklog Time Spent: 10m 
      Work Description: ujc714 closed pull request #2255:


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:

For queries about this service, please contact Infrastructure at:

Issue Time Tracking

    Worklog Id:     (was: 627395)
    Time Spent: 0.5h  (was: 20m)

> Beeline/hive -e command can't deal with query with trailing quote
> -----------------------------------------------------------------
>                 Key: HIVE-25095
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Robbie Zhang
>            Assignee: Robbie Zhang
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
> The command 
> {code:java}
> hive -e 'select "hive"'{code}
> and
> {code:java}
> beeline -e 'select "hive"'{code}
> fail with such error:
> {code:java}
> Error: Error while compiling statement: FAILED: ParseException line 1:12 character '<EOF>'
not supported here (state=42000,code=40000){code}
> The reason is that org.apache.commons.cli.Util.stripLeadingAndTrailingQuotes in commons-cli-1.2.jar
strips the trailing quote so the query string is changed to
> {code:java}
> select "hive{code}
> This bug is fixed in commons-cli-1.3.1 and commons-cli-1.4.jar. The workaround is to
overwrite commons-cli-1.2.jar with commons-cli-1.3.1 or commons-cli-1.4.jar.

This message was sent by Atlassian Jira

View raw message