The world's fastest open query engine for sub-second analytics both on and off the data lakehouse. With the flexibility to support nearly any scenario, StarRocks provides best-in-class performance for multi-dimensional analytics, real-time analytics, and ad-hoc queries. A Linux Foundation project.
CREATE MATERIALIZED VIEW view1
DISTRIBUTED BY HASH(`)
REFRESH ASYNC EVERY(INTERVAL 1 MINUTE)
PROPERTIES (
"replicated_storage" = "true",
"replication_num" = "1",
"storage_medium" = "HDD"
)
as select id from a join b join c join d;
There is data in tables a, b, and d, but no data in table c.
explain select id from a join b join c join d , the materialized view has not been rewritten.
code
com/starrocks/sql/optimizer/Optimizer.java:498
//ruleRewriteIterative(tree, rootTaskContext, RuleSetType.PRUNE_EMPTY_OPERATOR)
after annotation, it can be routed to the materialized view.
why?
create table a; create table b; create table c; create table d;
CREATE MATERIALIZED VIEW
view1
DISTRIBUTED BY HASH(`) REFRESH ASYNC EVERY(INTERVAL 1 MINUTE) PROPERTIES ( "replicated_storage" = "true", "replication_num" = "1", "storage_medium" = "HDD" ) as select id from a join b join c join d;There is data in tables a, b, and d, but no data in table c.
explain select id from a join b join c join d , the materialized view has not been rewritten.
code com/starrocks/sql/optimizer/Optimizer.java:498 //ruleRewriteIterative(tree, rootTaskContext, RuleSetType.PRUNE_EMPTY_OPERATOR) after annotation, it can be routed to the materialized view. why?
Steps to reproduce the behavior (Required)
Expected behavior (Required)
Real behavior (Required)
StarRocks version (Required)