Skip to content

Commit

Permalink
add more SQL test case for create-materialized-view (#29061)
Browse files Browse the repository at this point in the history
  • Loading branch information
chakkk309 authored Nov 17, 2023
1 parent 2bb667f commit 130abc9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@
<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" />
<create-materialized-view sql-case-id="create_materialized_view_with_tablespace_parallel_build_immediate" />
</sql-parser-test-cases>
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,15 @@
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-case id="create_materialized_view_with_tablespace_parallel_build_immediate" value="CREATE MATERIALIZED VIEW sales_by_month_by_state
TABLESPACE example
PARALLEL 4
BUILD IMMEDIATE
REFRESH COMPLETE
ENABLE QUERY REWRITE
AS SELECT t.calendar_month_desc, c.cust_state_province,
SUM(s.amount_sold) AS sum_sales
FROM times t, sales s, customers c
WHERE s.time_id = t.time_id AND s.cust_id = c.cust_id
GROUP BY t.calendar_month_desc, c.cust_state_province;" db-types="Oracle" />
</sql-cases>

0 comments on commit 130abc9

Please sign in to comment.