diff --git a/schema/APP_SCHEMA.sql b/schema/APP_SCHEMA.sql index b5248a2..8f7381f 100644 --- a/schema/APP_SCHEMA.sql +++ b/schema/APP_SCHEMA.sql @@ -42,7 +42,7 @@ LANGUAGE python RUNTIME_VERSION = '3.8' PACKAGES = ('snowflake-snowpark-python') HANDLER = 'main' -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' AS 'import snowflake.snowpark as snowpark import os import sys @@ -107,13 +107,13 @@ def main(session: snowpark.Session): return df'; -COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."GET_IMPORTS_MAPPINGS"() IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} '; +COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."GET_IMPORTS_MAPPINGS"() IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} '; CREATE OR REPLACE PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."INSERT_JAVA_BUILTINS" ( ) RETURNS VARCHAR(16777216) LANGUAGE SQL -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' AS 'BEGIN TRUNCATE TABLE IF EXISTS JAVA_BUILTINS; @@ -345,14 +345,116 @@ AS 'BEGIN END;'; -COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."INSERT_JAVA_BUILTINS"() IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} '; +COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."INSERT_JAVA_BUILTINS"() IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} '; + +CREATE OR REPLACE PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."REFRESH_MANUAL_EXECUTION" ( +) +RETURNS VARCHAR(16777216) +LANGUAGE SQL +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' +AS 'BEGIN +COPY INTO "ASSESSMENTS_FILES_RAW" ( + "EXECUTION_ID" + , "EXTRACT_DATE" + , "FILE_NAME" + , "INVENTORY_CONTENT" +) FROM ( + SELECT + SPLIT_PART(metadata$filename, ''/'', 1) + , metadata$FILE_LAST_MODIFIED + , SPLIT_PART(metadata$filename, ''/'', 2) + , $1 + FROM @"SMA_EXECUTIONS" + (PATTERN => ''.*\\.json$'') +) +FILE_FORMAT = "JSON"; + +COPY INTO "REPORT_URL" ( + "EXECUTION_ID" + , "FILE_NAME" + , "RELATIVE_REPORT_PATH" +) FROM ( + SELECT + SPLIT_PART(metadata$filename, ''/'', 1) + , SPLIT_PART(metadata$filename, ''/'', 2) + , metadata$filename + + FROM @"SMA_EXECUTIONS" + (PATTERN => ''.*\\.docx$'') +) +FILE_FORMAT = "DOCX_FORMAT"; + +RETURN ''Upload successfully''; + +END;'; + +COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."REFRESH_MANUAL_EXECUTION"() IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} -UWt55BgZybWLGB'; + +CREATE OR REPLACE PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."REFRESH_MANUAL_MAPPINGS" ( +) +RETURNS VARCHAR(16777216) +LANGUAGE SQL +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' +AS 'BEGIN +COPY INTO "ALL_MAPPINGS_CORE_RAW" ( + "VERSION" + , "FOLDER" + , "FILE_NAME" + , "FILE_CONTENT" +) FROM ( + SELECT + SPLIT_PART(metadata$filename, ''/'', 1) + , SPLIT_PART(metadata$filename, ''/'', 2) + , SPLIT_PART(metadata$filename, ''/'', 3) + , $1 + FROM @"SMA_MAPPINGS" + (PATTERN => ''.*\\.json$'') +) +FILE_FORMAT = "JSON"; + +RETURN ''Upload successfully''; + +END;'; + +COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."REFRESH_MANUAL_MAPPINGS"() IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} -mp5BCeQ_p'; + +CREATE OR REPLACE PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."REFRESH_MAPPINGS_CORE" ( +) +RETURNS VARCHAR(16777216) +LANGUAGE SQL +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' +AS 'DECLARE + +TABLE_NAME varchar DEFAULT concat(''STREAM_DATA_'' , DATE_PART(epoch_second, CURRENT_TIMESTAMP())); + +BEGIN +CREATE OR REPLACE TEMPORARY TABLE IDENTIFIER(:TABLE_NAME) ( + VERSION STRING, + FOLDER STRING, + FILE_NAME STRING, + FILE_CONTENT VARIANT + ); +INSERT INTO IDENTIFIER(:TABLE_NAME) SELECT VERSION, FOLDER, FILE_NAME, FILE_CONTENT FROM ALL_MAPPINGS_CORE_STREAM; + +CALL INSERT_MAPPINGS_EWI_CATALOG(:TABLE_NAME); +CALL INSERT_MAPPINGS_LIBRARY(:TABLE_NAME); +CALL INSERT_MAPPINGS_PANDAS(:TABLE_NAME); +CALL INSERT_MAPPINGS_PYSPARK(:TABLE_NAME); +CALL INSERT_MAPPINGS_SPARK(:TABLE_NAME); +CALL INSERT_MAPPINGS_SQL_ELEMENTS(:TABLE_NAME); +CALL INSERT_MAPPINGS_SQL_FUNCTIONS(:TABLE_NAME); + +RETURN ''INSERT_MAPPINGS_CORE_TABLES FINISHED''; +END;'; + +COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."REFRESH_MAPPINGS_CORE"() IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} -'; CREATE OR REPLACE PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."INSERT_MAPPINGS_EWI_CATALOG" ( "TABLE_NAME" VARCHAR(16777216) ) RETURNS VARCHAR(16777216) LANGUAGE SQL -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' AS ' DECLARE EWI_FOLDER := ''EWI''; @@ -393,14 +495,14 @@ INSERT INTO MAPPINGS_CORE_EWI_CATALOG( RETURN ''INSERT_MAPPINGS_EWI_CATALOG FINISHED''; END;'; -COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."INSERT_MAPPINGS_EWI_CATALOG"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} '; +COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."INSERT_MAPPINGS_EWI_CATALOG"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} '; CREATE OR REPLACE PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."INSERT_MAPPINGS_LIBRARY" ( "TABLE_NAME" VARCHAR(16777216) ) RETURNS VARCHAR(16777216) LANGUAGE SQL -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' AS ' DECLARE LIBRARY_FOLDER := ''Library''; @@ -439,14 +541,14 @@ INSERT INTO MAPPINGS_CORE_LIBRARIES( RETURN ''INSERT_MAPPINGS_LIBRARY FINISHED''; END;'; -COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."INSERT_MAPPINGS_LIBRARY"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} '; +COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."INSERT_MAPPINGS_LIBRARY"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} '; CREATE OR REPLACE PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."INSERT_MAPPINGS_PANDAS" ( "TABLE_NAME" VARCHAR(16777216) ) RETURNS VARCHAR(16777216) LANGUAGE SQL -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' AS ' DECLARE PANDAS_FOLDER := ''Pandas''; @@ -500,14 +602,14 @@ INSERT INTO MAPPINGS_CORE_PANDAS( RETURN ''INSERT_MAPPINGS_PANDAS FINISHED''; END;'; -COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."INSERT_MAPPINGS_PANDAS"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} '; +COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."INSERT_MAPPINGS_PANDAS"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} '; CREATE OR REPLACE PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."INSERT_MAPPINGS_PYSPARK" ( "TABLE_NAME" VARCHAR(16777216) ) RETURNS VARCHAR(16777216) LANGUAGE SQL -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' AS ' DECLARE @@ -563,14 +665,14 @@ INSERT INTO MAPPINGS_CORE_PYSPARK( RETURN ''INSERT_MAPPINGS_PYSPARK FINISHED''; END;'; -COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."INSERT_MAPPINGS_PYSPARK"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} '; +COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."INSERT_MAPPINGS_PYSPARK"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} '; CREATE OR REPLACE PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."INSERT_MAPPINGS_SPARK" ( "TABLE_NAME" VARCHAR(16777216) ) RETURNS VARCHAR(16777216) LANGUAGE SQL -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' AS ' DECLARE @@ -626,14 +728,14 @@ WHERE FILE_NAME = :CONVERSION_INVENTORY AND FOLDER = :SCALA_FOLDER RETURN ''INSERT_MAPPINGS_SCALA FINISHED''; END;'; -COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."INSERT_MAPPINGS_SPARK"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} '; +COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."INSERT_MAPPINGS_SPARK"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} '; CREATE OR REPLACE PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."INSERT_MAPPINGS_SQL_ELEMENTS" ( "TABLE_NAME" VARCHAR(16777216) ) RETURNS VARCHAR(16777216) LANGUAGE SQL -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' AS ' DECLARE @@ -677,14 +779,14 @@ INSERT INTO MAPPINGS_CORE_SQL_ELEMENTS( RETURN ''INSERT_MAPPINGS_SQL_ELEMENTS FINISHED''; END;'; -COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."INSERT_MAPPINGS_SQL_ELEMENTS"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} '; +COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."INSERT_MAPPINGS_SQL_ELEMENTS"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} '; CREATE OR REPLACE PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."INSERT_MAPPINGS_SQL_FUNCTIONS" ( "TABLE_NAME" VARCHAR(16777216) ) RETURNS VARCHAR(16777216) LANGUAGE SQL -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' AS ' DECLARE @@ -720,13 +822,13 @@ INSERT INTO MAPPINGS_CORE_SQL_FUNCTIONS( RETURN ''INSERT_MAPPINGS_SQL_FUNCTIONS FINISHED''; END;'; -COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."INSERT_MAPPINGS_SQL_FUNCTIONS"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} -WBmAAc5'; +COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."INSERT_MAPPINGS_SQL_FUNCTIONS"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} -WBmAAc5'; CREATE OR REPLACE PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."INSERT_PIPE_DATA_TO_IAA_TABLES" ( ) RETURNS VARCHAR(16777216) LANGUAGE SQL -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' AS 'DECLARE TABLE_NAME varchar DEFAULT concat(''STREAM_DATA_'' , DATE_PART(epoch_second, CURRENT_TIMESTAMP())); @@ -744,13 +846,13 @@ BEGIN RETURN ''INSERT_PIPE_DATA_TO_IAA_TABLES FINISHED''; END;'; -COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."INSERT_PIPE_DATA_TO_IAA_TABLES"() IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} '; +COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."INSERT_PIPE_DATA_TO_IAA_TABLES"() IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} '; CREATE OR REPLACE PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."INSERT_THIRD_PARTY_CATEGORIES" ( ) RETURNS VARCHAR(16777216) LANGUAGE SQL -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' AS 'BEGIN TRUNCATE TABLE IF EXISTS THIRD_PARTY_CATEGORIES; @@ -759,14 +861,14 @@ AS 'BEGIN (''dbutils'', ''dbutils.*''); END;'; -COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."INSERT_THIRD_PARTY_CATEGORIES"() IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} '; +COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."INSERT_THIRD_PARTY_CATEGORIES"() IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} '; CREATE OR REPLACE PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_DATA_TO_IAA_TABLES" ( "TABLE_NAME" VARCHAR(16777216) ) RETURNS VARCHAR(16777216) LANGUAGE SQL -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' AS ' BEGIN BEGIN TRANSACTION; @@ -798,14 +900,14 @@ BEGIN RETURN ''MERGE_DATA_TO_IAA_TABLES FINISHED''; END;'; -COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_DATA_TO_IAA_TABLES"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} '; +COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_DATA_TO_IAA_TABLES"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} '; CREATE OR REPLACE PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_EXECUTION_INFO" ( "TABLE_NAME" VARCHAR(16777216) ) RETURNS VARCHAR(16777216) LANGUAGE SQL -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' AS ' DECLARE EXECUTION_INFO_INVENTORY_NAME := ''ExecutionInfo.json''; @@ -863,14 +965,14 @@ BEGIN RETURN ''MERGE_EXECUTION_INFO FINISHED''; END;'; -COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_EXECUTION_INFO"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} -ogtShb'; +COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_EXECUTION_INFO"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} -ogtShb'; CREATE OR REPLACE PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_IMPORT_USAGES_INVENTORY" ( "TABLE_NAME" VARCHAR(16777216) ) RETURNS VARCHAR(16777216) LANGUAGE SQL -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' AS ' DECLARE BACKSLASH_TOKEN := ''\\\\''; @@ -932,14 +1034,14 @@ BEGIN RETURN ''MERGE_IMPORT_USAGES_INVENTORY FINISHED''; END;'; -COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_IMPORT_USAGES_INVENTORY"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} '; +COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_IMPORT_USAGES_INVENTORY"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} '; CREATE OR REPLACE PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_INPUT_FILE_INVENTORY" ( "TABLE_NAME" VARCHAR(16777216) ) RETURNS VARCHAR(16777216) LANGUAGE SQL -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' AS ' DECLARE BACKSLASH_TOKEN := ''\\\\''; @@ -992,14 +1094,14 @@ BEGIN RETURN ''MERGE_INPUT_FILES_INVENTORY FINISHED''; END;'; -COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_INPUT_FILE_INVENTORY"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} '; +COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_INPUT_FILE_INVENTORY"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} '; CREATE OR REPLACE PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_IO_FILES_INVENTORY" ( "TABLE_NAME" VARCHAR(16777216) ) RETURNS VARCHAR(16777216) LANGUAGE SQL -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' AS ' DECLARE BACKSLASH_TOKEN := ''\\\\''; @@ -1055,14 +1157,14 @@ BEGIN RETURN ''MERGE_IO_FILES_INVENTORY FINISHED''; END;'; -COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_IO_FILES_INVENTORY"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} -6ZvG1wkxV_n'; +COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_IO_FILES_INVENTORY"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} -6ZvG1wkxV_n'; CREATE OR REPLACE PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_ISSUES_INVENTORY" ( "TABLE_NAME" VARCHAR(16777216) ) RETURNS VARCHAR(16777216) LANGUAGE SQL -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' AS ' DECLARE BACKSLASH_TOKEN := ''\\\\''; @@ -1107,14 +1209,14 @@ BEGIN RETURN ''MERGE_ISSUES_INVENTORY FINISHED''; END;'; -COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_ISSUES_INVENTORY"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} '; +COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_ISSUES_INVENTORY"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} '; CREATE OR REPLACE PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_JOINS_INVENTORY" ( "TABLE_NAME" VARCHAR(16777216) ) RETURNS VARCHAR(16777216) LANGUAGE SQL -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' AS ' DECLARE BACKSLASH_TOKEN := ''\\\\''; @@ -1166,14 +1268,14 @@ BEGIN RETURN ''MERGE_JOINS_INVENTORY FINISHED''; END;'; -COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_JOINS_INVENTORY"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} '; +COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_JOINS_INVENTORY"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} '; CREATE OR REPLACE PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_NOTEBOOK_CELLS_INVENTORY" ( "TABLE_NAME" VARCHAR(16777216) ) RETURNS VARCHAR(16777216) LANGUAGE SQL -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' AS ' DECLARE BACKSLASH_TOKEN := ''\\\\''; @@ -1219,14 +1321,14 @@ BEGIN RETURN ''MERGE_NOTEBOOK_CELLS_INVENTORY FINISHED''; END;'; -COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_NOTEBOOK_CELLS_INVENTORY"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} '; +COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_NOTEBOOK_CELLS_INVENTORY"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} '; CREATE OR REPLACE PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_NOTEBOOK_SIZE_INVENTORY" ( "TABLE_NAME" VARCHAR(16777216) ) RETURNS VARCHAR(16777216) LANGUAGE SQL -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' AS ' DECLARE BACKSLASH_TOKEN := ''\\\\''; @@ -1271,14 +1373,14 @@ BEGIN RETURN ''MERGE_NOTEBOOK_SIZE_INVENTORY FINISHED''; END;'; -COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_NOTEBOOK_SIZE_INVENTORY"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} '; +COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_NOTEBOOK_SIZE_INVENTORY"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} '; CREATE OR REPLACE PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_PACKAGE_INVENTORY" ( "TABLE_NAME" VARCHAR(16777216) ) RETURNS VARCHAR(16777216) LANGUAGE SQL -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' AS ' DECLARE BACKSLASH_TOKEN := ''\\\\''; @@ -1312,14 +1414,14 @@ BEGIN RETURN ''MERGE_PACKAGES_INVENTORY FINISHED''; END;'; -COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_PACKAGE_INVENTORY"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} -PO1vG5dh'; +COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_PACKAGE_INVENTORY"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} -PO1vG5dh'; CREATE OR REPLACE PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_PACKAGE_VERSIONS_INVENTORY" ( "TABLE_NAME" VARCHAR(16777216) ) RETURNS VARCHAR(16777216) LANGUAGE SQL -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' AS ' DECLARE BACKSLASH_TOKEN := ''\\\\''; @@ -1356,14 +1458,14 @@ BEGIN RETURN ''MERGE_PACKAGE_VERSIONS_INVENTORY FINISHED''; END;'; -COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_PACKAGE_VERSIONS_INVENTORY"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} '; +COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_PACKAGE_VERSIONS_INVENTORY"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} '; CREATE OR REPLACE PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_PANDAS_USAGES_INVENTORY" ( "TABLE_NAME" VARCHAR(16777216) ) RETURNS VARCHAR(16777216) LANGUAGE SQL -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' AS ' DECLARE BACKSLASH_TOKEN := ''\\\\''; @@ -1425,14 +1527,14 @@ BEGIN RETURN ''MERGE_PANDAS_USAGES_INVENTORY FINISHED''; END;'; -COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_PANDAS_USAGES_INVENTORY"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} '; +COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_PANDAS_USAGES_INVENTORY"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} '; CREATE OR REPLACE PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_SPARK_USAGES_INVENTORY" ( "TABLE_NAME" VARCHAR(16777216) ) RETURNS VARCHAR(16777216) LANGUAGE SQL -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' AS ' DECLARE BACKSLASH_TOKEN := ''\\\\''; @@ -1494,14 +1596,14 @@ BEGIN RETURN ''MERGE_SPARK_USAGES_INVENTORY FINISHED''; END;'; -COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_SPARK_USAGES_INVENTORY"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} '; +COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_SPARK_USAGES_INVENTORY"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} '; CREATE OR REPLACE PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_SQL_ELEMENTS_INVENTORY" ( "TABLE_NAME" VARCHAR(16777216) ) RETURNS VARCHAR(16777216) LANGUAGE SQL -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' AS ' DECLARE BACKSLASH_TOKEN := ''\\\\''; @@ -1563,14 +1665,14 @@ BEGIN RETURN ''MERGE_SQL_ELEMENTS_INVENTORY FINISHED''; END;'; -COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_SQL_ELEMENTS_INVENTORY"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} -ny__'; +COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_SQL_ELEMENTS_INVENTORY"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} -ny__'; CREATE OR REPLACE PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_SQL_EMBEDDED_USAGES_INVENTORY" ( "TABLE_NAME" VARCHAR(16777216) ) RETURNS VARCHAR(16777216) LANGUAGE SQL -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' AS ' DECLARE BACKSLASH_TOKEN := ''\\\\''; @@ -1625,14 +1727,14 @@ BEGIN RETURN ''MERGE_SQL_EMBEDDED_USAGES_INVENTORY FINISHED''; END;'; -COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_SQL_EMBEDDED_USAGES_INVENTORY"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} '; +COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_SQL_EMBEDDED_USAGES_INVENTORY"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} '; CREATE OR REPLACE PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_SQL_FUNCTIONS_INVENTORY" ( "TABLE_NAME" VARCHAR(16777216) ) RETURNS VARCHAR(16777216) LANGUAGE SQL -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' AS ' DECLARE BACKSLASH_TOKEN := ''\\\\''; @@ -1677,14 +1779,14 @@ BEGIN RETURN ''MERGE_SQL_FUNCTIONS_INVENTORY FINISHED''; END;'; -COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_SQL_FUNCTIONS_INVENTORY"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} -V_PqPg'; +COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_SQL_FUNCTIONS_INVENTORY"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} -V_PqPg'; CREATE OR REPLACE PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_THIRD_PARTY_USAGES_INVENTORY" ( "TABLE_NAME" VARCHAR(16777216) ) RETURNS VARCHAR(16777216) LANGUAGE SQL -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' AS ' DECLARE BACKSLASH_TOKEN := ''\\\\''; @@ -1733,7 +1835,7 @@ BEGIN RETURN ''MERGE_THIRD_PARTY_USAGES_INVENTORY FINISHED''; END;'; -COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_THIRD_PARTY_USAGES_INVENTORY"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} -IRHzk-ly'; +COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."MERGE_THIRD_PARTY_USAGES_INVENTORY"(VARCHAR) IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} -IRHzk-ly'; CREATE OR REPLACE PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."PRE_CALC_DEPENDENCY_ANALYSIS" ( ) @@ -1742,7 +1844,7 @@ LANGUAGE python RUNTIME_VERSION = '3.9' PACKAGES = ('snowflake-snowpark-python', 'modin') HANDLER = 'main' -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' AS 'import re import time import traceback @@ -2011,109 +2113,7 @@ class DependencyAnalysis: res = self.session.table([self.schema_name, "COMPUTED_DEPENDENCIES"]) return ''\\n''.join(log)'; -COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."PRE_CALC_DEPENDENCY_ANALYSIS"() IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} '; - -CREATE OR REPLACE PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."REFRESH_MANUAL_EXECUTION" ( -) -RETURNS VARCHAR(16777216) -LANGUAGE SQL -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' -AS 'BEGIN -COPY INTO "ASSESSMENTS_FILES_RAW" ( - "EXECUTION_ID" - , "EXTRACT_DATE" - , "FILE_NAME" - , "INVENTORY_CONTENT" -) FROM ( - SELECT - SPLIT_PART(metadata$filename, ''/'', 1) - , metadata$FILE_LAST_MODIFIED - , SPLIT_PART(metadata$filename, ''/'', 2) - , $1 - FROM @"SMA_EXECUTIONS" - (PATTERN => ''.*\\.json$'') -) -FILE_FORMAT = "JSON"; - -COPY INTO "REPORT_URL" ( - "EXECUTION_ID" - , "FILE_NAME" - , "RELATIVE_REPORT_PATH" -) FROM ( - SELECT - SPLIT_PART(metadata$filename, ''/'', 1) - , SPLIT_PART(metadata$filename, ''/'', 2) - , metadata$filename - - FROM @"SMA_EXECUTIONS" - (PATTERN => ''.*\\.docx$'') -) -FILE_FORMAT = "DOCX_FORMAT"; - -RETURN ''Upload successfully''; - -END;'; - -COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."REFRESH_MANUAL_EXECUTION"() IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} -UWt55BgZybWLGB'; - -CREATE OR REPLACE PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."REFRESH_MANUAL_MAPPINGS" ( -) -RETURNS VARCHAR(16777216) -LANGUAGE SQL -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' -AS 'BEGIN -COPY INTO "ALL_MAPPINGS_CORE_RAW" ( - "VERSION" - , "FOLDER" - , "FILE_NAME" - , "FILE_CONTENT" -) FROM ( - SELECT - SPLIT_PART(metadata$filename, ''/'', 1) - , SPLIT_PART(metadata$filename, ''/'', 2) - , SPLIT_PART(metadata$filename, ''/'', 3) - , $1 - FROM @"SMA_MAPPINGS" - (PATTERN => ''.*\\.json$'') -) -FILE_FORMAT = "JSON"; - -RETURN ''Upload successfully''; - -END;'; - -COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."REFRESH_MANUAL_MAPPINGS"() IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} -mp5BCeQ_p'; - -CREATE OR REPLACE PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."REFRESH_MAPPINGS_CORE" ( -) -RETURNS VARCHAR(16777216) -LANGUAGE SQL -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' -AS 'DECLARE - -TABLE_NAME varchar DEFAULT concat(''STREAM_DATA_'' , DATE_PART(epoch_second, CURRENT_TIMESTAMP())); - -BEGIN -CREATE OR REPLACE TEMPORARY TABLE IDENTIFIER(:TABLE_NAME) ( - VERSION STRING, - FOLDER STRING, - FILE_NAME STRING, - FILE_CONTENT VARIANT - ); -INSERT INTO IDENTIFIER(:TABLE_NAME) SELECT VERSION, FOLDER, FILE_NAME, FILE_CONTENT FROM ALL_MAPPINGS_CORE_STREAM; - -CALL INSERT_MAPPINGS_EWI_CATALOG(:TABLE_NAME); -CALL INSERT_MAPPINGS_LIBRARY(:TABLE_NAME); -CALL INSERT_MAPPINGS_PANDAS(:TABLE_NAME); -CALL INSERT_MAPPINGS_PYSPARK(:TABLE_NAME); -CALL INSERT_MAPPINGS_SPARK(:TABLE_NAME); -CALL INSERT_MAPPINGS_SQL_ELEMENTS(:TABLE_NAME); -CALL INSERT_MAPPINGS_SQL_FUNCTIONS(:TABLE_NAME); - -RETURN ''INSERT_MAPPINGS_CORE_TABLES FINISHED''; -END;'; - -COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."REFRESH_MAPPINGS_CORE"() IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} -'; +COMMENT ON PROCEDURE "SNOW_DB"."SNOW_SCHEMA"."PRE_CALC_DEPENDENCY_ANALYSIS"() IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} '; CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."ALL_MAPPINGS_CORE_RAW" ( @@ -2123,7 +2123,7 @@ CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."ALL_MAPPINGS_CORE_RAW" , "FILE_CONTENT" VARIANT ) CHANGE_TRACKING = TRUE -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}'; +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}'; CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."ASSESSMENTS_FILES_RAW" ( @@ -2133,7 +2133,7 @@ CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."ASSESSMENTS_FILES_RAW" , "INVENTORY_CONTENT" VARIANT ) CHANGE_TRACKING = TRUE -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}'; +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}'; CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."COMPUTED_DEPENDENCIES" ( @@ -2147,7 +2147,7 @@ CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."COMPUTED_DEPENDENCIES" , "ORIGIN" VARCHAR(16777216) , "SUPPORTED" BOOLEAN ) -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}'; +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}'; CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."EXECUTION_INFO" ( @@ -2170,7 +2170,7 @@ CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."EXECUTION_INFO" , "SQL_READINESS_SCORE" VARCHAR(16777216) , "THIRD_PARTY_READINESS_SCORE" VARCHAR(16777216) ) -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}'; +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}'; CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."IMPORT_USAGES_INVENTORY" ( @@ -2191,7 +2191,7 @@ CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."IMPORT_USAGES_INVENTORY" , "CELL_ID" NUMBER(38,0) , "ORIGIN" VARCHAR(16777216) ) -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}'; +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}'; CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."INPUT_FILES_INVENTORY" ( @@ -2209,7 +2209,7 @@ CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."INPUT_FILES_INVENTORY" , "IGNORED" VARCHAR(16777216) , "ORIGIN_FILE_PATH" VARCHAR(16777216) ) -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}'; +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}'; CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."IO_FILES_INVENTORY" ( @@ -2227,7 +2227,7 @@ CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."IO_FILES_INVENTORY" , "OPTION_SETTINGS" VARCHAR(16777216) , "CELL_ID" NUMBER(38,0) ) -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}'; +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}'; CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."ISSUES_INVENTORY" ( @@ -2239,13 +2239,13 @@ CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."ISSUES_INVENTORY" , "LINE" NUMBER(38,0) , "COLUMN" NUMBER(38,0) ) -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}'; +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}'; CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."JAVA_BUILTINS" ( "NAME" VARCHAR(16777216) ) -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}'; +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}'; CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."JOINS_INVENTORY" ( @@ -2261,14 +2261,14 @@ CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."JOINS_INVENTORY" , "KIND" VARCHAR(16777216) , "CELL_ID" NUMBER(38,0) ) -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}'; +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}'; CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."MANUAL_UPLOADED_ZIPS" ( "EXECUTION_ID" VARCHAR(16777216) , "EXTRACT_DATE" VARCHAR(16777216) ) -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}'; +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}'; CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."MAPPINGS_CORE_EWI_CATALOG" ( @@ -2281,7 +2281,7 @@ CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."MAPPINGS_CORE_EWI_CATALOG" , "GENERAL_DESCRIPTION" VARCHAR(16777216) , "LONG_DESCRIPTION" VARCHAR(16777216) ) -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}'; +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}'; CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."MAPPINGS_CORE_LIBRARIES" ( @@ -2293,7 +2293,7 @@ CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."MAPPINGS_CORE_LIBRARIES" , "STATUS" VARCHAR(16777216) , "TARGET_LIBRARY_NAME" VARCHAR(16777216) ) -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}'; +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}'; CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."MAPPINGS_CORE_PANDAS" ( @@ -2313,7 +2313,7 @@ CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."MAPPINGS_CORE_PANDAS" , "WORKAROUND_COMMENT" VARCHAR(16777216) , "EWICODE" VARCHAR(16777216) ) -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}'; +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}'; CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."MAPPINGS_CORE_PYSPARK" ( @@ -2333,7 +2333,7 @@ CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."MAPPINGS_CORE_PYSPARK" , "WORKAROUND_COMMENT" VARCHAR(16777216) , "EWICODE" VARCHAR(16777216) ) -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}'; +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}'; CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."MAPPINGS_CORE_SPARK" ( @@ -2353,7 +2353,7 @@ CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."MAPPINGS_CORE_SPARK" , "WORKAROUND_COMMENT" VARCHAR(16777216) , "EWICODE" VARCHAR(16777216) ) -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}'; +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}'; CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."MAPPINGS_CORE_SQL_ELEMENTS" ( @@ -2367,7 +2367,7 @@ CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."MAPPINGS_CORE_SQL_ELEMENTS" , "TARGET_ELEMENT" VARCHAR(16777216) , "DEFAULT_MAPPING" VARCHAR(16777216) ) -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}'; +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}'; CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."MAPPINGS_CORE_SQL_FUNCTIONS" ( @@ -2377,7 +2377,7 @@ CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."MAPPINGS_CORE_SQL_FUNCTIONS" , "CATEGORY" VARCHAR(16777216) , "MIGRATION_STATUS" VARCHAR(16777216) ) -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}'; +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}'; CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."NOTEBOOK_CELLS_INVENTORY" ( @@ -2393,7 +2393,7 @@ CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."NOTEBOOK_CELLS_INVENTORY" , "SUPPORTED_STATUS" VARCHAR(16777216) , "PARSING_RESULT" VARCHAR(16777216) ) -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}'; +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}'; CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."NOTEBOOK_SIZE_INVENTORY" ( @@ -2407,7 +2407,7 @@ CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."NOTEBOOK_SIZE_INVENTORY" , "SQL_LOC" VARCHAR(16777216) , "LINE" NUMBER(38,0) ) -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}'; +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}'; CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."PACKAGES_INVENTORY" ( @@ -2417,7 +2417,7 @@ CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."PACKAGES_INVENTORY" , "FILE_ID" VARCHAR(16777216) , "COUNT" NUMBER(38,0) ) -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}'; +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}'; CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."PACKAGE_VERSIONS_INVENTORY" ( @@ -2428,7 +2428,7 @@ CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."PACKAGE_VERSIONS_INVENTORY" , "COUNT" NUMBER(38,0) , "VERSION" VARCHAR(16777216) ) -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}'; +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}'; CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."PANDAS_USAGES_INVENTORY" ( @@ -2449,7 +2449,7 @@ CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."PANDAS_USAGES_INVENTORY" , "CELL_ID" NUMBER(38,0) , "PARAMETERS_INFO" VARIANT ) -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}'; +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}'; CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."REPORT_URL" ( @@ -2457,7 +2457,7 @@ CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."REPORT_URL" , "FILE_NAME" VARCHAR(16777216) , "RELATIVE_REPORT_PATH" VARCHAR(16777216) ) -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}'; +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}'; CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."SPARK_USAGES_INVENTORY" ( @@ -2478,7 +2478,7 @@ CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."SPARK_USAGES_INVENTORY" , "CELL_ID" NUMBER(38,0) , "PARAMETERS_INFO" VARIANT ) -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}'; +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}'; CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."SQL_ELEMENTS_INVENTORY" ( @@ -2502,7 +2502,7 @@ CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."SQL_ELEMENTS_INVENTORY" , "EWI" VARCHAR(16777216) , "OBJECT_REFERENCE" VARIANT ) -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}'; +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}'; CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."SQL_EMBEDDED_USAGES_INVENTORY" ( @@ -2521,7 +2521,7 @@ CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."SQL_EMBEDDED_USAGES_INVENTORY" , "LINE" NUMBER(38,0) , "COLUMN" NUMBER(38,0) ) -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}'; +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}'; CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."SQL_FUNCTIONS_INVENTORY" ( @@ -2535,7 +2535,7 @@ CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."SQL_FUNCTIONS_INVENTORY" , "LINE" NUMBER(38,0) , "COLUMN" NUMBER(38,0) ) -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}'; +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}'; CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."TELEMETRY_EVENTS" ( @@ -2544,7 +2544,7 @@ CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."TELEMETRY_EVENTS" , "NAME" VARCHAR(16777216) , "USER" VARCHAR(16777216) ) -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}'; +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}'; CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."TELEMETRY_EVENTS_ATTRIBUTES" ( @@ -2553,14 +2553,14 @@ CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."TELEMETRY_EVENTS_ATTRIBUTES" , "NAME" VARCHAR(16777216) , "VALUE" VARCHAR(16777216) ) -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}'; +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}'; CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."THIRD_PARTY_CATEGORIES" ( "CATEGORY" VARCHAR(16777216) , "FILTER" VARCHAR(16777216) ) -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}'; +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}'; CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."THIRD_PARTY_USAGES_INVENTORY" ( @@ -2576,7 +2576,7 @@ CREATE OR REPLACE TABLE "SNOW_DB"."SNOW_SCHEMA"."THIRD_PARTY_USAGES_INVENTORY" , "CELL_ID" NUMBER(38,0) , "PARAMETERS_INFO" VARIANT ) -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}'; +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}'; CREATE OR REPLACE STREAM "SNOW_DB"."SNOW_SCHEMA"."ALL_MAPPINGS_CORE_STREAM" ON TABLE "SNOW_DB"."SNOW_SCHEMA"."ALL_MAPPINGS_CORE_RAW"; @@ -2589,11 +2589,11 @@ ON TABLE "SNOW_DB"."SNOW_SCHEMA"."EXECUTION_INFO"; CREATE OR REPLACE TASK "SNOW_DB"."SNOW_SCHEMA"."PRE_CALC_DEPENDENCY_ANALYSIS" WAREHOUSE = "SNOW_WAREHOUSE" -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' WHEN SYSTEM$STREAM_HAS_DATA('EXECUTION_INFO_STREAM') AS BEGIN - CALL CALL PRE_CALC_DEPENDENCY_ANALYSIS(); + CALL PRE_CALC_DEPENDENCY_ANALYSIS(); EXCEPTION WHEN STATEMENT_ERROR THEN RETURN OBJECT_CONSTRUCT('Error type', 'STATEMENT_ERROR', @@ -2604,23 +2604,23 @@ EXCEPTION RETURN 'PRE_CALC_DEPENDENCY_ANALYSIS FINISHED'; END;; -COMMENT ON TASK "SNOW_DB"."SNOW_SCHEMA"."PRE_CALC_DEPENDENCY_ANALYSIS" IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} '; +COMMENT ON TASK "SNOW_DB"."SNOW_SCHEMA"."PRE_CALC_DEPENDENCY_ANALYSIS" IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} '; CREATE OR REPLACE TASK "SNOW_DB"."SNOW_SCHEMA"."REFRESH_MAPPINGS_CORE_TASK" WAREHOUSE = "SNOW_WAREHOUSE" -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' WHEN SYSTEM$STREAM_HAS_DATA('ALL_MAPPINGS_CORE_STREAM') AS CALL REFRESH_MAPPINGS_CORE(); -COMMENT ON TASK "SNOW_DB"."SNOW_SCHEMA"."REFRESH_MAPPINGS_CORE_TASK" IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} '; +COMMENT ON TASK "SNOW_DB"."SNOW_SCHEMA"."REFRESH_MAPPINGS_CORE_TASK" IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} '; CREATE OR REPLACE TASK "SNOW_DB"."SNOW_SCHEMA"."UPDATE_IAA_TABLES_TASK" WAREHOUSE = "SNOW_WAREHOUSE" -COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}}' +COMMENT = '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}}' WHEN SYSTEM$STREAM_HAS_DATA('ASSESSMENTS_FILES_STREAM') AS CALL INSERT_PIPE_DATA_TO_IAA_TABLES(); -COMMENT ON TASK "SNOW_DB"."SNOW_SCHEMA"."UPDATE_IAA_TABLES_TASK" IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":112}} '; +COMMENT ON TASK "SNOW_DB"."SNOW_SCHEMA"."UPDATE_IAA_TABLES_TASK" IS '{"origin":"sf_sit","name":"iaa","version":{"major":0,"minor":1,"patch":113}} ';