From 6972642a2850791c34076ade0b09d79da0824f55 Mon Sep 17 00:00:00 2001 From: dmaresma Date: Sat, 24 Jan 2026 19:32:12 -0500 Subject: [PATCH 01/28] init snowflake importer --- datacontract/cli.py | 5 + datacontract/imports/importer.py | 1 + datacontract/imports/importer_factory.py | 6 +- datacontract/imports/snowflake_importer.py | 298 +++++++++++++++++++++ 4 files changed, 309 insertions(+), 1 deletion(-) create mode 100644 datacontract/imports/snowflake_importer.py diff --git a/datacontract/cli.py b/datacontract/cli.py index 21872ab01..01023c979 100644 --- a/datacontract/cli.py +++ b/datacontract/cli.py @@ -350,6 +350,10 @@ def import_( Optional[str], typer.Option(help="The identifier for the the data contract."), ] = None, + snowflake_db: Annotated[ + Optional[str], + typer.Option(help="The snowflake database name."), + ] = None, debug: debug_option = None, ): """ @@ -374,6 +378,7 @@ def import_( iceberg_table=iceberg_table, owner=owner, id=id, + snowflake_db=snowflake_db, ) if output is None: console.print(result.to_yaml(), markup=False, soft_wrap=True) diff --git a/datacontract/imports/importer.py b/datacontract/imports/importer.py index 24961fb8c..a87b71719 100644 --- a/datacontract/imports/importer.py +++ b/datacontract/imports/importer.py @@ -38,6 +38,7 @@ class ImportFormat(str, Enum): csv = "csv" protobuf = "protobuf" excel = "excel" + snowflake = "snowflake" @classmethod def get_supported_formats(cls): diff --git a/datacontract/imports/importer_factory.py b/datacontract/imports/importer_factory.py index 6566f18b1..55f2186a0 100644 --- a/datacontract/imports/importer_factory.py +++ b/datacontract/imports/importer_factory.py @@ -119,7 +119,11 @@ def load_module_class(module_path, class_name): module_path="datacontract.imports.excel_importer", class_name="ExcelImporter", ) - +importer_factory.register_lazy_importer( + name=ImportFormat.snowflake, + module_path="datacontract.imports.snowflake_importer", + class_name="SnowflakeImporter", +) importer_factory.register_lazy_importer( name=ImportFormat.json, diff --git a/datacontract/imports/snowflake_importer.py b/datacontract/imports/snowflake_importer.py new file mode 100644 index 000000000..51eb564e0 --- /dev/null +++ b/datacontract/imports/snowflake_importer.py @@ -0,0 +1,298 @@ +import json +import os + +import oyaml as yaml +from open_data_contract_standard.model import OpenDataContractStandard + +from datacontract.imports.importer import Importer +from datacontract.model.exceptions import DataContractException + + +class SnowflakeImporter(Importer): + def import_source(self, source: str, import_args: dict) -> OpenDataContractStandard: + if source is not None: + return import_Snowflake_from_connector( + account=source, + database=import_args.get("snowflake_db"), + schema=import_args.get("schema"), + ) + +def import_Snowflake_from_connector(account: str, database: str, schema: str) -> OpenDataContractStandard: + ## connect to snowflake and get cursor + conn = snowflake_cursor(account, database, schema) + with conn.cursor() as cur: + cur.execute(f"USE SCHEMA {database}.{schema}") + + cur.execute(f"SHOW COLUMNS IN SCHEMA {database}.{schema}") + schema_sfqid = str(cur.sfqid) + cur.execute(f"SHOW PRIMARY KEYS IN SCHEMA {database}.{schema}") + businessKey_sfqid = str(cur.sfqid) + # -- AS + # SET(col, pk) = (SELECT LAST_QUERY_ID(-2), LAST_QUERY_ID(-1));" + cur.execute_async(snowflake_query(schema, schema_sfqid, businessKey_sfqid)) + cur.get_results_from_sfqid(cur.sfqid) + # extract and save ddl script into sql file + json_contract = cur.fetchall() + + return OpenDataContractStandard.from_string(yaml.dump(json.loads(json_contract[0][0]))) + +def snowflake_query(schema:str, schema_sfqid: str, businessKey_sfqid: str) -> str: + sqlStatement = """ + --SHOW COLUMNS; + --SHOW PRIMARY KEYS; + + --SET(schema_sfqid, businessKey_sfqid) = (SELECT LAST_QUERY_ID(-2), LAST_QUERY_ID(-1)); + +WITH INFO_SCHEMA_COLUMNS AS ( + SELECT + "schema_name" as schema_name, + "table_name" as table_name, + "column_name" as "name", + "null?" = 'NOT_NULL' as required, + RIGHT("column_name",3) = '_SK' as "unique", + coalesce(GET_PATH(TRY_PARSE_JSON("comment"),'description'), "comment") as description, + CASE GET_PATH(TRY_PARSE_JSON("data_type"),'type')::string + WHEN 'TEXT' THEN 'string' + WHEN 'FIXED' THEN 'number' + WHEN 'REAL' THEN 'number' + WHEN 'BOOLEAN' THEN 'boolean' + WHEN 'VARIANT' THEN 'object' + WHEN 'TIMESTAMP_TZ' THEN 'timestamp' + WHEN 'TIMESTAMP_NTZ' THEN 'timestamp' + WHEN 'TIMESTAMP_LTZ' THEN 'timestamp' + WHEN 'DATE' THEN 'date' + ELSE 'object' END as LogicalType, -- FIXED NUMBER + CASE GET_PATH(TRY_PARSE_JSON("data_type"),'type')::string + WHEN 'TEXT' THEN CONCAT('STRING','(',GET_PATH(TRY_PARSE_JSON("data_type"),'length'),')') + WHEN 'FIXED' THEN CONCAT('NUMBER','(',GET_PATH(TRY_PARSE_JSON("data_type"),'precision')::string,',',GET_PATH(TRY_PARSE_JSON("data_type"),'scale'),')',' ',"autoincrement") + WHEN 'BOOLEAN' THEN 'BOOLEAN' + WHEN 'TIMESTAMP_NTZ' THEN CONCAT('TIMESTAMP_NTZ','(',GET_PATH(TRY_PARSE_JSON("data_type"),'scale'),')') + ELSE GET_PATH(TRY_PARSE_JSON("data_type"),'type') END as PhysicalType, + IFF (GET_PATH(TRY_PARSE_JSON("data_type"),'type')::string = 'TEXT', GET_PATH(TRY_PARSE_JSON("data_type"),'length')::string , NULL) as logicatTypeOptions_maxlength, + IFF ("column_name" IN ('APP_NAME','CREATE_TS','CREATE_AUDIT_ID','UPDATE_TS','UPDATE_AUDIT_ID','CURRENT_RECORD_IND','DELETED_RECORD_IND', 'FILE_BLOB_PATH', 'FILE_ROW_NUMBER', 'FILE_LAST_MODIFIED', 'IS_VALID_IND', 'INVALID_MESSAGE' ), ARRAY_CONSTRUCT('metadata'), ARRAY_CONSTRUCT() ) as tags + FROM TABLE(RESULT_SCAN('$schema_sfqid')) +) +, +INFO_SCHEMA_CONSTRAINTS AS ( +SELECT + "schema_name" as schema_name, + "table_name" as table_name, + "column_name" as "name", + IFF(RIGHT("column_name",3)='_SK', -1, "key_sequence") as primaryKeyPosition, + true as primaryKey, +FROM(TABLE(RESULT_SCAN('$businessKey_sfqid'))) +), +INFO_SCHEMA_TABLES AS ( +SELECT + TABLE_SCHEMA as table_schema, + TABLE_NAME as "name", + UPPER(CONCAT(T.table_schema,'.',T.table_name)) as physical_name, + NULLIF(coalesce(GET_PATH(TRY_PARSE_JSON(COMMENT),'description'), COMMENT),'') as description, + 'object' as logicalType, + lower(REPLACE(TABLE_TYPE,'BASE ','')) as physicalType +FROM INFORMATION_SCHEMA.TABLES as T +), +PROPERTIES AS ( +SELECT +C.schema_name, +C.table_name, +ARRAY_AGG(OBJECT_CONSTRUCT( + 'id', C."name"||'_propId', + 'name', C."name", + 'required', C.required, + 'unique', C."unique", + 'description', C.description, + 'logicalType', C.LogicalType, + 'logicalTypeOptions',OBJECT_CONSTRUCT('maxLength',logicatTypeOptions_maxlength::number), + 'physicalType', C.PhysicalType, + 'primaryKey', COALESCE(BK.primaryKey,false), + 'primaryKeyPosition', COALESCE(BK.primaryKeyPosition,0), + 'tags', C.tags, + 'customProperties', ARRAY_CONSTRUCT(OBJECT_CONSTRUCT( + 'property','scdType', + 'value', IFF( COALESCE(BK.primaryKey,false) ,0,1)), + OBJECT_CONSTRUCT( + 'property','businessKey', + 'value', IFF( COALESCE(BK.primaryKey,false) AND Right(C."name",3) != '_SK', True, False))) + )) as properties +FROM INFO_SCHEMA_COLUMNS C +LEFT JOIN INFO_SCHEMA_CONSTRAINTS BK ON (C.schema_name = BK.schema_name + AND C.table_name = BK.table_name + AND C."name" = BK."name") +GROUP BY C.schema_name, C.table_name +) +, SCHEMA_DEF AS ( +SELECT +T.table_schema, +ARRAY_AGG( OBJECT_CONSTRUCT( + 'id', T."name" ||'_schId', + 'name',T."name", + 'physicalName',T.physical_name, + 'logicalType',T.logicalType, + 'physicalType',T.physicalType, + 'description',T.description, + 'properties', P.properties)) + as "schema" +FROM PROPERTIES P +LEFT JOIN INFO_SCHEMA_TABLES T ON (P.schema_name = T.table_schema + AND P.table_name = T."name") +WHERE T.table_schema = '{schema}' -- Ignore PUBLIC (default) +GROUP BY T.table_schema +) +SELECT +OBJECT_CONSTRUCT('apiVersion', 'v3.1.0', +'kind','DataContract', +'id', UUID_STRING(), +'name',table_schema, +'version','0.0.1', +'domain','dataplatform', +'status','development', +'description', OBJECT_CONSTRUCT( + 'purpose','This data can be used for analytical purposes', + 'limitations', 'not defined', + 'usage', 'not defined'), +'customProperties', ARRAY_CONSTRUCT( OBJECT_CONSTRUCT('property','owner', 'value','dataplatform')), +'servers', ARRAY_CONSTRUCT( + OBJECT_CONSTRUCT( + 'server','snowflake_dev', + 'type','snowflake', + 'account', LOWER(CONCAT(CURRENT_ACCOUNT_NAME(),'.',CURRENT_REGION())), + 'environment', 'dev', + 'host', LOWER(CONCAT(CURRENT_ACCOUNT_NAME(),'.',CURRENT_REGION(),'.azure.snowflakecomputing.com')), + 'port', 443, + 'database', CURRENT_DATABASE(), + 'warehouse', CURRENT_WAREHOUSE(), + 'schema', table_schema, + 'roles', ARRAY_CONSTRUCT(OBJECT_CONSTRUCT( + 'role', CURRENT_ROLE(), + 'access','write', + 'firstLevelApprovers', CURRENT_USER() + ) + ) + ), + OBJECT_CONSTRUCT( + 'server','snowflake_uat', + 'type','snowflake', + 'account', LOWER(CONCAT(CURRENT_ACCOUNT_NAME(),'.',CURRENT_REGION())), + 'environment', 'uat', + 'host', LOWER(CONCAT(CURRENT_ACCOUNT_NAME(),'.',CURRENT_REGION(),'.azure.snowflakecomputing.com')), + 'port', 443, + 'database', CURRENT_DATABASE(), + 'warehouse', CURRENT_WAREHOUSE(), + 'schema', table_schema, + 'roles', ARRAY_CONSTRUCT(OBJECT_CONSTRUCT( + 'role', CURRENT_ROLE(), + 'access','write', + 'firstLevelApprovers', CURRENT_USER() + ) + ) + ), + OBJECT_CONSTRUCT( + 'server','snowflake', + 'type','snowflake', + 'account', LOWER(CONCAT(CURRENT_ACCOUNT_NAME(),'.',CURRENT_REGION())), + 'environment', 'prd', + 'host', LOWER(CONCAT(CURRENT_ACCOUNT_NAME(),'.',CURRENT_REGION(),'.azure.snowflakecomputing.com')), + 'port', 443, + 'database', CURRENT_DATABASE(), + 'warehouse', CURRENT_WAREHOUSE(), + 'schema', table_schema, + 'roles', ARRAY_CONSTRUCT(OBJECT_CONSTRUCT( + 'role', CURRENT_ROLE(), + 'access','write', + 'firstLevelApprovers', CURRENT_USER() + ) + ) + ) + ), +'schema', "schema") as "DataContract (ODCS)" +FROM SCHEMA_DEF + """ + return sqlStatement.replace("$schema_sfqid", schema_sfqid).replace("$businessKey_sfqid", businessKey_sfqid).replace("{schema}", schema) + +def snowflake_cursor(account: str, databasename: str = "DEMO_DB", schema: str = "PUBLIC"): + try: + from snowflake.connector import connect + except ImportError as e: + raise DataContractException( + type="schema", + result="failed", + name="snowflake extra missing", + reason="Install the extra datacontract-cli[snowflake] to use snowflake", + engine="datacontract", + original_exception=e, + ) + + ### + ## Snowflake connection + ## https://docs.snowflake.com/en/developer-guide/python-connector/python-connector-connect + ### + # gather connection parameters from environment variables + user_connect = os.environ.get("DATACONTRACT_SNOWFLAKE_USERNAME", None) + password_connect = os.environ.get("DATACONTRACT_SNOWFLAKE_PASSWORD", None) + account_connect = account + role_connect = os.environ.get("DATACONTRACT_SNOWFLAKE_ROLE",None) + authenticator_connect = "externalbrowser" if password_connect is None else "snowflake" + warehouse_connect = os.environ.get("DATACONTRACT_SNOWFLAKE_WAREHOUSE", "COMPUTE_WH") + database_connect = databasename or "DEMO_DB" + schema_connect = schema or "PUBLIC" + private_key_file = None + private_key_file_pwd = None + + # build connection + if authenticator_connect == "externalbrowser": + # use external browser auth + conn = connect( + user=user_connect, + account=account_connect, + authenticator=authenticator_connect, + session_parameters={ + "QUERY_TAG": "datacontract-cli import", + "use_openssl_only": False, + }, + warehouse=warehouse_connect, + role=role_connect, + database=database_connect, + schema=schema_connect, + ) + elif private_key_file is not None: + # use private key auth + conn = connect( + user=user_connect, + account=account_connect, + private_key_file=private_key_file, + private_key_fil_pwd=private_key_file_pwd.encode("UTF-8"), + session_parameters={ + "QUERY_TAG": "datacontract-cli import", + "use_openssl_only": False, + }, + warehouse=warehouse_connect, + role=role_connect, + database=database_connect, + schema=schema_connect, + ) + elif os.environ.get("SNOWFLAKE_DEFAULT_CONNECTION_NAME", None) is not None: + # use the default connection defined in the snowflake config file : connections.toml and config.toml + conn = connect( + session_parameters={ + "QUERY_TAG": "datacontract-cli import", + "use_openssl_only": False, + } + ) + else: + # use the login/password auth + conn = connect( + user=user_connect, + password=password_connect, + account=account_connect, + authenticator=authenticator_connect, + session_parameters={ + "QUERY_TAG": "datacontract-cli import", + "use_openssl_only": False, + }, + warehouse=warehouse_connect, + role=role_connect, + database=database_connect, + schema=schema_connect, + ) + return conn From 3b1886b2567b17143bba0e5767d81f51bcae6a2b Mon Sep 17 00:00:00 2001 From: dmaresma Date: Sat, 24 Jan 2026 19:33:26 -0500 Subject: [PATCH 02/28] ruff format fix --- datacontract/imports/snowflake_importer.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/datacontract/imports/snowflake_importer.py b/datacontract/imports/snowflake_importer.py index 51eb564e0..5b83f8f04 100644 --- a/datacontract/imports/snowflake_importer.py +++ b/datacontract/imports/snowflake_importer.py @@ -17,6 +17,7 @@ def import_source(self, source: str, import_args: dict) -> OpenDataContractStand schema=import_args.get("schema"), ) + def import_Snowflake_from_connector(account: str, database: str, schema: str) -> OpenDataContractStandard: ## connect to snowflake and get cursor conn = snowflake_cursor(account, database, schema) @@ -36,7 +37,8 @@ def import_Snowflake_from_connector(account: str, database: str, schema: str) -> return OpenDataContractStandard.from_string(yaml.dump(json.loads(json_contract[0][0]))) -def snowflake_query(schema:str, schema_sfqid: str, businessKey_sfqid: str) -> str: + +def snowflake_query(schema: str, schema_sfqid: str, businessKey_sfqid: str) -> str: sqlStatement = """ --SHOW COLUMNS; --SHOW PRIMARY KEYS; @@ -208,7 +210,12 @@ def snowflake_query(schema:str, schema_sfqid: str, businessKey_sfqid: str) -> st 'schema', "schema") as "DataContract (ODCS)" FROM SCHEMA_DEF """ - return sqlStatement.replace("$schema_sfqid", schema_sfqid).replace("$businessKey_sfqid", businessKey_sfqid).replace("{schema}", schema) + return ( + sqlStatement.replace("$schema_sfqid", schema_sfqid) + .replace("$businessKey_sfqid", businessKey_sfqid) + .replace("{schema}", schema) + ) + def snowflake_cursor(account: str, databasename: str = "DEMO_DB", schema: str = "PUBLIC"): try: @@ -231,7 +238,7 @@ def snowflake_cursor(account: str, databasename: str = "DEMO_DB", schema: str = user_connect = os.environ.get("DATACONTRACT_SNOWFLAKE_USERNAME", None) password_connect = os.environ.get("DATACONTRACT_SNOWFLAKE_PASSWORD", None) account_connect = account - role_connect = os.environ.get("DATACONTRACT_SNOWFLAKE_ROLE",None) + role_connect = os.environ.get("DATACONTRACT_SNOWFLAKE_ROLE", None) authenticator_connect = "externalbrowser" if password_connect is None else "snowflake" warehouse_connect = os.environ.get("DATACONTRACT_SNOWFLAKE_WAREHOUSE", "COMPUTE_WH") database_connect = databasename or "DEMO_DB" From bc0d9a7ad0b898500c2cda065d4a9ac50a26523e Mon Sep 17 00:00:00 2001 From: dmaresma Date: Sat, 24 Jan 2026 19:47:09 -0500 Subject: [PATCH 03/28] add documentation --- README.md | 16 ++++++++++++++++ datacontract/imports/snowflake_importer.py | 18 +++++++++--------- 2 files changed, 25 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index c7ff8da06..33f4cb509 100644 --- a/README.md +++ b/README.md @@ -1437,6 +1437,7 @@ For more information about the Excel template structure, visit the [ODCS Excel T │ [default: None] │ │ --source TEXT The path to the file that │ │ should be imported. │ +│ also snowflake account │ │ [default: None] │ │ --dialect TEXT The SQL dialect to use │ │ when importing SQL files, │ @@ -1500,6 +1501,7 @@ For more information about the Excel template structure, visit the [ODCS Excel T │ [default: None] │ │ --id TEXT The identifier for the the │ │ data contract. │ +│ --snowflake-db TEXT Snowflake target database │ │ [default: None] │ │ --debug --no-debug Enable debug logging │ │ [default: no-debug] │ @@ -1716,6 +1718,20 @@ Example: datacontract import --format protobuf --source "test.proto" ``` +#### snowflake + +Importing from snowflake schema. Specify snowflake workspace account in `source` parameter, database name `snowflake-db` and schema in `schema`. +Multiple authentification are supported, +login/password using the `DATACONTRACT_SNOWFLAKE_ ...` test environement variable are setup, +MFA using external browser is selected when `DATACONTRACT_SNOWFLAKE_PASSWORD` is missing +TOML file authentification using the default profile when `SNOWFLAKE_DEFAULT_CONNECTION_NAME` environment variable is defined + +Example: + +```bash +datacontract import --format snowflake --source account.canada-central.azure --snowflake-db databaseName --schema schemaName +``` + ### catalog ``` diff --git a/datacontract/imports/snowflake_importer.py b/datacontract/imports/snowflake_importer.py index 5b83f8f04..b7c6e15a4 100644 --- a/datacontract/imports/snowflake_importer.py +++ b/datacontract/imports/snowflake_importer.py @@ -247,7 +247,15 @@ def snowflake_cursor(account: str, databasename: str = "DEMO_DB", schema: str = private_key_file_pwd = None # build connection - if authenticator_connect == "externalbrowser": + if os.environ.get("SNOWFLAKE_DEFAULT_CONNECTION_NAME", None) is not None: + # use the default connection defined in the snowflake config file : connections.toml and config.toml + conn = connect( + session_parameters={ + "QUERY_TAG": "datacontract-cli import", + "use_openssl_only": False, + } + ) + elif authenticator_connect == "externalbrowser": # use external browser auth conn = connect( user=user_connect, @@ -278,14 +286,6 @@ def snowflake_cursor(account: str, databasename: str = "DEMO_DB", schema: str = database=database_connect, schema=schema_connect, ) - elif os.environ.get("SNOWFLAKE_DEFAULT_CONNECTION_NAME", None) is not None: - # use the default connection defined in the snowflake config file : connections.toml and config.toml - conn = connect( - session_parameters={ - "QUERY_TAG": "datacontract-cli import", - "use_openssl_only": False, - } - ) else: # use the login/password auth conn = connect( From 86693850d10ebdd40485efacbb637ea963345fef Mon Sep 17 00:00:00 2001 From: dmaresma Date: Sun, 25 Jan 2026 00:20:08 -0500 Subject: [PATCH 04/28] improve export query and fix ordered columns position, disable empty attributes add sort by schema.name and properties by ordinal_position --- datacontract/imports/snowflake_importer.py | 98 ++++++++++++++++++---- 1 file changed, 84 insertions(+), 14 deletions(-) diff --git a/datacontract/imports/snowflake_importer.py b/datacontract/imports/snowflake_importer.py index b7c6e15a4..cb4c20125 100644 --- a/datacontract/imports/snowflake_importer.py +++ b/datacontract/imports/snowflake_importer.py @@ -1,7 +1,11 @@ +from __future__ import annotations + import json import os +from collections import OrderedDict +from typing import Any, Dict -import oyaml as yaml +import yaml from open_data_contract_standard.model import OpenDataContractStandard from datacontract.imports.importer import Importer @@ -35,7 +39,28 @@ def import_Snowflake_from_connector(account: str, database: str, schema: str) -> # extract and save ddl script into sql file json_contract = cur.fetchall() - return OpenDataContractStandard.from_string(yaml.dump(json.loads(json_contract[0][0]))) + # Try to Preserve order when dumping to yaml properties as columns order matters + yaml.add_representer(dict, map_representer, Dumper=yaml.Dumper) + yaml.add_representer(OrderedDict, map_representer, Dumper=yaml.Dumper) + + if len(json_contract) == 0 or len(json_contract[0]) == 0: + raise DataContractException( + type="import", + result="failed", + name="snowflake import", + reason=f"No data contract returned from schema {schema} in database {database} please check connectivity and schema existence", + engine="datacontract", + ) + result_set = json.loads(json_contract[0][0], object_pairs_hook=OrderedDict) + sorted_properties = sort_schema_by_name_properties_by_ordinalPosition(result_set) + + toYaml = yaml.dump(sorted_properties, sort_keys=False) + + return OpenDataContractStandard.from_string(toYaml) + + +def map_representer(dumper, data): + return dumper.represent_dict(getattr(data, "items")()) def snowflake_query(schema: str, schema_sfqid: str, businessKey_sfqid: str) -> str: @@ -71,8 +96,10 @@ def snowflake_query(schema: str, schema_sfqid: str, businessKey_sfqid: str) -> s WHEN 'TIMESTAMP_NTZ' THEN CONCAT('TIMESTAMP_NTZ','(',GET_PATH(TRY_PARSE_JSON("data_type"),'scale'),')') ELSE GET_PATH(TRY_PARSE_JSON("data_type"),'type') END as PhysicalType, IFF (GET_PATH(TRY_PARSE_JSON("data_type"),'type')::string = 'TEXT', GET_PATH(TRY_PARSE_JSON("data_type"),'length')::string , NULL) as logicatTypeOptions_maxlength, - IFF ("column_name" IN ('APP_NAME','CREATE_TS','CREATE_AUDIT_ID','UPDATE_TS','UPDATE_AUDIT_ID','CURRENT_RECORD_IND','DELETED_RECORD_IND', 'FILE_BLOB_PATH', 'FILE_ROW_NUMBER', 'FILE_LAST_MODIFIED', 'IS_VALID_IND', 'INVALID_MESSAGE' ), ARRAY_CONSTRUCT('metadata'), ARRAY_CONSTRUCT() ) as tags - FROM TABLE(RESULT_SCAN('$schema_sfqid')) + IFF ("column_name" IN ('APP_NAME','CREATE_TS','CREATE_AUDIT_ID','UPDATE_TS','UPDATE_AUDIT_ID','CURRENT_RECORD_IND','DELETED_RECORD_IND', 'FILE_BLOB_PATH', 'FILE_ROW_NUMBER', 'FILE_LAST_MODIFIED', 'IS_VALID_IND', 'INVALID_MESSAGE' ), ARRAY_CONSTRUCT('metadata'), NULL ) as tags, + IS_C.ORDINAL_POSITION + FROM TABLE(RESULT_SCAN('$schema_sfqid')) as T + JOIN INFORMATION_SCHEMA.COLUMNS as IS_C ON T."table_name"= IS_C.TABLE_NAME AND T."schema_name" = IS_C.TABLE_SCHEMA AND T."column_name" = IS_C.COLUMN_NAME AND T."database_name" = IS_C.TABLE_CATALOG ) , INFO_SCHEMA_CONSTRAINTS AS ( @@ -105,17 +132,23 @@ def snowflake_query(schema: str, schema_sfqid: str, businessKey_sfqid: str) -> s 'unique', C."unique", 'description', C.description, 'logicalType', C.LogicalType, - 'logicalTypeOptions',OBJECT_CONSTRUCT('maxLength',logicatTypeOptions_maxlength::number), - 'physicalType', C.PhysicalType, - 'primaryKey', COALESCE(BK.primaryKey,false), - 'primaryKeyPosition', COALESCE(BK.primaryKeyPosition,0), - 'tags', C.tags, - 'customProperties', ARRAY_CONSTRUCT(OBJECT_CONSTRUCT( - 'property','scdType', - 'value', IFF( COALESCE(BK.primaryKey,false) ,0,1)), + IFF(logicatTypeOptions_maxlength::number IS NOT NULL,'logicalTypeOptions',NULL), IFF( logicatTypeOptions_maxlength::number IS NOT NULL , OBJECT_CONSTRUCT('maxLength',logicatTypeOptions_maxlength::number), NULL), + 'physicalType', TRIM(C.PhysicalType), + IFF(BK.primaryKey = true, 'primaryKey', NULL), IFF(BK.primaryKey = true,true, NULL), + IFF(BK.primaryKey = true, 'primaryKeyPosition', NULL), IFF(BK.primaryKey = true, BK.primaryKeyPosition, NULL), + IFF(C.tags IS NOT NULL,'tags',NULL) , IFF(C.tags IS NOT NULL, C.tags, NULL), + 'customProperties', ARRAY_CONSTRUCT_COMPACT( + OBJECT_CONSTRUCT( + 'property', 'ordinal_position', + 'value', C.ORDINAL_POSITION + ), OBJECT_CONSTRUCT( + 'property','scdType', + 'value', IFF( COALESCE(BK.primaryKey,false) ,0,1) + ), + IFF(BK.primaryKey = True AND Right(C."name",3) != '_SK', OBJECT_CONSTRUCT( 'property','businessKey', - 'value', IFF( COALESCE(BK.primaryKey,false) AND Right(C."name",3) != '_SK', True, False))) + 'value', True), NULL)) )) as properties FROM INFO_SCHEMA_COLUMNS C LEFT JOIN INFO_SCHEMA_CONSTRAINTS BK ON (C.schema_name = BK.schema_name @@ -254,7 +287,7 @@ def snowflake_cursor(account: str, databasename: str = "DEMO_DB", schema: str = "QUERY_TAG": "datacontract-cli import", "use_openssl_only": False, } - ) + ) elif authenticator_connect == "externalbrowser": # use external browser auth conn = connect( @@ -303,3 +336,40 @@ def snowflake_cursor(account: str, databasename: str = "DEMO_DB", schema: str = schema=schema_connect, ) return conn + + +def _get_ordinal_position_value(col: Dict[str, Any]) -> Any: + """Extract customProperties value where property == 'ordinal_position'.""" + for cp in col.get("customProperties") or []: + if isinstance(cp, dict) and cp.get("property") == "ordinal_position": + return cp.get("value") + return None + + +def sort_schema_by_name_properties_by_ordinalPosition(payload: Dict[str, Any]) -> Dict[str, Any]: + """ + - Does NOT reorder payload['schema']. + - For each schema element (table), sorts table['properties'] by ordinal_position.value. + - Does NOT sort customProperties themselves. + """ + schema = payload.get("schema") + if not isinstance(schema, list): + return payload + new_schema = [] + for table in schema: + props = table.get("properties") + if not isinstance(props, list): + continue + + def col_key(col: Dict[str, Any]): + ord_val = _get_ordinal_position_value(col) + return (ord_val, f"{table.get('name').lower()}.{col.get('name').lower()}") + + props.sort(key=col_key) + table["properties"] = props + new_schema.append(table) + + new_schema.sort(key=lambda t: t.get("name").lower()) + + payload["schema"] = new_schema + return payload From 5e3b0ec8d3133166332879e6bf8d181a54bf19d0 Mon Sep 17 00:00:00 2001 From: dmaresma Date: Sun, 25 Jan 2026 09:06:15 -0500 Subject: [PATCH 05/28] inject account in server.account --- datacontract/imports/snowflake_importer.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/datacontract/imports/snowflake_importer.py b/datacontract/imports/snowflake_importer.py index cb4c20125..7bfd93e6f 100644 --- a/datacontract/imports/snowflake_importer.py +++ b/datacontract/imports/snowflake_importer.py @@ -34,7 +34,7 @@ def import_Snowflake_from_connector(account: str, database: str, schema: str) -> businessKey_sfqid = str(cur.sfqid) # -- AS # SET(col, pk) = (SELECT LAST_QUERY_ID(-2), LAST_QUERY_ID(-1));" - cur.execute_async(snowflake_query(schema, schema_sfqid, businessKey_sfqid)) + cur.execute_async(snowflake_query(account, schema, schema_sfqid, businessKey_sfqid)) cur.get_results_from_sfqid(cur.sfqid) # extract and save ddl script into sql file json_contract = cur.fetchall() @@ -63,7 +63,7 @@ def map_representer(dumper, data): return dumper.represent_dict(getattr(data, "items")()) -def snowflake_query(schema: str, schema_sfqid: str, businessKey_sfqid: str) -> str: +def snowflake_query(account: str, schema: str, schema_sfqid: str, businessKey_sfqid: str) -> str: sqlStatement = """ --SHOW COLUMNS; --SHOW PRIMARY KEYS; @@ -191,9 +191,9 @@ def snowflake_query(schema: str, schema_sfqid: str, businessKey_sfqid: str) -> s OBJECT_CONSTRUCT( 'server','snowflake_dev', 'type','snowflake', - 'account', LOWER(CONCAT(CURRENT_ACCOUNT_NAME(),'.',CURRENT_REGION())), + 'account', '{account}', 'environment', 'dev', - 'host', LOWER(CONCAT(CURRENT_ACCOUNT_NAME(),'.',CURRENT_REGION(),'.azure.snowflakecomputing.com')), + 'host', '{account}.snowflakecomputing.com', 'port', 443, 'database', CURRENT_DATABASE(), 'warehouse', CURRENT_WAREHOUSE(), @@ -208,9 +208,9 @@ def snowflake_query(schema: str, schema_sfqid: str, businessKey_sfqid: str) -> s OBJECT_CONSTRUCT( 'server','snowflake_uat', 'type','snowflake', - 'account', LOWER(CONCAT(CURRENT_ACCOUNT_NAME(),'.',CURRENT_REGION())), + 'account', '{account}', 'environment', 'uat', - 'host', LOWER(CONCAT(CURRENT_ACCOUNT_NAME(),'.',CURRENT_REGION(),'.azure.snowflakecomputing.com')), + 'host', '{account}.snowflakecomputing.com', 'port', 443, 'database', CURRENT_DATABASE(), 'warehouse', CURRENT_WAREHOUSE(), @@ -225,9 +225,9 @@ def snowflake_query(schema: str, schema_sfqid: str, businessKey_sfqid: str) -> s OBJECT_CONSTRUCT( 'server','snowflake', 'type','snowflake', - 'account', LOWER(CONCAT(CURRENT_ACCOUNT_NAME(),'.',CURRENT_REGION())), + 'account', '{account}', 'environment', 'prd', - 'host', LOWER(CONCAT(CURRENT_ACCOUNT_NAME(),'.',CURRENT_REGION(),'.azure.snowflakecomputing.com')), + 'host', '{account}.snowflakecomputing.com', 'port', 443, 'database', CURRENT_DATABASE(), 'warehouse', CURRENT_WAREHOUSE(), @@ -247,6 +247,7 @@ def snowflake_query(schema: str, schema_sfqid: str, businessKey_sfqid: str) -> s sqlStatement.replace("$schema_sfqid", schema_sfqid) .replace("$businessKey_sfqid", businessKey_sfqid) .replace("{schema}", schema) + .replace("{account}", account) ) From 6f4eb697e31ac6892a8f00cb686e24cb090727ef Mon Sep 17 00:00:00 2001 From: dmaresma Date: Sun, 25 Jan 2026 09:45:37 -0500 Subject: [PATCH 06/28] improve connector login --- datacontract/imports/snowflake_importer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacontract/imports/snowflake_importer.py b/datacontract/imports/snowflake_importer.py index 7bfd93e6f..1acc5f9bf 100644 --- a/datacontract/imports/snowflake_importer.py +++ b/datacontract/imports/snowflake_importer.py @@ -281,7 +281,7 @@ def snowflake_cursor(account: str, databasename: str = "DEMO_DB", schema: str = private_key_file_pwd = None # build connection - if os.environ.get("SNOWFLAKE_DEFAULT_CONNECTION_NAME", None) is not None: + if os.environ.get("SNOWFLAKE_DEFAULT_CONNECTION_NAME", None) is not None and os.environ.get("DATACONTRACT_SNOWFLAKE_PASSWORD", None) is None: # use the default connection defined in the snowflake config file : connections.toml and config.toml conn = connect( session_parameters={ From 0fa07e32b903a0aedc0923d7f34d85880a9288c9 Mon Sep 17 00:00:00 2001 From: dmaresma Date: Sun, 25 Jan 2026 09:45:51 -0500 Subject: [PATCH 07/28] ruff --- datacontract/imports/snowflake_importer.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/datacontract/imports/snowflake_importer.py b/datacontract/imports/snowflake_importer.py index 1acc5f9bf..8b58a0704 100644 --- a/datacontract/imports/snowflake_importer.py +++ b/datacontract/imports/snowflake_importer.py @@ -281,7 +281,10 @@ def snowflake_cursor(account: str, databasename: str = "DEMO_DB", schema: str = private_key_file_pwd = None # build connection - if os.environ.get("SNOWFLAKE_DEFAULT_CONNECTION_NAME", None) is not None and os.environ.get("DATACONTRACT_SNOWFLAKE_PASSWORD", None) is None: + if ( + os.environ.get("SNOWFLAKE_DEFAULT_CONNECTION_NAME", None) is not None + and os.environ.get("DATACONTRACT_SNOWFLAKE_PASSWORD", None) is None + ): # use the default connection defined in the snowflake config file : connections.toml and config.toml conn = connect( session_parameters={ From 778223c79346178050d8fc86e339ca08b89599e1 Mon Sep 17 00:00:00 2001 From: dmaresma Date: Tue, 27 Jan 2026 09:56:01 -0500 Subject: [PATCH 08/28] rename customProperties ordinalPosition --- datacontract/imports/snowflake_importer.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/datacontract/imports/snowflake_importer.py b/datacontract/imports/snowflake_importer.py index 8b58a0704..355824f5a 100644 --- a/datacontract/imports/snowflake_importer.py +++ b/datacontract/imports/snowflake_importer.py @@ -139,7 +139,7 @@ def snowflake_query(account: str, schema: str, schema_sfqid: str, businessKey_sf IFF(C.tags IS NOT NULL,'tags',NULL) , IFF(C.tags IS NOT NULL, C.tags, NULL), 'customProperties', ARRAY_CONSTRUCT_COMPACT( OBJECT_CONSTRUCT( - 'property', 'ordinal_position', + 'property', 'ordinalPosition', 'value', C.ORDINAL_POSITION ), OBJECT_CONSTRUCT( @@ -343,9 +343,9 @@ def snowflake_cursor(account: str, databasename: str = "DEMO_DB", schema: str = def _get_ordinal_position_value(col: Dict[str, Any]) -> Any: - """Extract customProperties value where property == 'ordinal_position'.""" + """Extract customProperties value where property == 'ordinalPosition'.""" for cp in col.get("customProperties") or []: - if isinstance(cp, dict) and cp.get("property") == "ordinal_position": + if isinstance(cp, dict) and cp.get("property") == "ordinalPosition": return cp.get("value") return None @@ -353,7 +353,7 @@ def _get_ordinal_position_value(col: Dict[str, Any]) -> Any: def sort_schema_by_name_properties_by_ordinalPosition(payload: Dict[str, Any]) -> Dict[str, Any]: """ - Does NOT reorder payload['schema']. - - For each schema element (table), sorts table['properties'] by ordinal_position.value. + - For each schema element (table), sorts table['properties'] by property ordinalPosition value. - Does NOT sort customProperties themselves. """ schema = payload.get("schema") From d3201fc413b6da37a16d2c77f9fa1c68e25385c6 Mon Sep 17 00:00:00 2001 From: dmaresma Date: Sun, 1 Feb 2026 10:18:56 -0500 Subject: [PATCH 09/28] refactor snowflake-db and add test_import_snowflake --- README.md | 4 +- datacontract/cli.py | 4 +- datacontract/imports/snowflake_importer.py | 2 +- tests/test_import_snowflake.py | 48 ++++++++++++++++++++++ 4 files changed, 53 insertions(+), 5 deletions(-) create mode 100644 tests/test_import_snowflake.py diff --git a/README.md b/README.md index 33f4cb509..48be1d878 100644 --- a/README.md +++ b/README.md @@ -1720,7 +1720,7 @@ datacontract import --format protobuf --source "test.proto" #### snowflake -Importing from snowflake schema. Specify snowflake workspace account in `source` parameter, database name `snowflake-db` and schema in `schema`. +Importing from snowflake schema. Specify snowflake workspace account in `source` parameter, database name `database` and schema in `schema`. Multiple authentification are supported, login/password using the `DATACONTRACT_SNOWFLAKE_ ...` test environement variable are setup, MFA using external browser is selected when `DATACONTRACT_SNOWFLAKE_PASSWORD` is missing @@ -1729,7 +1729,7 @@ TOML file authentification using the default profile when `SNOWFLAKE_DEFAULT_CON Example: ```bash -datacontract import --format snowflake --source account.canada-central.azure --snowflake-db databaseName --schema schemaName +datacontract import --format snowflake --source account.canada-central.azure --database databaseName --schema schemaName ``` diff --git a/datacontract/cli.py b/datacontract/cli.py index 01023c979..eb1bcbb7c 100644 --- a/datacontract/cli.py +++ b/datacontract/cli.py @@ -350,7 +350,7 @@ def import_( Optional[str], typer.Option(help="The identifier for the the data contract."), ] = None, - snowflake_db: Annotated[ + database: Annotated[ Optional[str], typer.Option(help="The snowflake database name."), ] = None, @@ -378,7 +378,7 @@ def import_( iceberg_table=iceberg_table, owner=owner, id=id, - snowflake_db=snowflake_db, + snowflake_db=database, ) if output is None: console.print(result.to_yaml(), markup=False, soft_wrap=True) diff --git a/datacontract/imports/snowflake_importer.py b/datacontract/imports/snowflake_importer.py index 355824f5a..341ded217 100644 --- a/datacontract/imports/snowflake_importer.py +++ b/datacontract/imports/snowflake_importer.py @@ -17,7 +17,7 @@ def import_source(self, source: str, import_args: dict) -> OpenDataContractStand if source is not None: return import_Snowflake_from_connector( account=source, - database=import_args.get("snowflake_db"), + database=import_args.get("database"), schema=import_args.get("schema"), ) diff --git a/tests/test_import_snowflake.py b/tests/test_import_snowflake.py new file mode 100644 index 000000000..6677083b9 --- /dev/null +++ b/tests/test_import_snowflake.py @@ -0,0 +1,48 @@ +from typer.testing import CliRunner + +from datacontract.cli import app +from datacontract.data_contract import DataContract + +# logging.basicConfig(level=logging.INFO, force=True) + +# @pytest.mark.skipif(os.environ.get("DATACONTRACT_SNOWFLAKE_USERNAME") is None, reason="Requires DATACONTRACT_SNOWFLAKE_USERNAME to be set") +# def test_cli(): +# load_dotenv(override=True) +# # os.environ['DATACONTRACT_SNOWFLAKE_USERNAME'] = "xxx" +# # os.environ['DATACONTRACT_SNOWFLAKE_PASSWORD'] = "xxx" +# # os.environ['DATACONTRACT_SNOWFLAKE_ROLE'] = "xxx" +# # os.environ['DATACONTRACT_SNOWFLAKE_WAREHOUSE'] = "COMPUTE_WH" +# runner = CliRunner() +# result = runner.invoke( +# app, +# [ +# "import", +# "--format", +# "snowflake", +# "--source", +# "workspace.canada-central.azure", +# "--schema", +# "PUBLIC", +# "--database", +# "DEMO_DB" +# ], +# ) +# assert result.exit_code == 0 + +# @pytest.mark.skipif(os.environ.get("DATACONTRACT_SNOWFLAKE_USERNAME") is None, reason="Requires DATACONTRACT_SNOWFLAKE_USERNAME to be set") +# def test_import_source(): +# load_dotenv(override=True) +# # os.environ['DATACONTRACT_SNOWFLAKE_USERNAME'] = "xxx" +# # os.environ['DATACONTRACT_SNOWFLAKE_PASSWORD'] = "xxx" +# # os.environ['DATACONTRACT_SNOWFLAKE_ROLE'] = "xxx" +# # os.environ['DATACONTRACT_SNOWFLAKE_WAREHOUSE'] = "COMPUTE_WH" +# result = DataContract.import_source("snowflake", { +# "source": "workspace.canada-central.azure", +# "schema": "PUBLIC", +# "database": "DEMO_DB" +# }) + +# print("Result:\n", result.to_yaml()) +# with open("fixtures/snowflake/import/datacontract.yaml") as file: +# expected = file.read() +# assert yaml.safe_load(result.to_yaml()) == yaml.safe_load(expected) From 9cb08bb10c5654d8e0e08ea00fdd119faa93aaa9 Mon Sep 17 00:00:00 2001 From: dmaresma Date: Sun, 1 Feb 2026 10:20:53 -0500 Subject: [PATCH 10/28] ruff lint applied --- tests/test_import_snowflake.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_import_snowflake.py b/tests/test_import_snowflake.py index 6677083b9..9fd4e9fb7 100644 --- a/tests/test_import_snowflake.py +++ b/tests/test_import_snowflake.py @@ -1,7 +1,7 @@ -from typer.testing import CliRunner +#from typer.testing import CliRunner -from datacontract.cli import app -from datacontract.data_contract import DataContract +#from datacontract.cli import app +#from datacontract.data_contract import DataContract # logging.basicConfig(level=logging.INFO, force=True) From d3330d4784fc7bdda43dfac1a33c27a533493338 Mon Sep 17 00:00:00 2001 From: dmaresma Date: Sun, 1 Feb 2026 10:31:03 -0500 Subject: [PATCH 11/28] typo during refactor --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 48be1d878..b70762654 100644 --- a/README.md +++ b/README.md @@ -1501,7 +1501,7 @@ For more information about the Excel template structure, visit the [ODCS Excel T │ [default: None] │ │ --id TEXT The identifier for the the │ │ data contract. │ -│ --snowflake-db TEXT Snowflake target database │ +│ --database TEXT Snowflake target database │ │ [default: None] │ │ --debug --no-debug Enable debug logging │ │ [default: no-debug] │ From f57bfec05cfcbfa8a2a23c7e7da7501eb341545a Mon Sep 17 00:00:00 2001 From: dmaresma Date: Mon, 2 Feb 2026 15:42:22 -0500 Subject: [PATCH 12/28] force string, char as varchar for physicalType --- datacontract/imports/snowflake_importer.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/datacontract/imports/snowflake_importer.py b/datacontract/imports/snowflake_importer.py index 341ded217..8677d9f47 100644 --- a/datacontract/imports/snowflake_importer.py +++ b/datacontract/imports/snowflake_importer.py @@ -80,6 +80,8 @@ def snowflake_query(account: str, schema: str, schema_sfqid: str, businessKey_sf coalesce(GET_PATH(TRY_PARSE_JSON("comment"),'description'), "comment") as description, CASE GET_PATH(TRY_PARSE_JSON("data_type"),'type')::string WHEN 'TEXT' THEN 'string' + WHEN 'STRING' THEN 'string' + WHEN 'CHAR' THEN 'string' WHEN 'FIXED' THEN 'number' WHEN 'REAL' THEN 'number' WHEN 'BOOLEAN' THEN 'boolean' @@ -90,7 +92,9 @@ def snowflake_query(account: str, schema: str, schema_sfqid: str, businessKey_sf WHEN 'DATE' THEN 'date' ELSE 'object' END as LogicalType, -- FIXED NUMBER CASE GET_PATH(TRY_PARSE_JSON("data_type"),'type')::string - WHEN 'TEXT' THEN CONCAT('STRING','(',GET_PATH(TRY_PARSE_JSON("data_type"),'length'),')') + WHEN 'TEXT' THEN CONCAT('VARCHAR','(',GET_PATH(TRY_PARSE_JSON("data_type"),'length'),')') + WHEN 'STRING' THEN CONCAT('VARCHAR','(',GET_PATH(TRY_PARSE_JSON("data_type"),'length'),')') + WHEN 'CHAR' THEN CONCAT('VARCHAR','(',GET_PATH(TRY_PARSE_JSON("data_type"),'length'),')') WHEN 'FIXED' THEN CONCAT('NUMBER','(',GET_PATH(TRY_PARSE_JSON("data_type"),'precision')::string,',',GET_PATH(TRY_PARSE_JSON("data_type"),'scale'),')',' ',"autoincrement") WHEN 'BOOLEAN' THEN 'BOOLEAN' WHEN 'TIMESTAMP_NTZ' THEN CONCAT('TIMESTAMP_NTZ','(',GET_PATH(TRY_PARSE_JSON("data_type"),'scale'),')') From 402b0416517449bf0d3c47633722f5e0304f98d5 Mon Sep 17 00:00:00 2001 From: dmaresma Date: Sat, 7 Feb 2026 22:56:41 -0500 Subject: [PATCH 13/28] add columns tags, customProperties: precisition, scale, autoIncrement, defaultValue, Roles in server --- datacontract/imports/snowflake_importer.py | 104 +++++++++++---------- 1 file changed, 53 insertions(+), 51 deletions(-) diff --git a/datacontract/imports/snowflake_importer.py b/datacontract/imports/snowflake_importer.py index 8677d9f47..0b4251137 100644 --- a/datacontract/imports/snowflake_importer.py +++ b/datacontract/imports/snowflake_importer.py @@ -70,7 +70,29 @@ def snowflake_query(account: str, schema: str, schema_sfqid: str, businessKey_sf --SET(schema_sfqid, businessKey_sfqid) = (SELECT LAST_QUERY_ID(-2), LAST_QUERY_ID(-1)); -WITH INFO_SCHEMA_COLUMNS AS ( +WITH Server_Roles AS ( + SELECT P.TABLE_SCHEMA as table_schema, ARRAY_AGG( + OBJECT_CONSTRUCT( + 'role', P.GRANTEE, + 'access',LOWER(P.PRIVILEGE_TYPE), + 'firstLevelApprovers', P.GRANTOR + )) as Roles + FROM information_schema.table_privileges P + WHERE P.GRANTED_TO = 'ROLE' AND P.TABLE_SCHEMA = '{schema}' + GROUP BY P.TABLE_CATALOG, P.TABLE_SCHEMA +), +TagRef AS ( + SELECT + OBJECT_SCHEMA, + OBJECT_NAME, + COLUMN_NAME, + ARRAY_AGG(TAG_VALUE) as Tags + FROM SNOWFLAKE.ACCOUNT_USAGE.TAG_REFERENCES + WHERE OBJECT_SCHEMA = CURRENT_SCHEMA() + AND OBJECT_DATABASE = CURRENT_DATABASE() + GROUP BY OBJECT_SCHEMA, OBJECT_NAME, COLUMN_NAME +), +INFO_SCHEMA_COLUMNS AS ( SELECT "schema_name" as schema_name, "table_name" as table_name, @@ -100,10 +122,15 @@ def snowflake_query(account: str, schema: str, schema_sfqid: str, businessKey_sf WHEN 'TIMESTAMP_NTZ' THEN CONCAT('TIMESTAMP_NTZ','(',GET_PATH(TRY_PARSE_JSON("data_type"),'scale'),')') ELSE GET_PATH(TRY_PARSE_JSON("data_type"),'type') END as PhysicalType, IFF (GET_PATH(TRY_PARSE_JSON("data_type"),'type')::string = 'TEXT', GET_PATH(TRY_PARSE_JSON("data_type"),'length')::string , NULL) as logicatTypeOptions_maxlength, - IFF ("column_name" IN ('APP_NAME','CREATE_TS','CREATE_AUDIT_ID','UPDATE_TS','UPDATE_AUDIT_ID','CURRENT_RECORD_IND','DELETED_RECORD_IND', 'FILE_BLOB_PATH', 'FILE_ROW_NUMBER', 'FILE_LAST_MODIFIED', 'IS_VALID_IND', 'INVALID_MESSAGE' ), ARRAY_CONSTRUCT('metadata'), NULL ) as tags, - IS_C.ORDINAL_POSITION + IFF ("column_name" IN ('APP_NAME','CREATE_TS','CREATE_AUDIT_ID','UPDATE_TS','UPDATE_AUDIT_ID','CURRENT_RECORD_IND','DELETED_RECORD_IND', 'FILE_BLOB_PATH', 'FILE_ROW_NUMBER', 'FILE_LAST_MODIFIED', 'IS_VALID_IND', 'INVALID_MESSAGE' ), ARRAY_CONSTRUCT('metadata'), TR.Tags ) as tags, + IS_C.ORDINAL_POSITION, + GET_PATH(TRY_PARSE_JSON("data_type"),'precision') as CP_precision, + GET_PATH(TRY_PARSE_JSON("data_type"),'scale') as CP_scale, + "autoincrement" as CP_autoIncrement, + "default" as CP_default, FROM TABLE(RESULT_SCAN('$schema_sfqid')) as T JOIN INFORMATION_SCHEMA.COLUMNS as IS_C ON T."table_name"= IS_C.TABLE_NAME AND T."schema_name" = IS_C.TABLE_SCHEMA AND T."column_name" = IS_C.COLUMN_NAME AND T."database_name" = IS_C.TABLE_CATALOG + LEFT JOIN TagRef TR ON T."table_name" = TR.OBJECT_NAME AND T."schema_name" = TR.OBJECT_SCHEMA AND T."column_name" = TR.COLUMN_NAME ) , INFO_SCHEMA_CONSTRAINTS AS ( @@ -117,9 +144,9 @@ def snowflake_query(account: str, schema: str, schema_sfqid: str, businessKey_sf ), INFO_SCHEMA_TABLES AS ( SELECT - TABLE_SCHEMA as table_schema, - TABLE_NAME as "name", - UPPER(CONCAT(T.table_schema,'.',T.table_name)) as physical_name, + T.TABLE_SCHEMA as table_schema, + T.TABLE_NAME as "name", + UPPER(CONCAT(T.TABLE_SCHEMA,'.',T.TABLE_NAME)) as physical_name, NULLIF(coalesce(GET_PATH(TRY_PARSE_JSON(COMMENT),'description'), COMMENT),'') as description, 'object' as logicalType, lower(REPLACE(TABLE_TYPE,'BASE ','')) as physicalType @@ -152,7 +179,20 @@ def snowflake_query(account: str, schema: str, schema_sfqid: str, businessKey_sf ), IFF(BK.primaryKey = True AND Right(C."name",3) != '_SK', OBJECT_CONSTRUCT( 'property','businessKey', - 'value', True), NULL)) + 'value', True), NULL), + IFF(C.CP_precision IS NOT NULL, OBJECT_CONSTRUCT( + 'property','precision', + 'value', C.CP_precision), NULL), + IFF(C.CP_scale IS NOT NULL, OBJECT_CONSTRUCT( + 'property','scale', + 'value', C.CP_scale), NULL), + IFF(NULLIF(C.CP_autoIncrement,'') IS NOT NULL, OBJECT_CONSTRUCT( + 'property','autoIncrement', + 'value', C.CP_autoIncrement), NULL), + IFF(NULLIF(C.CP_default,'') IS NOT NULL, OBJECT_CONSTRUCT( + 'property','defaultValue', + 'value', C.CP_default), NULL) + ) )) as properties FROM INFO_SCHEMA_COLUMNS C LEFT JOIN INFO_SCHEMA_CONSTRAINTS BK ON (C.schema_name = BK.schema_name @@ -182,7 +222,7 @@ def snowflake_query(account: str, schema: str, schema_sfqid: str, businessKey_sf OBJECT_CONSTRUCT('apiVersion', 'v3.1.0', 'kind','DataContract', 'id', UUID_STRING(), -'name',table_schema, +'name',SCHEMA_DEF.table_schema, 'version','0.0.1', 'domain','dataplatform', 'status','development', @@ -201,51 +241,13 @@ def snowflake_query(account: str, schema: str, schema_sfqid: str, businessKey_sf 'port', 443, 'database', CURRENT_DATABASE(), 'warehouse', CURRENT_WAREHOUSE(), - 'schema', table_schema, - 'roles', ARRAY_CONSTRUCT(OBJECT_CONSTRUCT( - 'role', CURRENT_ROLE(), - 'access','write', - 'firstLevelApprovers', CURRENT_USER() - ) - ) - ), - OBJECT_CONSTRUCT( - 'server','snowflake_uat', - 'type','snowflake', - 'account', '{account}', - 'environment', 'uat', - 'host', '{account}.snowflakecomputing.com', - 'port', 443, - 'database', CURRENT_DATABASE(), - 'warehouse', CURRENT_WAREHOUSE(), - 'schema', table_schema, - 'roles', ARRAY_CONSTRUCT(OBJECT_CONSTRUCT( - 'role', CURRENT_ROLE(), - 'access','write', - 'firstLevelApprovers', CURRENT_USER() - ) - ) - ), - OBJECT_CONSTRUCT( - 'server','snowflake', - 'type','snowflake', - 'account', '{account}', - 'environment', 'prd', - 'host', '{account}.snowflakecomputing.com', - 'port', 443, - 'database', CURRENT_DATABASE(), - 'warehouse', CURRENT_WAREHOUSE(), - 'schema', table_schema, - 'roles', ARRAY_CONSTRUCT(OBJECT_CONSTRUCT( - 'role', CURRENT_ROLE(), - 'access','write', - 'firstLevelApprovers', CURRENT_USER() - ) - ) - ) - ), + 'schema', SCHEMA_DEF.table_schema, + 'roles', Server_Roles.Roles + )), 'schema', "schema") as "DataContract (ODCS)" FROM SCHEMA_DEF +LEFT JOIN Server_Roles ON SCHEMA_DEF.table_schema = Server_Roles.table_schema +WHERE SCHEMA_DEF.table_schema IS NOT NULL """ return ( sqlStatement.replace("$schema_sfqid", schema_sfqid) From 920fe52f26f18a3adba4412adae315a1fb3a4928 Mon Sep 17 00:00:00 2001 From: dmaresma Date: Sat, 7 Feb 2026 23:07:12 -0500 Subject: [PATCH 14/28] refactor --- datacontract/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacontract/cli.py b/datacontract/cli.py index eb1bcbb7c..31faaceae 100644 --- a/datacontract/cli.py +++ b/datacontract/cli.py @@ -378,7 +378,7 @@ def import_( iceberg_table=iceberg_table, owner=owner, id=id, - snowflake_db=database, + database=database, ) if output is None: console.print(result.to_yaml(), markup=False, soft_wrap=True) From 5698b8457a1fbdf4ec7b7ba8601e0de484358a9c Mon Sep 17 00:00:00 2001 From: dmaresma Date: Sun, 8 Feb 2026 13:38:05 -0500 Subject: [PATCH 15/28] turn snowflake tags as str Key=Value array --- datacontract/imports/snowflake_importer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacontract/imports/snowflake_importer.py b/datacontract/imports/snowflake_importer.py index 0b4251137..b7755cedd 100644 --- a/datacontract/imports/snowflake_importer.py +++ b/datacontract/imports/snowflake_importer.py @@ -86,7 +86,7 @@ def snowflake_query(account: str, schema: str, schema_sfqid: str, businessKey_sf OBJECT_SCHEMA, OBJECT_NAME, COLUMN_NAME, - ARRAY_AGG(TAG_VALUE) as Tags + ARRAY_AGG(CONCAT(TAG_NAME,'=',TAG_VALUE)) as Tags FROM SNOWFLAKE.ACCOUNT_USAGE.TAG_REFERENCES WHERE OBJECT_SCHEMA = CURRENT_SCHEMA() AND OBJECT_DATABASE = CURRENT_DATABASE() From 5593386a6e5fdab828ac822d878ba0c5ceb6ecfa Mon Sep 17 00:00:00 2001 From: Bodo Huesemann Date: Sun, 8 Feb 2026 21:27:30 +0000 Subject: [PATCH 16/28] added tests and key authentication --- datacontract/imports/snowflake_importer.py | 70 +- snowflake.yaml | 11663 ++++++++++++++++ .../snowflake/import/datacontract.yaml | 181 + tests/fixtures/snowflake/import/ddl.sql | 39 + tests/test_import_snowflake.py | 189 +- tests/test_test_snowflake.py | 38 +- 6 files changed, 12146 insertions(+), 34 deletions(-) create mode 100644 snowflake.yaml create mode 100644 tests/fixtures/snowflake/import/datacontract.yaml create mode 100644 tests/fixtures/snowflake/import/ddl.sql diff --git a/datacontract/imports/snowflake_importer.py b/datacontract/imports/snowflake_importer.py index 8677d9f47..1beaba132 100644 --- a/datacontract/imports/snowflake_importer.py +++ b/datacontract/imports/snowflake_importer.py @@ -3,6 +3,7 @@ import json import os from collections import OrderedDict +from pathlib import Path from typing import Any, Dict import yaml @@ -17,7 +18,7 @@ def import_source(self, source: str, import_args: dict) -> OpenDataContractStand if source is not None: return import_Snowflake_from_connector( account=source, - database=import_args.get("database"), + database=import_args.get("snowflake_db"), schema=import_args.get("schema"), ) @@ -99,7 +100,7 @@ def snowflake_query(account: str, schema: str, schema_sfqid: str, businessKey_sf WHEN 'BOOLEAN' THEN 'BOOLEAN' WHEN 'TIMESTAMP_NTZ' THEN CONCAT('TIMESTAMP_NTZ','(',GET_PATH(TRY_PARSE_JSON("data_type"),'scale'),')') ELSE GET_PATH(TRY_PARSE_JSON("data_type"),'type') END as PhysicalType, - IFF (GET_PATH(TRY_PARSE_JSON("data_type"),'type')::string = 'TEXT', GET_PATH(TRY_PARSE_JSON("data_type"),'length')::string , NULL) as logicatTypeOptions_maxlength, + IFF (GET_PATH(TRY_PARSE_JSON("data_type"),'type')::string = 'TEXT', GET_PATH(TRY_PARSE_JSON("data_type"),'length')::string , NULL) as logicalTypeOptions_maxlength, IFF ("column_name" IN ('APP_NAME','CREATE_TS','CREATE_AUDIT_ID','UPDATE_TS','UPDATE_AUDIT_ID','CURRENT_RECORD_IND','DELETED_RECORD_IND', 'FILE_BLOB_PATH', 'FILE_ROW_NUMBER', 'FILE_LAST_MODIFIED', 'IS_VALID_IND', 'INVALID_MESSAGE' ), ARRAY_CONSTRUCT('metadata'), NULL ) as tags, IS_C.ORDINAL_POSITION FROM TABLE(RESULT_SCAN('$schema_sfqid')) as T @@ -136,7 +137,7 @@ def snowflake_query(account: str, schema: str, schema_sfqid: str, businessKey_sf 'unique', C."unique", 'description', C.description, 'logicalType', C.LogicalType, - IFF(logicatTypeOptions_maxlength::number IS NOT NULL,'logicalTypeOptions',NULL), IFF( logicatTypeOptions_maxlength::number IS NOT NULL , OBJECT_CONSTRUCT('maxLength',logicatTypeOptions_maxlength::number), NULL), + IFF(logicalTypeOptions_maxlength::number IS NOT NULL,'logicalTypeOptions',NULL), IFF( logicalTypeOptions_maxlength::number IS NOT NULL , OBJECT_CONSTRUCT('maxLength',logicalTypeOptions_maxlength::number), NULL), 'physicalType', TRIM(C.PhysicalType), IFF(BK.primaryKey = true, 'primaryKey', NULL), IFF(BK.primaryKey = true,true, NULL), IFF(BK.primaryKey = true, 'primaryKeyPosition', NULL), IFF(BK.primaryKey = true, BK.primaryKeyPosition, NULL), @@ -281,27 +282,63 @@ def snowflake_cursor(account: str, databasename: str = "DEMO_DB", schema: str = warehouse_connect = os.environ.get("DATACONTRACT_SNOWFLAKE_WAREHOUSE", "COMPUTE_WH") database_connect = databasename or "DEMO_DB" schema_connect = schema or "PUBLIC" - private_key_file = None - private_key_file_pwd = None + snowflake_home = os.environ.get("DATACONTRACT_SNOWFLAKE_HOME") or os.environ.get("SNOWFLAKE_HOME") + snowflake_connections_file = os.environ.get("DATACONTRACT_SNOWFLAKE_CONNECTIONS_FILE") or os.environ.get( + "SNOWFLAKE_CONNECTIONS_FILE" + ) + if not snowflake_connections_file and snowflake_home: + snowflake_connections_file = os.path.join(snowflake_home, "connections.toml") + + default_connection = os.environ.get("DATACONTRACT_SNOWFLAKE_DEFAULT_CONNECTION_NAME") or os.environ.get( + "SNOWFLAKE_DEFAULT_CONNECTION_NAME" + ) + + private_key_file = os.environ.get("DATACONTRACT_SNOWFLAKE_PRIVATE_KEY_FILE") or os.environ.get( + "SNOWFLAKE_PRIVATE_KEY_FILE" + ) + private_key_file_pwd = os.environ.get("DATACONTRACT_SNOWFLAKE_PRIVATE_KEY_FILE_PWD") or os.environ.get( + "SNOWFLAKE_PRIVATE_KEY_FILE_PWD" + ) # build connection - if ( - os.environ.get("SNOWFLAKE_DEFAULT_CONNECTION_NAME", None) is not None - and os.environ.get("DATACONTRACT_SNOWFLAKE_PASSWORD", None) is None - ): + if default_connection is not None and password_connect is None: # use the default connection defined in the snowflake config file : connections.toml and config.toml + + # optional connection params (will override the defaults if set) + connection_params = {} + if default_connection: + connection_params["connection_name"] = default_connection + if snowflake_connections_file: + connection_params["connections_file_path"] = Path(snowflake_connections_file) + if role_connect: + connection_params["role"] = role_connect + if account_connect: + connection_params["account"] = account_connect + # don't override default connection with defaults set above + if database_connect and database_connect != "DEMO_DB": + connection_params["database"] = database_connect + if schema_connect and schema_connect != "PUBLIC": + connection_params["schema"] = schema_connect + if warehouse_connect and warehouse_connect != "COMPUTE_WH": + connection_params["warehouse"] = warehouse_connect + conn = connect( session_parameters={ "QUERY_TAG": "datacontract-cli import", "use_openssl_only": False, - } + }, + **connection_params, ) - elif authenticator_connect == "externalbrowser": - # use external browser auth + elif private_key_file is not None: + # use private key auth + if not os.path.exists(private_key_file): + raise FileNotFoundError(f"Private key file not found at: {private_key_file}") + conn = connect( user=user_connect, account=account_connect, - authenticator=authenticator_connect, + private_key_file=private_key_file, + private_key_file_pwd=private_key_file_pwd, session_parameters={ "QUERY_TAG": "datacontract-cli import", "use_openssl_only": False, @@ -311,13 +348,12 @@ def snowflake_cursor(account: str, databasename: str = "DEMO_DB", schema: str = database=database_connect, schema=schema_connect, ) - elif private_key_file is not None: - # use private key auth + elif authenticator_connect == "externalbrowser": + # use external browser auth conn = connect( user=user_connect, account=account_connect, - private_key_file=private_key_file, - private_key_fil_pwd=private_key_file_pwd.encode("UTF-8"), + authenticator=authenticator_connect, session_parameters={ "QUERY_TAG": "datacontract-cli import", "use_openssl_only": False, diff --git a/snowflake.yaml b/snowflake.yaml new file mode 100644 index 000000000..d2a98f493 --- /dev/null +++ b/snowflake.yaml @@ -0,0 +1,11663 @@ +version: 0.0.1 +kind: DataContract +apiVersion: v3.1.0 +id: 2e8ba28e-70f2-462e-956c-bcc88c673b04 +name: INFORMATION_SCHEMA +status: development +servers: +- server: snowflake_dev + type: snowflake + environment: dev + roles: + - role: ACCOUNTADMIN + access: write + firstLevelApprovers: BHUESEMANN + account: RMTPDDM-KO91272 + database: SNOWFLAKE + host: RMTPDDM-KO91272.snowflakecomputing.com + port: 443 + schema: INFORMATION_SCHEMA + warehouse: COMPUTE_WH +- server: snowflake_uat + type: snowflake + environment: uat + roles: + - role: ACCOUNTADMIN + access: write + firstLevelApprovers: BHUESEMANN + account: RMTPDDM-KO91272 + database: SNOWFLAKE + host: RMTPDDM-KO91272.snowflakecomputing.com + port: 443 + schema: INFORMATION_SCHEMA + warehouse: COMPUTE_WH +- server: snowflake + type: snowflake + environment: prd + roles: + - role: ACCOUNTADMIN + access: write + firstLevelApprovers: BHUESEMANN + account: RMTPDDM-KO91272 + database: SNOWFLAKE + host: RMTPDDM-KO91272.snowflakecomputing.com + port: 443 + schema: INFORMATION_SCHEMA + warehouse: COMPUTE_WH +description: + usage: not defined + purpose: This data can be used for analytical purposes + limitations: not defined +domain: dataplatform +schema: +- id: APPLICABLE_ROLES_schId + name: APPLICABLE_ROLES + physicalType: view + description: The roles that can be applied to the current user. + logicalType: object + physicalName: INFORMATION_SCHEMA.APPLICABLE_ROLES + properties: + - id: GRANTEE_propId + name: GRANTEE + physicalType: VARCHAR(16777216) + description: Role or user to whom the privilege is granted + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: ROLE_NAME_propId + name: ROLE_NAME + physicalType: VARCHAR(16777216) + description: Name of the role + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: ROLE_OWNER_propId + name: ROLE_OWNER + physicalType: VARCHAR(16777216) + description: Owner of the role + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: IS_GRANTABLE_propId + name: IS_GRANTABLE + physicalType: VARCHAR(3) + description: Whether this role can be granted to others + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false +- id: APPLICATION_SPECIFICATIONS_schId + name: APPLICATION_SPECIFICATIONS + physicalType: view + description: The specification requests currently defined in the current application + that are accessible to the current user's role. + logicalType: object + physicalName: INFORMATION_SCHEMA.APPLICATION_SPECIFICATIONS + properties: + - id: NAME_propId + name: NAME + physicalType: VARCHAR(16777216) + description: Name of the application specification + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: APPLICATION_NAME_propId + name: APPLICATION_NAME + physicalType: VARCHAR(16777216) + description: Name of the application that contains the application specification + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: TYPE_propId + name: TYPE + physicalType: VARCHAR(16777216) + description: Type of the application specification + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SEQUENCE_NUMBER_propId + name: SEQUENCE_NUMBER + description: Id for a specification request, unique identifier the spec definition + across different specification versions + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: number + required: true + unique: false + - id: REQUESTED_ON_propId + name: REQUESTED_ON + physicalType: TIMESTAMP_LTZ + description: Timestamp when this specification request was created by application + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: STATUS_propId + name: STATUS + physicalType: VARCHAR(16777216) + description: Specification approval status + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: STATUS_UPDATED_ON_propId + name: STATUS_UPDATED_ON + physicalType: TIMESTAMP_LTZ + description: Timestamp recording the last change in status for Approval/Decline. + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: LABEL_propId + name: LABEL + physicalType: VARCHAR(16777216) + description: Consumer visible specification name + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: DESCRIPTION_propId + name: DESCRIPTION + physicalType: VARCHAR(16777216) + description: Application specification description + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: DEFINITION_propId + name: DEFINITION + physicalType: VARCHAR(16777216) + description: Application specification content in JSON format + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false +- id: BACKUP_POLICIES_schId + name: BACKUP_POLICIES + physicalType: view + description: All backup policies within an account + logicalType: object + physicalName: INFORMATION_SCHEMA.BACKUP_POLICIES + properties: + - id: BACKUP_POLICY_NAME_propId + name: BACKUP_POLICY_NAME + physicalType: VARCHAR(16777216) + description: Name of the Backup Policy + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: BACKUP_POLICY_SCHEMA_propId + name: BACKUP_POLICY_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema which the Backup Policy belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: BACKUP_POLICY_CATALOG_propId + name: BACKUP_POLICY_CATALOG + physicalType: VARCHAR(16777216) + description: Database which the Backup Policy belongs to + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: SCHEDULE_propId + name: SCHEDULE + physicalType: VARCHAR(16777216) + description: Schedule for backup creation + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: EXPIRE_AFTER_DAYS_propId + name: EXPIRE_AFTER_DAYS + description: Days after backup creation when backup should be expired + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: HAS_RETENTION_LOCK_propId + name: HAS_RETENTION_LOCK + physicalType: VARCHAR(16777216) + description: Indicates whether the policy includes a retention lock. Y if policy + has retention lock; N otherwise + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: OWNER_propId + name: OWNER + physicalType: VARCHAR(16777216) + description: Name of the role that owns the Backup Policy + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: OWNER_ROLE_TYPE_propId + name: OWNER_ROLE_TYPE + physicalType: VARCHAR(16777216) + description: Type of role that owns the Backup Policy + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Data and time when the Backup Policy was created + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: LAST_ALTERED_propId + name: LAST_ALTERED + physicalType: TIMESTAMP_LTZ + description: Data and time when the Backup Policy was last altered + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Comment for the Backup Policy + customProperties: + - property: ordinalPosition + value: 11 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false +- id: BACKUP_SETS_schId + name: BACKUP_SETS + physicalType: view + description: All backup sets within an account + logicalType: object + physicalName: INFORMATION_SCHEMA.BACKUP_SETS + properties: + - id: BACKUP_SET_NAME_propId + name: BACKUP_SET_NAME + physicalType: VARCHAR(16777216) + description: Name of the Backup Set + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: BACKUP_SET_SCHEMA_propId + name: BACKUP_SET_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema which the Backup Set belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: BACKUP_SET_CATALOG_propId + name: BACKUP_SET_CATALOG + physicalType: VARCHAR(16777216) + description: Database which the Backup Set belongs to + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: OBJECT_KIND_propId + name: OBJECT_KIND + physicalType: VARCHAR(16777216) + description: Type of object that the backup set is backing up + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: OBJECT_NAME_propId + name: OBJECT_NAME + physicalType: VARCHAR(16777216) + description: Name of the object that the backup set is backing up + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: OBJECT_SCHEMA_propId + name: OBJECT_SCHEMA + physicalType: VARCHAR(16777216) + description: Name of the schema that contains the object being backed up by this + backup set + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: OBJECT_CATALOG_propId + name: OBJECT_CATALOG + physicalType: VARCHAR(16777216) + description: Name of the database that contains the object being backed up by + this backup set + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: BACKUP_POLICY_NAME_propId + name: BACKUP_POLICY_NAME + physicalType: VARCHAR(16777216) + description: Name of the Backup Policy attached to this backup set + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: BACKUP_POLICY_SCHEMA_propId + name: BACKUP_POLICY_SCHEMA + physicalType: VARCHAR(16777216) + description: Name of the schema that contains the Backup Policy + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: BACKUP_POLICY_CATALOG_propId + name: BACKUP_POLICY_CATALOG + physicalType: VARCHAR(16777216) + description: Name of the database that contains the Backup Policy + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: OWNER_propId + name: OWNER + physicalType: VARCHAR(16777216) + description: Name of the role that owns the Backup Set + customProperties: + - property: ordinalPosition + value: 11 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: OWNER_ROLE_TYPE_propId + name: OWNER_ROLE_TYPE + physicalType: VARCHAR(16777216) + description: Type of role that owns the Backup Set + customProperties: + - property: ordinalPosition + value: 12 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Data and time when the Backup Set was created + customProperties: + - property: ordinalPosition + value: 13 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: LAST_ALTERED_propId + name: LAST_ALTERED + physicalType: TIMESTAMP_LTZ + description: Data and time when the Backup Set was last altered + customProperties: + - property: ordinalPosition + value: 14 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Comment for the Backup Set + customProperties: + - property: ordinalPosition + value: 15 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false +- id: BACKUPS_schId + name: BACKUPS + physicalType: view + description: All backups within an account + logicalType: object + physicalName: INFORMATION_SCHEMA.BACKUPS + properties: + - id: ID_propId + name: ID + physicalType: VARCHAR(16777216) + description: Unique identifier of the Backup + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Data and time when the backup was created + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: BACKUP_SET_NAME_propId + name: BACKUP_SET_NAME + physicalType: VARCHAR(16777216) + description: Name of Backup Set that contains the backup + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: BACKUP_SET_SCHEMA_propId + name: BACKUP_SET_SCHEMA + physicalType: VARCHAR(16777216) + description: Name of schema which the Backup Set belongs to + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: BACKUP_SET_CATALOG_propId + name: BACKUP_SET_CATALOG + physicalType: VARCHAR(16777216) + description: Name of database which the Backup Set belongs to + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: EXPIRATION_SCHEDULED_FOR_propId + name: EXPIRATION_SCHEDULED_FOR + physicalType: TIMESTAMP_LTZ + description: Timestamp at which the backup will be expired + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: IS_UNDER_LEGAL_HOLD_propId + name: IS_UNDER_LEGAL_HOLD + physicalType: BOOLEAN + description: Whether the backup is under legal hold + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: boolean + required: false + unique: false +- id: CLASS_INSTANCE_FUNCTIONS_schId + name: CLASS_INSTANCE_FUNCTIONS + physicalType: view + description: The functions defined in a bundle that are accessible to the current + user's role. + logicalType: object + physicalName: INFORMATION_SCHEMA.CLASS_INSTANCE_FUNCTIONS + properties: + - id: FUNCTION_NAME_propId + name: FUNCTION_NAME + physicalType: VARCHAR(16777216) + description: Name of the function + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: FUNCTION_INSTANCE_NAME_propId + name: FUNCTION_INSTANCE_NAME + physicalType: VARCHAR(16777216) + description: Name of the instance which the function belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: FUNCTION_INSTANCE_SCHEMA_propId + name: FUNCTION_INSTANCE_SCHEMA + physicalType: VARCHAR(16777216) + description: Name of the schema which the instance belongs to + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: FUNCTION_INSTANCE_DATABASE_propId + name: FUNCTION_INSTANCE_DATABASE + physicalType: VARCHAR(16777216) + description: Name of the database which the instance belongs to + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: FUNCTION_OWNER_propId + name: FUNCTION_OWNER + physicalType: VARCHAR(16777216) + description: Name of the role that owns the function + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: ARGUMENT_SIGNATURE_propId + name: ARGUMENT_SIGNATURE + physicalType: VARCHAR(16777216) + description: Type signature of the function's arguments + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: DATA_TYPE_propId + name: DATA_TYPE + physicalType: VARCHAR(16777216) + description: Return value data type + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: CHARACTER_MAXIMUM_LENGTH_propId + name: CHARACTER_MAXIMUM_LENGTH + physicalType: NUMBER(9,0) + description: Maximum length in characters of string return value + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: CHARACTER_OCTET_LENGTH_propId + name: CHARACTER_OCTET_LENGTH + physicalType: NUMBER(9,0) + description: Maximum length in bytes of string return value + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: NUMERIC_PRECISION_propId + name: NUMERIC_PRECISION + physicalType: NUMBER(9,0) + description: Numeric precision of numeric return value + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: NUMERIC_PRECISION_RADIX_propId + name: NUMERIC_PRECISION_RADIX + physicalType: NUMBER(9,0) + description: Radix of precision of numeric return value + customProperties: + - property: ordinalPosition + value: 11 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: NUMERIC_SCALE_propId + name: NUMERIC_SCALE + physicalType: NUMBER(9,0) + description: Scale of numeric return value + customProperties: + - property: ordinalPosition + value: 12 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: FUNCTION_LANGUAGE_propId + name: FUNCTION_LANGUAGE + physicalType: VARCHAR(16777216) + description: Language of the function + customProperties: + - property: ordinalPosition + value: 13 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: FUNCTION_DEFINITION_propId + name: FUNCTION_DEFINITION + physicalType: VARCHAR(16777216) + description: Function definition + customProperties: + - property: ordinalPosition + value: 14 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: VOLATILITY_propId + name: VOLATILITY + physicalType: VARCHAR(16777216) + description: Whether the function is volatile or immutable + customProperties: + - property: ordinalPosition + value: 15 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: IS_NULL_CALL_propId + name: IS_NULL_CALL + physicalType: VARCHAR(3) + description: Whether the function is called on null input + customProperties: + - property: ordinalPosition + value: 16 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: IS_SECURE_propId + name: IS_SECURE + physicalType: VARCHAR(3) + description: Whether this function is secure. + customProperties: + - property: ordinalPosition + value: 17 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Creation time of the function + customProperties: + - property: ordinalPosition + value: 18 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: LAST_ALTERED_propId + name: LAST_ALTERED + physicalType: TIMESTAMP_LTZ + description: Last altered time of the function + customProperties: + - property: ordinalPosition + value: 19 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Comment for this function + customProperties: + - property: ordinalPosition + value: 20 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: IS_EXTERNAL_propId + name: IS_EXTERNAL + physicalType: VARCHAR(3) + description: Whether this function is external + customProperties: + - property: ordinalPosition + value: 21 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: API_INTEGRATION_propId + name: API_INTEGRATION + physicalType: VARCHAR(16777216) + description: Integration for this function + customProperties: + - property: ordinalPosition + value: 22 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CONTEXT_HEADERS_propId + name: CONTEXT_HEADERS + physicalType: VARCHAR(16777216) + description: Context headers for this function + customProperties: + - property: ordinalPosition + value: 23 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: MAX_BATCH_ROWS_propId + name: MAX_BATCH_ROWS + physicalType: NUMBER(9,0) + description: Max batch rows for this function + customProperties: + - property: ordinalPosition + value: 24 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: COMPRESSION_propId + name: COMPRESSION + physicalType: VARCHAR(16777216) + description: Type of compression used for serializing function payload + customProperties: + - property: ordinalPosition + value: 25 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: PACKAGES_propId + name: PACKAGES + physicalType: VARCHAR(16777216) + description: Packages requested by the function. + customProperties: + - property: ordinalPosition + value: 26 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: RUNTIME_VERSION_propId + name: RUNTIME_VERSION + physicalType: VARCHAR(16777216) + description: Runtime version of the function. NULL if function is SQL or Javascript + customProperties: + - property: ordinalPosition + value: 27 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: INSTALLED_PACKAGES_propId + name: INSTALLED_PACKAGES + physicalType: VARCHAR(16777216) + description: All packages installed by the function. + customProperties: + - property: ordinalPosition + value: 28 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: IS_MEMOIZABLE_propId + name: IS_MEMOIZABLE + physicalType: VARCHAR(3) + description: Whether this function is memoizable. + customProperties: + - property: ordinalPosition + value: 29 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false +- id: CLASS_INSTANCE_PROCEDURES_schId + name: CLASS_INSTANCE_PROCEDURES + physicalType: view + description: The procedures defined in a bundle that are accessible to the current + user's role. + logicalType: object + physicalName: INFORMATION_SCHEMA.CLASS_INSTANCE_PROCEDURES + properties: + - id: PROCEDURE_NAME_propId + name: PROCEDURE_NAME + physicalType: VARCHAR(16777216) + description: Name of the procedure + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: PROCEDURE_INSTANCE_NAME_propId + name: PROCEDURE_INSTANCE_NAME + physicalType: VARCHAR(16777216) + description: Name of the instance which the procedure belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: PROCEDURE_INSTANCE_SCHEMA_propId + name: PROCEDURE_INSTANCE_SCHEMA + physicalType: VARCHAR(16777216) + description: Name of the schema which the procedure belongs to + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: PROCEDURE_INSTANCE_DATABASE_propId + name: PROCEDURE_INSTANCE_DATABASE + physicalType: VARCHAR(16777216) + description: Name of the database which the procedure belongs to + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: PROCEDURE_OWNER_propId + name: PROCEDURE_OWNER + physicalType: VARCHAR(16777216) + description: Name of the role that owns the procedure + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: ARGUMENT_SIGNATURE_propId + name: ARGUMENT_SIGNATURE + physicalType: VARCHAR(16777216) + description: Type signature of the procedure's arguments + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: DATA_TYPE_propId + name: DATA_TYPE + physicalType: VARCHAR(16777216) + description: Return value data type + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: CHARACTER_MAXIMUM_LENGTH_propId + name: CHARACTER_MAXIMUM_LENGTH + physicalType: NUMBER(9,0) + description: Maximum length in characters of string return value + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: CHARACTER_OCTET_LENGTH_propId + name: CHARACTER_OCTET_LENGTH + physicalType: NUMBER(9,0) + description: Maximum length in bytes of string return value + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: NUMERIC_PRECISION_propId + name: NUMERIC_PRECISION + physicalType: NUMBER(9,0) + description: Numeric precision of numeric return value + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: NUMERIC_PRECISION_RADIX_propId + name: NUMERIC_PRECISION_RADIX + physicalType: NUMBER(9,0) + description: Radix of precision of numeric return value + customProperties: + - property: ordinalPosition + value: 11 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: NUMERIC_SCALE_propId + name: NUMERIC_SCALE + physicalType: NUMBER(9,0) + description: Scale of numeric return value + customProperties: + - property: ordinalPosition + value: 12 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: PROCEDURE_LANGUAGE_propId + name: PROCEDURE_LANGUAGE + physicalType: VARCHAR(16777216) + description: Language of the procedure + customProperties: + - property: ordinalPosition + value: 13 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: PROCEDURE_DEFINITION_propId + name: PROCEDURE_DEFINITION + physicalType: VARCHAR(16777216) + description: Procedure definition + customProperties: + - property: ordinalPosition + value: 14 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Creation time of the procedure + customProperties: + - property: ordinalPosition + value: 15 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: LAST_ALTERED_propId + name: LAST_ALTERED + physicalType: TIMESTAMP_LTZ + description: Last altered time of the procedure + customProperties: + - property: ordinalPosition + value: 16 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Comment for this procedure + customProperties: + - property: ordinalPosition + value: 17 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false +- id: CLASS_INSTANCES_schId + name: CLASS_INSTANCES + physicalType: view + description: The BUNDLE INSTANCE that the current user has privileges to view. + logicalType: object + physicalName: INFORMATION_SCHEMA.CLASS_INSTANCES + properties: + - id: NAME_propId + name: NAME + physicalType: VARCHAR(16777216) + description: Name of the BUNDLE INSTANCE + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SCHEMA_NAME_propId + name: SCHEMA_NAME + physicalType: VARCHAR(16777216) + description: Schema which the INSTANCE belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: DATABASE_NAME_propId + name: DATABASE_NAME + physicalType: VARCHAR(16777216) + description: Database which the INSTANCE belongs to + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: CLASS_NAME_propId + name: CLASS_NAME + physicalType: VARCHAR(16777216) + description: CLASS which the INSTANCE is instantiated from + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: CLASS_SCHEMA_NAME_propId + name: CLASS_SCHEMA_NAME + physicalType: VARCHAR(16777216) + description: Schema of the CLASS which the INSTANCE is instantiated from + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: CLASS_DATABASE_NAME_propId + name: CLASS_DATABASE_NAME + physicalType: VARCHAR(16777216) + description: Database of the CLASS which the INSTANCE is instantiated from + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: VERSION_propId + name: VERSION + physicalType: VARCHAR(16777216) + description: Current version of the INSTANCE + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: OWNER_propId + name: OWNER + physicalType: VARCHAR(16777216) + description: Name of the role that owns the INSTANCE + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: OWNER_ROLE_TYPE_propId + name: OWNER_ROLE_TYPE + physicalType: VARCHAR(16777216) + description: Type of role that owns the INSTANCE. + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Date and time when the INSTANCE was created + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Comment for the INSTANCE + customProperties: + - property: ordinalPosition + value: 11 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false +- id: CLASSES_schId + name: CLASSES + physicalType: view + description: The BUNDLE CLASS that the current user has privileges to view. + logicalType: object + physicalName: INFORMATION_SCHEMA.CLASSES + properties: + - id: NAME_propId + name: NAME + physicalType: VARCHAR(16777216) + description: Name of the BUNDLE CLASS + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SCHEMA_NAME_propId + name: SCHEMA_NAME + physicalType: VARCHAR(16777216) + description: Schema which the CLASS belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: DATABASE_NAME_propId + name: DATABASE_NAME + physicalType: VARCHAR(16777216) + description: Database which the CLASS belongs to + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: VERSION_propId + name: VERSION + physicalType: VARCHAR(16777216) + description: Current version of the CLASS + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: OWNER_propId + name: OWNER + physicalType: VARCHAR(16777216) + description: Name of the role that owns the CLASS + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: OWNER_ROLE_TYPE_propId + name: OWNER_ROLE_TYPE + physicalType: VARCHAR(16777216) + description: Type of role that owns the CLASS. + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: IS_SERVICE_CLASS_propId + name: IS_SERVICE_CLASS + physicalType: VARCHAR(16777216) + description: Whether this is a SERVICE class + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Date and time when the CLASS was created + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Comment for the CLASS + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false +- id: COLUMNS_schId + name: COLUMNS + physicalType: view + description: The columns of tables defined in this database that are accessible + to the current user's role. + logicalType: object + physicalName: INFORMATION_SCHEMA.COLUMNS + properties: + - id: TABLE_CATALOG_propId + name: TABLE_CATALOG + physicalType: VARCHAR(16777216) + description: Database that the table belongs to + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: TABLE_SCHEMA_propId + name: TABLE_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema that the table belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: TABLE_NAME_propId + name: TABLE_NAME + physicalType: VARCHAR(16777216) + description: Table that the column belongs to + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: COLUMN_NAME_propId + name: COLUMN_NAME + physicalType: VARCHAR(16777216) + description: Name of the column + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: ORDINAL_POSITION_propId + name: ORDINAL_POSITION + physicalType: NUMBER(9,0) + description: Ordinal position of the column in the table + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: COLUMN_DEFAULT_propId + name: COLUMN_DEFAULT + physicalType: VARCHAR(16777216) + description: Default value of the column + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: IS_NULLABLE_propId + name: IS_NULLABLE + physicalType: VARCHAR(3) + description: '''YES'' if the column may contain NULL, ''NO'' otherwise' + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: DATA_TYPE_propId + name: DATA_TYPE + physicalType: VARCHAR(16777216) + description: Data type of the column + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: CHARACTER_MAXIMUM_LENGTH_propId + name: CHARACTER_MAXIMUM_LENGTH + physicalType: NUMBER(9,0) + description: Maximum length in characters of string columns + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: CHARACTER_OCTET_LENGTH_propId + name: CHARACTER_OCTET_LENGTH + physicalType: NUMBER(9,0) + description: Maximum length in bytes of string columns + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: NUMERIC_PRECISION_propId + name: NUMERIC_PRECISION + physicalType: NUMBER(9,0) + description: Numeric precision of numeric columns + customProperties: + - property: ordinalPosition + value: 11 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: NUMERIC_PRECISION_RADIX_propId + name: NUMERIC_PRECISION_RADIX + physicalType: NUMBER(9,0) + description: Radix of precision of numeric columns + customProperties: + - property: ordinalPosition + value: 12 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: NUMERIC_SCALE_propId + name: NUMERIC_SCALE + physicalType: NUMBER(9,0) + description: Scale of numeric columns + customProperties: + - property: ordinalPosition + value: 13 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: DATETIME_PRECISION_propId + name: DATETIME_PRECISION + physicalType: NUMBER(9,0) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 14 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: INTERVAL_TYPE_propId + name: INTERVAL_TYPE + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 15 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: INTERVAL_PRECISION_propId + name: INTERVAL_PRECISION + physicalType: NUMBER(9,0) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 16 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: CHARACTER_SET_CATALOG_propId + name: CHARACTER_SET_CATALOG + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 17 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CHARACTER_SET_SCHEMA_propId + name: CHARACTER_SET_SCHEMA + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 18 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CHARACTER_SET_NAME_propId + name: CHARACTER_SET_NAME + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 19 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: COLLATION_CATALOG_propId + name: COLLATION_CATALOG + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 20 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: COLLATION_SCHEMA_propId + name: COLLATION_SCHEMA + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 21 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: COLLATION_NAME_propId + name: COLLATION_NAME + physicalType: VARCHAR(16777216) + description: The name of collation, if present + customProperties: + - property: ordinalPosition + value: 22 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: DOMAIN_CATALOG_propId + name: DOMAIN_CATALOG + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 23 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: DOMAIN_SCHEMA_propId + name: DOMAIN_SCHEMA + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 24 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: DOMAIN_NAME_propId + name: DOMAIN_NAME + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 25 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: UDT_CATALOG_propId + name: UDT_CATALOG + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 26 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: UDT_SCHEMA_propId + name: UDT_SCHEMA + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 27 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: UDT_NAME_propId + name: UDT_NAME + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 28 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: SCOPE_CATALOG_propId + name: SCOPE_CATALOG + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 29 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: SCOPE_SCHEMA_propId + name: SCOPE_SCHEMA + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 30 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: SCOPE_NAME_propId + name: SCOPE_NAME + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 31 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: MAXIMUM_CARDINALITY_propId + name: MAXIMUM_CARDINALITY + physicalType: NUMBER(9,0) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 32 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: DTD_IDENTIFIER_propId + name: DTD_IDENTIFIER + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 33 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: IS_SELF_REFERENCING_propId + name: IS_SELF_REFERENCING + physicalType: VARCHAR(3) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 34 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: IS_IDENTITY_propId + name: IS_IDENTITY + physicalType: VARCHAR(3) + description: Whether this column is an identity column + customProperties: + - property: ordinalPosition + value: 35 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: IDENTITY_GENERATION_propId + name: IDENTITY_GENERATION + physicalType: VARCHAR(16777216) + description: Whether an identity column's value is always generated or only generated + by default. Snowflake only supports BY DEFAULT + customProperties: + - property: ordinalPosition + value: 36 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: IDENTITY_START_propId + name: IDENTITY_START + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 37 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: IDENTITY_INCREMENT_propId + name: IDENTITY_INCREMENT + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 38 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: IDENTITY_MAXIMUM_propId + name: IDENTITY_MAXIMUM + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 39 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: IDENTITY_MINIMUM_propId + name: IDENTITY_MINIMUM + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 40 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: IDENTITY_CYCLE_propId + name: IDENTITY_CYCLE + physicalType: VARCHAR(16777216) + description: Whether the value of an identity column may cycle. Snowflake only + supports NO CYCLE. + customProperties: + - property: ordinalPosition + value: 41 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: IDENTITY_ORDERED_propId + name: IDENTITY_ORDERED + physicalType: VARCHAR(3) + description: Whether the identity column is backed by an ordered sequence + customProperties: + - property: ordinalPosition + value: 42 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: SCHEMA_EVOLUTION_RECORD_propId + name: SCHEMA_EVOLUTION_RECORD + physicalType: VARCHAR(16777216) + description: The record of the latest schema evolution of the column, if present + customProperties: + - property: ordinalPosition + value: 43 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: DATA_TYPE_ALIAS_propId + name: DATA_TYPE_ALIAS + physicalType: VARCHAR(16777216) + description: The data type of the column defined in the DDL command when the column + was created + customProperties: + - property: ordinalPosition + value: 44 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Comment for this column + customProperties: + - property: ordinalPosition + value: 45 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false +- id: CORTEX_SEARCH_SERVICE_SCORING_PROFILES_schId + name: CORTEX_SEARCH_SERVICE_SCORING_PROFILES + physicalType: view + description: The Cortex Search Service scoring profiles defined in this database + that are accessible to the current user's role. + logicalType: object + physicalName: INFORMATION_SCHEMA.CORTEX_SEARCH_SERVICE_SCORING_PROFILES + properties: + - id: SERVICE_CATALOG_propId + name: SERVICE_CATALOG + physicalType: VARCHAR(16777216) + description: Database that the Cortex Search Service belongs to + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SERVICE_SCHEMA_propId + name: SERVICE_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema that the Cortex Search Service belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SERVICE_NAME_propId + name: SERVICE_NAME + physicalType: VARCHAR(16777216) + description: Name of the Cortex Search Service + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SCORING_PROFILE_NAME_propId + name: SCORING_PROFILE_NAME + physicalType: VARCHAR(16777216) + description: Name of the scoring profile + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SCORING_PROFILE_propId + name: SCORING_PROFILE + physicalType: VARCHAR(16777216) + description: Scoring profile + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false +- id: CORTEX_SEARCH_SERVICES_schId + name: CORTEX_SEARCH_SERVICES + physicalType: view + description: The Cortex Search Services defined in this database that are accessible + to the current user's role. + logicalType: object + physicalName: INFORMATION_SCHEMA.CORTEX_SEARCH_SERVICES + properties: + - id: SERVICE_CATALOG_propId + name: SERVICE_CATALOG + physicalType: VARCHAR(16777216) + description: Database that the Cortex Search Service belongs to + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SERVICE_SCHEMA_propId + name: SERVICE_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema that the Cortex Search Service belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SERVICE_NAME_propId + name: SERVICE_NAME + physicalType: VARCHAR(16777216) + description: Name of the Cortex Search Service + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Creation time of the Cortex Search Service + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: DEFINITION_propId + name: DEFINITION + physicalType: VARCHAR(16777216) + description: Definition of the Cortex Search Service + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SEARCH_COLUMN_propId + name: SEARCH_COLUMN + physicalType: VARCHAR(16777216) + description: Name of the search column in the Cortex Search Service + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: ATTRIBUTE_COLUMNS_propId + name: ATTRIBUTE_COLUMNS + physicalType: VARCHAR(16777216) + description: Names of the attribute columns in the Cortex Search Service + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: COLUMNS_propId + name: COLUMNS + physicalType: VARCHAR(16777216) + description: Names of all the columns in the Cortex Search Service + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: TARGET_LAG_propId + name: TARGET_LAG + physicalType: VARCHAR(16777216) + description: Target lag of the Cortex Search Service + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: WAREHOUSE_propId + name: WAREHOUSE + physicalType: VARCHAR(16777216) + description: Warehouse assigned for refreshes of the Cortex Search Service + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Comment for this Cortex Search Service + customProperties: + - property: ordinalPosition + value: 11 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: SERVICE_QUERY_URL_propId + name: SERVICE_QUERY_URL + physicalType: VARCHAR(16777216) + description: URL for querying the Cortex Search Service + customProperties: + - property: ordinalPosition + value: 12 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: OWNER_propId + name: OWNER + physicalType: VARCHAR(16777216) + description: Name of the role that owns the Cortex Search Service + customProperties: + - property: ordinalPosition + value: 13 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: OWNER_ROLE_TYPE_propId + name: OWNER_ROLE_TYPE + physicalType: VARCHAR(16777216) + description: Type of the role that owns the Cortex Search Service + customProperties: + - property: ordinalPosition + value: 14 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: DATA_TIMESTAMP_propId + name: DATA_TIMESTAMP + physicalType: TIMESTAMP_LTZ + description: Data timestamp of the Cortex Search Service source data + customProperties: + - property: ordinalPosition + value: 15 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: SOURCE_DATA_BYTES_propId + name: SOURCE_DATA_BYTES + physicalType: NUMBER(9,0) + description: Size of the materialized source data, in bytes + customProperties: + - property: ordinalPosition + value: 16 + - property: scdType + value: 1 + logicalType: number + required: true + unique: false + - id: SOURCE_DATA_NUM_ROWS_propId + name: SOURCE_DATA_NUM_ROWS + physicalType: NUMBER(9,0) + description: Number of rows in the source data indexed by the Cortex Search Service + customProperties: + - property: ordinalPosition + value: 17 + - property: scdType + value: 1 + logicalType: number + required: true + unique: false + - id: INDEXING_STATE_propId + name: INDEXING_STATE + physicalType: VARCHAR(16777216) + description: Indexing status of the Cortex Search Service + customProperties: + - property: ordinalPosition + value: 18 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: INDEXING_ERROR_propId + name: INDEXING_ERROR + physicalType: VARCHAR(16777216) + description: Last error encountered during a refresh of the Cortex Search Service + customProperties: + - property: ordinalPosition + value: 19 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: SERVING_STATE_propId + name: SERVING_STATE + physicalType: TIMESTAMP_LTZ + description: Serving status of the Cortex Search Service + customProperties: + - property: ordinalPosition + value: 20 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: SERVING_DATA_BYTES_propId + name: SERVING_DATA_BYTES + physicalType: NUMBER(9,0) + description: Size of the billable serving data, in bytes + customProperties: + - property: ordinalPosition + value: 21 + - property: scdType + value: 1 + logicalType: number + required: true + unique: false + - id: EMBEDDING_MODEL_propId + name: EMBEDDING_MODEL + physicalType: VARCHAR(16777216) + description: Embedding model used by the Cortex Search Service + customProperties: + - property: ordinalPosition + value: 22 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: PRIMARY_KEY_COLUMNS_propId + name: PRIMARY_KEY_COLUMNS + physicalType: VARCHAR(16777216) + description: Names of the primary key columns in the Cortex Search Service + customProperties: + - property: ordinalPosition + value: 23 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SCORING_PROFILE_COUNT_propId + name: SCORING_PROFILE_COUNT + description: Number of scoring profiles defined in the Cortex Search Service + customProperties: + - property: ordinalPosition + value: 24 + - property: scdType + value: 1 + logicalType: number + required: true + unique: false + - id: AUTO_SUSPEND_propId + name: AUTO_SUSPEND + description: Auto suspend threshold of the Cortex Search Service in seconds + customProperties: + - property: ordinalPosition + value: 25 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: REFRESH_MODE_propId + name: REFRESH_MODE + physicalType: VARCHAR(16777216) + description: Refresh mode of the source dynamic table + customProperties: + - property: ordinalPosition + value: 26 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: VECTOR_INDEXES_propId + name: VECTOR_INDEXES + physicalType: VARCHAR(16777216) + description: Vector indexes defined in the Cortex Search Service + customProperties: + - property: ordinalPosition + value: 27 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false +- id: CURRENT_PACKAGES_POLICY_schId + name: CURRENT_PACKAGES_POLICY + physicalType: view + description: The packages policy set on the current account + logicalType: object + physicalName: INFORMATION_SCHEMA.CURRENT_PACKAGES_POLICY + properties: + - id: NAME_propId + name: NAME + physicalType: VARCHAR(16777216) + description: Packages policy name + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: LANGUAGE_propId + name: LANGUAGE + physicalType: VARCHAR(16777216) + description: Package language + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: ALLOWLIST_propId + name: ALLOWLIST + physicalType: VARCHAR(16777216) + description: Allowlist + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: BLOCKLIST_propId + name: BLOCKLIST + physicalType: VARCHAR(16777216) + description: BLocklist + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: ADDITIONAL_CREATION_BLOCKLIST_propId + name: ADDITIONAL_CREATION_BLOCKLIST + physicalType: VARCHAR(16777216) + description: Additional creation blocklist + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: comment + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false +- id: DATABASES_schId + name: DATABASES + physicalType: view + description: The databases that are accessible to the current user's role. + logicalType: object + physicalName: INFORMATION_SCHEMA.DATABASES + properties: + - id: DATABASE_NAME_propId + name: DATABASE_NAME + physicalType: VARCHAR(16777216) + description: Name of the database + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: DATABASE_OWNER_propId + name: DATABASE_OWNER + physicalType: VARCHAR(16777216) + description: Name of the role that owns the schema + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: IS_TRANSIENT_propId + name: IS_TRANSIENT + physicalType: VARCHAR(3) + description: Whether this is a transient table + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Comment for this database + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Creation time of the database + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: LAST_ALTERED_propId + name: LAST_ALTERED + physicalType: TIMESTAMP_LTZ + description: Last altered time of the database + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: RETENTION_TIME_propId + name: RETENTION_TIME + physicalType: NUMBER(9,0) + description: Number of days that historical data is retained for Time Travel + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: TYPE_propId + name: TYPE + physicalType: VARCHAR(16777216) + description: The type of database + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: REPLICABLE_WITH_FAILOVER_GROUPS_propId + name: REPLICABLE_WITH_FAILOVER_GROUPS + physicalType: VARCHAR(16777216) + description: Whether this object is replicable with a failover group + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: OWNER_ROLE_TYPE_propId + name: OWNER_ROLE_TYPE + physicalType: VARCHAR(16777216) + description: Type of the role that owns the database + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false +- id: ELEMENT_TYPES_schId + name: ELEMENT_TYPES + physicalType: view + description: The element types of structured array types defined in this database + that are accessible to the current user's role. + logicalType: object + physicalName: INFORMATION_SCHEMA.ELEMENT_TYPES + properties: + - id: OBJECT_CATALOG_propId + name: OBJECT_CATALOG + physicalType: VARCHAR(16777216) + description: Database that contains the object that uses this array type + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: OBJECT_SCHEMA_propId + name: OBJECT_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema that contains the object that uses this array type + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: OBJECT_NAME_propId + name: OBJECT_NAME + physicalType: VARCHAR(16777216) + description: Name of the object that uses this array type + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: OBJECT_TYPE_propId + name: OBJECT_TYPE + physicalType: VARCHAR(16777216) + description: Type of the object that uses this array type + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: COLLECTION_TYPE_IDENTIFIER_propId + name: COLLECTION_TYPE_IDENTIFIER + physicalType: VARCHAR(16777216) + description: Type identifier + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: DATA_TYPE_propId + name: DATA_TYPE + physicalType: VARCHAR(16777216) + description: Element data type + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: CHARACTER_MAXIMUM_LENGTH_propId + name: CHARACTER_MAXIMUM_LENGTH + physicalType: NUMBER(9,0) + description: Maximum length in characters for string types + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: CHARACTER_OCTET_LENGTH_propId + name: CHARACTER_OCTET_LENGTH + physicalType: NUMBER(9,0) + description: Maximum length in bytes for string types + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: NUMERIC_PRECISION_propId + name: NUMERIC_PRECISION + physicalType: NUMBER(9,0) + description: Numeric precision for numeric types + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: NUMERIC_PRECISION_RADIX_propId + name: NUMERIC_PRECISION_RADIX + physicalType: NUMBER(9,0) + description: Radix of precision for numeric types + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: NUMERIC_SCALE_propId + name: NUMERIC_SCALE + physicalType: NUMBER(9,0) + description: Scale for numeric types + customProperties: + - property: ordinalPosition + value: 11 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: DATETIME_PRECISION_propId + name: DATETIME_PRECISION + physicalType: NUMBER(9,0) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 12 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: INTERVAL_TYPE_propId + name: INTERVAL_TYPE + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 13 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: INTERVAL_PRECISION_propId + name: INTERVAL_PRECISION + physicalType: NUMBER(9,0) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 14 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: CHARACTER_SET_CATALOG_propId + name: CHARACTER_SET_CATALOG + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 15 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CHARACTER_SET_SCHEMA_propId + name: CHARACTER_SET_SCHEMA + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 16 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CHARACTER_SET_NAME_propId + name: CHARACTER_SET_NAME + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 17 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: COLLATION_CATALOG_propId + name: COLLATION_CATALOG + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 18 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: COLLATION_SCHEMA_propId + name: COLLATION_SCHEMA + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 19 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: COLLATION_NAME_propId + name: COLLATION_NAME + physicalType: VARCHAR(16777216) + description: The name of collation, if present + customProperties: + - property: ordinalPosition + value: 20 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: UDT_CATALOG_propId + name: UDT_CATALOG + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 21 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: UDT_SCHEMA_propId + name: UDT_SCHEMA + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 22 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: UDT_NAME_propId + name: UDT_NAME + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 23 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: SCOPE_CATALOG_propId + name: SCOPE_CATALOG + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 24 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: SCOPE_SCHEMA_propId + name: SCOPE_SCHEMA + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 25 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: SCOPE_NAME_propId + name: SCOPE_NAME + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 26 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: MAXIMUM_CARDINALITY_propId + name: MAXIMUM_CARDINALITY + physicalType: NUMBER(9,0) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 27 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: DTD_IDENTIFIER_propId + name: DTD_IDENTIFIER + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 28 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false +- id: ENABLED_ROLES_schId + name: ENABLED_ROLES + physicalType: view + description: The roles that are enabled to the current user. + logicalType: object + physicalName: INFORMATION_SCHEMA.ENABLED_ROLES + properties: + - id: ROLE_NAME_propId + name: ROLE_NAME + physicalType: VARCHAR(16777216) + description: Name of the role + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: ROLE_OWNER_propId + name: ROLE_OWNER + physicalType: VARCHAR(16777216) + description: Owner of the role + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false +- id: EVENT_TABLES_schId + name: EVENT_TABLES + physicalType: view + description: The event tables defined in this database that are accessible to the + current user's role. + logicalType: object + physicalName: INFORMATION_SCHEMA.EVENT_TABLES + properties: + - id: TABLE_CATALOG_propId + name: TABLE_CATALOG + physicalType: VARCHAR(16777216) + description: Database that the event table belongs to + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: TABLE_SCHEMA_propId + name: TABLE_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema that the event table belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: TABLE_NAME_propId + name: TABLE_NAME + physicalType: VARCHAR(16777216) + description: Name of the event table + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: TABLE_OWNER_propId + name: TABLE_OWNER + physicalType: VARCHAR(16777216) + description: Name of the role that owns the event table + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Creation time of the event table + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: LAST_ALTERED_propId + name: LAST_ALTERED + physicalType: TIMESTAMP_LTZ + description: Last altered time of the event table + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Comment for this event table + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false +- id: EXTERNAL_TABLES_schId + name: EXTERNAL_TABLES + physicalType: view + description: The external tables defined in this database that are accessible to + the current user's role. + logicalType: object + physicalName: INFORMATION_SCHEMA.EXTERNAL_TABLES + properties: + - id: TABLE_CATALOG_propId + name: TABLE_CATALOG + physicalType: VARCHAR(16777216) + description: Database that the external table belongs to + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: TABLE_SCHEMA_propId + name: TABLE_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema that the external table belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: TABLE_NAME_propId + name: TABLE_NAME + physicalType: VARCHAR(16777216) + description: Name of the external table + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: TABLE_OWNER_propId + name: TABLE_OWNER + physicalType: VARCHAR(16777216) + description: Name of the role that owns the external table + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Creation time of the external table + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: LAST_ALTERED_propId + name: LAST_ALTERED + physicalType: TIMESTAMP_LTZ + description: Last altered time of the external table + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: LAST_DDL_propId + name: LAST_DDL + physicalType: TIMESTAMP_LTZ + description: Last DDL time of the view + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: LAST_DDL_BY_propId + name: LAST_DDL_BY + physicalType: VARCHAR(16777216) + description: User name that performed the last DDL of the view + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Comment for this external table + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: LOCATION_propId + name: LOCATION + physicalType: VARCHAR(16777216) + description: Location of the external table + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: FILE_FORMAT_NAME_propId + name: FILE_FORMAT_NAME + physicalType: VARCHAR(16777216) + description: File format name (if there is one) of the external table + customProperties: + - property: ordinalPosition + value: 11 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: FILE_FORMAT_TYPE_propId + name: FILE_FORMAT_TYPE + physicalType: VARCHAR(16777216) + description: File format type (if not named) of the external table + customProperties: + - property: ordinalPosition + value: 12 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false +- id: FIELDS_schId + name: FIELDS + physicalType: view + description: The fields of structured object and map types defined in this database + that are accessible to the current user's role. + logicalType: object + physicalName: INFORMATION_SCHEMA.FIELDS + properties: + - id: OBJECT_CATALOG_propId + name: OBJECT_CATALOG + physicalType: VARCHAR(16777216) + description: Database that contains the object that uses this object type + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: OBJECT_SCHEMA_propId + name: OBJECT_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema that contains the object that uses this object type + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: OBJECT_NAME_propId + name: OBJECT_NAME + physicalType: VARCHAR(16777216) + description: Name of the object that uses this object type + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: OBJECT_TYPE_propId + name: OBJECT_TYPE + physicalType: VARCHAR(16777216) + description: Type of the object that uses this object type + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: ROW_IDENTIFIER_propId + name: ROW_IDENTIFIER + physicalType: VARCHAR(16777216) + description: Type identifier + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: FIELD_NAME_propId + name: FIELD_NAME + physicalType: VARCHAR(16777216) + description: Field name + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: ORDINAL_POSITION_propId + name: ORDINAL_POSITION + physicalType: NUMBER(9,0) + description: Ordinal position + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: number + required: true + unique: false + - id: DATA_TYPE_propId + name: DATA_TYPE + physicalType: VARCHAR(16777216) + description: Data type of the field + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: CHARACTER_MAXIMUM_LENGTH_propId + name: CHARACTER_MAXIMUM_LENGTH + physicalType: NUMBER(9,0) + description: Maximum length in characters of string fields + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: CHARACTER_OCTET_LENGTH_propId + name: CHARACTER_OCTET_LENGTH + physicalType: NUMBER(9,0) + description: Maximum length in bytes of string fields + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: NUMERIC_PRECISION_propId + name: NUMERIC_PRECISION + physicalType: NUMBER(9,0) + description: Numeric precision of numeric fields + customProperties: + - property: ordinalPosition + value: 11 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: NUMERIC_PRECISION_RADIX_propId + name: NUMERIC_PRECISION_RADIX + physicalType: NUMBER(9,0) + description: Radix of precision of numeric fields + customProperties: + - property: ordinalPosition + value: 12 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: NUMERIC_SCALE_propId + name: NUMERIC_SCALE + physicalType: NUMBER(9,0) + description: Scale of numeric fields + customProperties: + - property: ordinalPosition + value: 13 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: DATETIME_PRECISION_propId + name: DATETIME_PRECISION + physicalType: NUMBER(9,0) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 14 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: INTERVAL_TYPE_propId + name: INTERVAL_TYPE + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 15 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: INTERVAL_PRECISION_propId + name: INTERVAL_PRECISION + physicalType: NUMBER(9,0) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 16 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: CHARACTER_SET_CATALOG_propId + name: CHARACTER_SET_CATALOG + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 17 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CHARACTER_SET_SCHEMA_propId + name: CHARACTER_SET_SCHEMA + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 18 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CHARACTER_SET_NAME_propId + name: CHARACTER_SET_NAME + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 19 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: COLLATION_CATALOG_propId + name: COLLATION_CATALOG + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 20 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: COLLATION_SCHEMA_propId + name: COLLATION_SCHEMA + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 21 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: COLLATION_NAME_propId + name: COLLATION_NAME + physicalType: VARCHAR(16777216) + description: The name of collation, if present + customProperties: + - property: ordinalPosition + value: 22 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: UDT_CATALOG_propId + name: UDT_CATALOG + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 23 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: UDT_SCHEMA_propId + name: UDT_SCHEMA + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 24 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: UDT_NAME_propId + name: UDT_NAME + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 25 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: SCOPE_CATALOG_propId + name: SCOPE_CATALOG + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 26 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: SCOPE_SCHEMA_propId + name: SCOPE_SCHEMA + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 27 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: SCOPE_NAME_propId + name: SCOPE_NAME + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 28 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: MAXIMUM_CARDINALITY_propId + name: MAXIMUM_CARDINALITY + physicalType: NUMBER(9,0) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 29 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: DTD_IDENTIFIER_propId + name: DTD_IDENTIFIER + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 30 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false +- id: FILE_FORMATS_schId + name: FILE_FORMATS + physicalType: view + description: The file formats defined in this database that are accessible to the + current user's role. + logicalType: object + physicalName: INFORMATION_SCHEMA.FILE_FORMATS + properties: + - id: FILE_FORMAT_CATALOG_propId + name: FILE_FORMAT_CATALOG + physicalType: VARCHAR(16777216) + description: Database that the file format belongs to + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: FILE_FORMAT_SCHEMA_propId + name: FILE_FORMAT_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema that the file format belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: FILE_FORMAT_NAME_propId + name: FILE_FORMAT_NAME + physicalType: VARCHAR(16777216) + description: Name of the file format + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: FILE_FORMAT_OWNER_propId + name: FILE_FORMAT_OWNER + physicalType: VARCHAR(16777216) + description: Name of the role that owns the file format + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: FILE_FORMAT_TYPE_propId + name: FILE_FORMAT_TYPE + physicalType: VARCHAR(16777216) + description: Type of the file format + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: RECORD_DELIMITER_propId + name: RECORD_DELIMITER + physicalType: VARCHAR(1) + description: Character that separates records + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 1 + required: false + unique: false + - id: FIELD_DELIMITER_propId + name: FIELD_DELIMITER + physicalType: VARCHAR(1) + description: Character that separates fields + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 1 + required: false + unique: false + - id: SKIP_HEADER_propId + name: SKIP_HEADER + physicalType: NUMBER(9,0) + description: Number of lines skipped at the start of the file + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: DATE_FORMAT_propId + name: DATE_FORMAT + physicalType: VARCHAR(16777216) + description: Date format + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: TIME_FORMAT_propId + name: TIME_FORMAT + physicalType: VARCHAR(16777216) + description: Time format + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: TIMESTAMP_FORMAT_propId + name: TIMESTAMP_FORMAT + physicalType: VARCHAR(16777216) + description: Timestamp format + customProperties: + - property: ordinalPosition + value: 11 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: BINARY_FORMAT_propId + name: BINARY_FORMAT + physicalType: VARCHAR(16777216) + description: Binary format + customProperties: + - property: ordinalPosition + value: 12 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: ESCAPE_propId + name: ESCAPE + physicalType: VARCHAR(1) + description: String used as the escape character for any field values + customProperties: + - property: ordinalPosition + value: 13 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 1 + required: false + unique: false + - id: ESCAPE_UNENCLOSED_FIELD_propId + name: ESCAPE_UNENCLOSED_FIELD + physicalType: VARCHAR(1) + description: String used as the escape character for unenclosed field values + customProperties: + - property: ordinalPosition + value: 14 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 1 + required: false + unique: false + - id: TRIM_SPACE_propId + name: TRIM_SPACE + physicalType: VARCHAR(16777216) + description: Whether whitespace is removed from fields + customProperties: + - property: ordinalPosition + value: 15 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: FIELD_OPTIONALLY_ENCLOSED_BY_propId + name: FIELD_OPTIONALLY_ENCLOSED_BY + physicalType: VARCHAR(16777216) + description: Character used to enclose strings + customProperties: + - property: ordinalPosition + value: 16 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: NULL_IF_propId + name: NULL_IF + physicalType: VARCHAR(16777216) + description: A list of strings to be replaced by null + customProperties: + - property: ordinalPosition + value: 17 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: COMPRESSION_propId + name: COMPRESSION + physicalType: VARCHAR(16777216) + description: Compression method for the data file + customProperties: + - property: ordinalPosition + value: 18 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: ERROR_ON_COLUMN_COUNT_MISMATCH_propId + name: ERROR_ON_COLUMN_COUNT_MISMATCH + physicalType: VARCHAR(16777216) + description: Whether to generate a parsing error if the number of fields in an + input file does not match the number of columns in the corresponding table + customProperties: + - property: ordinalPosition + value: 19 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Creation time of the file format + customProperties: + - property: ordinalPosition + value: 20 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: LAST_ALTERED_propId + name: LAST_ALTERED + physicalType: TIMESTAMP_LTZ + description: Last altered time of the file format + customProperties: + - property: ordinalPosition + value: 21 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Comment for this file format + customProperties: + - property: ordinalPosition + value: 22 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false +- id: FUNCTIONS_schId + name: FUNCTIONS + physicalType: view + description: The user-defined functions defined in this database that are accessible + to the current user's role. + logicalType: object + physicalName: INFORMATION_SCHEMA.FUNCTIONS + properties: + - id: FUNCTION_CATALOG_propId + name: FUNCTION_CATALOG + physicalType: VARCHAR(16777216) + description: Database which the function belongs to + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: FUNCTION_SCHEMA_propId + name: FUNCTION_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema which the function belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: FUNCTION_NAME_propId + name: FUNCTION_NAME + physicalType: VARCHAR(16777216) + description: Name of the function + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: FUNCTION_OWNER_propId + name: FUNCTION_OWNER + physicalType: VARCHAR(16777216) + description: Name of the role that owns the function + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: ARGUMENT_SIGNATURE_propId + name: ARGUMENT_SIGNATURE + physicalType: VARCHAR(16777216) + description: Type signature of the function's arguments + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: DATA_TYPE_propId + name: DATA_TYPE + physicalType: VARCHAR(16777216) + description: Return value data type + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: CHARACTER_MAXIMUM_LENGTH_propId + name: CHARACTER_MAXIMUM_LENGTH + physicalType: NUMBER(9,0) + description: Maximum length in characters of string return value + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: CHARACTER_OCTET_LENGTH_propId + name: CHARACTER_OCTET_LENGTH + physicalType: NUMBER(9,0) + description: Maximum length in bytes of string return value + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: NUMERIC_PRECISION_propId + name: NUMERIC_PRECISION + physicalType: NUMBER(9,0) + description: Numeric precision of numeric return value + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: NUMERIC_PRECISION_RADIX_propId + name: NUMERIC_PRECISION_RADIX + physicalType: NUMBER(9,0) + description: Radix of precision of numeric return value + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: NUMERIC_SCALE_propId + name: NUMERIC_SCALE + physicalType: NUMBER(9,0) + description: Scale of numeric return value + customProperties: + - property: ordinalPosition + value: 11 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: FUNCTION_LANGUAGE_propId + name: FUNCTION_LANGUAGE + physicalType: VARCHAR(16777216) + description: Language of the function + customProperties: + - property: ordinalPosition + value: 12 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: FUNCTION_DEFINITION_propId + name: FUNCTION_DEFINITION + physicalType: VARCHAR(16777216) + description: Function definition + customProperties: + - property: ordinalPosition + value: 13 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: VOLATILITY_propId + name: VOLATILITY + physicalType: VARCHAR(16777216) + description: Whether the function is volatile or immutable + customProperties: + - property: ordinalPosition + value: 14 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: IS_NULL_CALL_propId + name: IS_NULL_CALL + physicalType: VARCHAR(3) + description: Whether the function is called on null input + customProperties: + - property: ordinalPosition + value: 15 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: IS_SECURE_propId + name: IS_SECURE + physicalType: VARCHAR(3) + description: Whether this function is secure. + customProperties: + - property: ordinalPosition + value: 16 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Creation time of the function + customProperties: + - property: ordinalPosition + value: 17 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: LAST_ALTERED_propId + name: LAST_ALTERED + physicalType: TIMESTAMP_LTZ + description: Last altered time of the function + customProperties: + - property: ordinalPosition + value: 18 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Comment for this function + customProperties: + - property: ordinalPosition + value: 19 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: IS_EXTERNAL_propId + name: IS_EXTERNAL + physicalType: VARCHAR(3) + description: Whether this function is external + customProperties: + - property: ordinalPosition + value: 20 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: API_INTEGRATION_propId + name: API_INTEGRATION + physicalType: VARCHAR(16777216) + description: Integration for this function + customProperties: + - property: ordinalPosition + value: 21 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CONTEXT_HEADERS_propId + name: CONTEXT_HEADERS + physicalType: VARCHAR(16777216) + description: Context headers for this function + customProperties: + - property: ordinalPosition + value: 22 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: MAX_BATCH_ROWS_propId + name: MAX_BATCH_ROWS + physicalType: NUMBER(9,0) + description: Max batch rows for this function + customProperties: + - property: ordinalPosition + value: 23 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: REQUEST_TRANSLATOR_propId + name: REQUEST_TRANSLATOR + physicalType: VARCHAR(16777216) + description: Request Translator function name + customProperties: + - property: ordinalPosition + value: 24 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: RESPONSE_TRANSLATOR_propId + name: RESPONSE_TRANSLATOR + physicalType: VARCHAR(16777216) + description: Response Translator function name + customProperties: + - property: ordinalPosition + value: 25 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: COMPRESSION_propId + name: COMPRESSION + physicalType: VARCHAR(16777216) + description: Type of compression used for serializing function payload + customProperties: + - property: ordinalPosition + value: 26 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: IMPORTS_propId + name: IMPORTS + physicalType: VARCHAR(16777216) + description: List of imports for the function + customProperties: + - property: ordinalPosition + value: 27 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: HANDLER_propId + name: HANDLER + physicalType: VARCHAR(16777216) + description: Handler for the function + customProperties: + - property: ordinalPosition + value: 28 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: TARGET_PATH_propId + name: TARGET_PATH + physicalType: VARCHAR(16777216) + description: Stage path for storage of compiled inline Java UDF code + customProperties: + - property: ordinalPosition + value: 29 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: RUNTIME_VERSION_propId + name: RUNTIME_VERSION + physicalType: VARCHAR(16777216) + description: Runtime version of the function. NULL if function is SQL or Javascript + customProperties: + - property: ordinalPosition + value: 30 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: PACKAGES_propId + name: PACKAGES + physicalType: VARCHAR(16777216) + description: Packages requested by the function. + customProperties: + - property: ordinalPosition + value: 31 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: INSTALLED_PACKAGES_propId + name: INSTALLED_PACKAGES + physicalType: VARCHAR(16777216) + description: All packages installed by the function. + customProperties: + - property: ordinalPosition + value: 32 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: IS_MEMOIZABLE_propId + name: IS_MEMOIZABLE + physicalType: VARCHAR(3) + description: Whether this function is memoizable. + customProperties: + - property: ordinalPosition + value: 33 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: EXTERNAL_ACCESS_INTEGRATIONS_propId + name: EXTERNAL_ACCESS_INTEGRATIONS + physicalType: VARCHAR(16777216) + description: External Access integrations associated with this function + customProperties: + - property: ordinalPosition + value: 34 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: SECRETS_propId + name: SECRETS + physicalType: VARCHAR(16777216) + description: Secrets associated with this function + customProperties: + - property: ordinalPosition + value: 35 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: IS_DATA_METRIC_propId + name: IS_DATA_METRIC + physicalType: VARCHAR(3) + description: Whether this function is a data metric function. + customProperties: + - property: ordinalPosition + value: 36 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: IS_AGGREGATE_propId + name: IS_AGGREGATE + physicalType: VARCHAR(3) + description: Whether this is an aggregate function. + customProperties: + - property: ordinalPosition + value: 37 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false +- id: GIT_REPOSITORIES_schId + name: GIT_REPOSITORIES + physicalType: view + description: Git repositories in this database that are accessible by the current + user's role + logicalType: object + physicalName: INFORMATION_SCHEMA.GIT_REPOSITORIES + properties: + - id: GIT_REPOSITORY_CATALOG_propId + name: GIT_REPOSITORY_CATALOG + physicalType: VARCHAR(16777216) + description: Database that the git repository belongs to + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: GIT_REPOSITORY_SCHEMA_propId + name: GIT_REPOSITORY_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema that the git repository belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: GIT_REPOSITORY_NAME_propId + name: GIT_REPOSITORY_NAME + physicalType: VARCHAR(16777216) + description: Name of the git repository + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: GIT_REPOSITORY_OWNER_propId + name: GIT_REPOSITORY_OWNER + physicalType: VARCHAR(16777216) + description: Name of the role that owns the git repository + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: ORIGIN_propId + name: ORIGIN + physicalType: VARCHAR(16777216) + description: Origin of the git repository + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: API_INTEGRATION_propId + name: API_INTEGRATION + physicalType: VARCHAR(16777216) + description: Name of the api integration used by the git repository + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: GIT_CREDENTIALS_propId + name: GIT_CREDENTIALS + physicalType: VARCHAR(16777216) + description: Name of the secret used by the git repository + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Comment for this git repository + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Creation time of the git repository + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: LAST_ALTERED_propId + name: LAST_ALTERED + physicalType: TIMESTAMP_LTZ + description: Last altered time of the git repository + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false +- id: HYBRID_TABLES_schId + name: HYBRID_TABLES + physicalType: view + description: The hybrid tables defined in this database that are accessible to the + current user's role. + logicalType: object + physicalName: INFORMATION_SCHEMA.HYBRID_TABLES + properties: + - id: CATALOG_propId + name: CATALOG + physicalType: VARCHAR(16777216) + description: Database that the table belongs to + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SCHEMA_propId + name: SCHEMA + physicalType: VARCHAR(16777216) + description: Schema that the table belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: NAME_propId + name: NAME + physicalType: VARCHAR(16777216) + description: Name of the table + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: OWNER_propId + name: OWNER + physicalType: VARCHAR(16777216) + description: Name of the role that owns the table + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: ROW_COUNT_propId + name: ROW_COUNT + physicalType: NUMBER(38,0) + description: Number of rows in the table + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: BYTES_propId + name: BYTES + physicalType: NUMBER(38,0) + description: Number of bytes accessed by a scan of the table + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: RETENTION_TIME_propId + name: RETENTION_TIME + physicalType: NUMBER(9,0) + description: Number of days that historical data is retained for Time Travel + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Creation time of the table + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: LAST_ALTERED_propId + name: LAST_ALTERED + physicalType: TIMESTAMP_LTZ + description: Last altered time of the table + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Comment for this table + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false +- id: INDEX_COLUMNS_schId + name: INDEX_COLUMNS + physicalType: view + description: The columns of indexes defined in this database that are accessible + to the current user's role. + logicalType: object + physicalName: INFORMATION_SCHEMA.INDEX_COLUMNS + properties: + - id: TABLE_CATALOG_propId + name: TABLE_CATALOG + physicalType: VARCHAR(16777216) + description: Database that the table belongs to + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: TABLE_SCHEMA_propId + name: TABLE_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema that the table belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: TABLE_NAME_propId + name: TABLE_NAME + physicalType: VARCHAR(16777216) + description: Name of the table + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: INDEX_NAME_propId + name: INDEX_NAME + physicalType: VARCHAR(16777216) + description: Name of the index + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: NAME_propId + name: NAME + physicalType: VARCHAR(16777216) + description: Name of the column + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: KEY_SEQUENCE_propId + name: KEY_SEQUENCE + physicalType: NUMBER(9,0) + description: Position of the column in the index + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: number + required: true + unique: false + - id: INDEX_OWNER_propId + name: INDEX_OWNER + physicalType: VARCHAR(16777216) + description: Name of the role that owns the index + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: IS_UNIQUE_propId + name: IS_UNIQUE + physicalType: VARCHAR(3) + description: Whether this index is unique + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: CONSTRAINT_NAME_propId + name: CONSTRAINT_NAME + physicalType: VARCHAR(16777216) + description: Name of the constraint associated with this index, if any + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: STATUS_propId + name: STATUS + physicalType: VARCHAR(16777216) + description: The status of the index + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Creation time of the index + customProperties: + - property: ordinalPosition + value: 11 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false +- id: INDEXES_schId + name: INDEXES + physicalType: view + description: The indexes defined in this database that are accessible to the current + user's role. + logicalType: object + physicalName: INFORMATION_SCHEMA.INDEXES + properties: + - id: TABLE_CATALOG_propId + name: TABLE_CATALOG + physicalType: VARCHAR(16777216) + description: Database that the table belongs to + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: TABLE_SCHEMA_propId + name: TABLE_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema that the table belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: TABLE_NAME_propId + name: TABLE_NAME + physicalType: VARCHAR(16777216) + description: Name of the table + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: NAME_propId + name: NAME + physicalType: VARCHAR(16777216) + description: Name of the index + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: OWNER_propId + name: OWNER + physicalType: VARCHAR(16777216) + description: Name of the role that owns the index + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: IS_UNIQUE_propId + name: IS_UNIQUE + physicalType: VARCHAR(3) + description: Whether this index is unique + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: CONSTRAINT_NAME_propId + name: CONSTRAINT_NAME + physicalType: VARCHAR(16777216) + description: Name of the constraint associated with this index, if any + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: STATUS_propId + name: STATUS + physicalType: VARCHAR(16777216) + description: The status of the index + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Creation time of the index + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false +- id: INFORMATION_SCHEMA_CATALOG_NAME_schId + name: INFORMATION_SCHEMA_CATALOG_NAME + physicalType: view + description: Identifies the database (or catalog, in SQL terminology) that contains + the information_schema + logicalType: object + physicalName: INFORMATION_SCHEMA.INFORMATION_SCHEMA_CATALOG_NAME + properties: + - id: CATALOG_NAME_propId + name: CATALOG_NAME + physicalType: VARCHAR(16777216) + description: The name of the database in which this information_schema resides. + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false +- id: LISTINGS_schId + name: LISTINGS + physicalType: view + description: Listings that are accessible by the current user's role + logicalType: object + physicalName: INFORMATION_SCHEMA.LISTINGS + properties: + - id: GLOBAL_NAME_propId + name: GLOBAL_NAME + physicalType: VARCHAR(16777216) + description: Global name of the listing + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: NAME_propId + name: NAME + physicalType: VARCHAR(16777216) + description: Name of the listing + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: OWNER_propId + name: OWNER + physicalType: VARCHAR(16777216) + description: Owner of the listing + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CREATED_ON_propId + name: CREATED_ON + physicalType: TIMESTAMP_LTZ + description: Creation time of the listing + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: UPDATED_ON_propId + name: UPDATED_ON + physicalType: TIMESTAMP_LTZ + description: Last updated time of the listing + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: PUBLISHED_ON_propId + name: PUBLISHED_ON + physicalType: TIMESTAMP_LTZ + description: Last published time of the listing + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: TITLE_propId + name: TITLE + physicalType: VARCHAR(16777216) + description: Title of the listing + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: SUBTITLE_propId + name: SUBTITLE + physicalType: VARCHAR(16777216) + description: Subtitle of the listing + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: DESCRIPTION_propId + name: DESCRIPTION + physicalType: VARCHAR(16777216) + description: Description of the listing + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: LISTING_TERMS_propId + name: LISTING_TERMS + physicalType: VARCHAR(16777216) + description: Listing terms + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: STATE_propId + name: STATE + physicalType: VARCHAR(16777216) + description: State of the listing + customProperties: + - property: ordinalPosition + value: 11 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: SHARE_propId + name: SHARE + physicalType: VARCHAR(16777216) + description: Share of the listing + customProperties: + - property: ordinalPosition + value: 12 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: APPLICATION_PACKAGE_propId + name: APPLICATION_PACKAGE + physicalType: VARCHAR(16777216) + description: Application package of the listing + customProperties: + - property: ordinalPosition + value: 13 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: DATA_ATTRIBUTES_propId + name: DATA_ATTRIBUTES + physicalType: VARCHAR(16777216) + description: Data attributes + customProperties: + - property: ordinalPosition + value: 14 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CATEGORIES_propId + name: CATEGORIES + physicalType: VARCHAR(16777216) + description: Categories of the listing + customProperties: + - property: ordinalPosition + value: 15 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: PROFILE_propId + name: PROFILE + physicalType: VARCHAR(16777216) + description: Profile of the listing + customProperties: + - property: ordinalPosition + value: 16 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CUSTOMIZED_CONTACT_INFO_propId + name: CUSTOMIZED_CONTACT_INFO + physicalType: VARCHAR(16777216) + description: Customized contact info + customProperties: + - property: ordinalPosition + value: 17 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Comment of the listing + customProperties: + - property: ordinalPosition + value: 18 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: TARGETS_propId + name: TARGETS + physicalType: VARCHAR(16777216) + description: Targets + customProperties: + - property: ordinalPosition + value: 19 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: AUTO_FULFILLMENT_propId + name: AUTO_FULFILLMENT + physicalType: VARCHAR(16777216) + description: Auto fulfillment settings + customProperties: + - property: ordinalPosition + value: 20 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: IS_SHARE_propId + name: IS_SHARE + physicalType: BOOLEAN + description: Whether the listing is a share + customProperties: + - property: ordinalPosition + value: 21 + - property: scdType + value: 1 + logicalType: boolean + required: false + unique: false + - id: IS_APPLICATION_propId + name: IS_APPLICATION + physicalType: BOOLEAN + description: Whether the listing is an application + customProperties: + - property: ordinalPosition + value: 22 + - property: scdType + value: 1 + logicalType: boolean + required: false + unique: false + - id: DISTRIBUTION_propId + name: DISTRIBUTION + physicalType: VARCHAR(16777216) + description: Distribution of the listing + customProperties: + - property: ordinalPosition + value: 23 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: IS_MOUNTLESS_QUERYABLE_propId + name: IS_MOUNTLESS_QUERYABLE + physicalType: BOOLEAN + description: Whether the listing is mountless queryable + customProperties: + - property: ordinalPosition + value: 24 + - property: scdType + value: 1 + logicalType: boolean + required: false + unique: false + - id: ORGANIZATION_PROFILE_NAME_propId + name: ORGANIZATION_PROFILE_NAME + physicalType: VARCHAR(16777216) + description: Organization profile name of the listing + customProperties: + - property: ordinalPosition + value: 25 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: UNIFORM_LISTING_LOCATOR_propId + name: UNIFORM_LISTING_LOCATOR + physicalType: VARCHAR(16777216) + description: Uniform listing locator of the listing + customProperties: + - property: ordinalPosition + value: 26 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: APPROVER_CONTACT_propId + name: APPROVER_CONTACT + physicalType: VARCHAR(16777216) + description: Approver contact + customProperties: + - property: ordinalPosition + value: 27 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: SUPPORT_CONTACT_propId + name: SUPPORT_CONTACT + physicalType: VARCHAR(16777216) + description: Support contact + customProperties: + - property: ordinalPosition + value: 28 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: RESHARING_propId + name: RESHARING + physicalType: VARCHAR(16777216) + description: Resharing + customProperties: + - property: ordinalPosition + value: 29 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false +- id: LOAD_HISTORY_schId + name: LOAD_HISTORY + physicalType: view + description: The loading information of the copy command + logicalType: object + physicalName: INFORMATION_SCHEMA.LOAD_HISTORY + properties: + - id: SCHEMA_NAME_propId + name: SCHEMA_NAME + physicalType: VARCHAR(16777216) + description: Schema of target table + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: FILE_NAME_propId + name: FILE_NAME + physicalType: VARCHAR(16777216) + description: Name of source file + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: TABLE_NAME_propId + name: TABLE_NAME + physicalType: VARCHAR(16777216) + description: Name of target table + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: LAST_LOAD_TIME_propId + name: LAST_LOAD_TIME + physicalType: TIMESTAMP_LTZ + description: Timestamp of the load record + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: STATUS_propId + name: STATUS + physicalType: VARCHAR(16777216) + description: 'Status: loaded, load failed or partially loaded' + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: ROW_COUNT_propId + name: ROW_COUNT + physicalType: NUMBER(9,0) + description: Number of rows loaded from the source file + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: ROW_PARSED_propId + name: ROW_PARSED + physicalType: NUMBER(9,0) + description: Number of rows parsed from the source file + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: FIRST_ERROR_MESSAGE_propId + name: FIRST_ERROR_MESSAGE + physicalType: VARCHAR(16777216) + description: First error of the source file + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: FIRST_ERROR_LINE_NUMBER_propId + name: FIRST_ERROR_LINE_NUMBER + physicalType: NUMBER(9,0) + description: Line number of the first error + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: FIRST_ERROR_CHARACTER_POSITION_propId + name: FIRST_ERROR_CHARACTER_POSITION + physicalType: NUMBER(9,0) + description: Position of the first error character + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: FIRST_ERROR_COL_NAME_propId + name: FIRST_ERROR_COL_NAME + physicalType: VARCHAR(16777216) + description: Column name of the first error + customProperties: + - property: ordinalPosition + value: 11 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: ERROR_COUNT_propId + name: ERROR_COUNT + physicalType: NUMBER(9,0) + description: Number of error rows in the source file + customProperties: + - property: ordinalPosition + value: 12 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: ERROR_LIMIT_propId + name: ERROR_LIMIT + physicalType: NUMBER(9,0) + description: If the number of error reach this limit, then abort + customProperties: + - property: ordinalPosition + value: 13 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false +- id: MODEL_VERSIONS_schId + name: MODEL_VERSIONS + physicalType: view + description: 'The MODEL VERSIONS that the current user has privileges to view ' + logicalType: object + physicalName: INFORMATION_SCHEMA.MODEL_VERSIONS + properties: + - id: CATALOG_NAME_propId + name: CATALOG_NAME + physicalType: VARCHAR(16777216) + description: Database name which the MODEL VERSION belongs to + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: CATALOG_ID_propId + name: CATALOG_ID + physicalType: NUMBER(9,0) + description: ID of the database which the MODEL VERSION belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: number + required: true + unique: false + - id: SCHEMA_NAME_propId + name: SCHEMA_NAME + physicalType: VARCHAR(16777216) + description: Schema which the MODEL VERSION belongs to + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SCHEMA_ID_propId + name: SCHEMA_ID + physicalType: NUMBER(9,0) + description: ID of the Schema which the MODEL VERSION belongs to + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: number + required: true + unique: false + - id: MODEL_NAME_propId + name: MODEL_NAME + physicalType: VARCHAR(16777216) + description: Name of the model which the MODEL VERSION belongs to + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: MODEL_VERSION_NAME_propId + name: MODEL_VERSION_NAME + physicalType: VARCHAR(16777216) + description: Name of the MODEL VERSION + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: VERSION_ALIASES_propId + name: VERSION_ALIASES + physicalType: ARRAY + description: All the aliases of the MODEL VERSION + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: object + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Comment for this MODEL VERSION + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: MODEL_COMMENT_propId + name: MODEL_COMMENT + physicalType: VARCHAR(16777216) + description: Comment for the MODEL this MODEL VERSION belongs to + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: OWNER_propId + name: OWNER + physicalType: VARCHAR(16777216) + description: Name of the role that owns the MODEL VERSION + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: CREATED_ON_propId + name: CREATED_ON + physicalType: TIMESTAMP_LTZ + description: Date and time when the MODEL VERSION was created + customProperties: + - property: ordinalPosition + value: 11 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: LAST_ALTERED_ON_propId + name: LAST_ALTERED_ON + physicalType: TIMESTAMP_LTZ + description: Date and time when the MODEL VERSION was last updated + customProperties: + - property: ordinalPosition + value: 12 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: FUNCTIONS_propId + name: FUNCTIONS + physicalType: VARCHAR(16777216) + description: Functions in the MODEL VERSION + customProperties: + - property: ordinalPosition + value: 13 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: MODEL_TYPE_propId + name: MODEL_TYPE + physicalType: VARCHAR(16777216) + description: Type of the model the MODEL VERSION belongs to + customProperties: + - property: ordinalPosition + value: 14 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: PYTHON_VERSION_propId + name: PYTHON_VERSION + physicalType: VARCHAR(16777216) + description: Python version the MODEL VERSION is using + customProperties: + - property: ordinalPosition + value: 15 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: LANGUAGE_propId + name: LANGUAGE + physicalType: VARCHAR(16777216) + description: Language the MODEL VERSION is implemented in + customProperties: + - property: ordinalPosition + value: 16 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: DEPENDENCIES_propId + name: DEPENDENCIES + physicalType: VARCHAR(16777216) + description: Dependencies of the MODEL VERSION + customProperties: + - property: ordinalPosition + value: 17 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: METADATA_propId + name: METADATA + physicalType: OBJECT + description: Metadata of the MODEL VERSION + customProperties: + - property: ordinalPosition + value: 18 + - property: scdType + value: 1 + logicalType: object + required: false + unique: false + - id: USERDATA_propId + name: USERDATA + physicalType: OBJECT + description: Usetdata of the model version + customProperties: + - property: ordinalPosition + value: 19 + - property: scdType + value: 1 + logicalType: object + required: false + unique: false +- id: NOTEBOOKS_schId + name: NOTEBOOKS + physicalType: view + description: Notebooks in this database that are accessible by the current user's + role + logicalType: object + physicalName: INFORMATION_SCHEMA.NOTEBOOKS + properties: + - id: NOTEBOOK_CATALOG_propId + name: NOTEBOOK_CATALOG + physicalType: VARCHAR(16777216) + description: Database that the notebook belongs to + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: NOTEBOOK_SCHEMA_propId + name: NOTEBOOK_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema that the Notebook belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: NOTEBOOK_NAME_propId + name: NOTEBOOK_NAME + physicalType: VARCHAR(16777216) + description: Name of the notebook + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: NOTEBOOK_OWNER_propId + name: NOTEBOOK_OWNER + physicalType: VARCHAR(16777216) + description: Name of the role that owns the notebook + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: NOTEBOOK_MAIN_FILE_propId + name: NOTEBOOK_MAIN_FILE + physicalType: VARCHAR(16777216) + description: Main file of the notebook + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: NOTEBOOK_QUERY_WAREHOUSE_propId + name: NOTEBOOK_QUERY_WAREHOUSE + physicalType: VARCHAR(16777216) + description: Query warehouse of the notebook + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: NOTEBOOK_URL_ID_propId + name: NOTEBOOK_URL_ID + physicalType: VARCHAR(16777216) + description: URL id of the notebook + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Creation time of the notebook + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: LAST_ALTERED_propId + name: LAST_ALTERED + physicalType: TIMESTAMP_LTZ + description: Last altered time of the notebook + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Comment for this notebook + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false +- id: OBJECT_PRIVILEGES_schId + name: OBJECT_PRIVILEGES + physicalType: view + description: The privileges on all objects defined in this database that are accessible + to the current user's role. + logicalType: object + physicalName: INFORMATION_SCHEMA.OBJECT_PRIVILEGES + properties: + - id: GRANTOR_propId + name: GRANTOR + physicalType: VARCHAR(16777216) + description: Role who granted the privilege + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: GRANTEE_propId + name: GRANTEE + physicalType: VARCHAR(16777216) + description: Object to which the privilege is granted + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: GRANTED_TO_propId + name: GRANTED_TO + physicalType: VARCHAR(16777216) + description: Object kind on which the privilege is granted + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: OBJECT_CATALOG_propId + name: OBJECT_CATALOG + physicalType: VARCHAR(16777216) + description: Database containing the object on which the privilege is granted + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: OBJECT_SCHEMA_propId + name: OBJECT_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema containing the object on which the privilege is granted + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: OBJECT_NAME_propId + name: OBJECT_NAME + physicalType: VARCHAR(16777216) + description: Name of the object on which the privilege is granted + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: OBJECT_TYPE_propId + name: OBJECT_TYPE + physicalType: VARCHAR(16777216) + description: Type of the object on which the privilege is granted + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: PRIVILEGE_TYPE_propId + name: PRIVILEGE_TYPE + physicalType: VARCHAR(16777216) + description: Type of the granted privilege + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: IS_GRANTABLE_propId + name: IS_GRANTABLE + physicalType: VARCHAR(3) + description: Whether the privilege was granted WITH GRANT OPTION + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Creation time of the privilege + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false +- id: PACKAGES_schId + name: PACKAGES + physicalType: view + description: Available packages in current account + logicalType: object + physicalName: INFORMATION_SCHEMA.PACKAGES + properties: + - id: PACKAGE_NAME_propId + name: PACKAGE_NAME + physicalType: VARCHAR(16777216) + description: Package name + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: VERSION_propId + name: VERSION + physicalType: VARCHAR(16777216) + description: Package version + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: LANGUAGE_propId + name: LANGUAGE + physicalType: VARCHAR(16777216) + description: Package language + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: RUNTIME_VERSION_propId + name: RUNTIME_VERSION + physicalType: VARCHAR(16777216) + description: Supported runtime version + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false +- id: PIPES_schId + name: PIPES + physicalType: view + description: The pipes defined in this database that are accessible to the current + user's role. + logicalType: object + physicalName: INFORMATION_SCHEMA.PIPES + properties: + - id: PIPE_CATALOG_propId + name: PIPE_CATALOG + physicalType: VARCHAR(16777216) + description: Database that the pipe belongs to + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: PIPE_SCHEMA_propId + name: PIPE_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema that the pipe belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: PIPE_NAME_propId + name: PIPE_NAME + physicalType: VARCHAR(16777216) + description: Name of the pipe + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: PIPE_OWNER_propId + name: PIPE_OWNER + physicalType: VARCHAR(16777216) + description: Name of the role that owns the pipe + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: DEFINITION_propId + name: DEFINITION + physicalType: VARCHAR(16777216) + description: Definition of the pipe as it was created + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: IS_AUTOINGEST_ENABLED_propId + name: IS_AUTOINGEST_ENABLED + physicalType: VARCHAR(3) + description: Whether this is an auto-ingest tpipe + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: NOTIFICATION_CHANNEL_NAME_propId + name: NOTIFICATION_CHANNEL_NAME + physicalType: VARCHAR(16777216) + description: Notification channel name if it is an auto-ingest pipe + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Creation time of the pipe + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: LAST_ALTERED_propId + name: LAST_ALTERED + physicalType: TIMESTAMP_LTZ + description: Last altered time of the pipe + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Comment for this pipe + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: PATTERN_propId + name: PATTERN + physicalType: VARCHAR(16777216) + description: Pattern used to filter the files in Snowpipe + customProperties: + - property: ordinalPosition + value: 11 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false +- id: PROCEDURES_schId + name: PROCEDURES + physicalType: view + description: The stored procedures defined in this database that are accessible + to the current user's role. + logicalType: object + physicalName: INFORMATION_SCHEMA.PROCEDURES + properties: + - id: PROCEDURE_CATALOG_propId + name: PROCEDURE_CATALOG + physicalType: VARCHAR(16777216) + description: Database which the procedure belongs to + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: PROCEDURE_SCHEMA_propId + name: PROCEDURE_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema which the procedure belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: PROCEDURE_NAME_propId + name: PROCEDURE_NAME + physicalType: VARCHAR(16777216) + description: Name of the procedure + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: PROCEDURE_OWNER_propId + name: PROCEDURE_OWNER + physicalType: VARCHAR(16777216) + description: Name of the role that owns the procedure + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: ARGUMENT_SIGNATURE_propId + name: ARGUMENT_SIGNATURE + physicalType: VARCHAR(16777216) + description: Type signature of the procedure's arguments + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: DATA_TYPE_propId + name: DATA_TYPE + physicalType: VARCHAR(16777216) + description: Return value data type + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: CHARACTER_MAXIMUM_LENGTH_propId + name: CHARACTER_MAXIMUM_LENGTH + physicalType: NUMBER(9,0) + description: Maximum length in characters of string return value + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: CHARACTER_OCTET_LENGTH_propId + name: CHARACTER_OCTET_LENGTH + physicalType: NUMBER(9,0) + description: Maximum length in bytes of string return value + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: NUMERIC_PRECISION_propId + name: NUMERIC_PRECISION + physicalType: NUMBER(9,0) + description: Numeric precision of numeric return value + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: NUMERIC_PRECISION_RADIX_propId + name: NUMERIC_PRECISION_RADIX + physicalType: NUMBER(9,0) + description: Radix of precision of numeric return value + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: NUMERIC_SCALE_propId + name: NUMERIC_SCALE + physicalType: NUMBER(9,0) + description: Scale of numeric return value + customProperties: + - property: ordinalPosition + value: 11 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: PROCEDURE_LANGUAGE_propId + name: PROCEDURE_LANGUAGE + physicalType: VARCHAR(16777216) + description: Language of the procedure + customProperties: + - property: ordinalPosition + value: 12 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: PROCEDURE_DEFINITION_propId + name: PROCEDURE_DEFINITION + physicalType: VARCHAR(16777216) + description: Procedure definition + customProperties: + - property: ordinalPosition + value: 13 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Creation time of the procedure + customProperties: + - property: ordinalPosition + value: 14 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: LAST_ALTERED_propId + name: LAST_ALTERED + physicalType: TIMESTAMP_LTZ + description: Last altered time of the procedure + customProperties: + - property: ordinalPosition + value: 15 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Comment for this procedure + customProperties: + - property: ordinalPosition + value: 16 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: EXTERNAL_ACCESS_INTEGRATIONS_propId + name: EXTERNAL_ACCESS_INTEGRATIONS + physicalType: VARCHAR(16777216) + description: External Access integrations associated with this function + customProperties: + - property: ordinalPosition + value: 17 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: SECRETS_propId + name: SECRETS + physicalType: VARCHAR(16777216) + description: Secrets associated with this function + customProperties: + - property: ordinalPosition + value: 18 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: RUNTIME_VERSION_propId + name: RUNTIME_VERSION + physicalType: VARCHAR(16777216) + description: Runtime version of the procedure. NULL if function is SQL or Javascript + customProperties: + - property: ordinalPosition + value: 19 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: PACKAGES_propId + name: PACKAGES + physicalType: VARCHAR(16777216) + description: Packages requested by the procedure. + customProperties: + - property: ordinalPosition + value: 20 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: INSTALLED_PACKAGES_propId + name: INSTALLED_PACKAGES + physicalType: VARCHAR(16777216) + description: All packages installed by the procedure. + customProperties: + - property: ordinalPosition + value: 21 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false +- id: REFERENTIAL_CONSTRAINTS_schId + name: REFERENTIAL_CONSTRAINTS + physicalType: view + description: Referential Constraints in this database that are accessible to the + current user + logicalType: object + physicalName: INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS + properties: + - id: CONSTRAINT_CATALOG_propId + name: CONSTRAINT_CATALOG + physicalType: VARCHAR(16777216) + description: Database that the constraint belongs to + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: CONSTRAINT_SCHEMA_propId + name: CONSTRAINT_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema that the constraint belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: CONSTRAINT_NAME_propId + name: CONSTRAINT_NAME + physicalType: VARCHAR(16777216) + description: Name of the constraint + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: UNIQUE_CONSTRAINT_CATALOG_propId + name: UNIQUE_CONSTRAINT_CATALOG + physicalType: VARCHAR(16777216) + description: Database of the unique constraint referenced by the current constraint + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: UNIQUE_CONSTRAINT_SCHEMA_propId + name: UNIQUE_CONSTRAINT_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema of the unique constraint referenced by the current constraint + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: UNIQUE_CONSTRAINT_NAME_propId + name: UNIQUE_CONSTRAINT_NAME + physicalType: VARCHAR(16777216) + description: Name of the unique constraint referenced by the current constraint + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: MATCH_OPTION_propId + name: MATCH_OPTION + physicalType: VARCHAR(16777216) + description: Match option for the constraint + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: UPDATE_RULE_propId + name: UPDATE_RULE + physicalType: VARCHAR(16777216) + description: Update Rule for the current constraint + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: DELETE_RULE_propId + name: DELETE_RULE + physicalType: VARCHAR(16777216) + description: Delete Rule for the current constraint + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Comment for this constraint + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Creation time of the constraint + customProperties: + - property: ordinalPosition + value: 11 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: LAST_ALTERED_propId + name: LAST_ALTERED + physicalType: TIMESTAMP_LTZ + description: Last altered time of the constraint + customProperties: + - property: ordinalPosition + value: 12 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false +- id: REPLICATION_DATABASES_schId + name: REPLICATION_DATABASES + physicalType: view + description: The databases for replication that are accessible to the current user's + role. + logicalType: object + physicalName: INFORMATION_SCHEMA.REPLICATION_DATABASES + properties: + - id: REGION_GROUP_propId + name: REGION_GROUP + physicalType: VARCHAR(16777216) + description: Region group of this database + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SNOWFLAKE_REGION_propId + name: SNOWFLAKE_REGION + physicalType: VARCHAR(16777216) + description: Snowflake region of this database + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: ACCOUNT_NAME_propId + name: ACCOUNT_NAME + physicalType: VARCHAR(16777216) + description: Name of the account that owns the database + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: DATABASE_NAME_propId + name: DATABASE_NAME + physicalType: VARCHAR(16777216) + description: Name of the database + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Comment for this database + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Creation time of the database + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: IS_PRIMARY_propId + name: IS_PRIMARY + physicalType: BOOLEAN + description: Whether this database is the primary + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: boolean + required: true + unique: false + - id: PRIMARY_propId + name: PRIMARY + physicalType: VARCHAR(16777216) + description: Primary database of this replication group + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: REPLICATION_ALLOWED_TO_ACCOUNTS_propId + name: REPLICATION_ALLOWED_TO_ACCOUNTS + physicalType: VARCHAR(16777216) + description: List of accounts that can host secondary replicas for this database + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: FAILOVER_ALLOWED_TO_ACCOUNTS_propId + name: FAILOVER_ALLOWED_TO_ACCOUNTS + physicalType: VARCHAR(16777216) + description: List of accounts that can host primary replicas for this database + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false +- id: REPLICATION_GROUPS_schId + name: REPLICATION_GROUPS + physicalType: view + description: The replication groups that are accessible to the current user's role. + logicalType: object + physicalName: INFORMATION_SCHEMA.REPLICATION_GROUPS + properties: + - id: REGION_GROUP_propId + name: REGION_GROUP + physicalType: VARCHAR(16777216) + description: Region group of this database + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SNOWFLAKE_REGION_propId + name: SNOWFLAKE_REGION + physicalType: VARCHAR(16777216) + description: Snowflake region of this replication group + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: CREATED_ON_propId + name: CREATED_ON + physicalType: TIMESTAMP_LTZ + description: Creation time of the replication group + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: ACCOUNT_NAME_propId + name: ACCOUNT_NAME + physicalType: VARCHAR(16777216) + description: Name of the account that owns the replication group + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: NAME_propId + name: NAME + physicalType: VARCHAR(16777216) + description: Name of the replication group + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: TYPE_propId + name: TYPE + physicalType: VARCHAR(16777216) + description: Type of this replication group + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Comment for this replication group + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: IS_PRIMARY_propId + name: IS_PRIMARY + physicalType: BOOLEAN + description: Whether this replication group is the primary + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: boolean + required: true + unique: false + - id: PRIMARY_propId + name: PRIMARY + physicalType: VARCHAR(16777216) + description: Primary replication group name + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: OBJECT_TYPES_propId + name: OBJECT_TYPES + physicalType: VARCHAR(16777216) + description: Object types in the replication group + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: ALLOWED_INTEGRATION_TYPES_propId + name: ALLOWED_INTEGRATION_TYPES + physicalType: VARCHAR(16777216) + description: Allowed integration types in the replication group + customProperties: + - property: ordinalPosition + value: 11 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: ALLOWED_ACCOUNTS_propId + name: ALLOWED_ACCOUNTS + physicalType: VARCHAR(16777216) + description: List of accounts that can host secondary replicas for this replication + group + customProperties: + - property: ordinalPosition + value: 12 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: ORGANIZATION_NAME_propId + name: ORGANIZATION_NAME + physicalType: VARCHAR(16777216) + description: Name of the organization that owns the replication group + customProperties: + - property: ordinalPosition + value: 13 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: ACCOUNT_LOCATOR_propId + name: ACCOUNT_LOCATOR + physicalType: VARCHAR(16777216) + description: Account locator for this replication group + customProperties: + - property: ordinalPosition + value: 14 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: REPLICATION_SCHEDULE_propId + name: REPLICATION_SCHEDULE + physicalType: VARCHAR(16777216) + description: Replication schedule for this replication group + customProperties: + - property: ordinalPosition + value: 15 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: SECONDARY_STATE_propId + name: SECONDARY_STATE + physicalType: VARCHAR(16777216) + description: Secondary state for this replication group + customProperties: + - property: ordinalPosition + value: 16 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: NEXT_SCHEDULED_REFRESH_propId + name: NEXT_SCHEDULED_REFRESH + physicalType: TIMESTAMP_LTZ + description: Next schduled refresh time for this replication group + customProperties: + - property: ordinalPosition + value: 17 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: OWNER_propId + name: OWNER + physicalType: VARCHAR(16777216) + description: Owner of the replication group + customProperties: + - property: ordinalPosition + value: 18 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: IS_LISTING_AUTO_FULFILLMENT_GROUP_propId + name: IS_LISTING_AUTO_FULFILLMENT_GROUP + physicalType: BOOLEAN + description: Whether this is auto-fulfillment listing group + customProperties: + - property: ordinalPosition + value: 19 + - property: scdType + value: 1 + logicalType: boolean + required: true + unique: false + - id: ERROR_INTEGRATION_propId + name: ERROR_INTEGRATION + physicalType: VARCHAR(16777216) + description: Integration to which an error notification is sent in cases of refresh + failures + customProperties: + - property: ordinalPosition + value: 20 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false +- id: SCHEMATA_schId + name: SCHEMATA + physicalType: view + description: The schemas defined in this database that are accessible to the current + user's role. + logicalType: object + physicalName: INFORMATION_SCHEMA.SCHEMATA + properties: + - id: CATALOG_NAME_propId + name: CATALOG_NAME + physicalType: VARCHAR(16777216) + description: Database that the schema belongs to + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SCHEMA_NAME_propId + name: SCHEMA_NAME + physicalType: VARCHAR(16777216) + description: Name of the schema + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SCHEMA_OWNER_propId + name: SCHEMA_OWNER + physicalType: VARCHAR(16777216) + description: Name of the role that owns the schema + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: IS_TRANSIENT_propId + name: IS_TRANSIENT + physicalType: VARCHAR(3) + description: Whether this is a transient table + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: IS_MANAGED_ACCESS_propId + name: IS_MANAGED_ACCESS + physicalType: VARCHAR(3) + description: Whether this is a managed access schema + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: RETENTION_TIME_propId + name: RETENTION_TIME + physicalType: NUMBER(9,0) + description: Number of days that historical data is retained for Time Travel + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: DEFAULT_CHARACTER_SET_CATALOG_propId + name: DEFAULT_CHARACTER_SET_CATALOG + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: DEFAULT_CHARACTER_SET_SCHEMA_propId + name: DEFAULT_CHARACTER_SET_SCHEMA + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: DEFAULT_CHARACTER_SET_NAME_propId + name: DEFAULT_CHARACTER_SET_NAME + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: SQL_PATH_propId + name: SQL_PATH + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Creation time of the schema + customProperties: + - property: ordinalPosition + value: 11 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: LAST_ALTERED_propId + name: LAST_ALTERED + physicalType: TIMESTAMP_LTZ + description: Last altered time of the schema + customProperties: + - property: ordinalPosition + value: 12 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Comment for this schema + customProperties: + - property: ordinalPosition + value: 13 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: REPLICABLE_WITH_FAILOVER_GROUPS_propId + name: REPLICABLE_WITH_FAILOVER_GROUPS + physicalType: VARCHAR(16777216) + description: Whether this object is replicable with a failover group + customProperties: + - property: ordinalPosition + value: 14 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: OWNER_ROLE_TYPE_propId + name: OWNER_ROLE_TYPE + physicalType: VARCHAR(16777216) + description: Type of the role that owns the schema + customProperties: + - property: ordinalPosition + value: 15 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false +- id: SEMANTIC_DIMENSIONS_schId + name: SEMANTIC_DIMENSIONS + physicalType: view + description: The dimensions of Semantic Views defined in this database that are + accessible to the current user's role. + logicalType: object + physicalName: INFORMATION_SCHEMA.SEMANTIC_DIMENSIONS + properties: + - id: SEMANTIC_VIEW_CATALOG_propId + name: SEMANTIC_VIEW_CATALOG + physicalType: VARCHAR(16777216) + description: Database that the Semantic View belongs to + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SEMANTIC_VIEW_SCHEMA_propId + name: SEMANTIC_VIEW_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema that the Semantic View belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SEMANTIC_VIEW_NAME_propId + name: SEMANTIC_VIEW_NAME + physicalType: VARCHAR(16777216) + description: Name of the Semantic View + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: TABLE_NAME_propId + name: TABLE_NAME + physicalType: VARCHAR(16777216) + description: Name of the semantic table the dimension belongs to. + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: NAME_propId + name: NAME + physicalType: VARCHAR(16777216) + description: The name of the dimension + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: DATA_TYPE_propId + name: DATA_TYPE + physicalType: VARCHAR(16777216) + description: The Data type of the dimension expression + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: EXPRESSION_propId + name: EXPRESSION + physicalType: VARCHAR(16777216) + description: The SQL expression to calculate the dimension + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SYNONYMS_propId + name: SYNONYMS + physicalType: ARRAY + description: Synonyms for the dimension + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: object + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Description of the dimension + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CORTEX_SEARCH_SERVICE_DATABASE_NAME_propId + name: CORTEX_SEARCH_SERVICE_DATABASE_NAME + physicalType: VARCHAR(16777216) + description: Database that the cortex search service belongs to + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CORTEX_SEARCH_SERVICE_SCHEMA_NAME_propId + name: CORTEX_SEARCH_SERVICE_SCHEMA_NAME + physicalType: VARCHAR(16777216) + description: Schema that the cortex search service belongs to + customProperties: + - property: ordinalPosition + value: 11 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CORTEX_SEARCH_SERVICE_NAME_propId + name: CORTEX_SEARCH_SERVICE_NAME + physicalType: VARCHAR(16777216) + description: Name of cortex search service + customProperties: + - property: ordinalPosition + value: 12 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CORTEX_SEARCH_SERVICE_COLUMN_NAME_propId + name: CORTEX_SEARCH_SERVICE_COLUMN_NAME + physicalType: VARCHAR(16777216) + description: Name of the indexed column in the cortex search service + customProperties: + - property: ordinalPosition + value: 13 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: LABELS_propId + name: LABELS + physicalType: ARRAY + description: Labels associated with this dimension + customProperties: + - property: ordinalPosition + value: 14 + - property: scdType + value: 1 + logicalType: object + required: false + unique: false +- id: SEMANTIC_FACTS_schId + name: SEMANTIC_FACTS + physicalType: view + description: The facts of Semantic Views defined in this database that are accessible + to the current user's role. + logicalType: object + physicalName: INFORMATION_SCHEMA.SEMANTIC_FACTS + properties: + - id: SEMANTIC_VIEW_CATALOG_propId + name: SEMANTIC_VIEW_CATALOG + physicalType: VARCHAR(16777216) + description: Database that the Semantic View belongs to + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SEMANTIC_VIEW_SCHEMA_propId + name: SEMANTIC_VIEW_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema that the Semantic View belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SEMANTIC_VIEW_NAME_propId + name: SEMANTIC_VIEW_NAME + physicalType: VARCHAR(16777216) + description: Name of the Semantic View + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: TABLE_NAME_propId + name: TABLE_NAME + physicalType: VARCHAR(16777216) + description: Name of the semantic table the fact belongs to. + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: NAME_propId + name: NAME + physicalType: VARCHAR(16777216) + description: The name of the fact + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: DATA_TYPE_propId + name: DATA_TYPE + physicalType: VARCHAR(16777216) + description: The Data type of the fact expression + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: EXPRESSION_propId + name: EXPRESSION + physicalType: VARCHAR(16777216) + description: The SQL expression to calculate the fact + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SYNONYMS_propId + name: SYNONYMS + physicalType: ARRAY + description: Synonyms for the fact + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: object + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Description of the fact + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: LABELS_propId + name: LABELS + physicalType: ARRAY + description: Labels associated with this fact + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: object + required: false + unique: false +- id: SEMANTIC_METRICS_schId + name: SEMANTIC_METRICS + physicalType: view + description: The metrics of Semantic Views defined in this database that are accessible + to the current user's role. + logicalType: object + physicalName: INFORMATION_SCHEMA.SEMANTIC_METRICS + properties: + - id: SEMANTIC_VIEW_CATALOG_propId + name: SEMANTIC_VIEW_CATALOG + physicalType: VARCHAR(16777216) + description: Database that the Semantic View belongs to + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SEMANTIC_VIEW_SCHEMA_propId + name: SEMANTIC_VIEW_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema that the Semantic View belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SEMANTIC_VIEW_NAME_propId + name: SEMANTIC_VIEW_NAME + physicalType: VARCHAR(16777216) + description: Name of the Semantic View + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: TABLE_NAME_propId + name: TABLE_NAME + physicalType: VARCHAR(16777216) + description: Name of the semantic table the metric belongs to. + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: NAME_propId + name: NAME + physicalType: VARCHAR(16777216) + description: The name of the metric + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: DATA_TYPE_propId + name: DATA_TYPE + physicalType: VARCHAR(16777216) + description: The Data type of the metric expression + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: EXPRESSION_propId + name: EXPRESSION + physicalType: VARCHAR(16777216) + description: The SQL expression to calculate the metric + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SYNONYMS_propId + name: SYNONYMS + physicalType: ARRAY + description: Synonyms for the metric + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: object + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Description of the metric + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: ADDITIVE_DIMENSIONS_propId + name: ADDITIVE_DIMENSIONS + physicalType: ARRAY + description: Additive dimensions for the metric (only apply for semi-additive + metrics) + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: object + required: false + unique: false + - id: NON_ADDITIVE_DIMENSIONS_propId + name: NON_ADDITIVE_DIMENSIONS + physicalType: ARRAY + description: Non-additive dimensions for the metric (only apply for semi-additive + metrics) + customProperties: + - property: ordinalPosition + value: 11 + - property: scdType + value: 1 + logicalType: object + required: false + unique: false + - id: USING_RELATIONSHIPS_propId + name: USING_RELATIONSHIPS + physicalType: ARRAY + description: List of relationship names used by the metric + customProperties: + - property: ordinalPosition + value: 12 + - property: scdType + value: 1 + logicalType: object + required: false + unique: false +- id: SEMANTIC_RELATIONSHIPS_schId + name: SEMANTIC_RELATIONSHIPS + physicalType: view + description: The relationships of Semantic Views defined in this database that are + accessible to the current user's role. + logicalType: object + physicalName: INFORMATION_SCHEMA.SEMANTIC_RELATIONSHIPS + properties: + - id: SEMANTIC_VIEW_CATALOG_propId + name: SEMANTIC_VIEW_CATALOG + physicalType: VARCHAR(16777216) + description: Database that the Semantic View belongs to + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SEMANTIC_VIEW_SCHEMA_propId + name: SEMANTIC_VIEW_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema that the Semantic View belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SEMANTIC_VIEW_NAME_propId + name: SEMANTIC_VIEW_NAME + physicalType: VARCHAR(16777216) + description: Name of the Semantic View + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: NAME_propId + name: NAME + physicalType: VARCHAR(16777216) + description: Name of the Semantic View relationship + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: TABLE_NAME_propId + name: TABLE_NAME + physicalType: VARCHAR(16777216) + description: Alias of the semantic table referencing the other table + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: FOREIGN_KEYS_propId + name: FOREIGN_KEYS + physicalType: ARRAY + description: Name of columns referring to the columns of the other table + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: object + required: false + unique: false + - id: REF_TABLE_NAME_propId + name: REF_TABLE_NAME + physicalType: VARCHAR(16777216) + description: Alias of the semantic table being referenced + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: REF_KEYS_propId + name: REF_KEYS + physicalType: ARRAY + description: Name of columns being referenced + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: object + required: false + unique: false +- id: SEMANTIC_TABLES_schId + name: SEMANTIC_TABLES + physicalType: view + description: The tables of Semantic Views defined in this database that are accessible + to the current user's role. + logicalType: object + physicalName: INFORMATION_SCHEMA.SEMANTIC_TABLES + properties: + - id: SEMANTIC_VIEW_CATALOG_propId + name: SEMANTIC_VIEW_CATALOG + physicalType: VARCHAR(16777216) + description: Database that the Semantic View belongs to + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SEMANTIC_VIEW_SCHEMA_propId + name: SEMANTIC_VIEW_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema that the Semantic View belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SEMANTIC_VIEW_NAME_propId + name: SEMANTIC_VIEW_NAME + physicalType: VARCHAR(16777216) + description: Name of the Semantic View + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: NAME_propId + name: NAME + physicalType: VARCHAR(16777216) + description: Alias of the table + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: BASE_TABLE_CATALOG_propId + name: BASE_TABLE_CATALOG + physicalType: VARCHAR(16777216) + description: Database that the base table belongs to + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: BASE_TABLE_SCHEMA_propId + name: BASE_TABLE_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema that the base table belongs to + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: BASE_TABLE_NAME_propId + name: BASE_TABLE_NAME + physicalType: VARCHAR(16777216) + description: Name of the base table + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: PRIMARY_KEYS_propId + name: PRIMARY_KEYS + physicalType: ARRAY + description: List of primary key columns of the table + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: object + required: false + unique: false + - id: SYNONYMS_propId + name: SYNONYMS + physicalType: ARRAY + description: Synonyms for the table + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: object + required: false + unique: false + - id: UNIQUE_KEYS_propId + name: UNIQUE_KEYS + physicalType: ARRAY + description: List of unique key combinations in the table + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: object + required: false + unique: false + - id: DISTINCT_RANGES_propId + name: DISTINCT_RANGES + physicalType: VARIANT + description: Distinct range constraints defined on the semantic table + customProperties: + - property: ordinalPosition + value: 11 + - property: scdType + value: 1 + logicalType: object + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Description of the Semantic View Table + customProperties: + - property: ordinalPosition + value: 12 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false +- id: SEMANTIC_VIEWS_schId + name: SEMANTIC_VIEWS + physicalType: view + description: The Semantic Views defined in this database that are accessible to + the current user's role. + logicalType: object + physicalName: INFORMATION_SCHEMA.SEMANTIC_VIEWS + properties: + - id: CATALOG_propId + name: CATALOG + physicalType: VARCHAR(16777216) + description: Database that the Semantic View belongs to + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SCHEMA_propId + name: SCHEMA + physicalType: VARCHAR(16777216) + description: Schema that the Semantic View belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: NAME_propId + name: NAME + physicalType: VARCHAR(16777216) + description: Name of the Semantic View + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: OWNER_propId + name: OWNER + physicalType: VARCHAR(16777216) + description: Owner of the Semantic View + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Creation time of the Semantic View + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Description of the Semantic View + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false +- id: SEQUENCES_schId + name: SEQUENCES + physicalType: view + description: The sequences defined in this database that are accessible to the current + user's role. + logicalType: object + physicalName: INFORMATION_SCHEMA.SEQUENCES + properties: + - id: SEQUENCE_CATALOG_propId + name: SEQUENCE_CATALOG + physicalType: VARCHAR(16777216) + description: Database that the sequence belongs to + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SEQUENCE_SCHEMA_propId + name: SEQUENCE_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema that the sequence belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SEQUENCE_NAME_propId + name: SEQUENCE_NAME + physicalType: VARCHAR(16777216) + description: Name of the sequence + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SEQUENCE_OWNER_propId + name: SEQUENCE_OWNER + physicalType: VARCHAR(16777216) + description: Name of the role that owns the sequence + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: DATA_TYPE_propId + name: DATA_TYPE + physicalType: VARCHAR(16777216) + description: Data type of the sequence + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: NUMERIC_PRECISION_propId + name: NUMERIC_PRECISION + physicalType: NUMBER(9,0) + description: Numeric precision of the data type of the sequence + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: number + required: true + unique: false + - id: NUMERIC_PRECISION_RADIX_propId + name: NUMERIC_PRECISION_RADIX + physicalType: NUMBER(9,0) + description: Radix of the numeric precision of the data type of the sequence + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: number + required: true + unique: false + - id: NUMERIC_SCALE_propId + name: NUMERIC_SCALE + physicalType: NUMBER(9,0) + description: Scale of the data type of the sequence + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: number + required: true + unique: false + - id: START_VALUE_propId + name: START_VALUE + physicalType: VARCHAR(16777216) + description: Initial value of the sequence + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: MINIMUM_VALUE_propId + name: MINIMUM_VALUE + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: MAXIMUM_VALUE_propId + name: MAXIMUM_VALUE + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 11 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: NEXT_VALUE_propId + name: NEXT_VALUE + physicalType: VARCHAR(16777216) + description: Next value that the sequence will produce + customProperties: + - property: ordinalPosition + value: 12 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: INCREMENT_propId + name: INCREMENT + physicalType: VARCHAR(16777216) + description: Increment of the sequence generator + customProperties: + - property: ordinalPosition + value: 13 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CYCLE_OPTION_propId + name: CYCLE_OPTION + physicalType: VARCHAR(3) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 14 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Creation time of the sequence + customProperties: + - property: ordinalPosition + value: 15 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: LAST_ALTERED_propId + name: LAST_ALTERED + physicalType: TIMESTAMP_LTZ + description: Last altered time of the sequence + customProperties: + - property: ordinalPosition + value: 16 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: ORDERED_propId + name: ORDERED + physicalType: VARCHAR(3) + description: Whether or not the sequence is ordered + customProperties: + - property: ordinalPosition + value: 17 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Comment for this sequence + customProperties: + - property: ordinalPosition + value: 18 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false +- id: SERVICES_schId + name: SERVICES + physicalType: view + description: The services in this database that are accessible to the current user's + role. + logicalType: object + physicalName: INFORMATION_SCHEMA.SERVICES + properties: + - id: SERVICE_CATALOG_propId + name: SERVICE_CATALOG + physicalType: VARCHAR(16777216) + description: Database that the service belongs to + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SERVICE_SCHEMA_propId + name: SERVICE_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema that the service belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SERVICE_NAME_propId + name: SERVICE_NAME + physicalType: VARCHAR(16777216) + description: Name of the service + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: STATUS_propId + name: STATUS + physicalType: VARCHAR(16777216) + description: Status of the service + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SERVICE_OWNER_propId + name: SERVICE_OWNER + physicalType: VARCHAR(16777216) + description: Name of the role that owns the service + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: SERVICE_OWNER_ROLE_TYPE_propId + name: SERVICE_OWNER_ROLE_TYPE + physicalType: VARCHAR(16777216) + description: Type of role that owns the service + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: COMPUTE_POOL_NAME_propId + name: COMPUTE_POOL_NAME + physicalType: VARCHAR(16777216) + description: Name of the compute pool where the service runs + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: DNS_NAME_propId + name: DNS_NAME + physicalType: VARCHAR(16777216) + description: DNS name associated with the service + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CURRENT_INSTANCES_propId + name: CURRENT_INSTANCES + description: Current number of active instances for the service + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: number + required: true + unique: false + - id: TARGET_INSTANCES_propId + name: TARGET_INSTANCES + description: Target number of active instances for the service + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: number + required: true + unique: false + - id: MIN_READY_INSTANCES_propId + name: MIN_READY_INSTANCES + description: Minimum number of ready instances to declare service as READY + customProperties: + - property: ordinalPosition + value: 11 + - property: scdType + value: 1 + logicalType: number + required: true + unique: false + - id: MIN_INSTANCES_propId + name: MIN_INSTANCES + description: Minimum number of active instances for the service + customProperties: + - property: ordinalPosition + value: 12 + - property: scdType + value: 1 + logicalType: number + required: true + unique: false + - id: MAX_INSTANCES_propId + name: MAX_INSTANCES + description: Maximum number of active instances for the service + customProperties: + - property: ordinalPosition + value: 13 + - property: scdType + value: 1 + logicalType: number + required: true + unique: false + - id: AUTO_RESUME_propId + name: AUTO_RESUME + physicalType: BOOLEAN + description: Whether the service can be automatically resumed + customProperties: + - property: ordinalPosition + value: 14 + - property: scdType + value: 1 + logicalType: boolean + required: true + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Comment for this service + customProperties: + - property: ordinalPosition + value: 15 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: QUERY_WAREHOUSE_propId + name: QUERY_WAREHOUSE + physicalType: VARCHAR(16777216) + description: Query warehouse of the service + customProperties: + - property: ordinalPosition + value: 16 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Creation time of the service + customProperties: + - property: ordinalPosition + value: 17 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: LAST_ALTERED_propId + name: LAST_ALTERED + physicalType: TIMESTAMP_LTZ + description: Last altered time of the service + customProperties: + - property: ordinalPosition + value: 18 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: LAST_RESUMED_propId + name: LAST_RESUMED + physicalType: TIMESTAMP_LTZ + description: Time when the service was last resumed + customProperties: + - property: ordinalPosition + value: 19 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: IS_JOB_propId + name: IS_JOB + physicalType: BOOLEAN + description: Whether this is a Snowpark Container Services Job + customProperties: + - property: ordinalPosition + value: 20 + - property: scdType + value: 1 + logicalType: boolean + required: false + unique: false + - id: SPEC_DIGEST_propId + name: SPEC_DIGEST + physicalType: VARCHAR(16777216) + description: A unique and immutable identifier to represent the service spec content + customProperties: + - property: ordinalPosition + value: 21 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: IS_UPGRADING_propId + name: IS_UPGRADING + physicalType: BOOLEAN + description: Whether the service is upgrading or not + customProperties: + - property: ordinalPosition + value: 22 + - property: scdType + value: 1 + logicalType: boolean + required: false + unique: false + - id: MANAGING_OBJECT_DOMAIN_propId + name: MANAGING_OBJECT_DOMAIN + physicalType: VARCHAR(16777216) + description: The domain of the managing object + customProperties: + - property: ordinalPosition + value: 23 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: MANAGING_OBJECT_NAME_propId + name: MANAGING_OBJECT_NAME + physicalType: VARCHAR(16777216) + description: The fully qualified name of the managing object + customProperties: + - property: ordinalPosition + value: 24 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false +- id: SHARES_schId + name: SHARES + physicalType: view + description: Shares that are accessible by the current user's role + logicalType: object + physicalName: INFORMATION_SCHEMA.SHARES + properties: + - id: CREATED_ON_propId + name: CREATED_ON + physicalType: TIMESTAMP_LTZ + description: Creation time of the share + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: KIND_propId + name: KIND + physicalType: VARCHAR(16777216) + description: Type of share (INBOUND or OUTBOUND) + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: OWNER_ACCOUNT_propId + name: OWNER_ACCOUNT + physicalType: VARCHAR(16777216) + description: Account that owns the share + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: NAME_propId + name: NAME + physicalType: VARCHAR(16777216) + description: Name of the share + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: DATABASE_NAME_propId + name: DATABASE_NAME + physicalType: VARCHAR(16777216) + description: Database being shared (for outbound shares) + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: TO_propId + name: TO + physicalType: VARCHAR(16777216) + description: Accounts this share is shared with + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: OWNER_propId + name: OWNER + physicalType: VARCHAR(16777216) + description: Name of the role that owns the share + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Comment for this share + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: LISTING_GLOBAL_NAME_propId + name: LISTING_GLOBAL_NAME + physicalType: VARCHAR(16777216) + description: Global name of the associated listing + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: SECURE_OBJECTS_ONLY_propId + name: SECURE_OBJECTS_ONLY + physicalType: VARCHAR(16777216) + description: Whether the share allows secure views only. + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false +- id: SNAPSHOT_POLICIES_schId + name: SNAPSHOT_POLICIES + physicalType: view + description: All snapshot policies within an account + logicalType: object + physicalName: INFORMATION_SCHEMA.SNAPSHOT_POLICIES + properties: + - id: SNAPSHOT_POLICY_NAME_propId + name: SNAPSHOT_POLICY_NAME + physicalType: VARCHAR(16777216) + description: Name of the Snapshot Policy + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: SNAPSHOT_POLICY_SCHEMA_propId + name: SNAPSHOT_POLICY_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema which the Snapshot Policy belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: SNAPSHOT_POLICY_CATALOG_propId + name: SNAPSHOT_POLICY_CATALOG + physicalType: VARCHAR(16777216) + description: Database which the Snapshot Policy belongs to + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: SCHEDULE_propId + name: SCHEDULE + physicalType: VARCHAR(16777216) + description: Schedule for snapshot creation + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: EXPIRE_AFTER_DAYS_propId + name: EXPIRE_AFTER_DAYS + description: Days after snapshot creation when snapshot should be expired + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: HAS_RETENTION_LOCK_propId + name: HAS_RETENTION_LOCK + physicalType: VARCHAR(16777216) + description: Indicates whether the policy includes a retention lock. Y if policy + has retention lock; N otherwise + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: OWNER_propId + name: OWNER + physicalType: VARCHAR(16777216) + description: Name of the role that owns the Snapshot Policy + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: OWNER_ROLE_TYPE_propId + name: OWNER_ROLE_TYPE + physicalType: VARCHAR(16777216) + description: Type of role that owns the Snapshot Policy + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Data and time when the Snapshot Policy was created + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: LAST_ALTERED_propId + name: LAST_ALTERED + physicalType: TIMESTAMP_LTZ + description: Data and time when the Snapshot Policy was last altered + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Comment for the Snapshot Policy + customProperties: + - property: ordinalPosition + value: 11 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false +- id: SNAPSHOT_SETS_schId + name: SNAPSHOT_SETS + physicalType: view + description: All snapshot sets within an account + logicalType: object + physicalName: INFORMATION_SCHEMA.SNAPSHOT_SETS + properties: + - id: SNAPSHOT_SET_NAME_propId + name: SNAPSHOT_SET_NAME + physicalType: VARCHAR(16777216) + description: Name of the Snapshot Set + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: SNAPSHOT_SET_SCHEMA_propId + name: SNAPSHOT_SET_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema which the Snapshot Set belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: SNAPSHOT_SET_CATALOG_propId + name: SNAPSHOT_SET_CATALOG + physicalType: VARCHAR(16777216) + description: Database which the Snapshot Set belongs to + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: OBJECT_KIND_propId + name: OBJECT_KIND + physicalType: VARCHAR(16777216) + description: Type of object that the snapshot set is snapshotting + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: OBJECT_NAME_propId + name: OBJECT_NAME + physicalType: VARCHAR(16777216) + description: Name of the object that the snapshot set is snapshotting + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: OBJECT_SCHEMA_propId + name: OBJECT_SCHEMA + physicalType: VARCHAR(16777216) + description: Name of the schema that contains the object being snapshotted by + this snapshot set + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: OBJECT_CATALOG_propId + name: OBJECT_CATALOG + physicalType: VARCHAR(16777216) + description: Name of the database that contains the object being snapshotted by + this snapshot set + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: SNAPSHOT_POLICY_NAME_propId + name: SNAPSHOT_POLICY_NAME + physicalType: VARCHAR(16777216) + description: Name of the Snapshot Policy attached to this snapshot set + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: SNAPSHOT_POLICY_SCHEMA_propId + name: SNAPSHOT_POLICY_SCHEMA + physicalType: VARCHAR(16777216) + description: Name of the schema that contains the Snapshot Policy + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: SNAPSHOT_POLICY_CATALOG_propId + name: SNAPSHOT_POLICY_CATALOG + physicalType: VARCHAR(16777216) + description: Name of the database that contains the Snapshot Policy + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: OWNER_propId + name: OWNER + physicalType: VARCHAR(16777216) + description: Name of the role that owns the Snapshot Set + customProperties: + - property: ordinalPosition + value: 11 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: OWNER_ROLE_TYPE_propId + name: OWNER_ROLE_TYPE + physicalType: VARCHAR(16777216) + description: Type of role that owns the Snapshot Set + customProperties: + - property: ordinalPosition + value: 12 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Data and time when the Snapshot Set was created + customProperties: + - property: ordinalPosition + value: 13 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: LAST_ALTERED_propId + name: LAST_ALTERED + physicalType: TIMESTAMP_LTZ + description: Data and time when the Snapshot Set was last altered + customProperties: + - property: ordinalPosition + value: 14 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Comment for the Snapshot Set + customProperties: + - property: ordinalPosition + value: 15 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false +- id: SNAPSHOTS_schId + name: SNAPSHOTS + physicalType: view + description: All snapshots within an account + logicalType: object + physicalName: INFORMATION_SCHEMA.SNAPSHOTS + properties: + - id: ID_propId + name: ID + physicalType: VARCHAR(16777216) + description: Unique identifier of the Snapshot + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Data and time when the Snapshot was created + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: SNAPSHOT_SET_NAME_propId + name: SNAPSHOT_SET_NAME + physicalType: VARCHAR(16777216) + description: Name of Snapshot Set that contains the snapshot + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: SNAPSHOT_SET_SCHEMA_propId + name: SNAPSHOT_SET_SCHEMA + physicalType: VARCHAR(16777216) + description: Name of schema which the Snapshot Set belongs to + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: SNAPSHOT_SET_CATALOG_propId + name: SNAPSHOT_SET_CATALOG + physicalType: VARCHAR(16777216) + description: Name of database which the Snapshot Set belongs to + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: EXPIRATION_SCHEDULED_FOR_propId + name: EXPIRATION_SCHEDULED_FOR + physicalType: TIMESTAMP_LTZ + description: Timestamp at which the snapshot will be expired + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: IS_UNDER_LEGAL_HOLD_propId + name: IS_UNDER_LEGAL_HOLD + physicalType: BOOLEAN + description: Whether the snapshot is under legal hold + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: boolean + required: false + unique: false +- id: STAGES_schId + name: STAGES + physicalType: view + description: Stages in this database that are accessible by the current user's role + logicalType: object + physicalName: INFORMATION_SCHEMA.STAGES + properties: + - id: STAGE_CATALOG_propId + name: STAGE_CATALOG + physicalType: VARCHAR(16777216) + description: Database that the stage belongs to + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: STAGE_SCHEMA_propId + name: STAGE_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema that the stage belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: STAGE_NAME_propId + name: STAGE_NAME + physicalType: VARCHAR(16777216) + description: Name of the stage + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: STAGE_URL_propId + name: STAGE_URL + physicalType: VARCHAR(16777216) + description: Location of an external stage + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: STAGE_REGION_propId + name: STAGE_REGION + physicalType: VARCHAR(16777216) + description: AWS region where the stage resides + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: STAGE_TYPE_propId + name: STAGE_TYPE + physicalType: VARCHAR(16777216) + description: 'Type of stage: User, Table, Internal Named or External Named' + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: STAGE_OWNER_propId + name: STAGE_OWNER + physicalType: VARCHAR(16777216) + description: Name of the role that owns the stage + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Comment for this stage + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Creation time of the stage + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: LAST_ALTERED_propId + name: LAST_ALTERED + physicalType: TIMESTAMP_LTZ + description: Last altered time of the stage + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: ENDPOINT_propId + name: ENDPOINT + physicalType: VARCHAR(16777216) + description: S3-compatible API endpoint + customProperties: + - property: ordinalPosition + value: 11 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: DIRECTORY_ENABLED_propId + name: DIRECTORY_ENABLED + physicalType: BOOLEAN + description: Whether or not the stage has directory tables enabled + customProperties: + - property: ordinalPosition + value: 12 + - property: scdType + value: 1 + logicalType: boolean + required: false + unique: false +- id: STREAMLITS_schId + name: STREAMLITS + physicalType: view + description: Streamlits in this database that are accessible by the current user's + role + logicalType: object + physicalName: INFORMATION_SCHEMA.STREAMLITS + properties: + - id: STREAMLIT_CATALOG_propId + name: STREAMLIT_CATALOG + physicalType: VARCHAR(16777216) + description: Database that the streamlit belongs to + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: STREAMLIT_SCHEMA_propId + name: STREAMLIT_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema that the streamlit belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: STREAMLIT_NAME_propId + name: STREAMLIT_NAME + physicalType: VARCHAR(16777216) + description: Name of the streamlit + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: STREAMLIT_OWNER_propId + name: STREAMLIT_OWNER + physicalType: VARCHAR(16777216) + description: Name of the role that owns the streamlit + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: STREAMLIT_ROOT_LOCATION_propId + name: STREAMLIT_ROOT_LOCATION + physicalType: VARCHAR(16777216) + description: Root location of the streamlit + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: STREAMLIT_MAIN_FILE_propId + name: STREAMLIT_MAIN_FILE + physicalType: VARCHAR(16777216) + description: Main file of the streamlit + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: STREAMLIT_QUERY_WAREHOUSE_propId + name: STREAMLIT_QUERY_WAREHOUSE + physicalType: VARCHAR(16777216) + description: Query warehouse of the streamlit + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: STREAMLIT_URL_ID_propId + name: STREAMLIT_URL_ID + physicalType: VARCHAR(16777216) + description: URL id of the streamlit + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Creation time of the streamlit + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: LAST_ALTERED_propId + name: LAST_ALTERED + physicalType: TIMESTAMP_LTZ + description: Last altered time of the streamlit + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Comment for this streamlit + customProperties: + - property: ordinalPosition + value: 11 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: STREAMLIT_TITLE_propId + name: STREAMLIT_TITLE + physicalType: VARCHAR(16777216) + description: Title for the streamlit app + customProperties: + - property: ordinalPosition + value: 12 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false +- id: TABLE_CONSTRAINTS_schId + name: TABLE_CONSTRAINTS + physicalType: view + description: Constraints defined on the tables in this database that are accessible + to the current user + logicalType: object + physicalName: INFORMATION_SCHEMA.TABLE_CONSTRAINTS + properties: + - id: CONSTRAINT_CATALOG_propId + name: CONSTRAINT_CATALOG + physicalType: VARCHAR(16777216) + description: Database that the constraint belongs to + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: CONSTRAINT_SCHEMA_propId + name: CONSTRAINT_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema that the constraint belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: CONSTRAINT_NAME_propId + name: CONSTRAINT_NAME + physicalType: VARCHAR(16777216) + description: Name of the constraint + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: TABLE_CATALOG_propId + name: TABLE_CATALOG + physicalType: VARCHAR(16777216) + description: Name of the database of the current table + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: TABLE_SCHEMA_propId + name: TABLE_SCHEMA + physicalType: VARCHAR(16777216) + description: Name of the schema of the current table + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: TABLE_NAME_propId + name: TABLE_NAME + physicalType: VARCHAR(16777216) + description: Name of the current table + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: CONSTRAINT_TYPE_propId + name: CONSTRAINT_TYPE + physicalType: VARCHAR(16777216) + description: Type of the constraint + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: IS_DEFERRABLE_propId + name: IS_DEFERRABLE + physicalType: VARCHAR(3) + description: Whether evaluation of the constraint can be deferred + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: INITIALLY_DEFERRED_propId + name: INITIALLY_DEFERRED + physicalType: VARCHAR(3) + description: Whether evaluation of the constraint is deferrable and initially + deferred + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: ENFORCED_propId + name: ENFORCED + physicalType: VARCHAR(3) + description: Whether the constraint is enforced + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Comment for this constraint + customProperties: + - property: ordinalPosition + value: 11 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Creation time of the constraint + customProperties: + - property: ordinalPosition + value: 12 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: LAST_ALTERED_propId + name: LAST_ALTERED + physicalType: TIMESTAMP_LTZ + description: Last altered time of the constraint + customProperties: + - property: ordinalPosition + value: 13 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: RELY_propId + name: RELY + physicalType: VARCHAR(3) + description: Whether to use RELY + customProperties: + - property: ordinalPosition + value: 14 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false +- id: TABLE_PRIVILEGES_schId + name: TABLE_PRIVILEGES + physicalType: view + description: The privileges on tables defined in this database that are accessible + to the current user's role. + logicalType: object + physicalName: INFORMATION_SCHEMA.TABLE_PRIVILEGES + properties: + - id: GRANTOR_propId + name: GRANTOR + physicalType: VARCHAR(16777216) + description: Role who granted the table privilege + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: GRANTEE_propId + name: GRANTEE + physicalType: VARCHAR(16777216) + description: Object to which the table privilege is granted + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: GRANTED_TO_propId + name: GRANTED_TO + physicalType: VARCHAR(16777216) + description: Object kind on which the table privilege is granted + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: TABLE_CATALOG_propId + name: TABLE_CATALOG + physicalType: VARCHAR(16777216) + description: Database containing the table on which the privilege is granted + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: TABLE_SCHEMA_propId + name: TABLE_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema containing the table on which the privilege is granted + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: TABLE_NAME_propId + name: TABLE_NAME + physicalType: VARCHAR(16777216) + description: Name of the table on which the privilege is granted + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: PRIVILEGE_TYPE_propId + name: PRIVILEGE_TYPE + physicalType: VARCHAR(16777216) + description: Type of the granted privilege + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: IS_GRANTABLE_propId + name: IS_GRANTABLE + physicalType: VARCHAR(3) + description: Whether the privilege was granted WITH GRANT OPTION + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: WITH_HIERARCHY_propId + name: WITH_HIERARCHY + physicalType: VARCHAR(3) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Creation time of the privilege + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false +- id: TABLE_STORAGE_METRICS_schId + name: TABLE_STORAGE_METRICS + physicalType: view + description: All tables within an account, including expired tables. + logicalType: object + physicalName: INFORMATION_SCHEMA.TABLE_STORAGE_METRICS + properties: + - id: TABLE_CATALOG_propId + name: TABLE_CATALOG + physicalType: VARCHAR(16777216) + description: Database that the table belongs to. Potentially NULL if table is + in failsafe. + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: TABLE_SCHEMA_propId + name: TABLE_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema that the table belongs to. Potentially NULL if table is in + failsafe. + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: TABLE_NAME_propId + name: TABLE_NAME + physicalType: VARCHAR(16777216) + description: Name of the table. Potentially NULL if table is in failsafe. + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: ID_propId + name: ID + physicalType: NUMBER(9,0) + description: Unique identifier of the table + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: number + required: true + unique: false + - id: CLONE_GROUP_ID_propId + name: CLONE_GROUP_ID + physicalType: NUMBER(9,0) + description: Unique identifier of the oldest clone ancestor of this table. Same + as this table's ID if it is not a clone. + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: number + required: true + unique: false + - id: IS_TRANSIENT_propId + name: IS_TRANSIENT + physicalType: VARCHAR(3) + description: '''YES'' if table is transient, ''NO'' otherwise. Potentially NULL + if table is in failsafe.' + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: ACTIVE_BYTES_propId + name: ACTIVE_BYTES + physicalType: NUMBER(9,0) + description: Bytes in the active version of the table. Some bytes may be billed + to another table if this table is a clone. + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: number + required: true + unique: false + - id: TIME_TRAVEL_BYTES_propId + name: TIME_TRAVEL_BYTES + physicalType: NUMBER(9,0) + description: Bytes in time travel versions of the table. Some bytes may be billed + to another table if this table is a clone + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: number + required: true + unique: false + - id: FAILSAFE_BYTES_propId + name: FAILSAFE_BYTES + physicalType: NUMBER(9,0) + description: Bytes in failsafe versions of the table. All such bytes are billed + to this table. + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: number + required: true + unique: false + - id: RETAINED_FOR_CLONE_BYTES_propId + name: RETAINED_FOR_CLONE_BYTES + physicalType: NUMBER(9,0) + description: Bytes which used to be owned by this table and are no longer referenced + by it. Still, they are retained (and billed) because other clone(s) of that + table are still referencing these bytes. Note that the original metadata for + this table might have been purged so the table, schema, and database names might + be NULL in this case. + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: number + required: true + unique: false + - id: TABLE_CREATED_propId + name: TABLE_CREATED + physicalType: TIMESTAMP_LTZ + description: Time at which this table was created. Potentially NULL if table + is in failsafe. + customProperties: + - property: ordinalPosition + value: 11 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: TABLE_DROPPED_propId + name: TABLE_DROPPED + physicalType: TIMESTAMP_LTZ + description: Time at which the table was dropped, or NULL. Potentially NULL if + table is in failsafe. + customProperties: + - property: ordinalPosition + value: 12 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: TABLE_ENTERED_FAILSAFE_propId + name: TABLE_ENTERED_FAILSAFE + physicalType: TIMESTAMP_LTZ + description: Time at which the table entered the failsafe state, or NULL. Potentially + NULL if table is in failsafe. + customProperties: + - property: ordinalPosition + value: 13 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: CATALOG_CREATED_propId + name: CATALOG_CREATED + physicalType: TIMESTAMP_LTZ + description: Time at which the database was created. Potentially NULL if table + is in failsafe. + customProperties: + - property: ordinalPosition + value: 14 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: CATALOG_DROPPED_propId + name: CATALOG_DROPPED + physicalType: TIMESTAMP_LTZ + description: Time at which the database was dropped. Potentially NULL if table + is past failsafe. + customProperties: + - property: ordinalPosition + value: 15 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: SCHEMA_CREATED_propId + name: SCHEMA_CREATED + physicalType: TIMESTAMP_LTZ + description: Time at which the schema was created. Potentially NULL if table + is past failsafe. + customProperties: + - property: ordinalPosition + value: 16 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: SCHEMA_DROPPED_propId + name: SCHEMA_DROPPED + physicalType: TIMESTAMP_LTZ + description: Time at which the schema was dropped. Potentially NULL if table + is in failsafe. + customProperties: + - property: ordinalPosition + value: 17 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Table's comment. Potentially NULL if table is in failsafe. + customProperties: + - property: ordinalPosition + value: 18 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false +- id: TABLES_schId + name: TABLES + physicalType: view + description: The tables defined in this database that are accessible to the current + user's role. + logicalType: object + physicalName: INFORMATION_SCHEMA.TABLES + properties: + - id: TABLE_CATALOG_propId + name: TABLE_CATALOG + physicalType: VARCHAR(16777216) + description: Database that the table belongs to + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: TABLE_SCHEMA_propId + name: TABLE_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema that the table belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: TABLE_NAME_propId + name: TABLE_NAME + physicalType: VARCHAR(16777216) + description: Name of the table + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: TABLE_OWNER_propId + name: TABLE_OWNER + physicalType: VARCHAR(16777216) + description: Name of the role that owns the table + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: TABLE_TYPE_propId + name: TABLE_TYPE + physicalType: VARCHAR(16777216) + description: Whether the table is a base table, temporary table, or view + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: IS_TRANSIENT_propId + name: IS_TRANSIENT + physicalType: VARCHAR(3) + description: Whether this is a transient table + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: CLUSTERING_KEY_propId + name: CLUSTERING_KEY + physicalType: VARCHAR(16777216) + description: Clustering key for the table + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: ROW_COUNT_propId + name: ROW_COUNT + physicalType: NUMBER(38,0) + description: Number of rows in the table + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: BYTES_propId + name: BYTES + physicalType: NUMBER(38,0) + description: Number of bytes accessed by a scan of the table + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: RETENTION_TIME_propId + name: RETENTION_TIME + physicalType: NUMBER(9,0) + description: Number of days that historical data is retained for Time Travel + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: number + required: false + unique: false + - id: SELF_REFERENCING_COLUMN_NAME_propId + name: SELF_REFERENCING_COLUMN_NAME + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 11 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: REFERENCE_GENERATION_propId + name: REFERENCE_GENERATION + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 12 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: USER_DEFINED_TYPE_CATALOG_propId + name: USER_DEFINED_TYPE_CATALOG + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 13 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: USER_DEFINED_TYPE_SCHEMA_propId + name: USER_DEFINED_TYPE_SCHEMA + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 14 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: USER_DEFINED_TYPE_NAME_propId + name: USER_DEFINED_TYPE_NAME + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 15 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: IS_INSERTABLE_INTO_propId + name: IS_INSERTABLE_INTO + physicalType: VARCHAR(3) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 16 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: IS_TYPED_propId + name: IS_TYPED + physicalType: VARCHAR(3) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 17 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: COMMIT_ACTION_propId + name: COMMIT_ACTION + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 18 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Creation time of the function + customProperties: + - property: ordinalPosition + value: 19 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: LAST_ALTERED_propId + name: LAST_ALTERED + physicalType: TIMESTAMP_LTZ + description: Last altered time of the function + customProperties: + - property: ordinalPosition + value: 20 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: LAST_DDL_propId + name: LAST_DDL + physicalType: TIMESTAMP_LTZ + description: Last DDL time of the table + customProperties: + - property: ordinalPosition + value: 21 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: LAST_DDL_BY_propId + name: LAST_DDL_BY + physicalType: VARCHAR(16777216) + description: User name that performed the Last DDL of the table + customProperties: + - property: ordinalPosition + value: 22 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: AUTO_CLUSTERING_ON_propId + name: AUTO_CLUSTERING_ON + physicalType: VARCHAR(3) + description: Whether automatic clustering is on for the table + customProperties: + - property: ordinalPosition + value: 23 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Comment for this table + customProperties: + - property: ordinalPosition + value: 24 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: IS_TEMPORARY_propId + name: IS_TEMPORARY + physicalType: VARCHAR(3) + description: Whether this is a temporary table + customProperties: + - property: ordinalPosition + value: 25 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: IS_ICEBERG_propId + name: IS_ICEBERG + physicalType: VARCHAR(3) + description: Whether this is an Iceberg table + customProperties: + - property: ordinalPosition + value: 26 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: IS_DYNAMIC_propId + name: IS_DYNAMIC + physicalType: VARCHAR(3) + description: Whether this is a dynamic table + customProperties: + - property: ordinalPosition + value: 27 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: IS_IMMUTABLE_propId + name: IS_IMMUTABLE + physicalType: VARCHAR(3) + description: Whether this is a READ ONLY table + customProperties: + - property: ordinalPosition + value: 28 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: IS_HYBRID_propId + name: IS_HYBRID + physicalType: VARCHAR(3) + description: Whether this is a hybrid table + customProperties: + - property: ordinalPosition + value: 29 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false +- id: USAGE_PRIVILEGES_schId + name: USAGE_PRIVILEGES + physicalType: view + description: The usage privileges on sequences defined in this database that are + accessible to the current user's role. + logicalType: object + physicalName: INFORMATION_SCHEMA.USAGE_PRIVILEGES + properties: + - id: GRANTOR_propId + name: GRANTOR + physicalType: VARCHAR(16777216) + description: Role who granted the usage privilege + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: GRANTEE_propId + name: GRANTEE + physicalType: VARCHAR(16777216) + description: Object to which the usage privilege is granted + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: GRANTED_TO_propId + name: GRANTED_TO + physicalType: VARCHAR(16777216) + description: Object kind on which the usage privilege is granted + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: OBJECT_CATALOG_propId + name: OBJECT_CATALOG + physicalType: VARCHAR(16777216) + description: Database containing the object on which the privilege is granted + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: OBJECT_SCHEMA_propId + name: OBJECT_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema containing the object on which the privilege is granted + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: OBJECT_NAME_propId + name: OBJECT_NAME + physicalType: VARCHAR(16777216) + description: Name of the object on which the privilege is granted + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: OBJECT_TYPE_propId + name: OBJECT_TYPE + physicalType: VARCHAR(16777216) + description: Type of the object on which the privilege is granted + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: PRIVILEGE_TYPE_propId + name: PRIVILEGE_TYPE + physicalType: VARCHAR(16777216) + description: Type of the granted privilege + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: IS_GRANTABLE_propId + name: IS_GRANTABLE + physicalType: VARCHAR(3) + description: Whether the privilege was granted WITH GRANT OPTION + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Creation time of the privilege + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false +- id: VIEWS_schId + name: VIEWS + physicalType: view + description: The views defined in this database that are accessible to the current + user's role. + logicalType: object + physicalName: INFORMATION_SCHEMA.VIEWS + properties: + - id: TABLE_CATALOG_propId + name: TABLE_CATALOG + physicalType: VARCHAR(16777216) + description: Database that the view belongs to + customProperties: + - property: ordinalPosition + value: 1 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: TABLE_SCHEMA_propId + name: TABLE_SCHEMA + physicalType: VARCHAR(16777216) + description: Schema that the view belongs to + customProperties: + - property: ordinalPosition + value: 2 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: TABLE_NAME_propId + name: TABLE_NAME + physicalType: VARCHAR(16777216) + description: Name of the view + customProperties: + - property: ordinalPosition + value: 3 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: TABLE_OWNER_propId + name: TABLE_OWNER + physicalType: VARCHAR(16777216) + description: Name of the role that owns the view + customProperties: + - property: ordinalPosition + value: 4 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: VIEW_DEFINITION_propId + name: VIEW_DEFINITION + physicalType: VARCHAR(16777216) + description: Text of the view's query expression + customProperties: + - property: ordinalPosition + value: 5 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: true + unique: false + - id: CHECK_OPTION_propId + name: CHECK_OPTION + physicalType: VARCHAR(16777216) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 6 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: IS_UPDATABLE_propId + name: IS_UPDATABLE + physicalType: VARCHAR(3) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 7 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: INSERTABLE_INTO_propId + name: INSERTABLE_INTO + physicalType: VARCHAR(3) + description: Not applicable for Snowflake. + customProperties: + - property: ordinalPosition + value: 8 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: IS_SECURE_propId + name: IS_SECURE + physicalType: VARCHAR(3) + description: Whether this view is secure. + customProperties: + - property: ordinalPosition + value: 9 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 3 + required: false + unique: false + - id: CREATED_propId + name: CREATED + physicalType: TIMESTAMP_LTZ + description: Creation time of the view + customProperties: + - property: ordinalPosition + value: 10 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: LAST_ALTERED_propId + name: LAST_ALTERED + physicalType: TIMESTAMP_LTZ + description: Last altered time of the view + customProperties: + - property: ordinalPosition + value: 11 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: LAST_DDL_propId + name: LAST_DDL + physicalType: TIMESTAMP_LTZ + description: Last DDL time of the view + customProperties: + - property: ordinalPosition + value: 12 + - property: scdType + value: 1 + logicalType: timestamp + required: false + unique: false + - id: LAST_DDL_BY_propId + name: LAST_DDL_BY + physicalType: VARCHAR(16777216) + description: User name that performed the last DDL of the view + customProperties: + - property: ordinalPosition + value: 13 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false + - id: COMMENT_propId + name: COMMENT + physicalType: VARCHAR(16777216) + description: Comment for this view + customProperties: + - property: ordinalPosition + value: 14 + - property: scdType + value: 1 + logicalType: string + logicalTypeOptions: + maxLength: 16777216 + required: false + unique: false +customProperties: +- property: owner + value: dataplatform diff --git a/tests/fixtures/snowflake/import/datacontract.yaml b/tests/fixtures/snowflake/import/datacontract.yaml new file mode 100644 index 000000000..a4e3e4cdf --- /dev/null +++ b/tests/fixtures/snowflake/import/datacontract.yaml @@ -0,0 +1,181 @@ +version: 1.0.0 +kind: DataContract +apiVersion: v3.1.0 +id: my-data-contract +name: My Data Contract +status: draft +servers: +- server: snowflake + type: snowflake +schema: +- name: mytable + physicalType: table + logicalType: object + physicalName: mytable + properties: + - name: field_primary_key + physicalType: INT + description: Primary key + primaryKey: true + primaryKeyPosition: 1 + logicalType: integer + - name: field_not_null + physicalType: INT + description: Not null + logicalType: integer + required: true + - name: field_char + physicalType: CHAR(10) + description: Fixed-length string + logicalType: string + logicalTypeOptions: + maxLength: 10 + - name: field_varchar + physicalType: VARCHAR(100) + description: Variable-length string + logicalType: string + logicalTypeOptions: + maxLength: 100 + - name: field_text + physicalType: VARCHAR + description: Large variable-length string (alias for VARCHAR(16777216)) + logicalType: string + - name: field_string + physicalType: VARCHAR + description: Alias for VARCHAR(16777216) + logicalType: string + - name: field_nchar + physicalType: CHAR(10) + description: Fixed-length string (no separate NCHAR) + logicalType: string + logicalTypeOptions: + maxLength: 10 + - name: field_nvarchar + physicalType: VARCHAR(100) + description: Variable-length string (no separate NVARCHAR) + logicalType: string + logicalTypeOptions: + maxLength: 100 + - name: field_ntext + physicalType: VARCHAR + description: Large variable-length string + logicalType: string + - name: field_tinyint + physicalType: SMALLINT + description: Snowflake doesn't have TINYINT, use SMALLINT + logicalType: integer + - name: field_smallint + physicalType: SMALLINT + description: Integer (-32,768 to 32,767) + logicalType: integer + - name: field_int + physicalType: INT + description: Integer (-2.1B to 2.1B) + logicalType: integer + - name: field_bigint + physicalType: BIGINT + description: Large integer + logicalType: integer + - name: field_decimal + physicalType: DECIMAL(10, 2) + description: Fixed precision decimal + logicalType: number + logicalTypeOptions: + precision: 10 + scale: 2 + - name: field_numeric + physicalType: DECIMAL(10, 2) + description: Same as DECIMAL + logicalType: number + logicalTypeOptions: + precision: 10 + scale: 2 + - name: field_number + physicalType: DECIMAL(38, 0) + description: Default numeric type (more flexible than DECIMAL) + logicalType: number + logicalTypeOptions: + precision: 38 + scale: 0 + - name: field_double + physicalType: DOUBLE + description: Double precision floating-point (synonym for FLOAT) + logicalType: number + - name: field_float + physicalType: FLOAT + description: Approximate floating-point + logicalType: number + - name: field_real + physicalType: FLOAT + description: Snowflake doesn't have REAL, use FLOAT + logicalType: number + - name: field_bit + physicalType: BOOLEAN + description: Boolean (TRUE/FALSE) + logicalType: boolean + - name: field_date + physicalType: DATE + description: Date only (YYYY-MM-DD) + logicalType: date + - name: field_time + physicalType: TIME + description: Time only (HH:MM:SS) + logicalType: string + - name: field_datetime2 + physicalType: TIMESTAMPNTZ + description: Timestamp without timezone + logicalType: date + - name: field_smalldatetime + physicalType: TIMESTAMPNTZ + description: Timestamp without timezone + logicalType: date + - name: field_datetimeoffset + physicalType: TIMESTAMPTZ + description: Timestamp with timezone + logicalType: date + - name: field_timestamp_ltz + physicalType: TIMESTAMPLTZ + description: Timestamp with local timezone + logicalType: date + - name: field_binary + physicalType: BINARY(16) + description: Fixed-length binary + logicalType: array + - name: field_varbinary + physicalType: BINARY(100) + description: Variable-length binary + logicalType: array + - name: field_uniqueidentifier + physicalType: VARCHAR(36) + description: GUID stored as string + logicalType: string + logicalTypeOptions: + maxLength: 36 + - name: field_xml + physicalType: VARIANT + description: Semi-structured data (XML as VARIANT) + logicalType: object + - name: field_json + physicalType: VARIANT + description: Semi-structured data (native JSON support) + logicalType: object + - name: field_object + physicalType: OBJECT + description: Semi-structured object (key-value pairs) + logicalType: object + - name: field_array + physicalType: ARRAY + description: Semi-structured array + logicalType: object + - name: field_geography + physicalType: GEOGRAPHY + description: Geospatial data (points, lines, polygons) + logicalType: object + - name: field_geometry + physicalType: GEOMETRY + description: Geospatial data (planar coordinates) + logicalType: object + - name: field_vector + physicalType: VECTOR(FLOAT, 16) + description: Vector data for ML/AI (16-dimensional float vector) + logicalType: object \ No newline at end of file diff --git a/tests/fixtures/snowflake/import/ddl.sql b/tests/fixtures/snowflake/import/ddl.sql new file mode 100644 index 000000000..addcfeb2c --- /dev/null +++ b/tests/fixtures/snowflake/import/ddl.sql @@ -0,0 +1,39 @@ +-- https://docs.snowflake.com/en/sql-reference-data-types +CREATE OR REPLACE TABLE mytable ( + field_primary_key INT PRIMARY KEY, -- Primary key + field_not_null INT NOT NULL, -- Not null + field_char CHAR(10), -- Fixed-length string + field_varchar VARCHAR(100), -- Variable-length string + field_text TEXT, -- Large variable-length string (alias for VARCHAR(16777216)) + field_string STRING, -- Alias for VARCHAR(16777216) + field_nchar CHAR(10), -- Fixed-length string (no separate NCHAR) + field_nvarchar VARCHAR(100), -- Variable-length string (no separate NVARCHAR) + field_ntext TEXT, -- Large variable-length string + field_tinyint SMALLINT, -- Snowflake doesn't have TINYINT, use SMALLINT + field_smallint SMALLINT, -- Integer (-32,768 to 32,767) + field_int INT, -- Integer (-2.1B to 2.1B) + field_bigint BIGINT, -- Large integer + field_decimal DECIMAL(10, 2), -- Fixed precision decimal + field_numeric NUMERIC(10, 2), -- Same as DECIMAL + field_number NUMBER(38, 0), -- Default numeric type (more flexible than DECIMAL) + field_double DOUBLE, -- Double precision floating-point (synonym for FLOAT) + field_float FLOAT, -- Approximate floating-point + field_real FLOAT, -- Snowflake doesn't have REAL, use FLOAT + field_bit BOOLEAN, -- Boolean (TRUE/FALSE) + field_date DATE, -- Date only (YYYY-MM-DD) + field_time TIME, -- Time only (HH:MM:SS) + field_datetime2 TIMESTAMP_NTZ, -- Timestamp without timezone + field_smalldatetime TIMESTAMP_NTZ, -- Timestamp without timezone + field_datetimeoffset TIMESTAMP_TZ, -- Timestamp with timezone + field_timestamp_ltz TIMESTAMP_LTZ, -- Timestamp with local timezone + field_binary BINARY(16), -- Fixed-length binary + field_varbinary BINARY(100), -- Variable-length binary + field_uniqueidentifier VARCHAR(36), -- GUID stored as string + field_xml VARIANT, -- Semi-structured data (XML as VARIANT) + field_json VARIANT, -- Semi-structured data (native JSON support) + field_object OBJECT, -- Semi-structured object (key-value pairs) + field_array ARRAY, -- Semi-structured array + field_geography GEOGRAPHY, -- Geospatial data (points, lines, polygons) + field_geometry GEOMETRY, -- Geospatial data (planar coordinates) + field_vector VECTOR(FLOAT, 16) -- Vector data for ML/AI (16-dimensional float vector) +); \ No newline at end of file diff --git a/tests/test_import_snowflake.py b/tests/test_import_snowflake.py index 9fd4e9fb7..1faa761d5 100644 --- a/tests/test_import_snowflake.py +++ b/tests/test_import_snowflake.py @@ -1,9 +1,192 @@ -#from typer.testing import CliRunner +import json +from unittest.mock import MagicMock, patch -#from datacontract.cli import app -#from datacontract.data_contract import DataContract +import pytest +import yaml +from dotenv import load_dotenv +from open_data_contract_standard.model import OpenDataContractStandard +from typer.testing import CliRunner + +from datacontract.cli import app +from datacontract.data_contract import DataContract +from datacontract.imports.snowflake_importer import import_Snowflake_from_connector +from datacontract.model.exceptions import DataContractException # logging.basicConfig(level=logging.INFO, force=True) +load_dotenv(override=True) + + +data_definition_file = "fixtures/snowflake/import/ddl.sql" + + +def test_cli(): + runner = CliRunner() + result = runner.invoke( + app, + [ + "import", + "--format", + "sql", + "--source", + data_definition_file, + "--dialect", + "snowflake", + ], + ) + assert result.exit_code == 0 + + +def test_cli_connection(): + with patch("datacontract.imports.snowflake_importer.import_Snowflake_from_connector") as mock_import: + mock_import.return_value = OpenDataContractStandard(id="test", kind="DataContract", apiVersion="v3.1.0") + runner = CliRunner() + result = runner.invoke( + app, + [ + "import", + "--format", + "snowflake", + "--source", + "test_account", + "--database", + "TEST_DB", + "--schema", + "TEST_SCHEMA", + ], + ) + assert result.exit_code == 0 + + +def test_import_sql_snowflake(): + result = DataContract.import_from_source("sql", data_definition_file, dialect="snowflake") + + print("Result:\n", result.to_yaml()) + with open("fixtures/snowflake/import/datacontract.yaml") as file: + expected = file.read() + assert yaml.safe_load(result.to_yaml()) == yaml.safe_load(expected) + + +def test_import_snowflake_from_connector_success(): + account = "test_account" + database = "TEST_DB" + schema = "TEST_SCHEMA" + + # Mock response from Snowflake query + # This JSON mimics the structure returned by the SQL query in snowflake_importer.py + mock_response_data = { + "apiVersion": "v3.1.0", + "kind": "DataContract", + "id": "test-id", + "name": "TEST_SCHEMA", + "version": "0.0.1", + "status": "development", + "schema": [ + { + "id": "table1_propId", + "name": "TABLE1", + "physicalName": "TEST_DB.TEST_SCHEMA.TABLE1", + "logicalType": "object", + "physicalType": "table", + "description": "Test table description", + "properties": [ + { + "id": "col1_propId", + "name": "COL1", + "logicalType": "string", + "physicalType": "VARCHAR(16777216)", + "required": False, + "unique": False, + "description": "Column description", + "customProperties": [ + {"property": "ordinalPosition", "value": 1}, + {"property": "scdType", "value": 1}, + ], + }, + { + "id": "col2_propId", + "name": "COL2", + "logicalType": "integer", + "physicalType": "NUMBER(38,0)", + "required": True, + "unique": False, + "customProperties": [ + {"property": "ordinalPosition", "value": 2}, + {"property": "scdType", "value": 1}, + ], + }, + ], + } + ], + } + + # The fetchall returns a list of tuples/lists, where the first element is the JSON string + mock_fetchall_result = [[json.dumps(mock_response_data)]] + + with patch("datacontract.imports.snowflake_importer.snowflake_cursor") as mock_cursor_func: + # Setup mocks + mock_conn = MagicMock() + mock_cursor = MagicMock() + + mock_cursor_func.return_value = mock_conn + mock_conn.cursor.return_value.__enter__.return_value = mock_cursor + + # Mock cursor attributes and methods + mock_cursor.sfqid = "mock_sfqid" + mock_cursor.fetchall.return_value = mock_fetchall_result + + # Run the function + result = import_Snowflake_from_connector(account, database, schema) + + # Verify the result + assert result.apiVersion == "v3.1.0" + assert result.kind == "DataContract" + assert result.name == "TEST_SCHEMA" + + assert len(result.schema_) == 1 + table = result.schema_[0] + assert table.name == "TABLE1" + assert table.physicalName == "TEST_DB.TEST_SCHEMA.TABLE1" + + assert len(table.properties) == 2 + assert table.properties[0].name == "COL1" + assert table.properties[1].name == "COL2" + + # Verify Snowflake interactions + mock_cursor.execute.assert_any_call(f"USE SCHEMA {database}.{schema}") + mock_cursor.execute.assert_any_call(f"SHOW COLUMNS IN SCHEMA {database}.{schema}") + mock_cursor.execute.assert_any_call(f"SHOW PRIMARY KEYS IN SCHEMA {database}.{schema}") + + assert mock_cursor.execute_async.called + args, _ = mock_cursor.execute_async.call_args + query = args[0] + assert "WITH INFO_SCHEMA_COLUMNS AS" in query + assert f"WHERE T.table_schema = '{schema}'" in query + + mock_cursor.get_results_from_sfqid.assert_called_with("mock_sfqid") + + +def test_import_snowflake_from_connector_empty_result(): + account = "test_account" + database = "TEST_DB" + schema = "TEST_SCHEMA" + + # Empty result + mock_fetchall_result = [] + + with patch("datacontract.imports.snowflake_importer.snowflake_cursor") as mock_cursor_func: + mock_conn = MagicMock() + mock_cursor = MagicMock() + + mock_cursor_func.return_value = mock_conn + mock_conn.cursor.return_value.__enter__.return_value = mock_cursor + mock_cursor.sfqid = "mock_sfqid" + mock_cursor.fetchall.return_value = mock_fetchall_result + + with pytest.raises(DataContractException) as excinfo: + import_Snowflake_from_connector(account, database, schema) + + assert "No data contract returned" in str(excinfo.value) + # @pytest.mark.skipif(os.environ.get("DATACONTRACT_SNOWFLAKE_USERNAME") is None, reason="Requires DATACONTRACT_SNOWFLAKE_USERNAME to be set") # def test_cli(): diff --git a/tests/test_test_snowflake.py b/tests/test_test_snowflake.py index 9cba635e7..b0fb697af 100644 --- a/tests/test_test_snowflake.py +++ b/tests/test_test_snowflake.py @@ -1,19 +1,29 @@ +import os + +import pytest +from dotenv import load_dotenv + +from datacontract.data_contract import DataContract + # logging.basicConfig(level=logging.INFO, force=True) +load_dotenv(override=True) datacontract = "fixtures/snowflake/datacontract.yaml" -# @pytest.mark.skipif(os.environ.get("DATACONTRACT_SNOWFLAKE_USERNAME") is None, reason="Requires DATACONTRACT_SNOWFLAKE_USERNAME to be set") -# def test_test_snowflake(): -# load_dotenv(override=True) -# # os.environ['DATACONTRACT_SNOWFLAKE_USERNAME'] = "xxx" -# # os.environ['DATACONTRACT_SNOWFLAKE_PASSWORD'] = "xxx" -# # os.environ['DATACONTRACT_SNOWFLAKE_ROLE'] = "xxx" -# # os.environ['DATACONTRACT_SNOWFLAKE_WAREHOUSE'] = "COMPUTE_WH" -# data_contract = DataContract(data_contract_file=datacontract) -# -# run = data_contract.test() -# -# print(run) -# assert run.result == "passed" -# assert all(check.result == "passed" for check in run.checks) +@pytest.mark.skipif( + os.environ.get("DATACONTRACT_SNOWFLAKE_USERNAME") is None, + reason="Requires DATACONTRACT_SNOWFLAKE_USERNAME to be set", +) +def test_test_snowflake(): + # os.environ['DATACONTRACT_SNOWFLAKE_USERNAME'] = "xxx" + # os.environ['DATACONTRACT_SNOWFLAKE_PASSWORD'] = "xxx" + # os.environ['DATACONTRACT_SNOWFLAKE_ROLE'] = "xxx" + # os.environ['DATACONTRACT_SNOWFLAKE_WAREHOUSE'] = "COMPUTE_WH" + data_contract = DataContract(data_contract_file=datacontract) + + run = data_contract.test() + + print(run) + assert run.result == "passed" + assert all(check.result == "passed" for check in run.checks) From b13ca1ac9d7f389fbb21b06304298ff02d01f20a Mon Sep 17 00:00:00 2001 From: dmaresma Date: Sun, 8 Feb 2026 16:41:49 -0500 Subject: [PATCH 17/28] add DMF as quality (schema & properties) based on last results --- datacontract/imports/snowflake_importer.py | 113 +++++++++++++++------ 1 file changed, 82 insertions(+), 31 deletions(-) diff --git a/datacontract/imports/snowflake_importer.py b/datacontract/imports/snowflake_importer.py index b7755cedd..b07ab3ab0 100644 --- a/datacontract/imports/snowflake_importer.py +++ b/datacontract/imports/snowflake_importer.py @@ -70,7 +70,43 @@ def snowflake_query(account: str, schema: str, schema_sfqid: str, businessKey_sf --SET(schema_sfqid, businessKey_sfqid) = (SELECT LAST_QUERY_ID(-2), LAST_QUERY_ID(-1)); -WITH Server_Roles AS ( +WITH Quality_Metric AS ( + SELECT + TABLE_NAME, + TYPES, + COLUMN_NAME, + ARRAY_AGG(quality) as qualities +FROM ( + SELECT + TABLE_NAME, + IFF(ARRAY_SIZE(ARGUMENT_NAMES) = 1 AND ARGUMENT_TYPES[0]::string = 'COLUMN', 'COLUMN', 'RECORD') as TYPES , + ARRAY_TO_STRING(ARGUMENT_NAMES, ',') as COLUMN_NAME, + OBJECT_CONSTRUCT( + 'id', CONCAT(LOWER(TABLE_NAME),'_',LOWER( + IFF(ARRAY_SIZE(ARGUMENT_NAMES) = 1 AND ARGUMENT_TYPES[0]::string = 'COLUMN', 'COLUMN', 'RECORD') + ), + '_', + LOWER(METRIC_NAME), + '_', + LOWER(ARRAY_TO_STRING(ARGUMENT_NAMES, ',')), + '_id'), + 'metric', COALESCE(ODCS_RULES.odcs_metric, METRIC_NAME), + COALESCE(odcs_operator,'mustBe'), VALUE + ) as quality, + FROM SNOWFLAKE.LOCAL.DATA_QUALITY_MONITORING_RESULTS + -- https://bitol-io.github.io/open-data-contract-standard/latest/data-quality/#metrics + LEFT JOIN (VALUES('NULL_COUNT', 'nullValues', 'mustBe'), + ('BLANK_COUNT','missingValues', 'mustBe'), + ('ROW_COUNT', 'rowCount','mustBeGreaterOrEqualTo'), + ('ACCEPTED_VALUES', 'invalidValues','mustBeLessThan'), + ('DUPLICATE_COUNT', 'duplicateValues','mustBeLessThan') + ) as ODCS_RULES(snowflake_metricName, odcs_metric, odcs_operator) ON METRIC_NAME = snowflake_metricName + WHERE TABLE_DATABASE = CURRENT_DATABASE() AND TABLE_SCHEMA = CURRENT_SCHEMA() + QUALIFY ROW_NUMBER() OVER (PARTITION BY TABLE_NAME, ARGUMENT_TYPES, METRIC_NAME, ARGUMENT_NAMES ORDER BY MEASUREMENT_TIME DESC) = 1 + ) as DMF_METRICS_RESULT + GROUP BY TABLE_NAME, TYPES, COLUMN_NAME +), +Server_Roles AS ( SELECT P.TABLE_SCHEMA as table_schema, ARRAY_AGG( OBJECT_CONSTRUCT( 'role', P.GRANTEE, @@ -128,11 +164,19 @@ def snowflake_query(account: str, schema: str, schema_sfqid: str, businessKey_sf GET_PATH(TRY_PARSE_JSON("data_type"),'scale') as CP_scale, "autoincrement" as CP_autoIncrement, "default" as CP_default, + Q.qualities FROM TABLE(RESULT_SCAN('$schema_sfqid')) as T - JOIN INFORMATION_SCHEMA.COLUMNS as IS_C ON T."table_name"= IS_C.TABLE_NAME AND T."schema_name" = IS_C.TABLE_SCHEMA AND T."column_name" = IS_C.COLUMN_NAME AND T."database_name" = IS_C.TABLE_CATALOG - LEFT JOIN TagRef TR ON T."table_name" = TR.OBJECT_NAME AND T."schema_name" = TR.OBJECT_SCHEMA AND T."column_name" = TR.COLUMN_NAME -) -, + JOIN INFORMATION_SCHEMA.COLUMNS as IS_C ON T."table_name"= IS_C.TABLE_NAME + AND T."schema_name" = IS_C.TABLE_SCHEMA + AND T."column_name" = IS_C.COLUMN_NAME + AND T."database_name" = IS_C.TABLE_CATALOG + LEFT JOIN TagRef TR ON T."table_name" = TR.OBJECT_NAME + AND T."schema_name" = TR.OBJECT_SCHEMA + AND T."column_name" = TR.COLUMN_NAME + LEFT JOIN Quality_Metric Q ON( T."table_name" = Q.TABLE_NAME + AND T."column_name" = Q.COLUMN_NAME + AND 'COLUMN' = Q.TYPES) +), INFO_SCHEMA_CONSTRAINTS AS ( SELECT "schema_name" as schema_name, @@ -149,8 +193,11 @@ def snowflake_query(account: str, schema: str, schema_sfqid: str, businessKey_sf UPPER(CONCAT(T.TABLE_SCHEMA,'.',T.TABLE_NAME)) as physical_name, NULLIF(coalesce(GET_PATH(TRY_PARSE_JSON(COMMENT),'description'), COMMENT),'') as description, 'object' as logicalType, - lower(REPLACE(TABLE_TYPE,'BASE ','')) as physicalType + lower(REPLACE(TABLE_TYPE,'BASE ','')) as physicalType, + 'quality', Q.qualities FROM INFORMATION_SCHEMA.TABLES as T +LEFT JOIN Quality_Metric Q ON (T.TABLE_NAME= Q.TABLE_NAME + AND 'RECORD' = Q.TYPES) ), PROPERTIES AS ( SELECT @@ -169,35 +216,37 @@ def snowflake_query(account: str, schema: str, schema_sfqid: str, businessKey_sf IFF(BK.primaryKey = true, 'primaryKeyPosition', NULL), IFF(BK.primaryKey = true, BK.primaryKeyPosition, NULL), IFF(C.tags IS NOT NULL,'tags',NULL) , IFF(C.tags IS NOT NULL, C.tags, NULL), 'customProperties', ARRAY_CONSTRUCT_COMPACT( - OBJECT_CONSTRUCT( - 'property', 'ordinalPosition', - 'value', C.ORDINAL_POSITION - ), - OBJECT_CONSTRUCT( - 'property','scdType', - 'value', IFF( COALESCE(BK.primaryKey,false) ,0,1) - ), - IFF(BK.primaryKey = True AND Right(C."name",3) != '_SK', OBJECT_CONSTRUCT( - 'property','businessKey', - 'value', True), NULL), - IFF(C.CP_precision IS NOT NULL, OBJECT_CONSTRUCT( - 'property','precision', - 'value', C.CP_precision), NULL), - IFF(C.CP_scale IS NOT NULL, OBJECT_CONSTRUCT( - 'property','scale', - 'value', C.CP_scale), NULL), - IFF(NULLIF(C.CP_autoIncrement,'') IS NOT NULL, OBJECT_CONSTRUCT( - 'property','autoIncrement', - 'value', C.CP_autoIncrement), NULL), - IFF(NULLIF(C.CP_default,'') IS NOT NULL, OBJECT_CONSTRUCT( - 'property','defaultValue', - 'value', C.CP_default), NULL) - ) + OBJECT_CONSTRUCT( + 'property', 'ordinalPosition', + 'value', C.ORDINAL_POSITION + ), + OBJECT_CONSTRUCT( + 'property','scdType', + 'value', IFF( COALESCE(BK.primaryKey,false) ,0,1) + ), + IFF(BK.primaryKey = True AND Right(C."name",3) != '_SK', OBJECT_CONSTRUCT( + 'property','businessKey', + 'value', True), NULL), + IFF(C.CP_precision IS NOT NULL, OBJECT_CONSTRUCT( + 'property','precision', + 'value', C.CP_precision), NULL), + IFF(C.CP_scale IS NOT NULL, OBJECT_CONSTRUCT( + 'property','scale', + 'value', C.CP_scale), NULL), + IFF(NULLIF(C.CP_autoIncrement,'') IS NOT NULL, OBJECT_CONSTRUCT( + 'property','autoIncrement', + 'value', C.CP_autoIncrement), NULL), + IFF(NULLIF(C.CP_default,'') IS NOT NULL, OBJECT_CONSTRUCT( + 'property','defaultValue', + 'value', C.CP_default), NULL) + ), + 'quality', C.qualities )) as properties FROM INFO_SCHEMA_COLUMNS C LEFT JOIN INFO_SCHEMA_CONSTRAINTS BK ON (C.schema_name = BK.schema_name AND C.table_name = BK.table_name AND C."name" = BK."name") + GROUP BY C.schema_name, C.table_name ) , SCHEMA_DEF AS ( @@ -210,7 +259,9 @@ def snowflake_query(account: str, schema: str, schema_sfqid: str, businessKey_sf 'logicalType',T.logicalType, 'physicalType',T.physicalType, 'description',T.description, - 'properties', P.properties)) + 'properties', P.properties, + 'quality', T.qualities) + ) as "schema" FROM PROPERTIES P LEFT JOIN INFO_SCHEMA_TABLES T ON (P.schema_name = T.table_schema From c326a4b9f24085e85e7c5cfcc482a93f6b61f93d Mon Sep 17 00:00:00 2001 From: Bodo Huesemann Date: Sun, 8 Feb 2026 21:55:47 +0000 Subject: [PATCH 18/28] merged upstream changes --- datacontract/imports/snowflake_importer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/datacontract/imports/snowflake_importer.py b/datacontract/imports/snowflake_importer.py index a542e4a79..e6e693aa3 100644 --- a/datacontract/imports/snowflake_importer.py +++ b/datacontract/imports/snowflake_importer.py @@ -18,7 +18,7 @@ def import_source(self, source: str, import_args: dict) -> OpenDataContractStand if source is not None: return import_Snowflake_from_connector( account=source, - database=import_args.get("snowflake_db"), + database=import_args.get("database"), schema=import_args.get("schema"), ) @@ -122,7 +122,7 @@ def snowflake_query(account: str, schema: str, schema_sfqid: str, businessKey_sf WHEN 'BOOLEAN' THEN 'BOOLEAN' WHEN 'TIMESTAMP_NTZ' THEN CONCAT('TIMESTAMP_NTZ','(',GET_PATH(TRY_PARSE_JSON("data_type"),'scale'),')') ELSE GET_PATH(TRY_PARSE_JSON("data_type"),'type') END as PhysicalType, - IFF (GET_PATH(TRY_PARSE_JSON("data_type"),'type')::string = 'TEXT', GET_PATH(TRY_PARSE_JSON("data_type"),'length')::string , NULL) as logicatTypeOptions_maxlength, + IFF (GET_PATH(TRY_PARSE_JSON("data_type"),'type')::string = 'TEXT', GET_PATH(TRY_PARSE_JSON("data_type"),'length')::string , NULL) as logicalTypeOptions_maxlength, IFF ("column_name" IN ('APP_NAME','CREATE_TS','CREATE_AUDIT_ID','UPDATE_TS','UPDATE_AUDIT_ID','CURRENT_RECORD_IND','DELETED_RECORD_IND', 'FILE_BLOB_PATH', 'FILE_ROW_NUMBER', 'FILE_LAST_MODIFIED', 'IS_VALID_IND', 'INVALID_MESSAGE' ), ARRAY_CONSTRUCT('metadata'), TR.Tags ) as tags, IS_C.ORDINAL_POSITION, GET_PATH(TRY_PARSE_JSON("data_type"),'precision') as CP_precision, From c219998e76d2e264d3bb3dea3edf5c3cde185857 Mon Sep 17 00:00:00 2001 From: Bodo Huesemann Date: Sun, 8 Feb 2026 21:59:03 +0000 Subject: [PATCH 19/28] removed temp file --- snowflake.yaml | 11663 ----------------------------------------------- 1 file changed, 11663 deletions(-) delete mode 100644 snowflake.yaml diff --git a/snowflake.yaml b/snowflake.yaml deleted file mode 100644 index d2a98f493..000000000 --- a/snowflake.yaml +++ /dev/null @@ -1,11663 +0,0 @@ -version: 0.0.1 -kind: DataContract -apiVersion: v3.1.0 -id: 2e8ba28e-70f2-462e-956c-bcc88c673b04 -name: INFORMATION_SCHEMA -status: development -servers: -- server: snowflake_dev - type: snowflake - environment: dev - roles: - - role: ACCOUNTADMIN - access: write - firstLevelApprovers: BHUESEMANN - account: RMTPDDM-KO91272 - database: SNOWFLAKE - host: RMTPDDM-KO91272.snowflakecomputing.com - port: 443 - schema: INFORMATION_SCHEMA - warehouse: COMPUTE_WH -- server: snowflake_uat - type: snowflake - environment: uat - roles: - - role: ACCOUNTADMIN - access: write - firstLevelApprovers: BHUESEMANN - account: RMTPDDM-KO91272 - database: SNOWFLAKE - host: RMTPDDM-KO91272.snowflakecomputing.com - port: 443 - schema: INFORMATION_SCHEMA - warehouse: COMPUTE_WH -- server: snowflake - type: snowflake - environment: prd - roles: - - role: ACCOUNTADMIN - access: write - firstLevelApprovers: BHUESEMANN - account: RMTPDDM-KO91272 - database: SNOWFLAKE - host: RMTPDDM-KO91272.snowflakecomputing.com - port: 443 - schema: INFORMATION_SCHEMA - warehouse: COMPUTE_WH -description: - usage: not defined - purpose: This data can be used for analytical purposes - limitations: not defined -domain: dataplatform -schema: -- id: APPLICABLE_ROLES_schId - name: APPLICABLE_ROLES - physicalType: view - description: The roles that can be applied to the current user. - logicalType: object - physicalName: INFORMATION_SCHEMA.APPLICABLE_ROLES - properties: - - id: GRANTEE_propId - name: GRANTEE - physicalType: VARCHAR(16777216) - description: Role or user to whom the privilege is granted - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: ROLE_NAME_propId - name: ROLE_NAME - physicalType: VARCHAR(16777216) - description: Name of the role - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: ROLE_OWNER_propId - name: ROLE_OWNER - physicalType: VARCHAR(16777216) - description: Owner of the role - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: IS_GRANTABLE_propId - name: IS_GRANTABLE - physicalType: VARCHAR(3) - description: Whether this role can be granted to others - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false -- id: APPLICATION_SPECIFICATIONS_schId - name: APPLICATION_SPECIFICATIONS - physicalType: view - description: The specification requests currently defined in the current application - that are accessible to the current user's role. - logicalType: object - physicalName: INFORMATION_SCHEMA.APPLICATION_SPECIFICATIONS - properties: - - id: NAME_propId - name: NAME - physicalType: VARCHAR(16777216) - description: Name of the application specification - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: APPLICATION_NAME_propId - name: APPLICATION_NAME - physicalType: VARCHAR(16777216) - description: Name of the application that contains the application specification - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: TYPE_propId - name: TYPE - physicalType: VARCHAR(16777216) - description: Type of the application specification - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SEQUENCE_NUMBER_propId - name: SEQUENCE_NUMBER - description: Id for a specification request, unique identifier the spec definition - across different specification versions - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: number - required: true - unique: false - - id: REQUESTED_ON_propId - name: REQUESTED_ON - physicalType: TIMESTAMP_LTZ - description: Timestamp when this specification request was created by application - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: STATUS_propId - name: STATUS - physicalType: VARCHAR(16777216) - description: Specification approval status - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: STATUS_UPDATED_ON_propId - name: STATUS_UPDATED_ON - physicalType: TIMESTAMP_LTZ - description: Timestamp recording the last change in status for Approval/Decline. - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: LABEL_propId - name: LABEL - physicalType: VARCHAR(16777216) - description: Consumer visible specification name - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: DESCRIPTION_propId - name: DESCRIPTION - physicalType: VARCHAR(16777216) - description: Application specification description - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: DEFINITION_propId - name: DEFINITION - physicalType: VARCHAR(16777216) - description: Application specification content in JSON format - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false -- id: BACKUP_POLICIES_schId - name: BACKUP_POLICIES - physicalType: view - description: All backup policies within an account - logicalType: object - physicalName: INFORMATION_SCHEMA.BACKUP_POLICIES - properties: - - id: BACKUP_POLICY_NAME_propId - name: BACKUP_POLICY_NAME - physicalType: VARCHAR(16777216) - description: Name of the Backup Policy - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: BACKUP_POLICY_SCHEMA_propId - name: BACKUP_POLICY_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema which the Backup Policy belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: BACKUP_POLICY_CATALOG_propId - name: BACKUP_POLICY_CATALOG - physicalType: VARCHAR(16777216) - description: Database which the Backup Policy belongs to - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: SCHEDULE_propId - name: SCHEDULE - physicalType: VARCHAR(16777216) - description: Schedule for backup creation - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: EXPIRE_AFTER_DAYS_propId - name: EXPIRE_AFTER_DAYS - description: Days after backup creation when backup should be expired - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: HAS_RETENTION_LOCK_propId - name: HAS_RETENTION_LOCK - physicalType: VARCHAR(16777216) - description: Indicates whether the policy includes a retention lock. Y if policy - has retention lock; N otherwise - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: OWNER_propId - name: OWNER - physicalType: VARCHAR(16777216) - description: Name of the role that owns the Backup Policy - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: OWNER_ROLE_TYPE_propId - name: OWNER_ROLE_TYPE - physicalType: VARCHAR(16777216) - description: Type of role that owns the Backup Policy - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Data and time when the Backup Policy was created - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: LAST_ALTERED_propId - name: LAST_ALTERED - physicalType: TIMESTAMP_LTZ - description: Data and time when the Backup Policy was last altered - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Comment for the Backup Policy - customProperties: - - property: ordinalPosition - value: 11 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false -- id: BACKUP_SETS_schId - name: BACKUP_SETS - physicalType: view - description: All backup sets within an account - logicalType: object - physicalName: INFORMATION_SCHEMA.BACKUP_SETS - properties: - - id: BACKUP_SET_NAME_propId - name: BACKUP_SET_NAME - physicalType: VARCHAR(16777216) - description: Name of the Backup Set - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: BACKUP_SET_SCHEMA_propId - name: BACKUP_SET_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema which the Backup Set belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: BACKUP_SET_CATALOG_propId - name: BACKUP_SET_CATALOG - physicalType: VARCHAR(16777216) - description: Database which the Backup Set belongs to - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: OBJECT_KIND_propId - name: OBJECT_KIND - physicalType: VARCHAR(16777216) - description: Type of object that the backup set is backing up - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: OBJECT_NAME_propId - name: OBJECT_NAME - physicalType: VARCHAR(16777216) - description: Name of the object that the backup set is backing up - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: OBJECT_SCHEMA_propId - name: OBJECT_SCHEMA - physicalType: VARCHAR(16777216) - description: Name of the schema that contains the object being backed up by this - backup set - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: OBJECT_CATALOG_propId - name: OBJECT_CATALOG - physicalType: VARCHAR(16777216) - description: Name of the database that contains the object being backed up by - this backup set - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: BACKUP_POLICY_NAME_propId - name: BACKUP_POLICY_NAME - physicalType: VARCHAR(16777216) - description: Name of the Backup Policy attached to this backup set - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: BACKUP_POLICY_SCHEMA_propId - name: BACKUP_POLICY_SCHEMA - physicalType: VARCHAR(16777216) - description: Name of the schema that contains the Backup Policy - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: BACKUP_POLICY_CATALOG_propId - name: BACKUP_POLICY_CATALOG - physicalType: VARCHAR(16777216) - description: Name of the database that contains the Backup Policy - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: OWNER_propId - name: OWNER - physicalType: VARCHAR(16777216) - description: Name of the role that owns the Backup Set - customProperties: - - property: ordinalPosition - value: 11 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: OWNER_ROLE_TYPE_propId - name: OWNER_ROLE_TYPE - physicalType: VARCHAR(16777216) - description: Type of role that owns the Backup Set - customProperties: - - property: ordinalPosition - value: 12 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Data and time when the Backup Set was created - customProperties: - - property: ordinalPosition - value: 13 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: LAST_ALTERED_propId - name: LAST_ALTERED - physicalType: TIMESTAMP_LTZ - description: Data and time when the Backup Set was last altered - customProperties: - - property: ordinalPosition - value: 14 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Comment for the Backup Set - customProperties: - - property: ordinalPosition - value: 15 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false -- id: BACKUPS_schId - name: BACKUPS - physicalType: view - description: All backups within an account - logicalType: object - physicalName: INFORMATION_SCHEMA.BACKUPS - properties: - - id: ID_propId - name: ID - physicalType: VARCHAR(16777216) - description: Unique identifier of the Backup - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Data and time when the backup was created - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: BACKUP_SET_NAME_propId - name: BACKUP_SET_NAME - physicalType: VARCHAR(16777216) - description: Name of Backup Set that contains the backup - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: BACKUP_SET_SCHEMA_propId - name: BACKUP_SET_SCHEMA - physicalType: VARCHAR(16777216) - description: Name of schema which the Backup Set belongs to - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: BACKUP_SET_CATALOG_propId - name: BACKUP_SET_CATALOG - physicalType: VARCHAR(16777216) - description: Name of database which the Backup Set belongs to - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: EXPIRATION_SCHEDULED_FOR_propId - name: EXPIRATION_SCHEDULED_FOR - physicalType: TIMESTAMP_LTZ - description: Timestamp at which the backup will be expired - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: IS_UNDER_LEGAL_HOLD_propId - name: IS_UNDER_LEGAL_HOLD - physicalType: BOOLEAN - description: Whether the backup is under legal hold - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: boolean - required: false - unique: false -- id: CLASS_INSTANCE_FUNCTIONS_schId - name: CLASS_INSTANCE_FUNCTIONS - physicalType: view - description: The functions defined in a bundle that are accessible to the current - user's role. - logicalType: object - physicalName: INFORMATION_SCHEMA.CLASS_INSTANCE_FUNCTIONS - properties: - - id: FUNCTION_NAME_propId - name: FUNCTION_NAME - physicalType: VARCHAR(16777216) - description: Name of the function - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: FUNCTION_INSTANCE_NAME_propId - name: FUNCTION_INSTANCE_NAME - physicalType: VARCHAR(16777216) - description: Name of the instance which the function belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: FUNCTION_INSTANCE_SCHEMA_propId - name: FUNCTION_INSTANCE_SCHEMA - physicalType: VARCHAR(16777216) - description: Name of the schema which the instance belongs to - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: FUNCTION_INSTANCE_DATABASE_propId - name: FUNCTION_INSTANCE_DATABASE - physicalType: VARCHAR(16777216) - description: Name of the database which the instance belongs to - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: FUNCTION_OWNER_propId - name: FUNCTION_OWNER - physicalType: VARCHAR(16777216) - description: Name of the role that owns the function - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: ARGUMENT_SIGNATURE_propId - name: ARGUMENT_SIGNATURE - physicalType: VARCHAR(16777216) - description: Type signature of the function's arguments - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: DATA_TYPE_propId - name: DATA_TYPE - physicalType: VARCHAR(16777216) - description: Return value data type - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: CHARACTER_MAXIMUM_LENGTH_propId - name: CHARACTER_MAXIMUM_LENGTH - physicalType: NUMBER(9,0) - description: Maximum length in characters of string return value - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: CHARACTER_OCTET_LENGTH_propId - name: CHARACTER_OCTET_LENGTH - physicalType: NUMBER(9,0) - description: Maximum length in bytes of string return value - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: NUMERIC_PRECISION_propId - name: NUMERIC_PRECISION - physicalType: NUMBER(9,0) - description: Numeric precision of numeric return value - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: NUMERIC_PRECISION_RADIX_propId - name: NUMERIC_PRECISION_RADIX - physicalType: NUMBER(9,0) - description: Radix of precision of numeric return value - customProperties: - - property: ordinalPosition - value: 11 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: NUMERIC_SCALE_propId - name: NUMERIC_SCALE - physicalType: NUMBER(9,0) - description: Scale of numeric return value - customProperties: - - property: ordinalPosition - value: 12 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: FUNCTION_LANGUAGE_propId - name: FUNCTION_LANGUAGE - physicalType: VARCHAR(16777216) - description: Language of the function - customProperties: - - property: ordinalPosition - value: 13 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: FUNCTION_DEFINITION_propId - name: FUNCTION_DEFINITION - physicalType: VARCHAR(16777216) - description: Function definition - customProperties: - - property: ordinalPosition - value: 14 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: VOLATILITY_propId - name: VOLATILITY - physicalType: VARCHAR(16777216) - description: Whether the function is volatile or immutable - customProperties: - - property: ordinalPosition - value: 15 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: IS_NULL_CALL_propId - name: IS_NULL_CALL - physicalType: VARCHAR(3) - description: Whether the function is called on null input - customProperties: - - property: ordinalPosition - value: 16 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: IS_SECURE_propId - name: IS_SECURE - physicalType: VARCHAR(3) - description: Whether this function is secure. - customProperties: - - property: ordinalPosition - value: 17 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Creation time of the function - customProperties: - - property: ordinalPosition - value: 18 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: LAST_ALTERED_propId - name: LAST_ALTERED - physicalType: TIMESTAMP_LTZ - description: Last altered time of the function - customProperties: - - property: ordinalPosition - value: 19 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Comment for this function - customProperties: - - property: ordinalPosition - value: 20 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: IS_EXTERNAL_propId - name: IS_EXTERNAL - physicalType: VARCHAR(3) - description: Whether this function is external - customProperties: - - property: ordinalPosition - value: 21 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: API_INTEGRATION_propId - name: API_INTEGRATION - physicalType: VARCHAR(16777216) - description: Integration for this function - customProperties: - - property: ordinalPosition - value: 22 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CONTEXT_HEADERS_propId - name: CONTEXT_HEADERS - physicalType: VARCHAR(16777216) - description: Context headers for this function - customProperties: - - property: ordinalPosition - value: 23 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: MAX_BATCH_ROWS_propId - name: MAX_BATCH_ROWS - physicalType: NUMBER(9,0) - description: Max batch rows for this function - customProperties: - - property: ordinalPosition - value: 24 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: COMPRESSION_propId - name: COMPRESSION - physicalType: VARCHAR(16777216) - description: Type of compression used for serializing function payload - customProperties: - - property: ordinalPosition - value: 25 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: PACKAGES_propId - name: PACKAGES - physicalType: VARCHAR(16777216) - description: Packages requested by the function. - customProperties: - - property: ordinalPosition - value: 26 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: RUNTIME_VERSION_propId - name: RUNTIME_VERSION - physicalType: VARCHAR(16777216) - description: Runtime version of the function. NULL if function is SQL or Javascript - customProperties: - - property: ordinalPosition - value: 27 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: INSTALLED_PACKAGES_propId - name: INSTALLED_PACKAGES - physicalType: VARCHAR(16777216) - description: All packages installed by the function. - customProperties: - - property: ordinalPosition - value: 28 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: IS_MEMOIZABLE_propId - name: IS_MEMOIZABLE - physicalType: VARCHAR(3) - description: Whether this function is memoizable. - customProperties: - - property: ordinalPosition - value: 29 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false -- id: CLASS_INSTANCE_PROCEDURES_schId - name: CLASS_INSTANCE_PROCEDURES - physicalType: view - description: The procedures defined in a bundle that are accessible to the current - user's role. - logicalType: object - physicalName: INFORMATION_SCHEMA.CLASS_INSTANCE_PROCEDURES - properties: - - id: PROCEDURE_NAME_propId - name: PROCEDURE_NAME - physicalType: VARCHAR(16777216) - description: Name of the procedure - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: PROCEDURE_INSTANCE_NAME_propId - name: PROCEDURE_INSTANCE_NAME - physicalType: VARCHAR(16777216) - description: Name of the instance which the procedure belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: PROCEDURE_INSTANCE_SCHEMA_propId - name: PROCEDURE_INSTANCE_SCHEMA - physicalType: VARCHAR(16777216) - description: Name of the schema which the procedure belongs to - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: PROCEDURE_INSTANCE_DATABASE_propId - name: PROCEDURE_INSTANCE_DATABASE - physicalType: VARCHAR(16777216) - description: Name of the database which the procedure belongs to - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: PROCEDURE_OWNER_propId - name: PROCEDURE_OWNER - physicalType: VARCHAR(16777216) - description: Name of the role that owns the procedure - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: ARGUMENT_SIGNATURE_propId - name: ARGUMENT_SIGNATURE - physicalType: VARCHAR(16777216) - description: Type signature of the procedure's arguments - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: DATA_TYPE_propId - name: DATA_TYPE - physicalType: VARCHAR(16777216) - description: Return value data type - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: CHARACTER_MAXIMUM_LENGTH_propId - name: CHARACTER_MAXIMUM_LENGTH - physicalType: NUMBER(9,0) - description: Maximum length in characters of string return value - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: CHARACTER_OCTET_LENGTH_propId - name: CHARACTER_OCTET_LENGTH - physicalType: NUMBER(9,0) - description: Maximum length in bytes of string return value - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: NUMERIC_PRECISION_propId - name: NUMERIC_PRECISION - physicalType: NUMBER(9,0) - description: Numeric precision of numeric return value - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: NUMERIC_PRECISION_RADIX_propId - name: NUMERIC_PRECISION_RADIX - physicalType: NUMBER(9,0) - description: Radix of precision of numeric return value - customProperties: - - property: ordinalPosition - value: 11 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: NUMERIC_SCALE_propId - name: NUMERIC_SCALE - physicalType: NUMBER(9,0) - description: Scale of numeric return value - customProperties: - - property: ordinalPosition - value: 12 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: PROCEDURE_LANGUAGE_propId - name: PROCEDURE_LANGUAGE - physicalType: VARCHAR(16777216) - description: Language of the procedure - customProperties: - - property: ordinalPosition - value: 13 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: PROCEDURE_DEFINITION_propId - name: PROCEDURE_DEFINITION - physicalType: VARCHAR(16777216) - description: Procedure definition - customProperties: - - property: ordinalPosition - value: 14 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Creation time of the procedure - customProperties: - - property: ordinalPosition - value: 15 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: LAST_ALTERED_propId - name: LAST_ALTERED - physicalType: TIMESTAMP_LTZ - description: Last altered time of the procedure - customProperties: - - property: ordinalPosition - value: 16 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Comment for this procedure - customProperties: - - property: ordinalPosition - value: 17 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false -- id: CLASS_INSTANCES_schId - name: CLASS_INSTANCES - physicalType: view - description: The BUNDLE INSTANCE that the current user has privileges to view. - logicalType: object - physicalName: INFORMATION_SCHEMA.CLASS_INSTANCES - properties: - - id: NAME_propId - name: NAME - physicalType: VARCHAR(16777216) - description: Name of the BUNDLE INSTANCE - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SCHEMA_NAME_propId - name: SCHEMA_NAME - physicalType: VARCHAR(16777216) - description: Schema which the INSTANCE belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: DATABASE_NAME_propId - name: DATABASE_NAME - physicalType: VARCHAR(16777216) - description: Database which the INSTANCE belongs to - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: CLASS_NAME_propId - name: CLASS_NAME - physicalType: VARCHAR(16777216) - description: CLASS which the INSTANCE is instantiated from - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: CLASS_SCHEMA_NAME_propId - name: CLASS_SCHEMA_NAME - physicalType: VARCHAR(16777216) - description: Schema of the CLASS which the INSTANCE is instantiated from - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: CLASS_DATABASE_NAME_propId - name: CLASS_DATABASE_NAME - physicalType: VARCHAR(16777216) - description: Database of the CLASS which the INSTANCE is instantiated from - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: VERSION_propId - name: VERSION - physicalType: VARCHAR(16777216) - description: Current version of the INSTANCE - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: OWNER_propId - name: OWNER - physicalType: VARCHAR(16777216) - description: Name of the role that owns the INSTANCE - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: OWNER_ROLE_TYPE_propId - name: OWNER_ROLE_TYPE - physicalType: VARCHAR(16777216) - description: Type of role that owns the INSTANCE. - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Date and time when the INSTANCE was created - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Comment for the INSTANCE - customProperties: - - property: ordinalPosition - value: 11 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false -- id: CLASSES_schId - name: CLASSES - physicalType: view - description: The BUNDLE CLASS that the current user has privileges to view. - logicalType: object - physicalName: INFORMATION_SCHEMA.CLASSES - properties: - - id: NAME_propId - name: NAME - physicalType: VARCHAR(16777216) - description: Name of the BUNDLE CLASS - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SCHEMA_NAME_propId - name: SCHEMA_NAME - physicalType: VARCHAR(16777216) - description: Schema which the CLASS belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: DATABASE_NAME_propId - name: DATABASE_NAME - physicalType: VARCHAR(16777216) - description: Database which the CLASS belongs to - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: VERSION_propId - name: VERSION - physicalType: VARCHAR(16777216) - description: Current version of the CLASS - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: OWNER_propId - name: OWNER - physicalType: VARCHAR(16777216) - description: Name of the role that owns the CLASS - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: OWNER_ROLE_TYPE_propId - name: OWNER_ROLE_TYPE - physicalType: VARCHAR(16777216) - description: Type of role that owns the CLASS. - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: IS_SERVICE_CLASS_propId - name: IS_SERVICE_CLASS - physicalType: VARCHAR(16777216) - description: Whether this is a SERVICE class - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Date and time when the CLASS was created - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Comment for the CLASS - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false -- id: COLUMNS_schId - name: COLUMNS - physicalType: view - description: The columns of tables defined in this database that are accessible - to the current user's role. - logicalType: object - physicalName: INFORMATION_SCHEMA.COLUMNS - properties: - - id: TABLE_CATALOG_propId - name: TABLE_CATALOG - physicalType: VARCHAR(16777216) - description: Database that the table belongs to - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: TABLE_SCHEMA_propId - name: TABLE_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema that the table belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: TABLE_NAME_propId - name: TABLE_NAME - physicalType: VARCHAR(16777216) - description: Table that the column belongs to - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: COLUMN_NAME_propId - name: COLUMN_NAME - physicalType: VARCHAR(16777216) - description: Name of the column - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: ORDINAL_POSITION_propId - name: ORDINAL_POSITION - physicalType: NUMBER(9,0) - description: Ordinal position of the column in the table - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: COLUMN_DEFAULT_propId - name: COLUMN_DEFAULT - physicalType: VARCHAR(16777216) - description: Default value of the column - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: IS_NULLABLE_propId - name: IS_NULLABLE - physicalType: VARCHAR(3) - description: '''YES'' if the column may contain NULL, ''NO'' otherwise' - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: DATA_TYPE_propId - name: DATA_TYPE - physicalType: VARCHAR(16777216) - description: Data type of the column - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: CHARACTER_MAXIMUM_LENGTH_propId - name: CHARACTER_MAXIMUM_LENGTH - physicalType: NUMBER(9,0) - description: Maximum length in characters of string columns - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: CHARACTER_OCTET_LENGTH_propId - name: CHARACTER_OCTET_LENGTH - physicalType: NUMBER(9,0) - description: Maximum length in bytes of string columns - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: NUMERIC_PRECISION_propId - name: NUMERIC_PRECISION - physicalType: NUMBER(9,0) - description: Numeric precision of numeric columns - customProperties: - - property: ordinalPosition - value: 11 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: NUMERIC_PRECISION_RADIX_propId - name: NUMERIC_PRECISION_RADIX - physicalType: NUMBER(9,0) - description: Radix of precision of numeric columns - customProperties: - - property: ordinalPosition - value: 12 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: NUMERIC_SCALE_propId - name: NUMERIC_SCALE - physicalType: NUMBER(9,0) - description: Scale of numeric columns - customProperties: - - property: ordinalPosition - value: 13 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: DATETIME_PRECISION_propId - name: DATETIME_PRECISION - physicalType: NUMBER(9,0) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 14 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: INTERVAL_TYPE_propId - name: INTERVAL_TYPE - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 15 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: INTERVAL_PRECISION_propId - name: INTERVAL_PRECISION - physicalType: NUMBER(9,0) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 16 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: CHARACTER_SET_CATALOG_propId - name: CHARACTER_SET_CATALOG - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 17 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CHARACTER_SET_SCHEMA_propId - name: CHARACTER_SET_SCHEMA - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 18 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CHARACTER_SET_NAME_propId - name: CHARACTER_SET_NAME - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 19 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: COLLATION_CATALOG_propId - name: COLLATION_CATALOG - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 20 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: COLLATION_SCHEMA_propId - name: COLLATION_SCHEMA - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 21 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: COLLATION_NAME_propId - name: COLLATION_NAME - physicalType: VARCHAR(16777216) - description: The name of collation, if present - customProperties: - - property: ordinalPosition - value: 22 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: DOMAIN_CATALOG_propId - name: DOMAIN_CATALOG - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 23 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: DOMAIN_SCHEMA_propId - name: DOMAIN_SCHEMA - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 24 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: DOMAIN_NAME_propId - name: DOMAIN_NAME - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 25 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: UDT_CATALOG_propId - name: UDT_CATALOG - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 26 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: UDT_SCHEMA_propId - name: UDT_SCHEMA - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 27 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: UDT_NAME_propId - name: UDT_NAME - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 28 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: SCOPE_CATALOG_propId - name: SCOPE_CATALOG - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 29 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: SCOPE_SCHEMA_propId - name: SCOPE_SCHEMA - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 30 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: SCOPE_NAME_propId - name: SCOPE_NAME - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 31 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: MAXIMUM_CARDINALITY_propId - name: MAXIMUM_CARDINALITY - physicalType: NUMBER(9,0) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 32 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: DTD_IDENTIFIER_propId - name: DTD_IDENTIFIER - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 33 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: IS_SELF_REFERENCING_propId - name: IS_SELF_REFERENCING - physicalType: VARCHAR(3) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 34 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: IS_IDENTITY_propId - name: IS_IDENTITY - physicalType: VARCHAR(3) - description: Whether this column is an identity column - customProperties: - - property: ordinalPosition - value: 35 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: IDENTITY_GENERATION_propId - name: IDENTITY_GENERATION - physicalType: VARCHAR(16777216) - description: Whether an identity column's value is always generated or only generated - by default. Snowflake only supports BY DEFAULT - customProperties: - - property: ordinalPosition - value: 36 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: IDENTITY_START_propId - name: IDENTITY_START - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 37 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: IDENTITY_INCREMENT_propId - name: IDENTITY_INCREMENT - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 38 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: IDENTITY_MAXIMUM_propId - name: IDENTITY_MAXIMUM - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 39 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: IDENTITY_MINIMUM_propId - name: IDENTITY_MINIMUM - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 40 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: IDENTITY_CYCLE_propId - name: IDENTITY_CYCLE - physicalType: VARCHAR(16777216) - description: Whether the value of an identity column may cycle. Snowflake only - supports NO CYCLE. - customProperties: - - property: ordinalPosition - value: 41 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: IDENTITY_ORDERED_propId - name: IDENTITY_ORDERED - physicalType: VARCHAR(3) - description: Whether the identity column is backed by an ordered sequence - customProperties: - - property: ordinalPosition - value: 42 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: SCHEMA_EVOLUTION_RECORD_propId - name: SCHEMA_EVOLUTION_RECORD - physicalType: VARCHAR(16777216) - description: The record of the latest schema evolution of the column, if present - customProperties: - - property: ordinalPosition - value: 43 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: DATA_TYPE_ALIAS_propId - name: DATA_TYPE_ALIAS - physicalType: VARCHAR(16777216) - description: The data type of the column defined in the DDL command when the column - was created - customProperties: - - property: ordinalPosition - value: 44 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Comment for this column - customProperties: - - property: ordinalPosition - value: 45 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false -- id: CORTEX_SEARCH_SERVICE_SCORING_PROFILES_schId - name: CORTEX_SEARCH_SERVICE_SCORING_PROFILES - physicalType: view - description: The Cortex Search Service scoring profiles defined in this database - that are accessible to the current user's role. - logicalType: object - physicalName: INFORMATION_SCHEMA.CORTEX_SEARCH_SERVICE_SCORING_PROFILES - properties: - - id: SERVICE_CATALOG_propId - name: SERVICE_CATALOG - physicalType: VARCHAR(16777216) - description: Database that the Cortex Search Service belongs to - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SERVICE_SCHEMA_propId - name: SERVICE_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema that the Cortex Search Service belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SERVICE_NAME_propId - name: SERVICE_NAME - physicalType: VARCHAR(16777216) - description: Name of the Cortex Search Service - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SCORING_PROFILE_NAME_propId - name: SCORING_PROFILE_NAME - physicalType: VARCHAR(16777216) - description: Name of the scoring profile - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SCORING_PROFILE_propId - name: SCORING_PROFILE - physicalType: VARCHAR(16777216) - description: Scoring profile - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false -- id: CORTEX_SEARCH_SERVICES_schId - name: CORTEX_SEARCH_SERVICES - physicalType: view - description: The Cortex Search Services defined in this database that are accessible - to the current user's role. - logicalType: object - physicalName: INFORMATION_SCHEMA.CORTEX_SEARCH_SERVICES - properties: - - id: SERVICE_CATALOG_propId - name: SERVICE_CATALOG - physicalType: VARCHAR(16777216) - description: Database that the Cortex Search Service belongs to - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SERVICE_SCHEMA_propId - name: SERVICE_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema that the Cortex Search Service belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SERVICE_NAME_propId - name: SERVICE_NAME - physicalType: VARCHAR(16777216) - description: Name of the Cortex Search Service - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Creation time of the Cortex Search Service - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: DEFINITION_propId - name: DEFINITION - physicalType: VARCHAR(16777216) - description: Definition of the Cortex Search Service - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SEARCH_COLUMN_propId - name: SEARCH_COLUMN - physicalType: VARCHAR(16777216) - description: Name of the search column in the Cortex Search Service - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: ATTRIBUTE_COLUMNS_propId - name: ATTRIBUTE_COLUMNS - physicalType: VARCHAR(16777216) - description: Names of the attribute columns in the Cortex Search Service - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: COLUMNS_propId - name: COLUMNS - physicalType: VARCHAR(16777216) - description: Names of all the columns in the Cortex Search Service - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: TARGET_LAG_propId - name: TARGET_LAG - physicalType: VARCHAR(16777216) - description: Target lag of the Cortex Search Service - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: WAREHOUSE_propId - name: WAREHOUSE - physicalType: VARCHAR(16777216) - description: Warehouse assigned for refreshes of the Cortex Search Service - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Comment for this Cortex Search Service - customProperties: - - property: ordinalPosition - value: 11 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: SERVICE_QUERY_URL_propId - name: SERVICE_QUERY_URL - physicalType: VARCHAR(16777216) - description: URL for querying the Cortex Search Service - customProperties: - - property: ordinalPosition - value: 12 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: OWNER_propId - name: OWNER - physicalType: VARCHAR(16777216) - description: Name of the role that owns the Cortex Search Service - customProperties: - - property: ordinalPosition - value: 13 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: OWNER_ROLE_TYPE_propId - name: OWNER_ROLE_TYPE - physicalType: VARCHAR(16777216) - description: Type of the role that owns the Cortex Search Service - customProperties: - - property: ordinalPosition - value: 14 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: DATA_TIMESTAMP_propId - name: DATA_TIMESTAMP - physicalType: TIMESTAMP_LTZ - description: Data timestamp of the Cortex Search Service source data - customProperties: - - property: ordinalPosition - value: 15 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: SOURCE_DATA_BYTES_propId - name: SOURCE_DATA_BYTES - physicalType: NUMBER(9,0) - description: Size of the materialized source data, in bytes - customProperties: - - property: ordinalPosition - value: 16 - - property: scdType - value: 1 - logicalType: number - required: true - unique: false - - id: SOURCE_DATA_NUM_ROWS_propId - name: SOURCE_DATA_NUM_ROWS - physicalType: NUMBER(9,0) - description: Number of rows in the source data indexed by the Cortex Search Service - customProperties: - - property: ordinalPosition - value: 17 - - property: scdType - value: 1 - logicalType: number - required: true - unique: false - - id: INDEXING_STATE_propId - name: INDEXING_STATE - physicalType: VARCHAR(16777216) - description: Indexing status of the Cortex Search Service - customProperties: - - property: ordinalPosition - value: 18 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: INDEXING_ERROR_propId - name: INDEXING_ERROR - physicalType: VARCHAR(16777216) - description: Last error encountered during a refresh of the Cortex Search Service - customProperties: - - property: ordinalPosition - value: 19 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: SERVING_STATE_propId - name: SERVING_STATE - physicalType: TIMESTAMP_LTZ - description: Serving status of the Cortex Search Service - customProperties: - - property: ordinalPosition - value: 20 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: SERVING_DATA_BYTES_propId - name: SERVING_DATA_BYTES - physicalType: NUMBER(9,0) - description: Size of the billable serving data, in bytes - customProperties: - - property: ordinalPosition - value: 21 - - property: scdType - value: 1 - logicalType: number - required: true - unique: false - - id: EMBEDDING_MODEL_propId - name: EMBEDDING_MODEL - physicalType: VARCHAR(16777216) - description: Embedding model used by the Cortex Search Service - customProperties: - - property: ordinalPosition - value: 22 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: PRIMARY_KEY_COLUMNS_propId - name: PRIMARY_KEY_COLUMNS - physicalType: VARCHAR(16777216) - description: Names of the primary key columns in the Cortex Search Service - customProperties: - - property: ordinalPosition - value: 23 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SCORING_PROFILE_COUNT_propId - name: SCORING_PROFILE_COUNT - description: Number of scoring profiles defined in the Cortex Search Service - customProperties: - - property: ordinalPosition - value: 24 - - property: scdType - value: 1 - logicalType: number - required: true - unique: false - - id: AUTO_SUSPEND_propId - name: AUTO_SUSPEND - description: Auto suspend threshold of the Cortex Search Service in seconds - customProperties: - - property: ordinalPosition - value: 25 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: REFRESH_MODE_propId - name: REFRESH_MODE - physicalType: VARCHAR(16777216) - description: Refresh mode of the source dynamic table - customProperties: - - property: ordinalPosition - value: 26 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: VECTOR_INDEXES_propId - name: VECTOR_INDEXES - physicalType: VARCHAR(16777216) - description: Vector indexes defined in the Cortex Search Service - customProperties: - - property: ordinalPosition - value: 27 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false -- id: CURRENT_PACKAGES_POLICY_schId - name: CURRENT_PACKAGES_POLICY - physicalType: view - description: The packages policy set on the current account - logicalType: object - physicalName: INFORMATION_SCHEMA.CURRENT_PACKAGES_POLICY - properties: - - id: NAME_propId - name: NAME - physicalType: VARCHAR(16777216) - description: Packages policy name - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: LANGUAGE_propId - name: LANGUAGE - physicalType: VARCHAR(16777216) - description: Package language - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: ALLOWLIST_propId - name: ALLOWLIST - physicalType: VARCHAR(16777216) - description: Allowlist - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: BLOCKLIST_propId - name: BLOCKLIST - physicalType: VARCHAR(16777216) - description: BLocklist - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: ADDITIONAL_CREATION_BLOCKLIST_propId - name: ADDITIONAL_CREATION_BLOCKLIST - physicalType: VARCHAR(16777216) - description: Additional creation blocklist - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: comment - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false -- id: DATABASES_schId - name: DATABASES - physicalType: view - description: The databases that are accessible to the current user's role. - logicalType: object - physicalName: INFORMATION_SCHEMA.DATABASES - properties: - - id: DATABASE_NAME_propId - name: DATABASE_NAME - physicalType: VARCHAR(16777216) - description: Name of the database - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: DATABASE_OWNER_propId - name: DATABASE_OWNER - physicalType: VARCHAR(16777216) - description: Name of the role that owns the schema - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: IS_TRANSIENT_propId - name: IS_TRANSIENT - physicalType: VARCHAR(3) - description: Whether this is a transient table - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Comment for this database - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Creation time of the database - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: LAST_ALTERED_propId - name: LAST_ALTERED - physicalType: TIMESTAMP_LTZ - description: Last altered time of the database - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: RETENTION_TIME_propId - name: RETENTION_TIME - physicalType: NUMBER(9,0) - description: Number of days that historical data is retained for Time Travel - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: TYPE_propId - name: TYPE - physicalType: VARCHAR(16777216) - description: The type of database - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: REPLICABLE_WITH_FAILOVER_GROUPS_propId - name: REPLICABLE_WITH_FAILOVER_GROUPS - physicalType: VARCHAR(16777216) - description: Whether this object is replicable with a failover group - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: OWNER_ROLE_TYPE_propId - name: OWNER_ROLE_TYPE - physicalType: VARCHAR(16777216) - description: Type of the role that owns the database - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false -- id: ELEMENT_TYPES_schId - name: ELEMENT_TYPES - physicalType: view - description: The element types of structured array types defined in this database - that are accessible to the current user's role. - logicalType: object - physicalName: INFORMATION_SCHEMA.ELEMENT_TYPES - properties: - - id: OBJECT_CATALOG_propId - name: OBJECT_CATALOG - physicalType: VARCHAR(16777216) - description: Database that contains the object that uses this array type - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: OBJECT_SCHEMA_propId - name: OBJECT_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema that contains the object that uses this array type - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: OBJECT_NAME_propId - name: OBJECT_NAME - physicalType: VARCHAR(16777216) - description: Name of the object that uses this array type - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: OBJECT_TYPE_propId - name: OBJECT_TYPE - physicalType: VARCHAR(16777216) - description: Type of the object that uses this array type - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: COLLECTION_TYPE_IDENTIFIER_propId - name: COLLECTION_TYPE_IDENTIFIER - physicalType: VARCHAR(16777216) - description: Type identifier - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: DATA_TYPE_propId - name: DATA_TYPE - physicalType: VARCHAR(16777216) - description: Element data type - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: CHARACTER_MAXIMUM_LENGTH_propId - name: CHARACTER_MAXIMUM_LENGTH - physicalType: NUMBER(9,0) - description: Maximum length in characters for string types - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: CHARACTER_OCTET_LENGTH_propId - name: CHARACTER_OCTET_LENGTH - physicalType: NUMBER(9,0) - description: Maximum length in bytes for string types - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: NUMERIC_PRECISION_propId - name: NUMERIC_PRECISION - physicalType: NUMBER(9,0) - description: Numeric precision for numeric types - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: NUMERIC_PRECISION_RADIX_propId - name: NUMERIC_PRECISION_RADIX - physicalType: NUMBER(9,0) - description: Radix of precision for numeric types - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: NUMERIC_SCALE_propId - name: NUMERIC_SCALE - physicalType: NUMBER(9,0) - description: Scale for numeric types - customProperties: - - property: ordinalPosition - value: 11 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: DATETIME_PRECISION_propId - name: DATETIME_PRECISION - physicalType: NUMBER(9,0) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 12 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: INTERVAL_TYPE_propId - name: INTERVAL_TYPE - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 13 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: INTERVAL_PRECISION_propId - name: INTERVAL_PRECISION - physicalType: NUMBER(9,0) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 14 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: CHARACTER_SET_CATALOG_propId - name: CHARACTER_SET_CATALOG - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 15 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CHARACTER_SET_SCHEMA_propId - name: CHARACTER_SET_SCHEMA - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 16 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CHARACTER_SET_NAME_propId - name: CHARACTER_SET_NAME - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 17 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: COLLATION_CATALOG_propId - name: COLLATION_CATALOG - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 18 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: COLLATION_SCHEMA_propId - name: COLLATION_SCHEMA - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 19 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: COLLATION_NAME_propId - name: COLLATION_NAME - physicalType: VARCHAR(16777216) - description: The name of collation, if present - customProperties: - - property: ordinalPosition - value: 20 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: UDT_CATALOG_propId - name: UDT_CATALOG - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 21 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: UDT_SCHEMA_propId - name: UDT_SCHEMA - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 22 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: UDT_NAME_propId - name: UDT_NAME - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 23 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: SCOPE_CATALOG_propId - name: SCOPE_CATALOG - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 24 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: SCOPE_SCHEMA_propId - name: SCOPE_SCHEMA - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 25 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: SCOPE_NAME_propId - name: SCOPE_NAME - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 26 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: MAXIMUM_CARDINALITY_propId - name: MAXIMUM_CARDINALITY - physicalType: NUMBER(9,0) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 27 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: DTD_IDENTIFIER_propId - name: DTD_IDENTIFIER - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 28 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false -- id: ENABLED_ROLES_schId - name: ENABLED_ROLES - physicalType: view - description: The roles that are enabled to the current user. - logicalType: object - physicalName: INFORMATION_SCHEMA.ENABLED_ROLES - properties: - - id: ROLE_NAME_propId - name: ROLE_NAME - physicalType: VARCHAR(16777216) - description: Name of the role - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: ROLE_OWNER_propId - name: ROLE_OWNER - physicalType: VARCHAR(16777216) - description: Owner of the role - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false -- id: EVENT_TABLES_schId - name: EVENT_TABLES - physicalType: view - description: The event tables defined in this database that are accessible to the - current user's role. - logicalType: object - physicalName: INFORMATION_SCHEMA.EVENT_TABLES - properties: - - id: TABLE_CATALOG_propId - name: TABLE_CATALOG - physicalType: VARCHAR(16777216) - description: Database that the event table belongs to - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: TABLE_SCHEMA_propId - name: TABLE_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema that the event table belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: TABLE_NAME_propId - name: TABLE_NAME - physicalType: VARCHAR(16777216) - description: Name of the event table - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: TABLE_OWNER_propId - name: TABLE_OWNER - physicalType: VARCHAR(16777216) - description: Name of the role that owns the event table - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Creation time of the event table - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: LAST_ALTERED_propId - name: LAST_ALTERED - physicalType: TIMESTAMP_LTZ - description: Last altered time of the event table - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Comment for this event table - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false -- id: EXTERNAL_TABLES_schId - name: EXTERNAL_TABLES - physicalType: view - description: The external tables defined in this database that are accessible to - the current user's role. - logicalType: object - physicalName: INFORMATION_SCHEMA.EXTERNAL_TABLES - properties: - - id: TABLE_CATALOG_propId - name: TABLE_CATALOG - physicalType: VARCHAR(16777216) - description: Database that the external table belongs to - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: TABLE_SCHEMA_propId - name: TABLE_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema that the external table belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: TABLE_NAME_propId - name: TABLE_NAME - physicalType: VARCHAR(16777216) - description: Name of the external table - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: TABLE_OWNER_propId - name: TABLE_OWNER - physicalType: VARCHAR(16777216) - description: Name of the role that owns the external table - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Creation time of the external table - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: LAST_ALTERED_propId - name: LAST_ALTERED - physicalType: TIMESTAMP_LTZ - description: Last altered time of the external table - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: LAST_DDL_propId - name: LAST_DDL - physicalType: TIMESTAMP_LTZ - description: Last DDL time of the view - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: LAST_DDL_BY_propId - name: LAST_DDL_BY - physicalType: VARCHAR(16777216) - description: User name that performed the last DDL of the view - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Comment for this external table - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: LOCATION_propId - name: LOCATION - physicalType: VARCHAR(16777216) - description: Location of the external table - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: FILE_FORMAT_NAME_propId - name: FILE_FORMAT_NAME - physicalType: VARCHAR(16777216) - description: File format name (if there is one) of the external table - customProperties: - - property: ordinalPosition - value: 11 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: FILE_FORMAT_TYPE_propId - name: FILE_FORMAT_TYPE - physicalType: VARCHAR(16777216) - description: File format type (if not named) of the external table - customProperties: - - property: ordinalPosition - value: 12 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false -- id: FIELDS_schId - name: FIELDS - physicalType: view - description: The fields of structured object and map types defined in this database - that are accessible to the current user's role. - logicalType: object - physicalName: INFORMATION_SCHEMA.FIELDS - properties: - - id: OBJECT_CATALOG_propId - name: OBJECT_CATALOG - physicalType: VARCHAR(16777216) - description: Database that contains the object that uses this object type - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: OBJECT_SCHEMA_propId - name: OBJECT_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema that contains the object that uses this object type - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: OBJECT_NAME_propId - name: OBJECT_NAME - physicalType: VARCHAR(16777216) - description: Name of the object that uses this object type - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: OBJECT_TYPE_propId - name: OBJECT_TYPE - physicalType: VARCHAR(16777216) - description: Type of the object that uses this object type - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: ROW_IDENTIFIER_propId - name: ROW_IDENTIFIER - physicalType: VARCHAR(16777216) - description: Type identifier - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: FIELD_NAME_propId - name: FIELD_NAME - physicalType: VARCHAR(16777216) - description: Field name - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: ORDINAL_POSITION_propId - name: ORDINAL_POSITION - physicalType: NUMBER(9,0) - description: Ordinal position - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: number - required: true - unique: false - - id: DATA_TYPE_propId - name: DATA_TYPE - physicalType: VARCHAR(16777216) - description: Data type of the field - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: CHARACTER_MAXIMUM_LENGTH_propId - name: CHARACTER_MAXIMUM_LENGTH - physicalType: NUMBER(9,0) - description: Maximum length in characters of string fields - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: CHARACTER_OCTET_LENGTH_propId - name: CHARACTER_OCTET_LENGTH - physicalType: NUMBER(9,0) - description: Maximum length in bytes of string fields - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: NUMERIC_PRECISION_propId - name: NUMERIC_PRECISION - physicalType: NUMBER(9,0) - description: Numeric precision of numeric fields - customProperties: - - property: ordinalPosition - value: 11 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: NUMERIC_PRECISION_RADIX_propId - name: NUMERIC_PRECISION_RADIX - physicalType: NUMBER(9,0) - description: Radix of precision of numeric fields - customProperties: - - property: ordinalPosition - value: 12 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: NUMERIC_SCALE_propId - name: NUMERIC_SCALE - physicalType: NUMBER(9,0) - description: Scale of numeric fields - customProperties: - - property: ordinalPosition - value: 13 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: DATETIME_PRECISION_propId - name: DATETIME_PRECISION - physicalType: NUMBER(9,0) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 14 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: INTERVAL_TYPE_propId - name: INTERVAL_TYPE - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 15 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: INTERVAL_PRECISION_propId - name: INTERVAL_PRECISION - physicalType: NUMBER(9,0) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 16 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: CHARACTER_SET_CATALOG_propId - name: CHARACTER_SET_CATALOG - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 17 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CHARACTER_SET_SCHEMA_propId - name: CHARACTER_SET_SCHEMA - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 18 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CHARACTER_SET_NAME_propId - name: CHARACTER_SET_NAME - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 19 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: COLLATION_CATALOG_propId - name: COLLATION_CATALOG - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 20 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: COLLATION_SCHEMA_propId - name: COLLATION_SCHEMA - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 21 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: COLLATION_NAME_propId - name: COLLATION_NAME - physicalType: VARCHAR(16777216) - description: The name of collation, if present - customProperties: - - property: ordinalPosition - value: 22 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: UDT_CATALOG_propId - name: UDT_CATALOG - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 23 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: UDT_SCHEMA_propId - name: UDT_SCHEMA - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 24 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: UDT_NAME_propId - name: UDT_NAME - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 25 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: SCOPE_CATALOG_propId - name: SCOPE_CATALOG - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 26 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: SCOPE_SCHEMA_propId - name: SCOPE_SCHEMA - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 27 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: SCOPE_NAME_propId - name: SCOPE_NAME - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 28 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: MAXIMUM_CARDINALITY_propId - name: MAXIMUM_CARDINALITY - physicalType: NUMBER(9,0) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 29 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: DTD_IDENTIFIER_propId - name: DTD_IDENTIFIER - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 30 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false -- id: FILE_FORMATS_schId - name: FILE_FORMATS - physicalType: view - description: The file formats defined in this database that are accessible to the - current user's role. - logicalType: object - physicalName: INFORMATION_SCHEMA.FILE_FORMATS - properties: - - id: FILE_FORMAT_CATALOG_propId - name: FILE_FORMAT_CATALOG - physicalType: VARCHAR(16777216) - description: Database that the file format belongs to - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: FILE_FORMAT_SCHEMA_propId - name: FILE_FORMAT_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema that the file format belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: FILE_FORMAT_NAME_propId - name: FILE_FORMAT_NAME - physicalType: VARCHAR(16777216) - description: Name of the file format - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: FILE_FORMAT_OWNER_propId - name: FILE_FORMAT_OWNER - physicalType: VARCHAR(16777216) - description: Name of the role that owns the file format - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: FILE_FORMAT_TYPE_propId - name: FILE_FORMAT_TYPE - physicalType: VARCHAR(16777216) - description: Type of the file format - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: RECORD_DELIMITER_propId - name: RECORD_DELIMITER - physicalType: VARCHAR(1) - description: Character that separates records - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 1 - required: false - unique: false - - id: FIELD_DELIMITER_propId - name: FIELD_DELIMITER - physicalType: VARCHAR(1) - description: Character that separates fields - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 1 - required: false - unique: false - - id: SKIP_HEADER_propId - name: SKIP_HEADER - physicalType: NUMBER(9,0) - description: Number of lines skipped at the start of the file - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: DATE_FORMAT_propId - name: DATE_FORMAT - physicalType: VARCHAR(16777216) - description: Date format - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: TIME_FORMAT_propId - name: TIME_FORMAT - physicalType: VARCHAR(16777216) - description: Time format - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: TIMESTAMP_FORMAT_propId - name: TIMESTAMP_FORMAT - physicalType: VARCHAR(16777216) - description: Timestamp format - customProperties: - - property: ordinalPosition - value: 11 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: BINARY_FORMAT_propId - name: BINARY_FORMAT - physicalType: VARCHAR(16777216) - description: Binary format - customProperties: - - property: ordinalPosition - value: 12 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: ESCAPE_propId - name: ESCAPE - physicalType: VARCHAR(1) - description: String used as the escape character for any field values - customProperties: - - property: ordinalPosition - value: 13 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 1 - required: false - unique: false - - id: ESCAPE_UNENCLOSED_FIELD_propId - name: ESCAPE_UNENCLOSED_FIELD - physicalType: VARCHAR(1) - description: String used as the escape character for unenclosed field values - customProperties: - - property: ordinalPosition - value: 14 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 1 - required: false - unique: false - - id: TRIM_SPACE_propId - name: TRIM_SPACE - physicalType: VARCHAR(16777216) - description: Whether whitespace is removed from fields - customProperties: - - property: ordinalPosition - value: 15 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: FIELD_OPTIONALLY_ENCLOSED_BY_propId - name: FIELD_OPTIONALLY_ENCLOSED_BY - physicalType: VARCHAR(16777216) - description: Character used to enclose strings - customProperties: - - property: ordinalPosition - value: 16 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: NULL_IF_propId - name: NULL_IF - physicalType: VARCHAR(16777216) - description: A list of strings to be replaced by null - customProperties: - - property: ordinalPosition - value: 17 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: COMPRESSION_propId - name: COMPRESSION - physicalType: VARCHAR(16777216) - description: Compression method for the data file - customProperties: - - property: ordinalPosition - value: 18 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: ERROR_ON_COLUMN_COUNT_MISMATCH_propId - name: ERROR_ON_COLUMN_COUNT_MISMATCH - physicalType: VARCHAR(16777216) - description: Whether to generate a parsing error if the number of fields in an - input file does not match the number of columns in the corresponding table - customProperties: - - property: ordinalPosition - value: 19 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Creation time of the file format - customProperties: - - property: ordinalPosition - value: 20 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: LAST_ALTERED_propId - name: LAST_ALTERED - physicalType: TIMESTAMP_LTZ - description: Last altered time of the file format - customProperties: - - property: ordinalPosition - value: 21 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Comment for this file format - customProperties: - - property: ordinalPosition - value: 22 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false -- id: FUNCTIONS_schId - name: FUNCTIONS - physicalType: view - description: The user-defined functions defined in this database that are accessible - to the current user's role. - logicalType: object - physicalName: INFORMATION_SCHEMA.FUNCTIONS - properties: - - id: FUNCTION_CATALOG_propId - name: FUNCTION_CATALOG - physicalType: VARCHAR(16777216) - description: Database which the function belongs to - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: FUNCTION_SCHEMA_propId - name: FUNCTION_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema which the function belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: FUNCTION_NAME_propId - name: FUNCTION_NAME - physicalType: VARCHAR(16777216) - description: Name of the function - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: FUNCTION_OWNER_propId - name: FUNCTION_OWNER - physicalType: VARCHAR(16777216) - description: Name of the role that owns the function - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: ARGUMENT_SIGNATURE_propId - name: ARGUMENT_SIGNATURE - physicalType: VARCHAR(16777216) - description: Type signature of the function's arguments - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: DATA_TYPE_propId - name: DATA_TYPE - physicalType: VARCHAR(16777216) - description: Return value data type - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: CHARACTER_MAXIMUM_LENGTH_propId - name: CHARACTER_MAXIMUM_LENGTH - physicalType: NUMBER(9,0) - description: Maximum length in characters of string return value - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: CHARACTER_OCTET_LENGTH_propId - name: CHARACTER_OCTET_LENGTH - physicalType: NUMBER(9,0) - description: Maximum length in bytes of string return value - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: NUMERIC_PRECISION_propId - name: NUMERIC_PRECISION - physicalType: NUMBER(9,0) - description: Numeric precision of numeric return value - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: NUMERIC_PRECISION_RADIX_propId - name: NUMERIC_PRECISION_RADIX - physicalType: NUMBER(9,0) - description: Radix of precision of numeric return value - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: NUMERIC_SCALE_propId - name: NUMERIC_SCALE - physicalType: NUMBER(9,0) - description: Scale of numeric return value - customProperties: - - property: ordinalPosition - value: 11 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: FUNCTION_LANGUAGE_propId - name: FUNCTION_LANGUAGE - physicalType: VARCHAR(16777216) - description: Language of the function - customProperties: - - property: ordinalPosition - value: 12 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: FUNCTION_DEFINITION_propId - name: FUNCTION_DEFINITION - physicalType: VARCHAR(16777216) - description: Function definition - customProperties: - - property: ordinalPosition - value: 13 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: VOLATILITY_propId - name: VOLATILITY - physicalType: VARCHAR(16777216) - description: Whether the function is volatile or immutable - customProperties: - - property: ordinalPosition - value: 14 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: IS_NULL_CALL_propId - name: IS_NULL_CALL - physicalType: VARCHAR(3) - description: Whether the function is called on null input - customProperties: - - property: ordinalPosition - value: 15 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: IS_SECURE_propId - name: IS_SECURE - physicalType: VARCHAR(3) - description: Whether this function is secure. - customProperties: - - property: ordinalPosition - value: 16 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Creation time of the function - customProperties: - - property: ordinalPosition - value: 17 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: LAST_ALTERED_propId - name: LAST_ALTERED - physicalType: TIMESTAMP_LTZ - description: Last altered time of the function - customProperties: - - property: ordinalPosition - value: 18 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Comment for this function - customProperties: - - property: ordinalPosition - value: 19 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: IS_EXTERNAL_propId - name: IS_EXTERNAL - physicalType: VARCHAR(3) - description: Whether this function is external - customProperties: - - property: ordinalPosition - value: 20 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: API_INTEGRATION_propId - name: API_INTEGRATION - physicalType: VARCHAR(16777216) - description: Integration for this function - customProperties: - - property: ordinalPosition - value: 21 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CONTEXT_HEADERS_propId - name: CONTEXT_HEADERS - physicalType: VARCHAR(16777216) - description: Context headers for this function - customProperties: - - property: ordinalPosition - value: 22 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: MAX_BATCH_ROWS_propId - name: MAX_BATCH_ROWS - physicalType: NUMBER(9,0) - description: Max batch rows for this function - customProperties: - - property: ordinalPosition - value: 23 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: REQUEST_TRANSLATOR_propId - name: REQUEST_TRANSLATOR - physicalType: VARCHAR(16777216) - description: Request Translator function name - customProperties: - - property: ordinalPosition - value: 24 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: RESPONSE_TRANSLATOR_propId - name: RESPONSE_TRANSLATOR - physicalType: VARCHAR(16777216) - description: Response Translator function name - customProperties: - - property: ordinalPosition - value: 25 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: COMPRESSION_propId - name: COMPRESSION - physicalType: VARCHAR(16777216) - description: Type of compression used for serializing function payload - customProperties: - - property: ordinalPosition - value: 26 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: IMPORTS_propId - name: IMPORTS - physicalType: VARCHAR(16777216) - description: List of imports for the function - customProperties: - - property: ordinalPosition - value: 27 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: HANDLER_propId - name: HANDLER - physicalType: VARCHAR(16777216) - description: Handler for the function - customProperties: - - property: ordinalPosition - value: 28 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: TARGET_PATH_propId - name: TARGET_PATH - physicalType: VARCHAR(16777216) - description: Stage path for storage of compiled inline Java UDF code - customProperties: - - property: ordinalPosition - value: 29 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: RUNTIME_VERSION_propId - name: RUNTIME_VERSION - physicalType: VARCHAR(16777216) - description: Runtime version of the function. NULL if function is SQL or Javascript - customProperties: - - property: ordinalPosition - value: 30 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: PACKAGES_propId - name: PACKAGES - physicalType: VARCHAR(16777216) - description: Packages requested by the function. - customProperties: - - property: ordinalPosition - value: 31 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: INSTALLED_PACKAGES_propId - name: INSTALLED_PACKAGES - physicalType: VARCHAR(16777216) - description: All packages installed by the function. - customProperties: - - property: ordinalPosition - value: 32 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: IS_MEMOIZABLE_propId - name: IS_MEMOIZABLE - physicalType: VARCHAR(3) - description: Whether this function is memoizable. - customProperties: - - property: ordinalPosition - value: 33 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: EXTERNAL_ACCESS_INTEGRATIONS_propId - name: EXTERNAL_ACCESS_INTEGRATIONS - physicalType: VARCHAR(16777216) - description: External Access integrations associated with this function - customProperties: - - property: ordinalPosition - value: 34 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: SECRETS_propId - name: SECRETS - physicalType: VARCHAR(16777216) - description: Secrets associated with this function - customProperties: - - property: ordinalPosition - value: 35 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: IS_DATA_METRIC_propId - name: IS_DATA_METRIC - physicalType: VARCHAR(3) - description: Whether this function is a data metric function. - customProperties: - - property: ordinalPosition - value: 36 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: IS_AGGREGATE_propId - name: IS_AGGREGATE - physicalType: VARCHAR(3) - description: Whether this is an aggregate function. - customProperties: - - property: ordinalPosition - value: 37 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false -- id: GIT_REPOSITORIES_schId - name: GIT_REPOSITORIES - physicalType: view - description: Git repositories in this database that are accessible by the current - user's role - logicalType: object - physicalName: INFORMATION_SCHEMA.GIT_REPOSITORIES - properties: - - id: GIT_REPOSITORY_CATALOG_propId - name: GIT_REPOSITORY_CATALOG - physicalType: VARCHAR(16777216) - description: Database that the git repository belongs to - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: GIT_REPOSITORY_SCHEMA_propId - name: GIT_REPOSITORY_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema that the git repository belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: GIT_REPOSITORY_NAME_propId - name: GIT_REPOSITORY_NAME - physicalType: VARCHAR(16777216) - description: Name of the git repository - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: GIT_REPOSITORY_OWNER_propId - name: GIT_REPOSITORY_OWNER - physicalType: VARCHAR(16777216) - description: Name of the role that owns the git repository - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: ORIGIN_propId - name: ORIGIN - physicalType: VARCHAR(16777216) - description: Origin of the git repository - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: API_INTEGRATION_propId - name: API_INTEGRATION - physicalType: VARCHAR(16777216) - description: Name of the api integration used by the git repository - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: GIT_CREDENTIALS_propId - name: GIT_CREDENTIALS - physicalType: VARCHAR(16777216) - description: Name of the secret used by the git repository - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Comment for this git repository - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Creation time of the git repository - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: LAST_ALTERED_propId - name: LAST_ALTERED - physicalType: TIMESTAMP_LTZ - description: Last altered time of the git repository - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false -- id: HYBRID_TABLES_schId - name: HYBRID_TABLES - physicalType: view - description: The hybrid tables defined in this database that are accessible to the - current user's role. - logicalType: object - physicalName: INFORMATION_SCHEMA.HYBRID_TABLES - properties: - - id: CATALOG_propId - name: CATALOG - physicalType: VARCHAR(16777216) - description: Database that the table belongs to - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SCHEMA_propId - name: SCHEMA - physicalType: VARCHAR(16777216) - description: Schema that the table belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: NAME_propId - name: NAME - physicalType: VARCHAR(16777216) - description: Name of the table - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: OWNER_propId - name: OWNER - physicalType: VARCHAR(16777216) - description: Name of the role that owns the table - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: ROW_COUNT_propId - name: ROW_COUNT - physicalType: NUMBER(38,0) - description: Number of rows in the table - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: BYTES_propId - name: BYTES - physicalType: NUMBER(38,0) - description: Number of bytes accessed by a scan of the table - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: RETENTION_TIME_propId - name: RETENTION_TIME - physicalType: NUMBER(9,0) - description: Number of days that historical data is retained for Time Travel - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Creation time of the table - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: LAST_ALTERED_propId - name: LAST_ALTERED - physicalType: TIMESTAMP_LTZ - description: Last altered time of the table - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Comment for this table - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false -- id: INDEX_COLUMNS_schId - name: INDEX_COLUMNS - physicalType: view - description: The columns of indexes defined in this database that are accessible - to the current user's role. - logicalType: object - physicalName: INFORMATION_SCHEMA.INDEX_COLUMNS - properties: - - id: TABLE_CATALOG_propId - name: TABLE_CATALOG - physicalType: VARCHAR(16777216) - description: Database that the table belongs to - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: TABLE_SCHEMA_propId - name: TABLE_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema that the table belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: TABLE_NAME_propId - name: TABLE_NAME - physicalType: VARCHAR(16777216) - description: Name of the table - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: INDEX_NAME_propId - name: INDEX_NAME - physicalType: VARCHAR(16777216) - description: Name of the index - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: NAME_propId - name: NAME - physicalType: VARCHAR(16777216) - description: Name of the column - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: KEY_SEQUENCE_propId - name: KEY_SEQUENCE - physicalType: NUMBER(9,0) - description: Position of the column in the index - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: number - required: true - unique: false - - id: INDEX_OWNER_propId - name: INDEX_OWNER - physicalType: VARCHAR(16777216) - description: Name of the role that owns the index - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: IS_UNIQUE_propId - name: IS_UNIQUE - physicalType: VARCHAR(3) - description: Whether this index is unique - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: CONSTRAINT_NAME_propId - name: CONSTRAINT_NAME - physicalType: VARCHAR(16777216) - description: Name of the constraint associated with this index, if any - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: STATUS_propId - name: STATUS - physicalType: VARCHAR(16777216) - description: The status of the index - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Creation time of the index - customProperties: - - property: ordinalPosition - value: 11 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false -- id: INDEXES_schId - name: INDEXES - physicalType: view - description: The indexes defined in this database that are accessible to the current - user's role. - logicalType: object - physicalName: INFORMATION_SCHEMA.INDEXES - properties: - - id: TABLE_CATALOG_propId - name: TABLE_CATALOG - physicalType: VARCHAR(16777216) - description: Database that the table belongs to - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: TABLE_SCHEMA_propId - name: TABLE_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema that the table belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: TABLE_NAME_propId - name: TABLE_NAME - physicalType: VARCHAR(16777216) - description: Name of the table - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: NAME_propId - name: NAME - physicalType: VARCHAR(16777216) - description: Name of the index - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: OWNER_propId - name: OWNER - physicalType: VARCHAR(16777216) - description: Name of the role that owns the index - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: IS_UNIQUE_propId - name: IS_UNIQUE - physicalType: VARCHAR(3) - description: Whether this index is unique - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: CONSTRAINT_NAME_propId - name: CONSTRAINT_NAME - physicalType: VARCHAR(16777216) - description: Name of the constraint associated with this index, if any - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: STATUS_propId - name: STATUS - physicalType: VARCHAR(16777216) - description: The status of the index - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Creation time of the index - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false -- id: INFORMATION_SCHEMA_CATALOG_NAME_schId - name: INFORMATION_SCHEMA_CATALOG_NAME - physicalType: view - description: Identifies the database (or catalog, in SQL terminology) that contains - the information_schema - logicalType: object - physicalName: INFORMATION_SCHEMA.INFORMATION_SCHEMA_CATALOG_NAME - properties: - - id: CATALOG_NAME_propId - name: CATALOG_NAME - physicalType: VARCHAR(16777216) - description: The name of the database in which this information_schema resides. - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false -- id: LISTINGS_schId - name: LISTINGS - physicalType: view - description: Listings that are accessible by the current user's role - logicalType: object - physicalName: INFORMATION_SCHEMA.LISTINGS - properties: - - id: GLOBAL_NAME_propId - name: GLOBAL_NAME - physicalType: VARCHAR(16777216) - description: Global name of the listing - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: NAME_propId - name: NAME - physicalType: VARCHAR(16777216) - description: Name of the listing - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: OWNER_propId - name: OWNER - physicalType: VARCHAR(16777216) - description: Owner of the listing - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CREATED_ON_propId - name: CREATED_ON - physicalType: TIMESTAMP_LTZ - description: Creation time of the listing - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: UPDATED_ON_propId - name: UPDATED_ON - physicalType: TIMESTAMP_LTZ - description: Last updated time of the listing - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: PUBLISHED_ON_propId - name: PUBLISHED_ON - physicalType: TIMESTAMP_LTZ - description: Last published time of the listing - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: TITLE_propId - name: TITLE - physicalType: VARCHAR(16777216) - description: Title of the listing - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: SUBTITLE_propId - name: SUBTITLE - physicalType: VARCHAR(16777216) - description: Subtitle of the listing - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: DESCRIPTION_propId - name: DESCRIPTION - physicalType: VARCHAR(16777216) - description: Description of the listing - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: LISTING_TERMS_propId - name: LISTING_TERMS - physicalType: VARCHAR(16777216) - description: Listing terms - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: STATE_propId - name: STATE - physicalType: VARCHAR(16777216) - description: State of the listing - customProperties: - - property: ordinalPosition - value: 11 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: SHARE_propId - name: SHARE - physicalType: VARCHAR(16777216) - description: Share of the listing - customProperties: - - property: ordinalPosition - value: 12 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: APPLICATION_PACKAGE_propId - name: APPLICATION_PACKAGE - physicalType: VARCHAR(16777216) - description: Application package of the listing - customProperties: - - property: ordinalPosition - value: 13 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: DATA_ATTRIBUTES_propId - name: DATA_ATTRIBUTES - physicalType: VARCHAR(16777216) - description: Data attributes - customProperties: - - property: ordinalPosition - value: 14 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CATEGORIES_propId - name: CATEGORIES - physicalType: VARCHAR(16777216) - description: Categories of the listing - customProperties: - - property: ordinalPosition - value: 15 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: PROFILE_propId - name: PROFILE - physicalType: VARCHAR(16777216) - description: Profile of the listing - customProperties: - - property: ordinalPosition - value: 16 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CUSTOMIZED_CONTACT_INFO_propId - name: CUSTOMIZED_CONTACT_INFO - physicalType: VARCHAR(16777216) - description: Customized contact info - customProperties: - - property: ordinalPosition - value: 17 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Comment of the listing - customProperties: - - property: ordinalPosition - value: 18 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: TARGETS_propId - name: TARGETS - physicalType: VARCHAR(16777216) - description: Targets - customProperties: - - property: ordinalPosition - value: 19 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: AUTO_FULFILLMENT_propId - name: AUTO_FULFILLMENT - physicalType: VARCHAR(16777216) - description: Auto fulfillment settings - customProperties: - - property: ordinalPosition - value: 20 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: IS_SHARE_propId - name: IS_SHARE - physicalType: BOOLEAN - description: Whether the listing is a share - customProperties: - - property: ordinalPosition - value: 21 - - property: scdType - value: 1 - logicalType: boolean - required: false - unique: false - - id: IS_APPLICATION_propId - name: IS_APPLICATION - physicalType: BOOLEAN - description: Whether the listing is an application - customProperties: - - property: ordinalPosition - value: 22 - - property: scdType - value: 1 - logicalType: boolean - required: false - unique: false - - id: DISTRIBUTION_propId - name: DISTRIBUTION - physicalType: VARCHAR(16777216) - description: Distribution of the listing - customProperties: - - property: ordinalPosition - value: 23 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: IS_MOUNTLESS_QUERYABLE_propId - name: IS_MOUNTLESS_QUERYABLE - physicalType: BOOLEAN - description: Whether the listing is mountless queryable - customProperties: - - property: ordinalPosition - value: 24 - - property: scdType - value: 1 - logicalType: boolean - required: false - unique: false - - id: ORGANIZATION_PROFILE_NAME_propId - name: ORGANIZATION_PROFILE_NAME - physicalType: VARCHAR(16777216) - description: Organization profile name of the listing - customProperties: - - property: ordinalPosition - value: 25 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: UNIFORM_LISTING_LOCATOR_propId - name: UNIFORM_LISTING_LOCATOR - physicalType: VARCHAR(16777216) - description: Uniform listing locator of the listing - customProperties: - - property: ordinalPosition - value: 26 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: APPROVER_CONTACT_propId - name: APPROVER_CONTACT - physicalType: VARCHAR(16777216) - description: Approver contact - customProperties: - - property: ordinalPosition - value: 27 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: SUPPORT_CONTACT_propId - name: SUPPORT_CONTACT - physicalType: VARCHAR(16777216) - description: Support contact - customProperties: - - property: ordinalPosition - value: 28 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: RESHARING_propId - name: RESHARING - physicalType: VARCHAR(16777216) - description: Resharing - customProperties: - - property: ordinalPosition - value: 29 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false -- id: LOAD_HISTORY_schId - name: LOAD_HISTORY - physicalType: view - description: The loading information of the copy command - logicalType: object - physicalName: INFORMATION_SCHEMA.LOAD_HISTORY - properties: - - id: SCHEMA_NAME_propId - name: SCHEMA_NAME - physicalType: VARCHAR(16777216) - description: Schema of target table - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: FILE_NAME_propId - name: FILE_NAME - physicalType: VARCHAR(16777216) - description: Name of source file - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: TABLE_NAME_propId - name: TABLE_NAME - physicalType: VARCHAR(16777216) - description: Name of target table - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: LAST_LOAD_TIME_propId - name: LAST_LOAD_TIME - physicalType: TIMESTAMP_LTZ - description: Timestamp of the load record - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: STATUS_propId - name: STATUS - physicalType: VARCHAR(16777216) - description: 'Status: loaded, load failed or partially loaded' - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: ROW_COUNT_propId - name: ROW_COUNT - physicalType: NUMBER(9,0) - description: Number of rows loaded from the source file - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: ROW_PARSED_propId - name: ROW_PARSED - physicalType: NUMBER(9,0) - description: Number of rows parsed from the source file - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: FIRST_ERROR_MESSAGE_propId - name: FIRST_ERROR_MESSAGE - physicalType: VARCHAR(16777216) - description: First error of the source file - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: FIRST_ERROR_LINE_NUMBER_propId - name: FIRST_ERROR_LINE_NUMBER - physicalType: NUMBER(9,0) - description: Line number of the first error - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: FIRST_ERROR_CHARACTER_POSITION_propId - name: FIRST_ERROR_CHARACTER_POSITION - physicalType: NUMBER(9,0) - description: Position of the first error character - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: FIRST_ERROR_COL_NAME_propId - name: FIRST_ERROR_COL_NAME - physicalType: VARCHAR(16777216) - description: Column name of the first error - customProperties: - - property: ordinalPosition - value: 11 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: ERROR_COUNT_propId - name: ERROR_COUNT - physicalType: NUMBER(9,0) - description: Number of error rows in the source file - customProperties: - - property: ordinalPosition - value: 12 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: ERROR_LIMIT_propId - name: ERROR_LIMIT - physicalType: NUMBER(9,0) - description: If the number of error reach this limit, then abort - customProperties: - - property: ordinalPosition - value: 13 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false -- id: MODEL_VERSIONS_schId - name: MODEL_VERSIONS - physicalType: view - description: 'The MODEL VERSIONS that the current user has privileges to view ' - logicalType: object - physicalName: INFORMATION_SCHEMA.MODEL_VERSIONS - properties: - - id: CATALOG_NAME_propId - name: CATALOG_NAME - physicalType: VARCHAR(16777216) - description: Database name which the MODEL VERSION belongs to - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: CATALOG_ID_propId - name: CATALOG_ID - physicalType: NUMBER(9,0) - description: ID of the database which the MODEL VERSION belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: number - required: true - unique: false - - id: SCHEMA_NAME_propId - name: SCHEMA_NAME - physicalType: VARCHAR(16777216) - description: Schema which the MODEL VERSION belongs to - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SCHEMA_ID_propId - name: SCHEMA_ID - physicalType: NUMBER(9,0) - description: ID of the Schema which the MODEL VERSION belongs to - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: number - required: true - unique: false - - id: MODEL_NAME_propId - name: MODEL_NAME - physicalType: VARCHAR(16777216) - description: Name of the model which the MODEL VERSION belongs to - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: MODEL_VERSION_NAME_propId - name: MODEL_VERSION_NAME - physicalType: VARCHAR(16777216) - description: Name of the MODEL VERSION - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: VERSION_ALIASES_propId - name: VERSION_ALIASES - physicalType: ARRAY - description: All the aliases of the MODEL VERSION - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: object - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Comment for this MODEL VERSION - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: MODEL_COMMENT_propId - name: MODEL_COMMENT - physicalType: VARCHAR(16777216) - description: Comment for the MODEL this MODEL VERSION belongs to - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: OWNER_propId - name: OWNER - physicalType: VARCHAR(16777216) - description: Name of the role that owns the MODEL VERSION - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: CREATED_ON_propId - name: CREATED_ON - physicalType: TIMESTAMP_LTZ - description: Date and time when the MODEL VERSION was created - customProperties: - - property: ordinalPosition - value: 11 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: LAST_ALTERED_ON_propId - name: LAST_ALTERED_ON - physicalType: TIMESTAMP_LTZ - description: Date and time when the MODEL VERSION was last updated - customProperties: - - property: ordinalPosition - value: 12 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: FUNCTIONS_propId - name: FUNCTIONS - physicalType: VARCHAR(16777216) - description: Functions in the MODEL VERSION - customProperties: - - property: ordinalPosition - value: 13 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: MODEL_TYPE_propId - name: MODEL_TYPE - physicalType: VARCHAR(16777216) - description: Type of the model the MODEL VERSION belongs to - customProperties: - - property: ordinalPosition - value: 14 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: PYTHON_VERSION_propId - name: PYTHON_VERSION - physicalType: VARCHAR(16777216) - description: Python version the MODEL VERSION is using - customProperties: - - property: ordinalPosition - value: 15 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: LANGUAGE_propId - name: LANGUAGE - physicalType: VARCHAR(16777216) - description: Language the MODEL VERSION is implemented in - customProperties: - - property: ordinalPosition - value: 16 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: DEPENDENCIES_propId - name: DEPENDENCIES - physicalType: VARCHAR(16777216) - description: Dependencies of the MODEL VERSION - customProperties: - - property: ordinalPosition - value: 17 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: METADATA_propId - name: METADATA - physicalType: OBJECT - description: Metadata of the MODEL VERSION - customProperties: - - property: ordinalPosition - value: 18 - - property: scdType - value: 1 - logicalType: object - required: false - unique: false - - id: USERDATA_propId - name: USERDATA - physicalType: OBJECT - description: Usetdata of the model version - customProperties: - - property: ordinalPosition - value: 19 - - property: scdType - value: 1 - logicalType: object - required: false - unique: false -- id: NOTEBOOKS_schId - name: NOTEBOOKS - physicalType: view - description: Notebooks in this database that are accessible by the current user's - role - logicalType: object - physicalName: INFORMATION_SCHEMA.NOTEBOOKS - properties: - - id: NOTEBOOK_CATALOG_propId - name: NOTEBOOK_CATALOG - physicalType: VARCHAR(16777216) - description: Database that the notebook belongs to - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: NOTEBOOK_SCHEMA_propId - name: NOTEBOOK_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema that the Notebook belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: NOTEBOOK_NAME_propId - name: NOTEBOOK_NAME - physicalType: VARCHAR(16777216) - description: Name of the notebook - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: NOTEBOOK_OWNER_propId - name: NOTEBOOK_OWNER - physicalType: VARCHAR(16777216) - description: Name of the role that owns the notebook - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: NOTEBOOK_MAIN_FILE_propId - name: NOTEBOOK_MAIN_FILE - physicalType: VARCHAR(16777216) - description: Main file of the notebook - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: NOTEBOOK_QUERY_WAREHOUSE_propId - name: NOTEBOOK_QUERY_WAREHOUSE - physicalType: VARCHAR(16777216) - description: Query warehouse of the notebook - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: NOTEBOOK_URL_ID_propId - name: NOTEBOOK_URL_ID - physicalType: VARCHAR(16777216) - description: URL id of the notebook - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Creation time of the notebook - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: LAST_ALTERED_propId - name: LAST_ALTERED - physicalType: TIMESTAMP_LTZ - description: Last altered time of the notebook - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Comment for this notebook - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false -- id: OBJECT_PRIVILEGES_schId - name: OBJECT_PRIVILEGES - physicalType: view - description: The privileges on all objects defined in this database that are accessible - to the current user's role. - logicalType: object - physicalName: INFORMATION_SCHEMA.OBJECT_PRIVILEGES - properties: - - id: GRANTOR_propId - name: GRANTOR - physicalType: VARCHAR(16777216) - description: Role who granted the privilege - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: GRANTEE_propId - name: GRANTEE - physicalType: VARCHAR(16777216) - description: Object to which the privilege is granted - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: GRANTED_TO_propId - name: GRANTED_TO - physicalType: VARCHAR(16777216) - description: Object kind on which the privilege is granted - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: OBJECT_CATALOG_propId - name: OBJECT_CATALOG - physicalType: VARCHAR(16777216) - description: Database containing the object on which the privilege is granted - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: OBJECT_SCHEMA_propId - name: OBJECT_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema containing the object on which the privilege is granted - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: OBJECT_NAME_propId - name: OBJECT_NAME - physicalType: VARCHAR(16777216) - description: Name of the object on which the privilege is granted - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: OBJECT_TYPE_propId - name: OBJECT_TYPE - physicalType: VARCHAR(16777216) - description: Type of the object on which the privilege is granted - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: PRIVILEGE_TYPE_propId - name: PRIVILEGE_TYPE - physicalType: VARCHAR(16777216) - description: Type of the granted privilege - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: IS_GRANTABLE_propId - name: IS_GRANTABLE - physicalType: VARCHAR(3) - description: Whether the privilege was granted WITH GRANT OPTION - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Creation time of the privilege - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false -- id: PACKAGES_schId - name: PACKAGES - physicalType: view - description: Available packages in current account - logicalType: object - physicalName: INFORMATION_SCHEMA.PACKAGES - properties: - - id: PACKAGE_NAME_propId - name: PACKAGE_NAME - physicalType: VARCHAR(16777216) - description: Package name - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: VERSION_propId - name: VERSION - physicalType: VARCHAR(16777216) - description: Package version - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: LANGUAGE_propId - name: LANGUAGE - physicalType: VARCHAR(16777216) - description: Package language - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: RUNTIME_VERSION_propId - name: RUNTIME_VERSION - physicalType: VARCHAR(16777216) - description: Supported runtime version - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false -- id: PIPES_schId - name: PIPES - physicalType: view - description: The pipes defined in this database that are accessible to the current - user's role. - logicalType: object - physicalName: INFORMATION_SCHEMA.PIPES - properties: - - id: PIPE_CATALOG_propId - name: PIPE_CATALOG - physicalType: VARCHAR(16777216) - description: Database that the pipe belongs to - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: PIPE_SCHEMA_propId - name: PIPE_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema that the pipe belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: PIPE_NAME_propId - name: PIPE_NAME - physicalType: VARCHAR(16777216) - description: Name of the pipe - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: PIPE_OWNER_propId - name: PIPE_OWNER - physicalType: VARCHAR(16777216) - description: Name of the role that owns the pipe - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: DEFINITION_propId - name: DEFINITION - physicalType: VARCHAR(16777216) - description: Definition of the pipe as it was created - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: IS_AUTOINGEST_ENABLED_propId - name: IS_AUTOINGEST_ENABLED - physicalType: VARCHAR(3) - description: Whether this is an auto-ingest tpipe - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: NOTIFICATION_CHANNEL_NAME_propId - name: NOTIFICATION_CHANNEL_NAME - physicalType: VARCHAR(16777216) - description: Notification channel name if it is an auto-ingest pipe - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Creation time of the pipe - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: LAST_ALTERED_propId - name: LAST_ALTERED - physicalType: TIMESTAMP_LTZ - description: Last altered time of the pipe - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Comment for this pipe - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: PATTERN_propId - name: PATTERN - physicalType: VARCHAR(16777216) - description: Pattern used to filter the files in Snowpipe - customProperties: - - property: ordinalPosition - value: 11 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false -- id: PROCEDURES_schId - name: PROCEDURES - physicalType: view - description: The stored procedures defined in this database that are accessible - to the current user's role. - logicalType: object - physicalName: INFORMATION_SCHEMA.PROCEDURES - properties: - - id: PROCEDURE_CATALOG_propId - name: PROCEDURE_CATALOG - physicalType: VARCHAR(16777216) - description: Database which the procedure belongs to - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: PROCEDURE_SCHEMA_propId - name: PROCEDURE_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema which the procedure belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: PROCEDURE_NAME_propId - name: PROCEDURE_NAME - physicalType: VARCHAR(16777216) - description: Name of the procedure - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: PROCEDURE_OWNER_propId - name: PROCEDURE_OWNER - physicalType: VARCHAR(16777216) - description: Name of the role that owns the procedure - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: ARGUMENT_SIGNATURE_propId - name: ARGUMENT_SIGNATURE - physicalType: VARCHAR(16777216) - description: Type signature of the procedure's arguments - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: DATA_TYPE_propId - name: DATA_TYPE - physicalType: VARCHAR(16777216) - description: Return value data type - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: CHARACTER_MAXIMUM_LENGTH_propId - name: CHARACTER_MAXIMUM_LENGTH - physicalType: NUMBER(9,0) - description: Maximum length in characters of string return value - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: CHARACTER_OCTET_LENGTH_propId - name: CHARACTER_OCTET_LENGTH - physicalType: NUMBER(9,0) - description: Maximum length in bytes of string return value - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: NUMERIC_PRECISION_propId - name: NUMERIC_PRECISION - physicalType: NUMBER(9,0) - description: Numeric precision of numeric return value - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: NUMERIC_PRECISION_RADIX_propId - name: NUMERIC_PRECISION_RADIX - physicalType: NUMBER(9,0) - description: Radix of precision of numeric return value - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: NUMERIC_SCALE_propId - name: NUMERIC_SCALE - physicalType: NUMBER(9,0) - description: Scale of numeric return value - customProperties: - - property: ordinalPosition - value: 11 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: PROCEDURE_LANGUAGE_propId - name: PROCEDURE_LANGUAGE - physicalType: VARCHAR(16777216) - description: Language of the procedure - customProperties: - - property: ordinalPosition - value: 12 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: PROCEDURE_DEFINITION_propId - name: PROCEDURE_DEFINITION - physicalType: VARCHAR(16777216) - description: Procedure definition - customProperties: - - property: ordinalPosition - value: 13 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Creation time of the procedure - customProperties: - - property: ordinalPosition - value: 14 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: LAST_ALTERED_propId - name: LAST_ALTERED - physicalType: TIMESTAMP_LTZ - description: Last altered time of the procedure - customProperties: - - property: ordinalPosition - value: 15 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Comment for this procedure - customProperties: - - property: ordinalPosition - value: 16 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: EXTERNAL_ACCESS_INTEGRATIONS_propId - name: EXTERNAL_ACCESS_INTEGRATIONS - physicalType: VARCHAR(16777216) - description: External Access integrations associated with this function - customProperties: - - property: ordinalPosition - value: 17 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: SECRETS_propId - name: SECRETS - physicalType: VARCHAR(16777216) - description: Secrets associated with this function - customProperties: - - property: ordinalPosition - value: 18 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: RUNTIME_VERSION_propId - name: RUNTIME_VERSION - physicalType: VARCHAR(16777216) - description: Runtime version of the procedure. NULL if function is SQL or Javascript - customProperties: - - property: ordinalPosition - value: 19 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: PACKAGES_propId - name: PACKAGES - physicalType: VARCHAR(16777216) - description: Packages requested by the procedure. - customProperties: - - property: ordinalPosition - value: 20 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: INSTALLED_PACKAGES_propId - name: INSTALLED_PACKAGES - physicalType: VARCHAR(16777216) - description: All packages installed by the procedure. - customProperties: - - property: ordinalPosition - value: 21 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false -- id: REFERENTIAL_CONSTRAINTS_schId - name: REFERENTIAL_CONSTRAINTS - physicalType: view - description: Referential Constraints in this database that are accessible to the - current user - logicalType: object - physicalName: INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS - properties: - - id: CONSTRAINT_CATALOG_propId - name: CONSTRAINT_CATALOG - physicalType: VARCHAR(16777216) - description: Database that the constraint belongs to - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: CONSTRAINT_SCHEMA_propId - name: CONSTRAINT_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema that the constraint belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: CONSTRAINT_NAME_propId - name: CONSTRAINT_NAME - physicalType: VARCHAR(16777216) - description: Name of the constraint - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: UNIQUE_CONSTRAINT_CATALOG_propId - name: UNIQUE_CONSTRAINT_CATALOG - physicalType: VARCHAR(16777216) - description: Database of the unique constraint referenced by the current constraint - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: UNIQUE_CONSTRAINT_SCHEMA_propId - name: UNIQUE_CONSTRAINT_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema of the unique constraint referenced by the current constraint - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: UNIQUE_CONSTRAINT_NAME_propId - name: UNIQUE_CONSTRAINT_NAME - physicalType: VARCHAR(16777216) - description: Name of the unique constraint referenced by the current constraint - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: MATCH_OPTION_propId - name: MATCH_OPTION - physicalType: VARCHAR(16777216) - description: Match option for the constraint - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: UPDATE_RULE_propId - name: UPDATE_RULE - physicalType: VARCHAR(16777216) - description: Update Rule for the current constraint - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: DELETE_RULE_propId - name: DELETE_RULE - physicalType: VARCHAR(16777216) - description: Delete Rule for the current constraint - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Comment for this constraint - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Creation time of the constraint - customProperties: - - property: ordinalPosition - value: 11 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: LAST_ALTERED_propId - name: LAST_ALTERED - physicalType: TIMESTAMP_LTZ - description: Last altered time of the constraint - customProperties: - - property: ordinalPosition - value: 12 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false -- id: REPLICATION_DATABASES_schId - name: REPLICATION_DATABASES - physicalType: view - description: The databases for replication that are accessible to the current user's - role. - logicalType: object - physicalName: INFORMATION_SCHEMA.REPLICATION_DATABASES - properties: - - id: REGION_GROUP_propId - name: REGION_GROUP - physicalType: VARCHAR(16777216) - description: Region group of this database - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SNOWFLAKE_REGION_propId - name: SNOWFLAKE_REGION - physicalType: VARCHAR(16777216) - description: Snowflake region of this database - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: ACCOUNT_NAME_propId - name: ACCOUNT_NAME - physicalType: VARCHAR(16777216) - description: Name of the account that owns the database - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: DATABASE_NAME_propId - name: DATABASE_NAME - physicalType: VARCHAR(16777216) - description: Name of the database - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Comment for this database - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Creation time of the database - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: IS_PRIMARY_propId - name: IS_PRIMARY - physicalType: BOOLEAN - description: Whether this database is the primary - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: boolean - required: true - unique: false - - id: PRIMARY_propId - name: PRIMARY - physicalType: VARCHAR(16777216) - description: Primary database of this replication group - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: REPLICATION_ALLOWED_TO_ACCOUNTS_propId - name: REPLICATION_ALLOWED_TO_ACCOUNTS - physicalType: VARCHAR(16777216) - description: List of accounts that can host secondary replicas for this database - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: FAILOVER_ALLOWED_TO_ACCOUNTS_propId - name: FAILOVER_ALLOWED_TO_ACCOUNTS - physicalType: VARCHAR(16777216) - description: List of accounts that can host primary replicas for this database - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false -- id: REPLICATION_GROUPS_schId - name: REPLICATION_GROUPS - physicalType: view - description: The replication groups that are accessible to the current user's role. - logicalType: object - physicalName: INFORMATION_SCHEMA.REPLICATION_GROUPS - properties: - - id: REGION_GROUP_propId - name: REGION_GROUP - physicalType: VARCHAR(16777216) - description: Region group of this database - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SNOWFLAKE_REGION_propId - name: SNOWFLAKE_REGION - physicalType: VARCHAR(16777216) - description: Snowflake region of this replication group - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: CREATED_ON_propId - name: CREATED_ON - physicalType: TIMESTAMP_LTZ - description: Creation time of the replication group - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: ACCOUNT_NAME_propId - name: ACCOUNT_NAME - physicalType: VARCHAR(16777216) - description: Name of the account that owns the replication group - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: NAME_propId - name: NAME - physicalType: VARCHAR(16777216) - description: Name of the replication group - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: TYPE_propId - name: TYPE - physicalType: VARCHAR(16777216) - description: Type of this replication group - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Comment for this replication group - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: IS_PRIMARY_propId - name: IS_PRIMARY - physicalType: BOOLEAN - description: Whether this replication group is the primary - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: boolean - required: true - unique: false - - id: PRIMARY_propId - name: PRIMARY - physicalType: VARCHAR(16777216) - description: Primary replication group name - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: OBJECT_TYPES_propId - name: OBJECT_TYPES - physicalType: VARCHAR(16777216) - description: Object types in the replication group - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: ALLOWED_INTEGRATION_TYPES_propId - name: ALLOWED_INTEGRATION_TYPES - physicalType: VARCHAR(16777216) - description: Allowed integration types in the replication group - customProperties: - - property: ordinalPosition - value: 11 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: ALLOWED_ACCOUNTS_propId - name: ALLOWED_ACCOUNTS - physicalType: VARCHAR(16777216) - description: List of accounts that can host secondary replicas for this replication - group - customProperties: - - property: ordinalPosition - value: 12 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: ORGANIZATION_NAME_propId - name: ORGANIZATION_NAME - physicalType: VARCHAR(16777216) - description: Name of the organization that owns the replication group - customProperties: - - property: ordinalPosition - value: 13 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: ACCOUNT_LOCATOR_propId - name: ACCOUNT_LOCATOR - physicalType: VARCHAR(16777216) - description: Account locator for this replication group - customProperties: - - property: ordinalPosition - value: 14 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: REPLICATION_SCHEDULE_propId - name: REPLICATION_SCHEDULE - physicalType: VARCHAR(16777216) - description: Replication schedule for this replication group - customProperties: - - property: ordinalPosition - value: 15 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: SECONDARY_STATE_propId - name: SECONDARY_STATE - physicalType: VARCHAR(16777216) - description: Secondary state for this replication group - customProperties: - - property: ordinalPosition - value: 16 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: NEXT_SCHEDULED_REFRESH_propId - name: NEXT_SCHEDULED_REFRESH - physicalType: TIMESTAMP_LTZ - description: Next schduled refresh time for this replication group - customProperties: - - property: ordinalPosition - value: 17 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: OWNER_propId - name: OWNER - physicalType: VARCHAR(16777216) - description: Owner of the replication group - customProperties: - - property: ordinalPosition - value: 18 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: IS_LISTING_AUTO_FULFILLMENT_GROUP_propId - name: IS_LISTING_AUTO_FULFILLMENT_GROUP - physicalType: BOOLEAN - description: Whether this is auto-fulfillment listing group - customProperties: - - property: ordinalPosition - value: 19 - - property: scdType - value: 1 - logicalType: boolean - required: true - unique: false - - id: ERROR_INTEGRATION_propId - name: ERROR_INTEGRATION - physicalType: VARCHAR(16777216) - description: Integration to which an error notification is sent in cases of refresh - failures - customProperties: - - property: ordinalPosition - value: 20 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false -- id: SCHEMATA_schId - name: SCHEMATA - physicalType: view - description: The schemas defined in this database that are accessible to the current - user's role. - logicalType: object - physicalName: INFORMATION_SCHEMA.SCHEMATA - properties: - - id: CATALOG_NAME_propId - name: CATALOG_NAME - physicalType: VARCHAR(16777216) - description: Database that the schema belongs to - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SCHEMA_NAME_propId - name: SCHEMA_NAME - physicalType: VARCHAR(16777216) - description: Name of the schema - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SCHEMA_OWNER_propId - name: SCHEMA_OWNER - physicalType: VARCHAR(16777216) - description: Name of the role that owns the schema - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: IS_TRANSIENT_propId - name: IS_TRANSIENT - physicalType: VARCHAR(3) - description: Whether this is a transient table - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: IS_MANAGED_ACCESS_propId - name: IS_MANAGED_ACCESS - physicalType: VARCHAR(3) - description: Whether this is a managed access schema - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: RETENTION_TIME_propId - name: RETENTION_TIME - physicalType: NUMBER(9,0) - description: Number of days that historical data is retained for Time Travel - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: DEFAULT_CHARACTER_SET_CATALOG_propId - name: DEFAULT_CHARACTER_SET_CATALOG - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: DEFAULT_CHARACTER_SET_SCHEMA_propId - name: DEFAULT_CHARACTER_SET_SCHEMA - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: DEFAULT_CHARACTER_SET_NAME_propId - name: DEFAULT_CHARACTER_SET_NAME - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: SQL_PATH_propId - name: SQL_PATH - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Creation time of the schema - customProperties: - - property: ordinalPosition - value: 11 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: LAST_ALTERED_propId - name: LAST_ALTERED - physicalType: TIMESTAMP_LTZ - description: Last altered time of the schema - customProperties: - - property: ordinalPosition - value: 12 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Comment for this schema - customProperties: - - property: ordinalPosition - value: 13 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: REPLICABLE_WITH_FAILOVER_GROUPS_propId - name: REPLICABLE_WITH_FAILOVER_GROUPS - physicalType: VARCHAR(16777216) - description: Whether this object is replicable with a failover group - customProperties: - - property: ordinalPosition - value: 14 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: OWNER_ROLE_TYPE_propId - name: OWNER_ROLE_TYPE - physicalType: VARCHAR(16777216) - description: Type of the role that owns the schema - customProperties: - - property: ordinalPosition - value: 15 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false -- id: SEMANTIC_DIMENSIONS_schId - name: SEMANTIC_DIMENSIONS - physicalType: view - description: The dimensions of Semantic Views defined in this database that are - accessible to the current user's role. - logicalType: object - physicalName: INFORMATION_SCHEMA.SEMANTIC_DIMENSIONS - properties: - - id: SEMANTIC_VIEW_CATALOG_propId - name: SEMANTIC_VIEW_CATALOG - physicalType: VARCHAR(16777216) - description: Database that the Semantic View belongs to - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SEMANTIC_VIEW_SCHEMA_propId - name: SEMANTIC_VIEW_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema that the Semantic View belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SEMANTIC_VIEW_NAME_propId - name: SEMANTIC_VIEW_NAME - physicalType: VARCHAR(16777216) - description: Name of the Semantic View - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: TABLE_NAME_propId - name: TABLE_NAME - physicalType: VARCHAR(16777216) - description: Name of the semantic table the dimension belongs to. - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: NAME_propId - name: NAME - physicalType: VARCHAR(16777216) - description: The name of the dimension - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: DATA_TYPE_propId - name: DATA_TYPE - physicalType: VARCHAR(16777216) - description: The Data type of the dimension expression - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: EXPRESSION_propId - name: EXPRESSION - physicalType: VARCHAR(16777216) - description: The SQL expression to calculate the dimension - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SYNONYMS_propId - name: SYNONYMS - physicalType: ARRAY - description: Synonyms for the dimension - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: object - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Description of the dimension - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CORTEX_SEARCH_SERVICE_DATABASE_NAME_propId - name: CORTEX_SEARCH_SERVICE_DATABASE_NAME - physicalType: VARCHAR(16777216) - description: Database that the cortex search service belongs to - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CORTEX_SEARCH_SERVICE_SCHEMA_NAME_propId - name: CORTEX_SEARCH_SERVICE_SCHEMA_NAME - physicalType: VARCHAR(16777216) - description: Schema that the cortex search service belongs to - customProperties: - - property: ordinalPosition - value: 11 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CORTEX_SEARCH_SERVICE_NAME_propId - name: CORTEX_SEARCH_SERVICE_NAME - physicalType: VARCHAR(16777216) - description: Name of cortex search service - customProperties: - - property: ordinalPosition - value: 12 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CORTEX_SEARCH_SERVICE_COLUMN_NAME_propId - name: CORTEX_SEARCH_SERVICE_COLUMN_NAME - physicalType: VARCHAR(16777216) - description: Name of the indexed column in the cortex search service - customProperties: - - property: ordinalPosition - value: 13 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: LABELS_propId - name: LABELS - physicalType: ARRAY - description: Labels associated with this dimension - customProperties: - - property: ordinalPosition - value: 14 - - property: scdType - value: 1 - logicalType: object - required: false - unique: false -- id: SEMANTIC_FACTS_schId - name: SEMANTIC_FACTS - physicalType: view - description: The facts of Semantic Views defined in this database that are accessible - to the current user's role. - logicalType: object - physicalName: INFORMATION_SCHEMA.SEMANTIC_FACTS - properties: - - id: SEMANTIC_VIEW_CATALOG_propId - name: SEMANTIC_VIEW_CATALOG - physicalType: VARCHAR(16777216) - description: Database that the Semantic View belongs to - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SEMANTIC_VIEW_SCHEMA_propId - name: SEMANTIC_VIEW_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema that the Semantic View belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SEMANTIC_VIEW_NAME_propId - name: SEMANTIC_VIEW_NAME - physicalType: VARCHAR(16777216) - description: Name of the Semantic View - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: TABLE_NAME_propId - name: TABLE_NAME - physicalType: VARCHAR(16777216) - description: Name of the semantic table the fact belongs to. - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: NAME_propId - name: NAME - physicalType: VARCHAR(16777216) - description: The name of the fact - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: DATA_TYPE_propId - name: DATA_TYPE - physicalType: VARCHAR(16777216) - description: The Data type of the fact expression - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: EXPRESSION_propId - name: EXPRESSION - physicalType: VARCHAR(16777216) - description: The SQL expression to calculate the fact - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SYNONYMS_propId - name: SYNONYMS - physicalType: ARRAY - description: Synonyms for the fact - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: object - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Description of the fact - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: LABELS_propId - name: LABELS - physicalType: ARRAY - description: Labels associated with this fact - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: object - required: false - unique: false -- id: SEMANTIC_METRICS_schId - name: SEMANTIC_METRICS - physicalType: view - description: The metrics of Semantic Views defined in this database that are accessible - to the current user's role. - logicalType: object - physicalName: INFORMATION_SCHEMA.SEMANTIC_METRICS - properties: - - id: SEMANTIC_VIEW_CATALOG_propId - name: SEMANTIC_VIEW_CATALOG - physicalType: VARCHAR(16777216) - description: Database that the Semantic View belongs to - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SEMANTIC_VIEW_SCHEMA_propId - name: SEMANTIC_VIEW_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema that the Semantic View belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SEMANTIC_VIEW_NAME_propId - name: SEMANTIC_VIEW_NAME - physicalType: VARCHAR(16777216) - description: Name of the Semantic View - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: TABLE_NAME_propId - name: TABLE_NAME - physicalType: VARCHAR(16777216) - description: Name of the semantic table the metric belongs to. - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: NAME_propId - name: NAME - physicalType: VARCHAR(16777216) - description: The name of the metric - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: DATA_TYPE_propId - name: DATA_TYPE - physicalType: VARCHAR(16777216) - description: The Data type of the metric expression - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: EXPRESSION_propId - name: EXPRESSION - physicalType: VARCHAR(16777216) - description: The SQL expression to calculate the metric - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SYNONYMS_propId - name: SYNONYMS - physicalType: ARRAY - description: Synonyms for the metric - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: object - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Description of the metric - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: ADDITIVE_DIMENSIONS_propId - name: ADDITIVE_DIMENSIONS - physicalType: ARRAY - description: Additive dimensions for the metric (only apply for semi-additive - metrics) - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: object - required: false - unique: false - - id: NON_ADDITIVE_DIMENSIONS_propId - name: NON_ADDITIVE_DIMENSIONS - physicalType: ARRAY - description: Non-additive dimensions for the metric (only apply for semi-additive - metrics) - customProperties: - - property: ordinalPosition - value: 11 - - property: scdType - value: 1 - logicalType: object - required: false - unique: false - - id: USING_RELATIONSHIPS_propId - name: USING_RELATIONSHIPS - physicalType: ARRAY - description: List of relationship names used by the metric - customProperties: - - property: ordinalPosition - value: 12 - - property: scdType - value: 1 - logicalType: object - required: false - unique: false -- id: SEMANTIC_RELATIONSHIPS_schId - name: SEMANTIC_RELATIONSHIPS - physicalType: view - description: The relationships of Semantic Views defined in this database that are - accessible to the current user's role. - logicalType: object - physicalName: INFORMATION_SCHEMA.SEMANTIC_RELATIONSHIPS - properties: - - id: SEMANTIC_VIEW_CATALOG_propId - name: SEMANTIC_VIEW_CATALOG - physicalType: VARCHAR(16777216) - description: Database that the Semantic View belongs to - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SEMANTIC_VIEW_SCHEMA_propId - name: SEMANTIC_VIEW_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema that the Semantic View belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SEMANTIC_VIEW_NAME_propId - name: SEMANTIC_VIEW_NAME - physicalType: VARCHAR(16777216) - description: Name of the Semantic View - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: NAME_propId - name: NAME - physicalType: VARCHAR(16777216) - description: Name of the Semantic View relationship - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: TABLE_NAME_propId - name: TABLE_NAME - physicalType: VARCHAR(16777216) - description: Alias of the semantic table referencing the other table - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: FOREIGN_KEYS_propId - name: FOREIGN_KEYS - physicalType: ARRAY - description: Name of columns referring to the columns of the other table - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: object - required: false - unique: false - - id: REF_TABLE_NAME_propId - name: REF_TABLE_NAME - physicalType: VARCHAR(16777216) - description: Alias of the semantic table being referenced - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: REF_KEYS_propId - name: REF_KEYS - physicalType: ARRAY - description: Name of columns being referenced - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: object - required: false - unique: false -- id: SEMANTIC_TABLES_schId - name: SEMANTIC_TABLES - physicalType: view - description: The tables of Semantic Views defined in this database that are accessible - to the current user's role. - logicalType: object - physicalName: INFORMATION_SCHEMA.SEMANTIC_TABLES - properties: - - id: SEMANTIC_VIEW_CATALOG_propId - name: SEMANTIC_VIEW_CATALOG - physicalType: VARCHAR(16777216) - description: Database that the Semantic View belongs to - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SEMANTIC_VIEW_SCHEMA_propId - name: SEMANTIC_VIEW_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema that the Semantic View belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SEMANTIC_VIEW_NAME_propId - name: SEMANTIC_VIEW_NAME - physicalType: VARCHAR(16777216) - description: Name of the Semantic View - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: NAME_propId - name: NAME - physicalType: VARCHAR(16777216) - description: Alias of the table - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: BASE_TABLE_CATALOG_propId - name: BASE_TABLE_CATALOG - physicalType: VARCHAR(16777216) - description: Database that the base table belongs to - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: BASE_TABLE_SCHEMA_propId - name: BASE_TABLE_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema that the base table belongs to - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: BASE_TABLE_NAME_propId - name: BASE_TABLE_NAME - physicalType: VARCHAR(16777216) - description: Name of the base table - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: PRIMARY_KEYS_propId - name: PRIMARY_KEYS - physicalType: ARRAY - description: List of primary key columns of the table - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: object - required: false - unique: false - - id: SYNONYMS_propId - name: SYNONYMS - physicalType: ARRAY - description: Synonyms for the table - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: object - required: false - unique: false - - id: UNIQUE_KEYS_propId - name: UNIQUE_KEYS - physicalType: ARRAY - description: List of unique key combinations in the table - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: object - required: false - unique: false - - id: DISTINCT_RANGES_propId - name: DISTINCT_RANGES - physicalType: VARIANT - description: Distinct range constraints defined on the semantic table - customProperties: - - property: ordinalPosition - value: 11 - - property: scdType - value: 1 - logicalType: object - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Description of the Semantic View Table - customProperties: - - property: ordinalPosition - value: 12 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false -- id: SEMANTIC_VIEWS_schId - name: SEMANTIC_VIEWS - physicalType: view - description: The Semantic Views defined in this database that are accessible to - the current user's role. - logicalType: object - physicalName: INFORMATION_SCHEMA.SEMANTIC_VIEWS - properties: - - id: CATALOG_propId - name: CATALOG - physicalType: VARCHAR(16777216) - description: Database that the Semantic View belongs to - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SCHEMA_propId - name: SCHEMA - physicalType: VARCHAR(16777216) - description: Schema that the Semantic View belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: NAME_propId - name: NAME - physicalType: VARCHAR(16777216) - description: Name of the Semantic View - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: OWNER_propId - name: OWNER - physicalType: VARCHAR(16777216) - description: Owner of the Semantic View - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Creation time of the Semantic View - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Description of the Semantic View - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false -- id: SEQUENCES_schId - name: SEQUENCES - physicalType: view - description: The sequences defined in this database that are accessible to the current - user's role. - logicalType: object - physicalName: INFORMATION_SCHEMA.SEQUENCES - properties: - - id: SEQUENCE_CATALOG_propId - name: SEQUENCE_CATALOG - physicalType: VARCHAR(16777216) - description: Database that the sequence belongs to - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SEQUENCE_SCHEMA_propId - name: SEQUENCE_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema that the sequence belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SEQUENCE_NAME_propId - name: SEQUENCE_NAME - physicalType: VARCHAR(16777216) - description: Name of the sequence - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SEQUENCE_OWNER_propId - name: SEQUENCE_OWNER - physicalType: VARCHAR(16777216) - description: Name of the role that owns the sequence - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: DATA_TYPE_propId - name: DATA_TYPE - physicalType: VARCHAR(16777216) - description: Data type of the sequence - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: NUMERIC_PRECISION_propId - name: NUMERIC_PRECISION - physicalType: NUMBER(9,0) - description: Numeric precision of the data type of the sequence - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: number - required: true - unique: false - - id: NUMERIC_PRECISION_RADIX_propId - name: NUMERIC_PRECISION_RADIX - physicalType: NUMBER(9,0) - description: Radix of the numeric precision of the data type of the sequence - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: number - required: true - unique: false - - id: NUMERIC_SCALE_propId - name: NUMERIC_SCALE - physicalType: NUMBER(9,0) - description: Scale of the data type of the sequence - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: number - required: true - unique: false - - id: START_VALUE_propId - name: START_VALUE - physicalType: VARCHAR(16777216) - description: Initial value of the sequence - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: MINIMUM_VALUE_propId - name: MINIMUM_VALUE - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: MAXIMUM_VALUE_propId - name: MAXIMUM_VALUE - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 11 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: NEXT_VALUE_propId - name: NEXT_VALUE - physicalType: VARCHAR(16777216) - description: Next value that the sequence will produce - customProperties: - - property: ordinalPosition - value: 12 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: INCREMENT_propId - name: INCREMENT - physicalType: VARCHAR(16777216) - description: Increment of the sequence generator - customProperties: - - property: ordinalPosition - value: 13 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CYCLE_OPTION_propId - name: CYCLE_OPTION - physicalType: VARCHAR(3) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 14 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Creation time of the sequence - customProperties: - - property: ordinalPosition - value: 15 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: LAST_ALTERED_propId - name: LAST_ALTERED - physicalType: TIMESTAMP_LTZ - description: Last altered time of the sequence - customProperties: - - property: ordinalPosition - value: 16 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: ORDERED_propId - name: ORDERED - physicalType: VARCHAR(3) - description: Whether or not the sequence is ordered - customProperties: - - property: ordinalPosition - value: 17 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Comment for this sequence - customProperties: - - property: ordinalPosition - value: 18 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false -- id: SERVICES_schId - name: SERVICES - physicalType: view - description: The services in this database that are accessible to the current user's - role. - logicalType: object - physicalName: INFORMATION_SCHEMA.SERVICES - properties: - - id: SERVICE_CATALOG_propId - name: SERVICE_CATALOG - physicalType: VARCHAR(16777216) - description: Database that the service belongs to - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SERVICE_SCHEMA_propId - name: SERVICE_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema that the service belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SERVICE_NAME_propId - name: SERVICE_NAME - physicalType: VARCHAR(16777216) - description: Name of the service - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: STATUS_propId - name: STATUS - physicalType: VARCHAR(16777216) - description: Status of the service - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SERVICE_OWNER_propId - name: SERVICE_OWNER - physicalType: VARCHAR(16777216) - description: Name of the role that owns the service - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: SERVICE_OWNER_ROLE_TYPE_propId - name: SERVICE_OWNER_ROLE_TYPE - physicalType: VARCHAR(16777216) - description: Type of role that owns the service - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: COMPUTE_POOL_NAME_propId - name: COMPUTE_POOL_NAME - physicalType: VARCHAR(16777216) - description: Name of the compute pool where the service runs - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: DNS_NAME_propId - name: DNS_NAME - physicalType: VARCHAR(16777216) - description: DNS name associated with the service - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CURRENT_INSTANCES_propId - name: CURRENT_INSTANCES - description: Current number of active instances for the service - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: number - required: true - unique: false - - id: TARGET_INSTANCES_propId - name: TARGET_INSTANCES - description: Target number of active instances for the service - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: number - required: true - unique: false - - id: MIN_READY_INSTANCES_propId - name: MIN_READY_INSTANCES - description: Minimum number of ready instances to declare service as READY - customProperties: - - property: ordinalPosition - value: 11 - - property: scdType - value: 1 - logicalType: number - required: true - unique: false - - id: MIN_INSTANCES_propId - name: MIN_INSTANCES - description: Minimum number of active instances for the service - customProperties: - - property: ordinalPosition - value: 12 - - property: scdType - value: 1 - logicalType: number - required: true - unique: false - - id: MAX_INSTANCES_propId - name: MAX_INSTANCES - description: Maximum number of active instances for the service - customProperties: - - property: ordinalPosition - value: 13 - - property: scdType - value: 1 - logicalType: number - required: true - unique: false - - id: AUTO_RESUME_propId - name: AUTO_RESUME - physicalType: BOOLEAN - description: Whether the service can be automatically resumed - customProperties: - - property: ordinalPosition - value: 14 - - property: scdType - value: 1 - logicalType: boolean - required: true - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Comment for this service - customProperties: - - property: ordinalPosition - value: 15 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: QUERY_WAREHOUSE_propId - name: QUERY_WAREHOUSE - physicalType: VARCHAR(16777216) - description: Query warehouse of the service - customProperties: - - property: ordinalPosition - value: 16 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Creation time of the service - customProperties: - - property: ordinalPosition - value: 17 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: LAST_ALTERED_propId - name: LAST_ALTERED - physicalType: TIMESTAMP_LTZ - description: Last altered time of the service - customProperties: - - property: ordinalPosition - value: 18 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: LAST_RESUMED_propId - name: LAST_RESUMED - physicalType: TIMESTAMP_LTZ - description: Time when the service was last resumed - customProperties: - - property: ordinalPosition - value: 19 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: IS_JOB_propId - name: IS_JOB - physicalType: BOOLEAN - description: Whether this is a Snowpark Container Services Job - customProperties: - - property: ordinalPosition - value: 20 - - property: scdType - value: 1 - logicalType: boolean - required: false - unique: false - - id: SPEC_DIGEST_propId - name: SPEC_DIGEST - physicalType: VARCHAR(16777216) - description: A unique and immutable identifier to represent the service spec content - customProperties: - - property: ordinalPosition - value: 21 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: IS_UPGRADING_propId - name: IS_UPGRADING - physicalType: BOOLEAN - description: Whether the service is upgrading or not - customProperties: - - property: ordinalPosition - value: 22 - - property: scdType - value: 1 - logicalType: boolean - required: false - unique: false - - id: MANAGING_OBJECT_DOMAIN_propId - name: MANAGING_OBJECT_DOMAIN - physicalType: VARCHAR(16777216) - description: The domain of the managing object - customProperties: - - property: ordinalPosition - value: 23 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: MANAGING_OBJECT_NAME_propId - name: MANAGING_OBJECT_NAME - physicalType: VARCHAR(16777216) - description: The fully qualified name of the managing object - customProperties: - - property: ordinalPosition - value: 24 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false -- id: SHARES_schId - name: SHARES - physicalType: view - description: Shares that are accessible by the current user's role - logicalType: object - physicalName: INFORMATION_SCHEMA.SHARES - properties: - - id: CREATED_ON_propId - name: CREATED_ON - physicalType: TIMESTAMP_LTZ - description: Creation time of the share - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: KIND_propId - name: KIND - physicalType: VARCHAR(16777216) - description: Type of share (INBOUND or OUTBOUND) - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: OWNER_ACCOUNT_propId - name: OWNER_ACCOUNT - physicalType: VARCHAR(16777216) - description: Account that owns the share - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: NAME_propId - name: NAME - physicalType: VARCHAR(16777216) - description: Name of the share - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: DATABASE_NAME_propId - name: DATABASE_NAME - physicalType: VARCHAR(16777216) - description: Database being shared (for outbound shares) - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: TO_propId - name: TO - physicalType: VARCHAR(16777216) - description: Accounts this share is shared with - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: OWNER_propId - name: OWNER - physicalType: VARCHAR(16777216) - description: Name of the role that owns the share - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Comment for this share - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: LISTING_GLOBAL_NAME_propId - name: LISTING_GLOBAL_NAME - physicalType: VARCHAR(16777216) - description: Global name of the associated listing - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: SECURE_OBJECTS_ONLY_propId - name: SECURE_OBJECTS_ONLY - physicalType: VARCHAR(16777216) - description: Whether the share allows secure views only. - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false -- id: SNAPSHOT_POLICIES_schId - name: SNAPSHOT_POLICIES - physicalType: view - description: All snapshot policies within an account - logicalType: object - physicalName: INFORMATION_SCHEMA.SNAPSHOT_POLICIES - properties: - - id: SNAPSHOT_POLICY_NAME_propId - name: SNAPSHOT_POLICY_NAME - physicalType: VARCHAR(16777216) - description: Name of the Snapshot Policy - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: SNAPSHOT_POLICY_SCHEMA_propId - name: SNAPSHOT_POLICY_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema which the Snapshot Policy belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: SNAPSHOT_POLICY_CATALOG_propId - name: SNAPSHOT_POLICY_CATALOG - physicalType: VARCHAR(16777216) - description: Database which the Snapshot Policy belongs to - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: SCHEDULE_propId - name: SCHEDULE - physicalType: VARCHAR(16777216) - description: Schedule for snapshot creation - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: EXPIRE_AFTER_DAYS_propId - name: EXPIRE_AFTER_DAYS - description: Days after snapshot creation when snapshot should be expired - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: HAS_RETENTION_LOCK_propId - name: HAS_RETENTION_LOCK - physicalType: VARCHAR(16777216) - description: Indicates whether the policy includes a retention lock. Y if policy - has retention lock; N otherwise - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: OWNER_propId - name: OWNER - physicalType: VARCHAR(16777216) - description: Name of the role that owns the Snapshot Policy - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: OWNER_ROLE_TYPE_propId - name: OWNER_ROLE_TYPE - physicalType: VARCHAR(16777216) - description: Type of role that owns the Snapshot Policy - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Data and time when the Snapshot Policy was created - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: LAST_ALTERED_propId - name: LAST_ALTERED - physicalType: TIMESTAMP_LTZ - description: Data and time when the Snapshot Policy was last altered - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Comment for the Snapshot Policy - customProperties: - - property: ordinalPosition - value: 11 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false -- id: SNAPSHOT_SETS_schId - name: SNAPSHOT_SETS - physicalType: view - description: All snapshot sets within an account - logicalType: object - physicalName: INFORMATION_SCHEMA.SNAPSHOT_SETS - properties: - - id: SNAPSHOT_SET_NAME_propId - name: SNAPSHOT_SET_NAME - physicalType: VARCHAR(16777216) - description: Name of the Snapshot Set - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: SNAPSHOT_SET_SCHEMA_propId - name: SNAPSHOT_SET_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema which the Snapshot Set belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: SNAPSHOT_SET_CATALOG_propId - name: SNAPSHOT_SET_CATALOG - physicalType: VARCHAR(16777216) - description: Database which the Snapshot Set belongs to - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: OBJECT_KIND_propId - name: OBJECT_KIND - physicalType: VARCHAR(16777216) - description: Type of object that the snapshot set is snapshotting - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: OBJECT_NAME_propId - name: OBJECT_NAME - physicalType: VARCHAR(16777216) - description: Name of the object that the snapshot set is snapshotting - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: OBJECT_SCHEMA_propId - name: OBJECT_SCHEMA - physicalType: VARCHAR(16777216) - description: Name of the schema that contains the object being snapshotted by - this snapshot set - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: OBJECT_CATALOG_propId - name: OBJECT_CATALOG - physicalType: VARCHAR(16777216) - description: Name of the database that contains the object being snapshotted by - this snapshot set - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: SNAPSHOT_POLICY_NAME_propId - name: SNAPSHOT_POLICY_NAME - physicalType: VARCHAR(16777216) - description: Name of the Snapshot Policy attached to this snapshot set - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: SNAPSHOT_POLICY_SCHEMA_propId - name: SNAPSHOT_POLICY_SCHEMA - physicalType: VARCHAR(16777216) - description: Name of the schema that contains the Snapshot Policy - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: SNAPSHOT_POLICY_CATALOG_propId - name: SNAPSHOT_POLICY_CATALOG - physicalType: VARCHAR(16777216) - description: Name of the database that contains the Snapshot Policy - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: OWNER_propId - name: OWNER - physicalType: VARCHAR(16777216) - description: Name of the role that owns the Snapshot Set - customProperties: - - property: ordinalPosition - value: 11 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: OWNER_ROLE_TYPE_propId - name: OWNER_ROLE_TYPE - physicalType: VARCHAR(16777216) - description: Type of role that owns the Snapshot Set - customProperties: - - property: ordinalPosition - value: 12 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Data and time when the Snapshot Set was created - customProperties: - - property: ordinalPosition - value: 13 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: LAST_ALTERED_propId - name: LAST_ALTERED - physicalType: TIMESTAMP_LTZ - description: Data and time when the Snapshot Set was last altered - customProperties: - - property: ordinalPosition - value: 14 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Comment for the Snapshot Set - customProperties: - - property: ordinalPosition - value: 15 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false -- id: SNAPSHOTS_schId - name: SNAPSHOTS - physicalType: view - description: All snapshots within an account - logicalType: object - physicalName: INFORMATION_SCHEMA.SNAPSHOTS - properties: - - id: ID_propId - name: ID - physicalType: VARCHAR(16777216) - description: Unique identifier of the Snapshot - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Data and time when the Snapshot was created - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: SNAPSHOT_SET_NAME_propId - name: SNAPSHOT_SET_NAME - physicalType: VARCHAR(16777216) - description: Name of Snapshot Set that contains the snapshot - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: SNAPSHOT_SET_SCHEMA_propId - name: SNAPSHOT_SET_SCHEMA - physicalType: VARCHAR(16777216) - description: Name of schema which the Snapshot Set belongs to - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: SNAPSHOT_SET_CATALOG_propId - name: SNAPSHOT_SET_CATALOG - physicalType: VARCHAR(16777216) - description: Name of database which the Snapshot Set belongs to - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: EXPIRATION_SCHEDULED_FOR_propId - name: EXPIRATION_SCHEDULED_FOR - physicalType: TIMESTAMP_LTZ - description: Timestamp at which the snapshot will be expired - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: IS_UNDER_LEGAL_HOLD_propId - name: IS_UNDER_LEGAL_HOLD - physicalType: BOOLEAN - description: Whether the snapshot is under legal hold - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: boolean - required: false - unique: false -- id: STAGES_schId - name: STAGES - physicalType: view - description: Stages in this database that are accessible by the current user's role - logicalType: object - physicalName: INFORMATION_SCHEMA.STAGES - properties: - - id: STAGE_CATALOG_propId - name: STAGE_CATALOG - physicalType: VARCHAR(16777216) - description: Database that the stage belongs to - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: STAGE_SCHEMA_propId - name: STAGE_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema that the stage belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: STAGE_NAME_propId - name: STAGE_NAME - physicalType: VARCHAR(16777216) - description: Name of the stage - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: STAGE_URL_propId - name: STAGE_URL - physicalType: VARCHAR(16777216) - description: Location of an external stage - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: STAGE_REGION_propId - name: STAGE_REGION - physicalType: VARCHAR(16777216) - description: AWS region where the stage resides - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: STAGE_TYPE_propId - name: STAGE_TYPE - physicalType: VARCHAR(16777216) - description: 'Type of stage: User, Table, Internal Named or External Named' - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: STAGE_OWNER_propId - name: STAGE_OWNER - physicalType: VARCHAR(16777216) - description: Name of the role that owns the stage - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Comment for this stage - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Creation time of the stage - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: LAST_ALTERED_propId - name: LAST_ALTERED - physicalType: TIMESTAMP_LTZ - description: Last altered time of the stage - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: ENDPOINT_propId - name: ENDPOINT - physicalType: VARCHAR(16777216) - description: S3-compatible API endpoint - customProperties: - - property: ordinalPosition - value: 11 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: DIRECTORY_ENABLED_propId - name: DIRECTORY_ENABLED - physicalType: BOOLEAN - description: Whether or not the stage has directory tables enabled - customProperties: - - property: ordinalPosition - value: 12 - - property: scdType - value: 1 - logicalType: boolean - required: false - unique: false -- id: STREAMLITS_schId - name: STREAMLITS - physicalType: view - description: Streamlits in this database that are accessible by the current user's - role - logicalType: object - physicalName: INFORMATION_SCHEMA.STREAMLITS - properties: - - id: STREAMLIT_CATALOG_propId - name: STREAMLIT_CATALOG - physicalType: VARCHAR(16777216) - description: Database that the streamlit belongs to - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: STREAMLIT_SCHEMA_propId - name: STREAMLIT_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema that the streamlit belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: STREAMLIT_NAME_propId - name: STREAMLIT_NAME - physicalType: VARCHAR(16777216) - description: Name of the streamlit - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: STREAMLIT_OWNER_propId - name: STREAMLIT_OWNER - physicalType: VARCHAR(16777216) - description: Name of the role that owns the streamlit - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: STREAMLIT_ROOT_LOCATION_propId - name: STREAMLIT_ROOT_LOCATION - physicalType: VARCHAR(16777216) - description: Root location of the streamlit - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: STREAMLIT_MAIN_FILE_propId - name: STREAMLIT_MAIN_FILE - physicalType: VARCHAR(16777216) - description: Main file of the streamlit - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: STREAMLIT_QUERY_WAREHOUSE_propId - name: STREAMLIT_QUERY_WAREHOUSE - physicalType: VARCHAR(16777216) - description: Query warehouse of the streamlit - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: STREAMLIT_URL_ID_propId - name: STREAMLIT_URL_ID - physicalType: VARCHAR(16777216) - description: URL id of the streamlit - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Creation time of the streamlit - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: LAST_ALTERED_propId - name: LAST_ALTERED - physicalType: TIMESTAMP_LTZ - description: Last altered time of the streamlit - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Comment for this streamlit - customProperties: - - property: ordinalPosition - value: 11 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: STREAMLIT_TITLE_propId - name: STREAMLIT_TITLE - physicalType: VARCHAR(16777216) - description: Title for the streamlit app - customProperties: - - property: ordinalPosition - value: 12 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false -- id: TABLE_CONSTRAINTS_schId - name: TABLE_CONSTRAINTS - physicalType: view - description: Constraints defined on the tables in this database that are accessible - to the current user - logicalType: object - physicalName: INFORMATION_SCHEMA.TABLE_CONSTRAINTS - properties: - - id: CONSTRAINT_CATALOG_propId - name: CONSTRAINT_CATALOG - physicalType: VARCHAR(16777216) - description: Database that the constraint belongs to - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: CONSTRAINT_SCHEMA_propId - name: CONSTRAINT_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema that the constraint belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: CONSTRAINT_NAME_propId - name: CONSTRAINT_NAME - physicalType: VARCHAR(16777216) - description: Name of the constraint - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: TABLE_CATALOG_propId - name: TABLE_CATALOG - physicalType: VARCHAR(16777216) - description: Name of the database of the current table - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: TABLE_SCHEMA_propId - name: TABLE_SCHEMA - physicalType: VARCHAR(16777216) - description: Name of the schema of the current table - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: TABLE_NAME_propId - name: TABLE_NAME - physicalType: VARCHAR(16777216) - description: Name of the current table - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: CONSTRAINT_TYPE_propId - name: CONSTRAINT_TYPE - physicalType: VARCHAR(16777216) - description: Type of the constraint - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: IS_DEFERRABLE_propId - name: IS_DEFERRABLE - physicalType: VARCHAR(3) - description: Whether evaluation of the constraint can be deferred - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: INITIALLY_DEFERRED_propId - name: INITIALLY_DEFERRED - physicalType: VARCHAR(3) - description: Whether evaluation of the constraint is deferrable and initially - deferred - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: ENFORCED_propId - name: ENFORCED - physicalType: VARCHAR(3) - description: Whether the constraint is enforced - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Comment for this constraint - customProperties: - - property: ordinalPosition - value: 11 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Creation time of the constraint - customProperties: - - property: ordinalPosition - value: 12 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: LAST_ALTERED_propId - name: LAST_ALTERED - physicalType: TIMESTAMP_LTZ - description: Last altered time of the constraint - customProperties: - - property: ordinalPosition - value: 13 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: RELY_propId - name: RELY - physicalType: VARCHAR(3) - description: Whether to use RELY - customProperties: - - property: ordinalPosition - value: 14 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false -- id: TABLE_PRIVILEGES_schId - name: TABLE_PRIVILEGES - physicalType: view - description: The privileges on tables defined in this database that are accessible - to the current user's role. - logicalType: object - physicalName: INFORMATION_SCHEMA.TABLE_PRIVILEGES - properties: - - id: GRANTOR_propId - name: GRANTOR - physicalType: VARCHAR(16777216) - description: Role who granted the table privilege - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: GRANTEE_propId - name: GRANTEE - physicalType: VARCHAR(16777216) - description: Object to which the table privilege is granted - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: GRANTED_TO_propId - name: GRANTED_TO - physicalType: VARCHAR(16777216) - description: Object kind on which the table privilege is granted - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: TABLE_CATALOG_propId - name: TABLE_CATALOG - physicalType: VARCHAR(16777216) - description: Database containing the table on which the privilege is granted - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: TABLE_SCHEMA_propId - name: TABLE_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema containing the table on which the privilege is granted - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: TABLE_NAME_propId - name: TABLE_NAME - physicalType: VARCHAR(16777216) - description: Name of the table on which the privilege is granted - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: PRIVILEGE_TYPE_propId - name: PRIVILEGE_TYPE - physicalType: VARCHAR(16777216) - description: Type of the granted privilege - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: IS_GRANTABLE_propId - name: IS_GRANTABLE - physicalType: VARCHAR(3) - description: Whether the privilege was granted WITH GRANT OPTION - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: WITH_HIERARCHY_propId - name: WITH_HIERARCHY - physicalType: VARCHAR(3) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Creation time of the privilege - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false -- id: TABLE_STORAGE_METRICS_schId - name: TABLE_STORAGE_METRICS - physicalType: view - description: All tables within an account, including expired tables. - logicalType: object - physicalName: INFORMATION_SCHEMA.TABLE_STORAGE_METRICS - properties: - - id: TABLE_CATALOG_propId - name: TABLE_CATALOG - physicalType: VARCHAR(16777216) - description: Database that the table belongs to. Potentially NULL if table is - in failsafe. - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: TABLE_SCHEMA_propId - name: TABLE_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema that the table belongs to. Potentially NULL if table is in - failsafe. - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: TABLE_NAME_propId - name: TABLE_NAME - physicalType: VARCHAR(16777216) - description: Name of the table. Potentially NULL if table is in failsafe. - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: ID_propId - name: ID - physicalType: NUMBER(9,0) - description: Unique identifier of the table - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: number - required: true - unique: false - - id: CLONE_GROUP_ID_propId - name: CLONE_GROUP_ID - physicalType: NUMBER(9,0) - description: Unique identifier of the oldest clone ancestor of this table. Same - as this table's ID if it is not a clone. - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: number - required: true - unique: false - - id: IS_TRANSIENT_propId - name: IS_TRANSIENT - physicalType: VARCHAR(3) - description: '''YES'' if table is transient, ''NO'' otherwise. Potentially NULL - if table is in failsafe.' - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: ACTIVE_BYTES_propId - name: ACTIVE_BYTES - physicalType: NUMBER(9,0) - description: Bytes in the active version of the table. Some bytes may be billed - to another table if this table is a clone. - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: number - required: true - unique: false - - id: TIME_TRAVEL_BYTES_propId - name: TIME_TRAVEL_BYTES - physicalType: NUMBER(9,0) - description: Bytes in time travel versions of the table. Some bytes may be billed - to another table if this table is a clone - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: number - required: true - unique: false - - id: FAILSAFE_BYTES_propId - name: FAILSAFE_BYTES - physicalType: NUMBER(9,0) - description: Bytes in failsafe versions of the table. All such bytes are billed - to this table. - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: number - required: true - unique: false - - id: RETAINED_FOR_CLONE_BYTES_propId - name: RETAINED_FOR_CLONE_BYTES - physicalType: NUMBER(9,0) - description: Bytes which used to be owned by this table and are no longer referenced - by it. Still, they are retained (and billed) because other clone(s) of that - table are still referencing these bytes. Note that the original metadata for - this table might have been purged so the table, schema, and database names might - be NULL in this case. - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: number - required: true - unique: false - - id: TABLE_CREATED_propId - name: TABLE_CREATED - physicalType: TIMESTAMP_LTZ - description: Time at which this table was created. Potentially NULL if table - is in failsafe. - customProperties: - - property: ordinalPosition - value: 11 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: TABLE_DROPPED_propId - name: TABLE_DROPPED - physicalType: TIMESTAMP_LTZ - description: Time at which the table was dropped, or NULL. Potentially NULL if - table is in failsafe. - customProperties: - - property: ordinalPosition - value: 12 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: TABLE_ENTERED_FAILSAFE_propId - name: TABLE_ENTERED_FAILSAFE - physicalType: TIMESTAMP_LTZ - description: Time at which the table entered the failsafe state, or NULL. Potentially - NULL if table is in failsafe. - customProperties: - - property: ordinalPosition - value: 13 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: CATALOG_CREATED_propId - name: CATALOG_CREATED - physicalType: TIMESTAMP_LTZ - description: Time at which the database was created. Potentially NULL if table - is in failsafe. - customProperties: - - property: ordinalPosition - value: 14 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: CATALOG_DROPPED_propId - name: CATALOG_DROPPED - physicalType: TIMESTAMP_LTZ - description: Time at which the database was dropped. Potentially NULL if table - is past failsafe. - customProperties: - - property: ordinalPosition - value: 15 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: SCHEMA_CREATED_propId - name: SCHEMA_CREATED - physicalType: TIMESTAMP_LTZ - description: Time at which the schema was created. Potentially NULL if table - is past failsafe. - customProperties: - - property: ordinalPosition - value: 16 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: SCHEMA_DROPPED_propId - name: SCHEMA_DROPPED - physicalType: TIMESTAMP_LTZ - description: Time at which the schema was dropped. Potentially NULL if table - is in failsafe. - customProperties: - - property: ordinalPosition - value: 17 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Table's comment. Potentially NULL if table is in failsafe. - customProperties: - - property: ordinalPosition - value: 18 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false -- id: TABLES_schId - name: TABLES - physicalType: view - description: The tables defined in this database that are accessible to the current - user's role. - logicalType: object - physicalName: INFORMATION_SCHEMA.TABLES - properties: - - id: TABLE_CATALOG_propId - name: TABLE_CATALOG - physicalType: VARCHAR(16777216) - description: Database that the table belongs to - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: TABLE_SCHEMA_propId - name: TABLE_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema that the table belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: TABLE_NAME_propId - name: TABLE_NAME - physicalType: VARCHAR(16777216) - description: Name of the table - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: TABLE_OWNER_propId - name: TABLE_OWNER - physicalType: VARCHAR(16777216) - description: Name of the role that owns the table - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: TABLE_TYPE_propId - name: TABLE_TYPE - physicalType: VARCHAR(16777216) - description: Whether the table is a base table, temporary table, or view - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: IS_TRANSIENT_propId - name: IS_TRANSIENT - physicalType: VARCHAR(3) - description: Whether this is a transient table - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: CLUSTERING_KEY_propId - name: CLUSTERING_KEY - physicalType: VARCHAR(16777216) - description: Clustering key for the table - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: ROW_COUNT_propId - name: ROW_COUNT - physicalType: NUMBER(38,0) - description: Number of rows in the table - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: BYTES_propId - name: BYTES - physicalType: NUMBER(38,0) - description: Number of bytes accessed by a scan of the table - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: RETENTION_TIME_propId - name: RETENTION_TIME - physicalType: NUMBER(9,0) - description: Number of days that historical data is retained for Time Travel - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: number - required: false - unique: false - - id: SELF_REFERENCING_COLUMN_NAME_propId - name: SELF_REFERENCING_COLUMN_NAME - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 11 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: REFERENCE_GENERATION_propId - name: REFERENCE_GENERATION - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 12 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: USER_DEFINED_TYPE_CATALOG_propId - name: USER_DEFINED_TYPE_CATALOG - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 13 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: USER_DEFINED_TYPE_SCHEMA_propId - name: USER_DEFINED_TYPE_SCHEMA - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 14 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: USER_DEFINED_TYPE_NAME_propId - name: USER_DEFINED_TYPE_NAME - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 15 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: IS_INSERTABLE_INTO_propId - name: IS_INSERTABLE_INTO - physicalType: VARCHAR(3) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 16 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: IS_TYPED_propId - name: IS_TYPED - physicalType: VARCHAR(3) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 17 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: COMMIT_ACTION_propId - name: COMMIT_ACTION - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 18 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Creation time of the function - customProperties: - - property: ordinalPosition - value: 19 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: LAST_ALTERED_propId - name: LAST_ALTERED - physicalType: TIMESTAMP_LTZ - description: Last altered time of the function - customProperties: - - property: ordinalPosition - value: 20 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: LAST_DDL_propId - name: LAST_DDL - physicalType: TIMESTAMP_LTZ - description: Last DDL time of the table - customProperties: - - property: ordinalPosition - value: 21 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: LAST_DDL_BY_propId - name: LAST_DDL_BY - physicalType: VARCHAR(16777216) - description: User name that performed the Last DDL of the table - customProperties: - - property: ordinalPosition - value: 22 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: AUTO_CLUSTERING_ON_propId - name: AUTO_CLUSTERING_ON - physicalType: VARCHAR(3) - description: Whether automatic clustering is on for the table - customProperties: - - property: ordinalPosition - value: 23 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Comment for this table - customProperties: - - property: ordinalPosition - value: 24 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: IS_TEMPORARY_propId - name: IS_TEMPORARY - physicalType: VARCHAR(3) - description: Whether this is a temporary table - customProperties: - - property: ordinalPosition - value: 25 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: IS_ICEBERG_propId - name: IS_ICEBERG - physicalType: VARCHAR(3) - description: Whether this is an Iceberg table - customProperties: - - property: ordinalPosition - value: 26 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: IS_DYNAMIC_propId - name: IS_DYNAMIC - physicalType: VARCHAR(3) - description: Whether this is a dynamic table - customProperties: - - property: ordinalPosition - value: 27 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: IS_IMMUTABLE_propId - name: IS_IMMUTABLE - physicalType: VARCHAR(3) - description: Whether this is a READ ONLY table - customProperties: - - property: ordinalPosition - value: 28 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: IS_HYBRID_propId - name: IS_HYBRID - physicalType: VARCHAR(3) - description: Whether this is a hybrid table - customProperties: - - property: ordinalPosition - value: 29 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false -- id: USAGE_PRIVILEGES_schId - name: USAGE_PRIVILEGES - physicalType: view - description: The usage privileges on sequences defined in this database that are - accessible to the current user's role. - logicalType: object - physicalName: INFORMATION_SCHEMA.USAGE_PRIVILEGES - properties: - - id: GRANTOR_propId - name: GRANTOR - physicalType: VARCHAR(16777216) - description: Role who granted the usage privilege - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: GRANTEE_propId - name: GRANTEE - physicalType: VARCHAR(16777216) - description: Object to which the usage privilege is granted - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: GRANTED_TO_propId - name: GRANTED_TO - physicalType: VARCHAR(16777216) - description: Object kind on which the usage privilege is granted - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: OBJECT_CATALOG_propId - name: OBJECT_CATALOG - physicalType: VARCHAR(16777216) - description: Database containing the object on which the privilege is granted - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: OBJECT_SCHEMA_propId - name: OBJECT_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema containing the object on which the privilege is granted - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: OBJECT_NAME_propId - name: OBJECT_NAME - physicalType: VARCHAR(16777216) - description: Name of the object on which the privilege is granted - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: OBJECT_TYPE_propId - name: OBJECT_TYPE - physicalType: VARCHAR(16777216) - description: Type of the object on which the privilege is granted - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: PRIVILEGE_TYPE_propId - name: PRIVILEGE_TYPE - physicalType: VARCHAR(16777216) - description: Type of the granted privilege - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: IS_GRANTABLE_propId - name: IS_GRANTABLE - physicalType: VARCHAR(3) - description: Whether the privilege was granted WITH GRANT OPTION - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Creation time of the privilege - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false -- id: VIEWS_schId - name: VIEWS - physicalType: view - description: The views defined in this database that are accessible to the current - user's role. - logicalType: object - physicalName: INFORMATION_SCHEMA.VIEWS - properties: - - id: TABLE_CATALOG_propId - name: TABLE_CATALOG - physicalType: VARCHAR(16777216) - description: Database that the view belongs to - customProperties: - - property: ordinalPosition - value: 1 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: TABLE_SCHEMA_propId - name: TABLE_SCHEMA - physicalType: VARCHAR(16777216) - description: Schema that the view belongs to - customProperties: - - property: ordinalPosition - value: 2 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: TABLE_NAME_propId - name: TABLE_NAME - physicalType: VARCHAR(16777216) - description: Name of the view - customProperties: - - property: ordinalPosition - value: 3 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: TABLE_OWNER_propId - name: TABLE_OWNER - physicalType: VARCHAR(16777216) - description: Name of the role that owns the view - customProperties: - - property: ordinalPosition - value: 4 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: VIEW_DEFINITION_propId - name: VIEW_DEFINITION - physicalType: VARCHAR(16777216) - description: Text of the view's query expression - customProperties: - - property: ordinalPosition - value: 5 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: true - unique: false - - id: CHECK_OPTION_propId - name: CHECK_OPTION - physicalType: VARCHAR(16777216) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 6 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: IS_UPDATABLE_propId - name: IS_UPDATABLE - physicalType: VARCHAR(3) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 7 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: INSERTABLE_INTO_propId - name: INSERTABLE_INTO - physicalType: VARCHAR(3) - description: Not applicable for Snowflake. - customProperties: - - property: ordinalPosition - value: 8 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: IS_SECURE_propId - name: IS_SECURE - physicalType: VARCHAR(3) - description: Whether this view is secure. - customProperties: - - property: ordinalPosition - value: 9 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 3 - required: false - unique: false - - id: CREATED_propId - name: CREATED - physicalType: TIMESTAMP_LTZ - description: Creation time of the view - customProperties: - - property: ordinalPosition - value: 10 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: LAST_ALTERED_propId - name: LAST_ALTERED - physicalType: TIMESTAMP_LTZ - description: Last altered time of the view - customProperties: - - property: ordinalPosition - value: 11 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: LAST_DDL_propId - name: LAST_DDL - physicalType: TIMESTAMP_LTZ - description: Last DDL time of the view - customProperties: - - property: ordinalPosition - value: 12 - - property: scdType - value: 1 - logicalType: timestamp - required: false - unique: false - - id: LAST_DDL_BY_propId - name: LAST_DDL_BY - physicalType: VARCHAR(16777216) - description: User name that performed the last DDL of the view - customProperties: - - property: ordinalPosition - value: 13 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false - - id: COMMENT_propId - name: COMMENT - physicalType: VARCHAR(16777216) - description: Comment for this view - customProperties: - - property: ordinalPosition - value: 14 - - property: scdType - value: 1 - logicalType: string - logicalTypeOptions: - maxLength: 16777216 - required: false - unique: false -customProperties: -- property: owner - value: dataplatform From 5be60cb5f0f55f6fd4e9194c7a7b6a070c9fe759 Mon Sep 17 00:00:00 2001 From: dmaresma Date: Mon, 9 Feb 2026 08:58:44 -0500 Subject: [PATCH 20/28] fix bug --- tests/fixtures/snowflake/import/datacontract.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/fixtures/snowflake/import/datacontract.yaml b/tests/fixtures/snowflake/import/datacontract.yaml index a4e3e4cdf..cf7d5d132 100644 --- a/tests/fixtures/snowflake/import/datacontract.yaml +++ b/tests/fixtures/snowflake/import/datacontract.yaml @@ -102,12 +102,12 @@ schema: description: Double precision floating-point (synonym for FLOAT) logicalType: number - name: field_float - physicalType: FLOAT + physicalType: DOUBLE description: Approximate floating-point logicalType: number - name: field_real - physicalType: FLOAT - description: Snowflake doesn't have REAL, use FLOAT + physicalType: DOUBLE + description: Snowflake doesn't have REAL, use DOUBLE as synonym of FLOAT logicalType: number - name: field_bit physicalType: BOOLEAN From 70548b491af2f2339880f1c1be51e18e4ffff899 Mon Sep 17 00:00:00 2001 From: dmaresma Date: Mon, 9 Feb 2026 09:05:33 -0500 Subject: [PATCH 21/28] typo on description --- tests/fixtures/snowflake/import/ddl.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fixtures/snowflake/import/ddl.sql b/tests/fixtures/snowflake/import/ddl.sql index addcfeb2c..5df8b2740 100644 --- a/tests/fixtures/snowflake/import/ddl.sql +++ b/tests/fixtures/snowflake/import/ddl.sql @@ -18,7 +18,7 @@ CREATE OR REPLACE TABLE mytable ( field_number NUMBER(38, 0), -- Default numeric type (more flexible than DECIMAL) field_double DOUBLE, -- Double precision floating-point (synonym for FLOAT) field_float FLOAT, -- Approximate floating-point - field_real FLOAT, -- Snowflake doesn't have REAL, use FLOAT + field_real FLOAT, -- Snowflake doesn't have REAL, use DOUBLE as synonym of FLOAT field_bit BOOLEAN, -- Boolean (TRUE/FALSE) field_date DATE, -- Date only (YYYY-MM-DD) field_time TIME, -- Time only (HH:MM:SS) From 85c065b72a7880a8f33fa94586cb14cefca193ab Mon Sep 17 00:00:00 2001 From: dmaresma Date: Mon, 9 Feb 2026 09:19:30 -0500 Subject: [PATCH 22/28] test success --- tests/test_import_snowflake.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_import_snowflake.py b/tests/test_import_snowflake.py index 1faa761d5..26068cc4e 100644 --- a/tests/test_import_snowflake.py +++ b/tests/test_import_snowflake.py @@ -159,7 +159,8 @@ def test_import_snowflake_from_connector_success(): assert mock_cursor.execute_async.called args, _ = mock_cursor.execute_async.call_args query = args[0] - assert "WITH INFO_SCHEMA_COLUMNS AS" in query + assert "WITH Quality_Metric AS" in query + assert "Server_Roles AS " in query assert f"WHERE T.table_schema = '{schema}'" in query mock_cursor.get_results_from_sfqid.assert_called_with("mock_sfqid") From e2236d556a2a1aac9e99bec6fae2ed722953a8c9 Mon Sep 17 00:00:00 2001 From: dmaresma Date: Wed, 11 Feb 2026 16:37:13 -0500 Subject: [PATCH 23/28] double-quoted schema identifiers and authenticator documentation --- README.md | 10 ++++++++ datacontract/imports/snowflake_importer.py | 28 ++++++++++++++++++---- 2 files changed, 34 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b70762654..d5b738ec8 100644 --- a/README.md +++ b/README.md @@ -819,6 +819,16 @@ For example: | `role` | `DATACONTRACT_SNOWFLAKE_ROLE` | | `connection_timeout` | `DATACONTRACT_SNOWFLAKE_CONNECTION_TIMEOUT` | +##### EV Authentication options + +| Soda optionnal parameter | Environment Variable | +|--------------------------|-------------------------------------------------| +| `authenticator` | `DATACONTRACT_SNOWFLAKE_AUTHENTICATOR` | +| `private_key` | `DATACONTRACT_SNOWFLAKE_PRIVATE_KEY` | +| `private_key_passphrase` | `DATACONTRACT_SNOWFLAKE_PRIVATE_KEY_PASSPHRASE` | +| `private_key_path` | `DATACONTRACT_SNOWFLAKE_PRIVATE_KEY_PATH` | + + Beware, that parameters: * `account` * `database` diff --git a/datacontract/imports/snowflake_importer.py b/datacontract/imports/snowflake_importer.py index 7249316e0..cf822a347 100644 --- a/datacontract/imports/snowflake_importer.py +++ b/datacontract/imports/snowflake_importer.py @@ -26,12 +26,32 @@ def import_source(self, source: str, import_args: dict) -> OpenDataContractStand def import_Snowflake_from_connector(account: str, database: str, schema: str) -> OpenDataContractStandard: ## connect to snowflake and get cursor conn = snowflake_cursor(account, database, schema) - with conn.cursor() as cur: - cur.execute(f"USE SCHEMA {database}.{schema}") + try: + # To catch double_quoted identifier + from snowflake.connector.errors import ProgrammingError + except ImportError as e: + raise DataContractException( + type="schema", + result="failed", + name="snowflake extra missing", + reason="Install the extra datacontract-cli[snowflake] to use snowflake", + engine="datacontract", + original_exception=e, + ) - cur.execute(f"SHOW COLUMNS IN SCHEMA {database}.{schema}") + with conn.cursor() as cur: + + try: + cur.execute(f"USE SCHEMA {database}.{schema}") + schema_identifier = schema + except ProgrammingError: + # schema with double-quoted identifiers issue https://docs.snowflake.com/en/sql-reference/identifiers-syntax#double-quoted-identifiers + cur.execute(f'USE SCHEMA {database}."{schema}"') + schema_identifier = f'"{schema}"' + + cur.execute(f"SHOW COLUMNS IN SCHEMA {database}.{schema_identifier}") schema_sfqid = str(cur.sfqid) - cur.execute(f"SHOW PRIMARY KEYS IN SCHEMA {database}.{schema}") + cur.execute(f"SHOW PRIMARY KEYS IN SCHEMA {database}.{schema_identifier}") businessKey_sfqid = str(cur.sfqid) # -- AS # SET(col, pk) = (SELECT LAST_QUERY_ID(-2), LAST_QUERY_ID(-1));" From c455ac7aabbfe18b8887f03c710e0e1111a67da6 Mon Sep 17 00:00:00 2001 From: dmaresma Date: Wed, 11 Feb 2026 16:40:23 -0500 Subject: [PATCH 24/28] ruff format --- datacontract/imports/snowflake_importer.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/datacontract/imports/snowflake_importer.py b/datacontract/imports/snowflake_importer.py index cf822a347..2cfa1dcbb 100644 --- a/datacontract/imports/snowflake_importer.py +++ b/datacontract/imports/snowflake_importer.py @@ -27,7 +27,7 @@ def import_Snowflake_from_connector(account: str, database: str, schema: str) -> ## connect to snowflake and get cursor conn = snowflake_cursor(account, database, schema) try: - # To catch double_quoted identifier + # To catch double_quoted identifier from snowflake.connector.errors import ProgrammingError except ImportError as e: raise DataContractException( @@ -40,14 +40,13 @@ def import_Snowflake_from_connector(account: str, database: str, schema: str) -> ) with conn.cursor() as cur: - try: cur.execute(f"USE SCHEMA {database}.{schema}") schema_identifier = schema except ProgrammingError: # schema with double-quoted identifiers issue https://docs.snowflake.com/en/sql-reference/identifiers-syntax#double-quoted-identifiers cur.execute(f'USE SCHEMA {database}."{schema}"') - schema_identifier = f'"{schema}"' + schema_identifier = f'"{schema}"' cur.execute(f"SHOW COLUMNS IN SCHEMA {database}.{schema_identifier}") schema_sfqid = str(cur.sfqid) From ffd788600f14034fe23ac7e581129a3b3e40b58e Mon Sep 17 00:00:00 2001 From: dmaresma Date: Fri, 20 Feb 2026 17:10:21 -0500 Subject: [PATCH 25/28] detect snowflake_authenticator in env. variable --- datacontract/imports/snowflake_importer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacontract/imports/snowflake_importer.py b/datacontract/imports/snowflake_importer.py index 2cfa1dcbb..ee8fa39a8 100644 --- a/datacontract/imports/snowflake_importer.py +++ b/datacontract/imports/snowflake_importer.py @@ -350,7 +350,7 @@ def snowflake_cursor(account: str, databasename: str = "DEMO_DB", schema: str = password_connect = os.environ.get("DATACONTRACT_SNOWFLAKE_PASSWORD", None) account_connect = account role_connect = os.environ.get("DATACONTRACT_SNOWFLAKE_ROLE", None) - authenticator_connect = "externalbrowser" if password_connect is None else "snowflake" + authenticator_connect = "externalbrowser" if password_connect is None else os.environ.get("DATACONTRACT_SNOWFLAKE_AUTHENTICATOR", "snowflake") warehouse_connect = os.environ.get("DATACONTRACT_SNOWFLAKE_WAREHOUSE", "COMPUTE_WH") database_connect = databasename or "DEMO_DB" schema_connect = schema or "PUBLIC" From 72ef4f71e4aef86d470d4ca6d2a1094b68a0713e Mon Sep 17 00:00:00 2001 From: dmaresma Date: Fri, 20 Feb 2026 17:10:46 -0500 Subject: [PATCH 26/28] ruff format --- datacontract/imports/snowflake_importer.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/datacontract/imports/snowflake_importer.py b/datacontract/imports/snowflake_importer.py index ee8fa39a8..949c8e9b7 100644 --- a/datacontract/imports/snowflake_importer.py +++ b/datacontract/imports/snowflake_importer.py @@ -350,7 +350,11 @@ def snowflake_cursor(account: str, databasename: str = "DEMO_DB", schema: str = password_connect = os.environ.get("DATACONTRACT_SNOWFLAKE_PASSWORD", None) account_connect = account role_connect = os.environ.get("DATACONTRACT_SNOWFLAKE_ROLE", None) - authenticator_connect = "externalbrowser" if password_connect is None else os.environ.get("DATACONTRACT_SNOWFLAKE_AUTHENTICATOR", "snowflake") + authenticator_connect = ( + "externalbrowser" + if password_connect is None + else os.environ.get("DATACONTRACT_SNOWFLAKE_AUTHENTICATOR", "snowflake") + ) warehouse_connect = os.environ.get("DATACONTRACT_SNOWFLAKE_WAREHOUSE", "COMPUTE_WH") database_connect = databasename or "DEMO_DB" schema_connect = schema or "PUBLIC" From 00d54dadee51d69b9b3b2d5ba5297db13396bec5 Mon Sep 17 00:00:00 2001 From: dmaresma Date: Fri, 13 Mar 2026 16:11:51 -0400 Subject: [PATCH 27/28] remove_unexpect_characters --- datacontract/imports/snowflake_importer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/datacontract/imports/snowflake_importer.py b/datacontract/imports/snowflake_importer.py index 949c8e9b7..c79ee4884 100644 --- a/datacontract/imports/snowflake_importer.py +++ b/datacontract/imports/snowflake_importer.py @@ -224,7 +224,7 @@ def snowflake_query(account: str, schema: str, schema_sfqid: str, businessKey_sf C.schema_name, C.table_name, ARRAY_AGG(OBJECT_CONSTRUCT( - 'id', C."name"||'_propId', + 'id', REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(C."name", ' ', '_'), '(', ''), ')',''),'/','vs'),'.','_'),'&','and') ||'_propId', 'name', C."name", 'required', C.required, 'unique', C."unique", @@ -273,7 +273,7 @@ def snowflake_query(account: str, schema: str, schema_sfqid: str, businessKey_sf SELECT T.table_schema, ARRAY_AGG( OBJECT_CONSTRUCT( - 'id', T."name" ||'_schId', + 'id', REPLACE(T."name", ' ', '_') ||'_schId', 'name',T."name", 'physicalName',T.physical_name, 'logicalType',T.logicalType, From 9318a9be770fb10681cf41dabec9f3d612534782 Mon Sep 17 00:00:00 2001 From: dmaresma Date: Fri, 13 Mar 2026 20:22:50 -0400 Subject: [PATCH 28/28] remove schema --- datacontract/imports/snowflake_importer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacontract/imports/snowflake_importer.py b/datacontract/imports/snowflake_importer.py index c79ee4884..6b535538d 100644 --- a/datacontract/imports/snowflake_importer.py +++ b/datacontract/imports/snowflake_importer.py @@ -210,7 +210,7 @@ def snowflake_query(account: str, schema: str, schema_sfqid: str, businessKey_sf SELECT T.TABLE_SCHEMA as table_schema, T.TABLE_NAME as "name", - UPPER(CONCAT(T.TABLE_SCHEMA,'.',T.TABLE_NAME)) as physical_name, + UPPER(T.TABLE_NAME) as physical_name, NULLIF(coalesce(GET_PATH(TRY_PARSE_JSON(COMMENT),'description'), COMMENT),'') as description, 'object' as logicalType, lower(REPLACE(TABLE_TYPE,'BASE ','')) as physicalType,