Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-17050

Multiline queries that have comment in middle fail when executed via "beeline -e"

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: None
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Incompatible change

      Description

      After applying HIVE-13864, multiple line queries that have comment at the end of one of the middle lines fail when executed via beeline -e

      $ beeline -u "<jdbc-url>" -e "select 1, --test
      > 2"
      scan complete in 3ms
      ......
      Transaction isolation: TRANSACTION_REPEATABLE_READ
      Error: Error while compiling statement: FAILED: ParseException line 1:9 cannot recognize input near '<EOF>' '<EOF>' '<EOF>' in selection target (state=42000,code=40000)
      Closing: 0: jdbc:hive2://host-10-17-80-194.coe.cloudera.com:10000/default;principal=hive/host-10-17-80-194.coe.cloudera.com@YSHI.COM;ssl=true;sslTrustStore=/certs/hive/hive-keystore.jks;trustStorePassword=cloudera
      

        Attachments

        1. HIVE-17050.4.patch
          3 kB
          Yibing Shi
        2. HIVE-17050.3.PATCH
          3 kB
          Yibing Shi
        3. HIVE-17050.2.patch
          2 kB
          Yibing Shi
        4. HIVE-17050.1.patch
          4 kB
          Yibing Shi

          Issue Links

            Activity

              People

              • Assignee:
                Yibing Yibing Shi
                Reporter:
                Yibing Yibing Shi
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: