Skip to content

Commit a9812e2

Browse files
authored
Add functions view (#256)
1 parent d67b6da commit a9812e2

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

dumper/app/src/main/java/com/google/edwmigration/dumper/application/dumper/connector/snowflake/SnowflakeMetadataConnector.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,12 @@ public void addTasksTo(
270270
WarehousesFormat.Header.class,
271271
"SHOW WAREHOUSES",
272272
new TaskVariant(WarehousesFormat.AU_ZIP_ENTRY_NAME, AU));
273+
274+
addSingleSqlTask(
275+
out,
276+
FunctionsViewFormat.Header.class,
277+
"SHOW FUNCTIONS",
278+
new TaskVariant(FunctionsViewFormat.AU_ZIP_ENTRY_NAME, AU));
273279
}
274280
}
275281

dumper/lib-dumper-spi/src/main/java/com/google/edwmigration/dumper/plugin/lib/dumper/spi/SnowflakeMetadataDumpFormat.java

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,31 @@ enum Header {
100100
}
101101
}
102102

103+
interface FunctionsViewFormat {
104+
105+
String AU_ZIP_ENTRY_NAME = "functions_view.csv";
106+
107+
enum Header {
108+
CreatedOn,
109+
Name,
110+
SchemaName,
111+
IsBuiltin,
112+
IsAggregate,
113+
IsAnsi,
114+
MinNumArguments,
115+
MaxNumArguments,
116+
Arguments,
117+
Description,
118+
CatalogName,
119+
IsTableFunction,
120+
ValidForClustering,
121+
IsSecure,
122+
IsExternalFunction,
123+
Language,
124+
IsMemoizable,
125+
}
126+
}
127+
103128
interface TableStorageMetricsFormat {
104129

105130
String AU_ZIP_ENTRY_NAME = "table_storage_metrics-au.csv";

0 commit comments

Comments
 (0)