varun-lakhyani opened a new pull request, #14943:
URL: https://github.com/apache/iceberg/pull/14943

   ## Description
   This resolves the TODO noted in 
`spark/v3.5/spark-runtime/src/integration/java/org/apache/iceberg/spark/TestRoundTrip.java:41`.
   
   Fixed broken `MERGE INTO` example in Spark Getting Started documentation 
that referenced a non-existent `count` column.
   ### What was wrong
   The original example attempted to update a `count` column:
   ```sql
   MERGE INTO local.db.target t USING (SELECT * FROM updates) u ON t.id = u.id
   WHEN MATCHED THEN UPDATE SET t.count = t.count + u.count
   WHEN NOT MATCHED THEN INSERT *;
   ```
   
   However, the table schema defined earlier in the guide is `(id bigint, data 
string)`, making this example invalid.
   
   ### What changed
   Updated the example to use the correct `data` column:
   ```sql
   MERGE INTO local.db.target t USING (SELECT * FROM updates) u ON t.id = u.id
   WHEN MATCHED THEN UPDATE SET t.data = u.data
   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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to