anigos commented on PR #7886:
URL: https://github.com/apache/iceberg/pull/7886#issuecomment-1971495100

   I am not sure what will be the syntax of it. `iceberg.system.bucket(10, id)` 
not working neither `trg._partition.id_bucket = 1`
   
   ```
   
     spark.sql(""" MERGE INTO iceberg.sample_trg trg USING iceberg.sample_src 
src ON (
                 |  trg.id = src.id
                 |)
                 |AND (trg._partition.id_bucket = 1 and 
trg._partition.id_bucket = 7 )
                 |WHEN MATCHED THEN
                 |UPDATE
                 |SET
                 |  trg.data = src.data,
                 |  trg.category = src.category
                 |  WHEN NOT MATCHED THEN
                 |INSERT
                 |  (id, data, category, ts)
                 |VALUES
                 |  (
                 |    src.id,
                 |    src.data,
                 |    src.category,
                 |    src.ts
                 |  );
                 |  """.stripMargin)
   ```
   
   
   @aokolnychyi @flyrain @RussellSpitzer Looking forward.


-- 
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: issues-unsubscr...@iceberg.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to