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

Long queries does not parse in Hive

    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.1.patch
          0.5 kB
          Zheng Shao
        2. HIVE-415.2.patch
          37 kB
          Zheng Shao
        3. HIVE-415.3.branch-0.3.patch
          65 kB
          Zheng Shao
        4. HIVE-415.3.trunk.patch
          62 kB
          Zheng Shao

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: