You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2020/09/04 02:31:12 UTC
[GitHub] [iceberg] JingsongLi edited a comment on pull request #1353: Core: check that project schema and selected columns cannot be specified at the same time
JingsongLi edited a comment on pull request #1353:
URL: https://github.com/apache/iceberg/pull/1353#issuecomment-686863138
Sorry, It seems that I misunderstood it.
Is the filter applied to the schema of scan or the schema of table?
For example, a table schema: {id -> int, data -> string}, but the schema of a `FilesTableScan` is {content -> int, file_path -> string, file_size -> long, ....}. (Defined in `DataFile`)
So IIUC, filters on `FilesTableScan` should be `file_path=...` or `file_size>.. and file_size<...`. I got it wrong because there was something wrong with the sample in the test class: `TestMetadataTableScans`, in this class, all filters on id...
If `select` on wrong filters, there will be an exception: `Cannot find field 'id' in struct`.
I'll change the code and fix the tests.
----------------------------------------------------------------
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.
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