apache / iceberg

Apache Iceberg
https://iceberg.apache.org/
Apache License 2.0
6.23k stars 2.17k forks source link

iceberg materialized views #8143

Open kaijiezhang0319 opened 1 year ago

kaijiezhang0319 commented 1 year ago

Query engine

Spark 3.2

Question

I am using Spark 3.2 load data from a iceberg materialized views which reference a iceberg table. what i find is : initially the iceberg table has 2 records, the view also has 2 records since it reference the table. Then new record go to the table, i can find that the iceberg table refreshed which get 3 records total, however seems the materialized views NOT refreshed and still keep in 2 records.

It seems we have to reload the view, otherwise it keep in old status.

i want to know, is there any cache logic in iceberg internally so the materialized views NOT refreshed to get the latest snapshot from the iceberg table ? is there any way that we can auto refresh for the materialized view instead of reload it every time. thanks

manuzhang commented 7 months ago

Proposal for materialized view is still under discussion https://github.com/apache/iceberg/issues/6420

github-actions[bot] commented 3 weeks ago

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.