Skip to content

Commit

Permalink
Add test case for create materialized view
Browse files Browse the repository at this point in the history
  • Loading branch information
chakkk309 committed Nov 21, 2023
1 parent c802690 commit 1918a6a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@
<create-materialized-view sql-case-id="create_materialized_view_with_refresh_fast_for_update_as_with_recursive" />
<create-materialized-view sql-case-id="create_materialized_view_scope_for" />
<create-materialized-view sql-case-id="create_materialized_view_with_refresh_complete" />
<create-materialized-view sql-case-id="create_materialized_view_with_pctfree_storage_build_deferred" />
</sql-parser-test-cases>
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,13 @@
GROUP BY
ROLLUP(calendar_year, calendar_quarter_desc, calendar_month_desc, t.time_id),
ROLLUP(prod_category, prod_subcategory, p.prod_id);" db-types="Oracle" />
<sql-case id="create_materialized_view_with_pctfree_storage_build_deferred" value="CREATE MATERIALIZED VIEW product_sales_mv
PCTFREE 0 TABLESPACE demo
STORAGE (INITIAL 8M)
BUILD DEFERRED
REFRESH COMPLETE ON DEMAND
ENABLE QUERY REWRITE AS
SELECT p.prod_name, SUM(s.amount_sold) AS dollar_sales
FROM sales s, products p WHERE s.prod_id = p.prod_id
GROUP BY p.prod_name;" db-types="Oracle" />
</sql-cases>

0 comments on commit 1918a6a

Please sign in to comment.