Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

predicate doesn't take effect after renaming Iceberg table's column #18855

Closed
iBuddha opened this issue Aug 30, 2023 · 1 comment · Fixed by #19066
Closed

predicate doesn't take effect after renaming Iceberg table's column #18855

iBuddha opened this issue Aug 30, 2023 · 1 comment · Fixed by #19066

Comments

@iBuddha
Copy link

iBuddha commented Aug 30, 2023

After rename an Iceberg table column, in IcebergPageSourceProvider.getParquetTupleDomain the generated TupleDomain doesn't take count of the renaming.

For example, after I renamed city to user_city, with query

SELECT user_city FROM iceberg.presto_dev.my_table
WHERE user_city = 'sh'
LIMIT 10

in IcebergPageSourceProvider.createParquetPageSource, the generated TupleDomain<ColumnDescriptor> parquetTupleDomain is ALL

            TupleDomain<ColumnDescriptor> parquetTupleDomain = getParquetTupleDomain(descriptorsByPath, effectivePredicate);
            TupleDomainParquetPredicate parquetPredicate = buildPredicate(requestedSchema, parquetTupleDomain, descriptorsByPath, UTC);
@iBuddha iBuddha changed the title predicate doesn't effect after renaming Iceberg table's column predicate doesn't take effect after renaming Iceberg table's column Aug 30, 2023
@raunaqmorarka
Copy link
Member

cc: @findinpath @alexjo2144

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants