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

Long queries does not parse in Hive

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: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 0.3.0
    • Query Processor
    • None
    • Reviewed

    Description

      A query like this won't parse, because the Hive grammar allows backtracking:

      select 1 from mytable UNION ALL
      select 1 from mytable UNION ALL
      select 1 from mytable UNION ALL
      select 1 from mytable UNION ALL
      select 1 from mytable UNION ALL
      
      select 1 from mytable UNION ALL
      select 1 from mytable UNION ALL
      select 1 from mytable UNION ALL
      select 1 from mytable UNION ALL
      select 1 from mytable UNION ALL
      
      select 1 from mytable UNION ALL
      select 1 from mytable UNION ALL
      select 1 from mytable UNION ALL
      select 1 from mytable UNION ALL
      select 1 from mytable UNION ALL
      
      select 1 from mytable UNION ALL
      select 1 from mytable UNION ALL
      select 1 from mytable UNION ALL
      select 1 from mytable UNION ALL
      select 1 from mytable UNION ALL
      
      select 1 from mytable UNION ALL
      select 1 from mytable UNION ALL
      select 1 from mytable UNION ALL
      select 1 from mytable UNION ALL
      select 1 from mytable;
      

      Attachments

        1. HIVE-415.3.trunk.patch
          62 kB
          Zheng Shao
        2. HIVE-415.3.branch-0.3.patch
          65 kB
          Zheng Shao
        3. HIVE-415.2.patch
          37 kB
          Zheng Shao
        4. HIVE-415.1.patch
          0.5 kB
          Zheng Shao

        Issue Links

        Activity

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

          People

            zshao Zheng Shao Assign to me
            zshao Zheng Shao
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment