Skip to content

Commit

Permalink
add more SQL test case
Browse files Browse the repository at this point in the history
  • Loading branch information
chakkk309 committed Nov 12, 2023
1 parent 7308e0c commit 5d990bd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@
<create-materialized-view sql-case-id="create_materialized_view_with_data" />
<create-materialized-view sql-case-id="create_materialized_view_with_refresh_fast" />
<create-materialized-view sql-case-id="create_materialized_view_with_refresh_fast_query_rewrite" />
<create-materialized-view sql-case-id="create_materialized_view_with_refresh_fast_disable_query_rewrite" />
</sql-parser-test-cases>
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,14 @@
SUM(SH.SALES.AMOUNT_SOLD) M1, COUNT(SH.SALES.AMOUNT_SOLD) M2, COUNT(*) M3 FROM SH.SALES, SH.CUSTOMERS
WHERE SH.CUSTOMERS.CUST_ID = SH.SALES.CUST_ID AND (SH.SALES.CUST_ID IN (1012, 1010, 1005))
GROUP BY SH.SALES.PROD_ID, SH.CUSTOMERS.CUST_ID;" db-types="Oracle" />
<sql-case id="create_materialized_view_with_refresh_fast_disable_query_rewrite" value="CREATE MATERIALIZED VIEW SH.CUST_MV
REFRESH FAST WITH ROWID
DISABLE QUERY REWRITE AS
SELECT SH.SALES.PROD_ID C1, SH.CUSTOMERS.CUST_ID C2,
SUM(SH.SALES.AMOUNT_SOLD) M1,
COUNT(SH.SALES.AMOUNT_SOLD) M2,
COUNT(*) M3
FROM SH.SALES, SH.CUSTOMERS
WHERE SH.CUSTOMERS.CUST_ID = SH.SALES.CUST_ID
GROUP BY SH.SALES.PROD_ID, SH.CUSTOMERS.CUST_ID;" db-types="Oracle" />
</sql-cases>

0 comments on commit 5d990bd

Please sign in to comment.