Hive Merge command is not working in Spark HiveContext
I am running hive merge command using Spark HiveContext in 1.6.3 spark version, but it is failing with below error. 2017-09-11 18:30:33 Driver [INFO ] ParseDriver - Parse Completed 2017-09-11 18:30:34 Driver [INFO ] ParseDriver - Parsing command: MERGE INTO emp_with_orc AS T USING SOURCE_TABLE AS S ON T.id = S.id WHEN MATCHED AND (S.operation = 1) THEN UPDATE SET a = S.a,b = S.b WHEN MATCHED AND (S.operation = 2) THEN DELETE WHEN NOT MATCHED THEN INSERT VALUES (S.id, S.a, S.b) 2017-09-11 18:30:34 Driver [ERROR] HiveWriter - Error while executing the merge query. org.apache.spark.sql