rainerschamm opened a new issue, #17151:
URL: https://github.com/apache/iceberg/issues/17151
### Apache Iceberg version
1.11.0 (latest release)
### Query engine
None
### Please describe the bug 🐞
This is a small regression introduced in the very last commit against
RecordUtils.java.
In the method RecordUtils.createTableWriter():
This was changed:
- List<String> idCols = config.tableConfig(tableName).idColumns();
+ List<String> idCols =
config.tableConfig(tableReference.identifier().name()).idColumns();
But it should be the following, since the "namespace" portion of the
original tableName is now lost:
...
List<String> idCols =
config.tableConfig(tableReference.identifier().toString()).idColumns();
...
This can easily be verified by comparing .toString() with .name() in
TableIdentifier.
Also other code example show the correct usage:
For example in Coordinator.java, the table config is read correctly:
...
String branch =
config.tableConfig(tableIdentifier.toString()).commitBranch();
...
### Willingness to contribute
- [ ] I can contribute a fix for this bug independently
- [ ] I would be willing to contribute a fix for this bug with guidance from
the Iceberg community
- [ ] I cannot contribute a fix for this bug at this time
--
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]