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

empty array will be saved as NULL by insert into select

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.13.1
    • None
    • File Formats
    • None

    Description

      Data is generated by MR parquet, and the data contains empty list.

      When executing the following sql, the emtpy list col of the result is different from the original data.

      `insert into table a as select * from b `

      >select col1 from a where size(col1) = 0 limit 1;
      
       []    // will show []
      
      >insert into table b select col1 from a;
      >select col1 from b;
      
       NULL  // will show NULL
      
      
      

      I was wondering if we should return the same result as before, and should not change the data saved.

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            liupengcheng liupengcheng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: