Skip to content
This repository has been archived by the owner on Dec 18, 2021. It is now read-only.

Update getTables to only return materialized views #7

Merged
merged 1 commit into from
Feb 6, 2020
Merged
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
Update getTables to only return materialized views
JLDLaughlin committed Feb 6, 2020
commit 3ad1b8d6dd5bf7251cd2fe1f45c82f342db978d6
Original file line number Diff line number Diff line change
@@ -1266,7 +1266,7 @@ public ResultSet getTables(String catalog, String schemaPattern, String tableNam
headers[7] = header("SELF_REFERENCING_COL_NAME");
headers[8] = header("REF_GENERATION");

String[][] queries = {{"SHOW TABLES", "TABLE"}, {"SHOW VIEWS", "VIEW"}};
String[][] queries = {{"SHOW MATERIALIZED VIEWS", "MATERIALIZED VIEWS"}};
for (String[] select_output : queries) {
String select = select_output[0];
String output = select_output[1];