Skip to content

Commit

Permalink
add query of rollup
Browse files Browse the repository at this point in the history
Signed-off-by: smartlxh <[email protected]>
  • Loading branch information
smartlxh committed Nov 25, 2024
1 parent c089eda commit 8aaf8d1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions test/sql/test_lake_rollup/R/test_lake_rollup
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,10 @@ None

INSERT INTO tbl1 VALUES("2020-01-11",6,100);
-- result:
-- !result

SELECT v1 FROM rollup1 [_SYNC_MV_] ORDER BY v1;
-- result:
100
300
-- !result
4 changes: 3 additions & 1 deletion test/sql/test_lake_rollup/T/test_lake_rollup
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ VALUES
ALTER TABLE tbl1 ADD ROLLUP rollup1 (k1, v1) FROM tbl1;
function: wait_alter_table_finish("ROLLUP")

INSERT INTO tbl1 VALUES("2020-01-11",6,100);
INSERT INTO tbl1 VALUES("2020-01-11",6,100);

SELECT v1 FROM rollup1 [_SYNC_MV_] ORDER BY v1;

0 comments on commit 8aaf8d1

Please sign in to comment.