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.
Don't force cardinality check if only WHEN NOT MATCHED is specified
Add Cardinality Violation check in SQL MERGE stmt