You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "gustavoatt (via GitHub)" <gi...@apache.org> on 2023/04/14 21:01:50 UTC
[GitHub] [iceberg] gustavoatt opened a new issue, #7351: UnsupportedOperationException when using `IcebergGenerics.read` to read metadata tables
gustavoatt opened a new issue, #7351:
URL: https://github.com/apache/iceberg/issues/7351
### Apache Iceberg version
main (development)
### Query engine
None
### Please describe the bug 🐞
When trying to using `IcebergGenerics.read` to read the `.partitions` table with no compute engines we get an unsupported operation exception. It looks like `IcebergGenerics` does not support reading these tables yet.
```java
Table partitionsTable =
MetadataTableUtils.createMetadataTableInstance(table, MetadataTableType.PARTITIONS);
IcebergGenerics.ScanBuilder scanBuilder =
IcebergGenerics.read(partitionsTable)
.select("partition", "file_count", "record_count", "total_size")
.build();
try (CloseableIterable<Record> closeableIterable = scanBuilder.build()) {
for (Record record : closeableIterable) {
System.out.println(record);
}
}
```
Produces an exception like:
```
Caused by: java.lang.UnsupportedOperationException: Cannot read METADATA file: s3a:/bucket/05337-4f207b9f-13e6-4a17-9cdf-0207af0ea216.metadata.json
at org.apache.iceberg.data.GenericReader.openFile(GenericReader.java:147)
at org.apache.iceberg.data.GenericReader.open(GenericReader.java:76)
at org.apache.iceberg.relocated.com.google.common.collect.Iterators$6.transform(Iterators.java:829)
at org.apache.iceberg.relocated.com.google.common.collect.TransformedIterator.next(TransformedIterator.java:52)
at org.apache.iceberg.io.CloseableIterable$ConcatCloseableIterable$ConcatCloseableIterator.hasNext(CloseableIterable.java:256)
```
--
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-unsubscribe@iceberg.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] UnsupportedOperationException when using `IcebergGenerics.read` to read metadata tables [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #7351:
URL: https://github.com/apache/iceberg/issues/7351#issuecomment-1780223574
This issue has been closed because it has not received any activity in the last 14 days since being marked as 'stale'
--
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-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] UnsupportedOperationException when using `IcebergGenerics.read` to read metadata tables [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #7351:
URL: https://github.com/apache/iceberg/issues/7351#issuecomment-1758719706
This issue has been automatically marked as stale because it has been open for 180 days with no activity. It will be closed in next 14 days if no further activity occurs. To permanently prevent this issue from being considered stale, add the label 'not-stale', but commenting on the issue is preferred when possible.
--
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-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] UnsupportedOperationException when using `IcebergGenerics.read` to read metadata tables [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #7351: UnsupportedOperationException when using `IcebergGenerics.read` to read metadata tables
URL: https://github.com/apache/iceberg/issues/7351
--
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-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org