Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL parsing Enhancement: add more test case for Oracle CREATE MATERIALIZED VIEW LOG sql #29046

Merged
merged 1 commit into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,8 @@
<create-materialized-view-log sql-case-id="create_materialized_view_log_with_table_schema" />
<create-materialized-view-log sql-case-id="create_materialized_view_log_with_object_id" />
<create-materialized-view-log sql-case-id="create_materialized_view_log_with_row_id" />
<create-materialized-view-log sql-case-id="create_materialized_view_log_with_multi_row_id_" />
<create-materialized-view-log sql-case-id="create_materialized_view_log_with_row_id_sequence_including_new" />
<create-materialized-view-log sql-case-id="create_materialized_view_log_with_row_id_multi_sequence" />

</sql-parser-test-cases>
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,15 @@
INCLUDING NEW VALUES;" db-types="Oracle" />
<sql-case id="create_materialized_view_log_with_object_id" value="CREATE MATERIALIZED VIEW LOG ON oe.categories_tab_sys WITH OBJECT ID;" db-types="Oracle" />
<sql-case id="create_materialized_view_log_with_row_id" value="CREATE MATERIALIZED VIEW LOG ON sales WITH ROWID;" db-types="Oracle" />
<sql-case id="create_materialized_view_log_with_multi_row_id_" value="CREATE MATERIALIZED VIEW LOG ON products WITH SEQUENCE, ROWID
(prod_id, prod_name, prod_desc, prod_subcategory, prod_subcategory_desc,
prod_category, prod_category_desc, prod_weight_class, prod_unit_of_measure,
prod_pack_size, supplier_id, prod_status, prod_list_price, prod_min_price)
INCLUDING NEW VALUES;" db-types="Oracle" />
<sql-case id="create_materialized_view_log_with_row_id_sequence_including_new" value="CREATE MATERIALIZED VIEW LOG ON product_information
WITH ROWID, SEQUENCE (list_price, min_price, category_id), PRIMARY KEY
INCLUDING NEW VALUES;" db-types="Oracle" />
<sql-case id="create_materialized_view_log_with_row_id_multi_sequence" value="CREATE MATERIALIZED VIEW LOG ON sales
WITH ROWID, SEQUENCE(amount_sold, time_id, prod_id)
INCLUDING NEW VALUES;" db-types="Oracle" />
</sql-cases>