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

beeline and HIVE CLI do not parse ; in quote properly

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.3.0
    • CLI, Clients
    • None

    Description

      Beeline and Cli have to escape ; in the quote while most other shell scripts need not. For example:
      in Beeline:

      0: jdbc:hive2://localhost:10000> select ';' from tlb1;
      select ';' from tlb1;
      15/12/10 10:45:26 DEBUG TSaslTransport: writing data length: 115
      15/12/10 10:45:26 DEBUG TSaslTransport: CLIENT: reading data length: 3403
      Error: Error while compiling statement: FAILED: ParseException line 1:8 cannot recognize input near '<EOF>' '<EOF>
      

      while in mysql shell:

      mysql> SELECT CONCAT(';', 'foo') FROM test limit 3;
      +--------------------+
      | ;foo               |
      | ;foo               |
      | ;foo               |
      +--------------------+
      3 rows in set (0.00 sec)
      

      Attachments

        1. HIVE-12646.5.patch
          6 kB
          Sahil Takiar
        2. HIVE-12646.4.patch
          6 kB
          Sahil Takiar
        3. HIVE-12646.3.patch
          5 kB
          Sahil Takiar
        4. HIVE-12646.2.patch
          5 kB
          Sahil Takiar
        5. HIVE-12646.patch
          4 kB
          Sahil Takiar

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            stakiar Sahil Takiar Assign to me
            ychena Yongzhi Chen
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment