CodingCat opened a new pull request, #4956:
URL: https://github.com/apache/iceberg/pull/4956
this PR implements the functionality for users to add extra commit metadata
when operating tables with SQL. It also allows users to use multi threading to
commit data to tables while keeping metadata thread local
new usage:
```scala
(0 until 10).foreach { _ =>
new Thread() {
override def run() {
CommitMetadata.withCommitProperties(Map("metadata-key" ->
"thread-local-metadata-value").asJava,
() => {
SparkSession.getActiveSession.get.sql("INSERT INTO target VALUES
(3, 'c'), (4, 'd')");
})
}
}.start()
}
}
```
--
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]