Open Davis-Zhang-Onehouse opened 3 weeks ago
@beyond1920 Maybe you can share some insights here.
@Davis-Zhang-Onehouse Looks like currently it is not allowing to use reference for main table under extra MATCHED conditions. I confirmed, the query like below works fine -
MERGE INTO hudi_table_mor_2_partition_columns t
USING comprehensive_merge_source s
ON t.id = s.id
WHEN MATCHED
AND s.operation = 'UPDATE_DEPT_MATCH'
AND s.department = ''
THEN
UPDATE SET *
WHEN MATCHED
AND s.operation = 'UPDATE_SALARY'
AND s.salary > 0
THEN
UPDATE SET *
WHEN MATCHED
AND s.operation = 'DELETE'
THEN
DELETE
WHEN NOT MATCHED
AND s.operation = 'INSERT'
AND (
s.department = 'Engineering'
OR s.salary >= 70000
)
THEN
INSERT *
;
Created JIRA to track the fix - https://issues.apache.org/jira/browse/HUDI-8457
Describe the problem you faced Query suite toy example Hudi 0.14 spark 3.4
when we do merge into with extra condition I got error MIT failed
Full stack trace
Full query suite repro the issue
To Reproduce
Steps to reproduce the behavior:
1. 2. 3. 4.
Expected behavior
A clear and concise description of what you expected to happen.
Environment Description
Hudi version :0.14
Spark version :3.4.3
Hive version : 2.3.10
Hadoop version :3.3.4
Storage (HDFS/S3/GCS..) :S3
Running on Docker? (yes/no) : yes
Additional context
Add any other context about the problem here.
Stacktrace
Add the stacktrace of the error.