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

using coalesce via vector,source column type is int and target column type is bigint,the result of target is zero

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.1.2
    • None
    • Vectorization
    • None

    Description

      sourceTable:

          product_id int;

      ###########################################

      targetTable:

          product_id bigint;

      ##########################################

      sql: 

          insert overwrite table targetTable:
          select 

          ......

           coalesce(product_id,-1),

          ......

          from sourceTable;

      ##########################################

      explain sql :

           UDFToLong(COALESCE(product_id,-1)) (type: bigint)

      ##########################################

      result :

           the column product_id in targetTable is zero, this is wrong result

       

       

      Attachments

        1. HIVE-25169.01.patch
          1 kB
          junnan.yang

        Activity

          People

            Unassigned Unassigned
            junnan.yang junnan.yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: