You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Query select DISTINCT prcdate from iceberg_catalog_glue_test.dev_db.iceberg_test2;
Insert some data to Athena table
insert into iceberg_test2 values(date('2024-10-03'),10,'test1');
insert into iceberg_test2 values(date('2024-10-05'),10,'test1');
insert into iceberg_test2 values(date('2024-11-03'),10,'test1');
Query result is expected select DISTINCT prcdate from iceberg_catalog_glue_test.dev_db.iceberg_test2;
Further Insert some data to Athena table
insert into iceberg_test2 values(date('2024-11-08'),10,'test1');
After a period of time, possible external table metadata had been refreshed
8. Query result is not expected select DISTINCT prcdate from iceberg_catalog_glue_test.dev_db.iceberg_test2;
Expected behavior (Required)
prcdate
2024-10-03
2024-10-05
2024-11-05
2024-11-08
Real behavior (Required)
prcdate
2024-10-05
2024-10-03
Query result of materialized view is expected SELECT distinct prcdate FROM test1view;
prcdate
2024-10-03
2024-10-05
2024-11-05
Here's the query explain,still materialized view was selected to use and looks one partition is not be queried explain select DISTINCT prcdate from iceberg_catalog_glue_test.dev_db.iceberg_test2
PLAN FRAGMENT 0
OUTPUT EXPRS:1: prcdate
PARTITION: UNPARTITIONED
RESULT SINK
5:EXCHANGE
PLAN FRAGMENT 1
OUTPUT EXPRS:
PARTITION: HASH_PARTITIONED: 1: prcdate
STREAM DATA SINK
EXCHANGE ID: 05
UNPARTITIONED
4:AGGREGATE (merge finalize)
| group by: 1: prcdate
|
3:EXCHANGE
PLAN FRAGMENT 2
OUTPUT EXPRS:
colocate exec groups: ExecGroup{groupId=1, nodeIds=[0, 1, 2]}
PARTITION: RANDOM
STREAM DATA SINK
EXCHANGE ID: 03
HASH_PARTITIONED: 1: prcdate
Fulton-x
changed the title
Query rewrite for iceberg table return partial result
Materialized view query rewrite for iceberg table return partial result
Dec 31, 2024
Fulton-x
changed the title
Materialized view query rewrite for iceberg table return partial result
Query by using materialized view query rewrite for iceberg table return partial result
Dec 31, 2024
Steps to reproduce the behavior (Required)
Create iceberg table in AWS Athena,
Create external catalog in StarRocks and materialized view
Query
select DISTINCT prcdate from iceberg_catalog_glue_test.dev_db.iceberg_test2;
Insert some data to Athena table
Refresh materilized view
REFRESH MATERIALIZED VIEW test1view;
Query result is expected
select DISTINCT prcdate from iceberg_catalog_glue_test.dev_db.iceberg_test2;
Further Insert some data to Athena table
After a period of time, possible external table metadata had been refreshed
8. Query result is not expected
select DISTINCT prcdate from iceberg_catalog_glue_test.dev_db.iceberg_test2;
Expected behavior (Required)
Real behavior (Required)
Query result of materialized view is expected
SELECT distinct prcdate FROM test1view;
Here's the query explain,still materialized view was selected to use and looks one partition is not be queried
explain select DISTINCT prcdate from iceberg_catalog_glue_test.dev_db.iceberg_test2
StarRocks version (Required)
The text was updated successfully, but these errors were encountered: