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

UNION ALL should create different destination directories for different operands

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.3.0
    • 0.3.0
    • Query Processor
    • None
    • Reviewed
    • Hide
      HIVE-308. UNION ALL: FileSinkOperator now adds files in case the target exists. (zshao)
      Show
      HIVE-308 . UNION ALL: FileSinkOperator now adds files in case the target exists. (zshao)

    Description

      The following query hangs:

       
      select * from (select 1 from zshao_lazy union all select 2 from zshao_lazy) a;
      

      The following query produce wrong results: (one map-reduce job overwrite/cannot overwrite the result of the other)

       
      select * from (select 1 as id from zshao_lazy cluster by id union all select 2 as id from zshao_meta) a;
      

      The reason of both is that the destination directory of the file sink operator conflicts with each other.

      Attachments

        1. HIVE-308.1.patch
          11 kB
          Zheng Shao

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: