Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-10924 add support for MERGE statement
  3. HIVE-15871

Cannot insert into target table because column number/types are different with hive.merge.cardinality.check=false

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.2.0
    • Transactions
    • None

    Description

      Merge statement with WHEN MATCHED and hive.merge.cardinality.check=false
      causes errors like

      FAILED: SemanticException [Error 10044]: Line 11:12 Cannot insert into target table because column number/types are different 'part_0': Table insclause-0 has 3 columns, but query has 4 columns.
      

      Attachments

        1. HIVE-15871.02.patch
          5 kB
          Eugene Koifman
        2. HIVE-15871.03.patch
          5 kB
          Eugene Koifman

        Issue Links

          Activity

            People

              ekoifman Eugene Koifman
              ekoifman Eugene Koifman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: