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

Metadata flush calls does not refresh the cache #24746

Open
ssivaprathee opened this issue Jan 20, 2025 · 4 comments
Open

Metadata flush calls does not refresh the cache #24746

ssivaprathee opened this issue Jan 20, 2025 · 4 comments

Comments

@ssivaprathee
Copy link

ssivaprathee commented Jan 20, 2025

sys flush calls which are submitted to trino are getting completed but the metadata cache in trino is not getting refreshed. This happens intermediately, and this happens only in tables with partitions. Once we refresh the whole the table, the issue is getting resolved

Sample Flush call:

call system.flush_metadata_cache(schema_name=>'schema_name', table_name=>'table_name', partition_columns=>ARRAY['partition_column_name'], partition_values=>ARRAY['partition_column_value'])
@ebyhr
Copy link
Member

ebyhr commented Jan 20, 2025

How did you confirm the cache status?

@ssivaprathee
Copy link
Author

After making the flush call with partitions, we tried querying the same table, it was giving stale data. After that I made the flush call without partitions parameter, data was not stale anymore. It happened around 4 to 5 times in the last month.

@ebyhr
Copy link
Member

ebyhr commented Jan 22, 2025

Could you share the entire steps to reproduce with your catalog config properties?

@ssivaprathee
Copy link
Author

I am not sure, if u can reproduce as this is intermediate, failing sometimes. Its a hive catalog connecting to AWS Glue.

Fire a flush call for a table with partitions with partitions parameters like mentioned above.. $Path wont get refreshed.
Fire a flush call to the same table without partitions parameters, all $Path will be refreshed

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

No branches or pull requests

2 participants