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

INSERT query with array<smallint> type failing with SemanticException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.0.0
    • None
    • Hive

    Description

      Steps to reproduce:

      DROP TABLE IF EXISTS default.tbl_oGSJ;
      CREATE TABLE default.tbl_oGSJ (c1 array<smallint>);
      INSERT INTO default.tbl_oGSJ(c1) VALUES (array(55,54)); 

      Error:

      Error: Error while compiling statement: FAILED: SemanticException Line 0:-1 Cannot insert into target table because column number/types are different 'TOK_TMP_FILE': Cannot convert column 0 from array<int> to array<smallint>. (state=42000,code=40000) 

      The same is the case for bigint, tinyint as well

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mby Manthan B Y
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m