Skip to content

Conversation

@wyxxxcat
Copy link
Contributor

@wyxxxcat wyxxxcat commented Aug 26, 2025

now:

CREATE TABLE t (
    id int,
    test int,
    `k` int
)
DUPLICATE KEY(`id`)
PARTITION BY range(`id`) (
    partition p1 values less than (5),
    partition p2 values less than (10)
)
DISTRIBUTED BY HASH(`id`) BUCKETS 1
PROPERTIES (
    "replication_num" = "1"
);

insert into t values (1,1,1);
insert into t values (1,2,1);
insert into t values (1,3,1);

CREATE MATERIALIZED VIEW mv
BUILD IMMEDIATE REFRESH AUTO
PROPERTIES ('replication_num' = '1')
AS (select test, id from t);
2025-08-26 10:09:31.355 INFO [suite-thread-1] (Suite.groovy:414) - Execute sql: show databases
2025-08-26 10:09:31.360 INFO [suite-thread-1] (Suite.groovy:414) - Execute sql:  show tables from db 
2025-08-26 10:09:31.362 INFO [suite-thread-1] (Suite.groovy:414) - Execute sql: show create table db.mv
2025-08-26 10:09:31.374 INFO [suite-thread-1] (Suite.groovy:414) - Execute sql: show create materialized view db.mv
2025-08-26 10:09:31.378 INFO [suite-thread-1] (check_meta.groovy:51) - select count database: db, table mv
2025-08-26 10:09:31.380 INFO [suite-thread-1] (Suite.groovy:414) - Execute sql:  select /*+ SET_VAR(enable_push_down_no_group_agg=false) */ count(*) from db.`mv` 
2025-08-26 10:09:31.407 INFO [suite-thread-1] (Suite.groovy:414) - Execute sql:  select /*+ SET_VAR(enable_push_down_no_group_agg=false) */ count(*) from db.`mv` 
2025-08-26 10:09:31.432 INFO [suite-thread-1] (Suite.groovy:414) - Execute sql:  select /*+ SET_VAR(enable_push_down_no_group_agg=false) */ count(*) from db.`mv` 
2025-08-26 10:09:31.457 INFO [suite-thread-1] (Suite.groovy:414) - Execute sql:  select /*+ SET_VAR(enable_push_down_no_group_agg=false) */ count(*) from db.`mv` 
2025-08-26 10:09:31.482 INFO [suite-thread-1] (Suite.groovy:414) - Execute sql:  select /*+ SET_VAR(enable_push_down_no_group_agg=false) */ count(*) from db.`mv` 
2025-08-26 10:09:31.508 INFO [suite-thread-1] (Suite.groovy:414) - Execute sql:  select /*+ SET_VAR(enable_push_down_no_group_agg=false) */ count(*) from db.`mv`

@hello-stephen
Copy link
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@wyxxxcat
Copy link
Contributor Author

run buildall

Copy link
Contributor

@dataroaring dataroaring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Aug 26, 2025
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@wyxxxcat
Copy link
Contributor Author

run buildall

@wyxxxcat
Copy link
Contributor Author

run cloud_p0

@wyxxxcat
Copy link
Contributor Author

run p0

@gavinchou gavinchou merged commit b7994f3 into apache:master Aug 29, 2025
25 of 26 checks passed
github-actions bot pushed a commit that referenced this pull request Aug 29, 2025
now:
```
CREATE TABLE t (
    id int,
    test int,
    `k` int
)
DUPLICATE KEY(`id`)
PARTITION BY range(`id`) (
    partition p1 values less than (5),
    partition p2 values less than (10)
)
DISTRIBUTED BY HASH(`id`) BUCKETS 1
PROPERTIES (
    "replication_num" = "1"
);

insert into t values (1,1,1);
insert into t values (1,2,1);
insert into t values (1,3,1);

CREATE MATERIALIZED VIEW mv
BUILD IMMEDIATE REFRESH AUTO
PROPERTIES ('replication_num' = '1')
AS (select test, id from t);
```
```
2025-08-26 10:09:31.355 INFO [suite-thread-1] (Suite.groovy:414) - Execute sql: show databases
2025-08-26 10:09:31.360 INFO [suite-thread-1] (Suite.groovy:414) - Execute sql:  show tables from db 
2025-08-26 10:09:31.362 INFO [suite-thread-1] (Suite.groovy:414) - Execute sql: show create table db.mv
2025-08-26 10:09:31.374 INFO [suite-thread-1] (Suite.groovy:414) - Execute sql: show create materialized view db.mv
2025-08-26 10:09:31.378 INFO [suite-thread-1] (check_meta.groovy:51) - select count database: db, table mv
2025-08-26 10:09:31.380 INFO [suite-thread-1] (Suite.groovy:414) - Execute sql:  select /*+ SET_VAR(enable_push_down_no_group_agg=false) */ count(*) from db.`mv` 
2025-08-26 10:09:31.407 INFO [suite-thread-1] (Suite.groovy:414) - Execute sql:  select /*+ SET_VAR(enable_push_down_no_group_agg=false) */ count(*) from db.`mv` 
2025-08-26 10:09:31.432 INFO [suite-thread-1] (Suite.groovy:414) - Execute sql:  select /*+ SET_VAR(enable_push_down_no_group_agg=false) */ count(*) from db.`mv` 
2025-08-26 10:09:31.457 INFO [suite-thread-1] (Suite.groovy:414) - Execute sql:  select /*+ SET_VAR(enable_push_down_no_group_agg=false) */ count(*) from db.`mv` 
2025-08-26 10:09:31.482 INFO [suite-thread-1] (Suite.groovy:414) - Execute sql:  select /*+ SET_VAR(enable_push_down_no_group_agg=false) */ count(*) from db.`mv` 
2025-08-26 10:09:31.508 INFO [suite-thread-1] (Suite.groovy:414) - Execute sql:  select /*+ SET_VAR(enable_push_down_no_group_agg=false) */ count(*) from db.`mv`
```
github-actions bot pushed a commit that referenced this pull request Aug 29, 2025
now:
```
CREATE TABLE t (
    id int,
    test int,
    `k` int
)
DUPLICATE KEY(`id`)
PARTITION BY range(`id`) (
    partition p1 values less than (5),
    partition p2 values less than (10)
)
DISTRIBUTED BY HASH(`id`) BUCKETS 1
PROPERTIES (
    "replication_num" = "1"
);

insert into t values (1,1,1);
insert into t values (1,2,1);
insert into t values (1,3,1);

CREATE MATERIALIZED VIEW mv
BUILD IMMEDIATE REFRESH AUTO
PROPERTIES ('replication_num' = '1')
AS (select test, id from t);
```
```
2025-08-26 10:09:31.355 INFO [suite-thread-1] (Suite.groovy:414) - Execute sql: show databases
2025-08-26 10:09:31.360 INFO [suite-thread-1] (Suite.groovy:414) - Execute sql:  show tables from db 
2025-08-26 10:09:31.362 INFO [suite-thread-1] (Suite.groovy:414) - Execute sql: show create table db.mv
2025-08-26 10:09:31.374 INFO [suite-thread-1] (Suite.groovy:414) - Execute sql: show create materialized view db.mv
2025-08-26 10:09:31.378 INFO [suite-thread-1] (check_meta.groovy:51) - select count database: db, table mv
2025-08-26 10:09:31.380 INFO [suite-thread-1] (Suite.groovy:414) - Execute sql:  select /*+ SET_VAR(enable_push_down_no_group_agg=false) */ count(*) from db.`mv` 
2025-08-26 10:09:31.407 INFO [suite-thread-1] (Suite.groovy:414) - Execute sql:  select /*+ SET_VAR(enable_push_down_no_group_agg=false) */ count(*) from db.`mv` 
2025-08-26 10:09:31.432 INFO [suite-thread-1] (Suite.groovy:414) - Execute sql:  select /*+ SET_VAR(enable_push_down_no_group_agg=false) */ count(*) from db.`mv` 
2025-08-26 10:09:31.457 INFO [suite-thread-1] (Suite.groovy:414) - Execute sql:  select /*+ SET_VAR(enable_push_down_no_group_agg=false) */ count(*) from db.`mv` 
2025-08-26 10:09:31.482 INFO [suite-thread-1] (Suite.groovy:414) - Execute sql:  select /*+ SET_VAR(enable_push_down_no_group_agg=false) */ count(*) from db.`mv` 
2025-08-26 10:09:31.508 INFO [suite-thread-1] (Suite.groovy:414) - Execute sql:  select /*+ SET_VAR(enable_push_down_no_group_agg=false) */ count(*) from db.`mv`
```
dataroaring pushed a commit that referenced this pull request Aug 29, 2025
… (#55478)

Cherry-picked from #55278

Co-authored-by: Uniqueyou <wangyixuan@selectdb.com>
@gavinchou gavinchou mentioned this pull request Sep 1, 2025
morrySnow pushed a commit that referenced this pull request Sep 5, 2025
… (#55480)

Cherry-picked from #55278

Co-authored-by: Uniqueyou <wangyixuan@selectdb.com>
@morrySnow morrySnow mentioned this pull request Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. dev/3.0.8-merged dev/3.1.1-merged p0_test reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants