You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "sivabalan narayanan (Jira)" <ji...@apache.org> on 2025/02/01 05:11:02 UTC

[jira] [Updated] (HUDI-8457) Hudi MIT doesn't support the target table reference in extra MATCHED condition

     [ https://issues.apache.org/jira/browse/HUDI-8457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

sivabalan narayanan updated HUDI-8457:
--------------------------------------
    Fix Version/s: 1.0.2

> Hudi MIT doesn't support the target table reference in extra MATCHED condition
> ------------------------------------------------------------------------------
>
>                 Key: HUDI-8457
>                 URL: https://issues.apache.org/jira/browse/HUDI-8457
>             Project: Apache Hudi
>          Issue Type: Sub-task
>          Components: spark-sql
>            Reporter: Aditya Goenka
>            Priority: Blocker
>             Fix For: 1.0.1, 1.0.2
>
>
> Below MIT query fails with Hudi - 
> ```{{{{}}{}}}
> {{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 t.department = s.department 
> THEN
> UPDATE SET *
> WHEN MATCHED 
> AND s.operation = 'UPDATE_SALARY' THEN
> UPDATE SET * ;}}
> {{```}}
> {{{}if we just remove `{}}}{{{}t.department = s.department{}}}{{{}` from above query it works. It also works if we just remove reference for target table from the same. {}}}{{{}`{}}}{{{}t.department = 'A'{}}}{{{}` doesn't work but {}}}{{{}`s{}}}{{{}.department = 'A'{}}}{{{}` works well.{}}}
>  
> GIthub issue have reproducible code - [https://github.com/apache/hudi/issues/12180]
> Confirmed that DELTA supports these kind of MIT queries but Hudi fails with the Exception.  Also checked with master code and issue still exists.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)