You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "pravin1406 (via GitHub)" <gi...@apache.org> on 2024/05/01 22:13:59 UTC

Re: [I] [SUPPORT] Update few columns & insert all columns during merge [hudi]

pravin1406 commented on issue #9368:
URL: https://github.com/apache/hudi/issues/9368#issuecomment-2089222256

   @codope  I wanted to something similar using merge into. I want to only provide certain set of columns in source table. But due to overriding options in MergeIntoHudiCommand, i'm unable to set reconcile schema to true. I guess it was true, then then merge would have ran.
   
   Any specific reason to forcefully set reconcile to false?
   
   I'm trying to do this where merge_source has only few target columns.
   
   spark.sql("merge into partial_update_rt as target using merge_source as source on target."+recordkey +" = source."+recordkey+" when matched then update set * when not matched then insert * ")
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org