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

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.2.0
    • Component/s: Transactions
    • Labels:
      None
    • Target Version/s:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: