id
stringlengths
16
145
text
stringlengths
1
179k
title
stringclasses
1 value
snowflake_docs/commands-table_6_0.txt
External Table ¶
snowflake_docs/soundex_1_0.txt
SOUNDEX ¶ Returns a string that contains a phonetic representation of the input string. You can use this function to determine whether two strings (e.g. the family names ` Levine ` and ` Lavine ` , the words ` to ` and ` too ` , etc.) have similar pronounciations in the English language. This function uses the [...
snowflake_docs/functions-all_23_0.txt
label-data-types-geography) . | | known_text_representation_of_geometry) or [ EWKT (extended well-known text) types-geography) . | | | | known_text_representation_of_geometry
snowflake_docs/connect-by_2_0.txt
Syntax ¶ The general form of a statement with CONNECT BY is similar to the following (some variations in order are allowed, but are not shown): SELECT <column_list> [ , <level_expression> ] FROM <data_source> START WITH <predicate> CONNECT BY [ PRIOR ] <col1_identifier> = [ PRIOR ] <col2_id...
snowflake_docs/create-resource-monitor_0_0.txt
/ 1. Virtual Warehouses 8. Resource Monitors reference/commands-warehouse) CREATE RESOURCE MONITOR
snowflake_docs/truncate-table_3_0.txt
Parameters ¶ ` _ name _ ` Specifies the identifier for the table to truncate. If the identifier contains spaces or special characters, the entire string must be enclosed in double quotes. Identifiers enclosed in double quotes are also case-sensitive (e.g. ` "My Object" ` ). If the table identifier is not fully-qu...
snowflake_docs/array_construct_5_0.txt
Usage Notes ¶ * The data types of the inputs may vary. * If the function is called with ` _ N _ ` arguments, the size of the resulting array will be ` _ N _ ` .
snowflake_docs/collation_15_0.txt
Comparing Uppercase Strings vs. Comparing the Original Strings ¶ In some languages, two lowercase characters have the same corresponding uppercase character. For example, some languages support both dotted and undotted forms of lowercase ` I ` ( ` i ` vs. ` ı ` ). Forcing the strings to uppercase affects comparis...
snowflake_docs/try_hex_decode_binary_4_0.txt
Returns ¶ A ` BINARY ` value that can, for example, be inserted into a column of type ` BINARY ` .
snowflake_docs/desc-network-rule_9_0.txt
Usage notes ¶
snowflake_docs/drop-packages-policy_3_0.txt
Parameters ¶ ` _ name _ ` Specifies the identifier for the packages policy to drop. If the identifier contains spaces or special characters, the entire string must be enclosed in double quotes. Identifiers enclosed in double quotes are also case-sensitive.
snowflake_docs/explain_json_4_0.txt
Returns ¶ The function returns a table containing the EXPLAIN output as an ordered set of rows. The output of this function is equivalent to the output of ` EXPLAIN USING TABULAR <sql_statement> ` .
snowflake_docs/system_get_job_logs_4_0.txt
Arguments ¶ **Required:** ` _ job_uuid _ ` Snowflake-assigned UUID of the job. See [ Usage Notes in the EXECUTE SERVICE instructions on finding the UUID. ` _ container_name _ ` Container name as specified in the job specification file. **Optional:** ` _ number_of_most_recent_lines _ ` Number of most recent log li...
snowflake_docs/show-network-policies_4_0.txt
Examples ¶ List all network policies: > > SHOW NETWORK POLICIES; > > > Copy > > > > +-------------------------------+----------+---------+----------------------------+----------------------------+ > | created_on | name | comment | > entries_in_allowed_ip_list | entries_in_blocked...
snowflake_docs/session_policies_0_0.txt
/ Schema:
snowflake_docs/round_2_0.txt
Syntax ¶ ROUND( <input_expr> [ , <scale_expr> [ , <rounding_mode> ] ] ) Copy ROUND( EXPR => <input_expr> , SCALE => <scale_expr> [ , ROUNDING_MODE => <rounding_mode> ] ) Copy
snowflake_docs/system_explain_json_to_text_6_1.txt
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ >> >> >> Copy > > After you have stored the JSON in a table, you can pass the JSON to the > SYSTEM$EXPLAIN_JSON_TO_...
snowflake_docs/h3_cell_to_point_1_0.txt
H3_CELL_TO_POINT ¶ geography) object representing the Point that is the centroid of an [ H3 See also:
snowflake_docs/commands-account_1_0.txt
Account Commands ¶ Account commands enable you to manage your account.
snowflake_docs/alter-role_6_0.txt
Examples ¶ Rename role ` role1 ` to ` role2 ` : > > ALTER ROLE role1 RENAME TO role2; > > > Copy Add a comment for role ` myrole ` : > > ALTER ROLE myrole SET COMMENT = 'New comment for role'; > > > Copy Was this page helpful? Yes No Inc. All Rights Reserved . On this page 1. Syntax 2. Paramet...
snowflake_docs/alter-table_5_0.txt
Table Column Actions ( ` tableColumnAction ` ) ¶ ` ADD [ COLUMN ] [ IF NOT EXISTS ] _ col_name _ _ col_data_type _ ` . ` [ DEFAULT _ default_value _ | AUTOINCREMENT ... ] ` . ` [ _ inlineConstraint _ ] ` ` [ COLLATE ' _ collation_specification _ ' ] ` . ` [ [ WITH ] MASKING POLICY...
snowflake_docs/materialized_view_refresh_history_0_0.txt
/ 24. Legacy Views Schema:
snowflake_docs/st_union_6_0.txt
Examples ¶ The following example returns a GEOGRAPHY object that represents the union of two input GEOGRAPHY objects: > > ALTER SESSION SET GEOGRAPHY_OUTPUT_FORMAT = 'WKT'; > > SELECT ST_UNION( > TO_GEOGRAPHY('POLYGON((0 0, 1 0, 2 1, 1 2, 2 3, 1 4, 0 4, 0 0))'), > TO_GEOGRAPHY('POLYGON((3 0, 3 ...
snowflake_docs/as_object_0_0.txt
/ 1. JSON and XML Parsing 9. Array/Object Creation and Manipulation 43. Map Creation and Manipulation 51. Extraction 58. Conversion/Casting 82. Type Predicates Categories: semistructured) (Cast)
snowflake_docs/is_integer_1_0.txt
IS_INTEGER ¶ Returns TRUE if its VARIANT argument contains an integer value. See also:
snowflake_docs/alter-masking-policy_1_0.txt
ALTER MASKING POLICY ¶ This feature requires Enterprise Edition (or higher). To inquire about upgrading, please contact [ Snowflake Support Snowflake-Lodge) . Replaces the existing masking policy rules with new rules or a new comment and allows the renaming of a masking policy. Any changes made to the policy rules g...
snowflake_docs/desc-network-rule_4_0.txt
Output ¶ The command output provides network rule properties and metadata in the following columns: Column | Description ---|--- ` created_on ` | Date and time when the network rule was created. ` name ` | Name of the network rule. ` database_name ` | Database that contains the schema in which the network...
snowflake_docs/show-application-roles_2_0.txt
Syntax ¶ SHOW APPLICATION ROLES IN APPLICATION <name> [ LIKE <pattern> ] [ LIMIT <rows> [ FROM '<name_string>' ] ] Copy
snowflake_docs/date_from_parts_2_0.txt
Syntax ¶ DATE_FROM_PARTS( <year>, <month>, <day> ) Copy
snowflake_docs/create-alert_2_0.txt
Syntax ¶ CREATE [ OR REPLACE ] ALERT [ IF NOT EXISTS ] <name> WAREHOUSE = <warehouse_name> SCHEDULE = '{ <num> MINUTE | USING CRON <expr> <time_zone> }' COMMENT = '<string_literal>' [ [ WITH ] TAG ( <tag_name> = '<tag_value>' [ , <tag_name> = '<tag_value>' , ... ] ) ] IF( EXISTS( ...
snowflake_docs/drop-model_0_0.txt
/ 1. Models 6. Versions MODEL
snowflake_docs/tag_references_4_0.txt
Usage notes ¶ * Results are only returned for a role that has access to the specified object. intro.html
snowflake_docs/alter-secret_6_0.txt
Generic string parameters ¶ ` _ name _ ` String that specifies the identifier (i.e. name) for the secret, must be unique in your schema. ` SET ... ` Specifies one (or more) parameters to set (separated by blank spaces, commas, or new lines). ` SECRET_STRING = ' _ string_literal _ ' ` Specifies the string to ...
snowflake_docs/create-application-package_10_0.txt
Examples ¶ CREATE APPLICATION PACKAGE hello_snowflake_package; Copy +-----------------------------------------------------------------------+ | status | |-----------------------------------------------------------------------| | Appli...
snowflake_docs/alter-table_8_0.txt
Data Governance policy and tag actions ( ` dataGovnPolicyTagAction ` ) ¶ ` TAG _ tag_name _ = ' _ tag_value _ ' [ , _ tag_name _ = ' _ tag_value _ ' , ... ] ` string value. The tag value is always a string, and the maximum number of characters for the tag value is 256. For information about specifyi...
snowflake_docs/drop-external-volume_2_0.txt
Syntax ¶ DROP EXTERNAL VOLUME [ IF EXISTS ] <name> Copy
snowflake_docs/grant-application-role_2_0.txt
Syntax ¶ GRANT APPLICATION ROLE <name> TO { ROLE <parent_role_name> | APPLICATION ROLE <application_role> | APPLICATION <application_name>} Copy
snowflake_docs/create-dynamic-table_9_0.txt
label-security-custom-role) . For general information about roles and privilege grants for performing SQL overview.html
snowflake_docs/system_cancel_all_queries_5_0.txt
Examples ¶ SELECT SYSTEM$CANCEL_ALL_QUERIES(1065153872298); +------------------------------------------+ | SYSTEM$CANCEL_ALL_QUERIES(1065153872298) | |------------------------------------------| | 1 cancelled. | +------------------------------------------+ Copy For...
snowflake_docs/any_value_4_0.txt
Using ANY_VALUE with GROUP BY Statements ¶ ANY_VALUE can simplify and optimize the performance of [ GROUP BY that the result of a query with a GROUP BY clause can only contain expressions used in the GROUP BY clause itself, or results of aggregate functions. For example: SELECT customer.id , customer.name , SUM(...
snowflake_docs/date-time-input-output_12_0.txt
Date Formats ¶ For descriptions of the elements used in the formats below, see About the Elements Used in Input and Output Formats . Format | Example | Notes ---|---|--- **ISO Date Formats** | | ` YYYY-MM-DD ` | ` 2013-04-28 ` | **Other Date Formats** | | ` DD-MON-YYYY ` | ` 17-DEC-1980 ` | ` MM/...
snowflake_docs/show-alerts_8_0.txt
label-access-control-securable-objects) , see [ Overview of
snowflake_docs/with_7_0.txt
Limitations ¶ * The Snowflake implementation of recursive CTEs does not support the following keywords that some other systems support: * ` SEARCH DEPTH FIRST BY ... ` * ` CYCLE ... SET ... `
snowflake_docs/chr_4_0.txt
Returns ¶ The data type of the returned value is VARCHAR.
snowflake_docs/create-custom-classifier_5_0.txt
Arguments ¶ None.
snowflake_docs/pivot_0_0.txt
/ Categories:
snowflake_docs/system_get_cmk_akv_consent_url_0_0.txt
/ 1. Control 29. Information 90. Query Information SYSTEM$GET_CMK_AKV_CONSENT_URL Categories:
snowflake_docs/st_length_10_0.txt
GEOMETRY Examples ¶ The following example demonstrates how to use the ST_LENGTH function. > > SELECT ST_LENGTH(g), ST_ASWKT(g) > FROM (SELECT TO_GEOMETRY(column1) AS g > FROM VALUES ('POINT(1 1)'), > ('LINESTRING(0 0, 1 1)'), > ('POLYGON((0 0, 0 1, 1 1, 1 0, 0 0))'))...
snowflake_docs/extract_semantic_categories_0_0.txt
/ 1. Control 29. Information 90. Query Information EXTRACT_SEMANTIC_CATEGORIES Categories:
snowflake_docs/sha2_binary_5_0.txt
Usage Notes ¶ * Do not use this function to encrypt a message that you need to decrypt. This function has no corresponding decryption function. (The length of the output is independent of the length of the input. The output does not necessarily have enough bits to hold all of the information from the input, so it ...
snowflake_docs/ilike_any_5_0.txt
Returns ¶ Returns a BOOLEAN or NULL. The value is TRUE if there is a match. Otherwise, returns FALSE. Returns NULL if any argument is NULL.
snowflake_docs/least_3_0.txt
Arguments ¶ ` _ expr _ ` The arguments must include at least one expression. All the expressions should be of the same type or compatible types.
snowflake_docs/create-packages-policy_7_0.txt
label-security-custom-role) . For general information about roles and privilege grants for performing SQL overview.html
snowflake_docs/st_xmin_3_0.txt
Arguments ¶ ` _ geography_or_geometry_expression _ ` The argument must be an expression of type GEOGRAPHY or GEOMETRY.
snowflake_docs/ntile_2_0.txt
Syntax ¶ NTILE( <constant_value> ) OVER ( [ PARTITION BY <expr1> ] ORDER BY <expr2> [ { ASC | DESC } ] ) Copy
snowflake_docs/create-hybrid-table_8_0.txt
Use Included Columns ¶ Using included columns with a secondary index can be particularly useful when you have frequent queries where a set of columns is present in the projection list but not in the list of predicates. For example: -- Create the employee table with a covering index CREATE HYBRID TABLE employ...
snowflake_docs/bitxor_5_0.txt
Usage Notes ¶ * If the data type of either argument is numeric but not ` INTEGER ` (e.g. FLOAT, DECIMAL, etc.), then the argument is cast to ` INTEGER ` . * If the data type of either argument is a string (e.g. ` VARCHAR ` ), then the argument is cast to ` INTEGER ` if possible. For example, the string ‘12....
snowflake_docs/hex_encode_2_0.txt
Syntax ¶ HEX_ENCODE(<input> [, <case>]) Copy
snowflake_docs/object_pick_4_0.txt
Returns ¶ Returns a new OBJECT containing the specified key-value pairs.
snowflake_docs/system_authorize_stage_privatelink_access_6_0.txt
Examples ¶ Authorize Snowflake to access the Private Endpoint in Azure: > > use role accountadmin; > > select > SYSTEM$AUTHORIZE_STAGE_PRIVATELINK_ACCESS('/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateEndpoints/pe1'); > > > Copy Was this page helpful? Yes No Inc. All Rights...
snowflake_docs/drop-sequence_1_0.txt
DROP SEQUENCE ¶ Removes a sequence from the current/specified schema. See also:
snowflake_docs/xmlget_8_0.txt
Examples ¶ The following example creates a table with an OBJECT that contains XML, then uses XMLGET() to extract elements from that OBJECT. CREATE TABLE xml_demo (ID INTEGER, object_col OBJECT); INSERT INTO xml_demo (id, object_col) SELECT 1001, PARSE_XML('<level1> 1 <level2> 2 <level3> 3...
snowflake_docs/system_get_cmk_kms_key_policy_1_0.txt
SYSTEM$GET_CMK_KMS_KEY_POLICY ¶ Returns an ARRAY containing a snippet of the AWS Key Management Service policy information related to customer-managed keys for use with Tri-Secret Secure for Snowflake accounts on Amazon Web Services. See also: guide/security-encryption-manage)
snowflake_docs/st_transform_3_0.txt
Syntax ¶ ST_TRANSFORM( <geometry_expression> [ , <from_srid> ] , <to_srid> ); Copy
snowflake_docs/data-types-text_9_0.txt
VARBINARY ¶ VARBINARY is synonymous with BINARY.
snowflake_docs/greatest_2_0.txt
Syntax ¶ GREATEST( <expr1> [ , <expr2> ... ] ) Copy
snowflake_docs/undrop-table_3_0.txt
Parameters ¶ ` _ name _ ` Specifies the identifier for the table to restore. If the identifier contains spaces or special characters, the entire string must be enclosed in double quotes. Identifiers enclosed in double quotes are also case-sensitive.
snowflake_docs/create-tag_8_0.txt
label-security-custom-role) . For general information about roles and privilege grants for performing SQL overview.html
snowflake_docs/is_char-varchar_2_0.txt
Syntax ¶ IS_CHAR( <variant_expr> ) IS_VARCHAR( <variant_expr> ) Copy
snowflake_docs/element_types_1_0.txt
ELEMENT_TYPES View ¶ available to all accounts. This Information Schema view displays a row for each [ structured ARRAY type specified (or current) database. Each row describes the type of the element in the structured ARRAY.
snowflake_docs/st_geographyfromwkt_1_0.txt
ST_GEOGRAPHYFROMWKT ¶ known_text_representation_of_geometry) or [ EWKT (extended well-known text) data-types-geography) . Aliases: ST_GEOGFROMWKT , ST_GEOGRAPHYFROMEWKT , ST_GEOGFROMEWKT , ST_GEOGRAPHYFROMTEXT , ST_GEOGFROMTEXT See also:
snowflake_docs/drop-pipe_3_0.txt
Parameters ¶ ` _ name _ ` Specifies the identifier for the pipe to drop. If the identifier contains spaces or special characters, the entire string must be enclosed in double quotes. Identifiers enclosed in double quotes are also case-sensitive.
snowflake_docs/alter-security-integration-api-auth_1_0.txt
ALTER SECURITY INTEGRATION (External API Authentication) ¶ Modifies the properties of an existing security integration created for External API Authentication. For information about modifying other types of security integrations (e.g. integration) . See also: integrations)
snowflake_docs/create-service_5_0.txt
label-working-with-services-jobs-egress) . ` AUTO_RESUME = { TRUE | FALSE } ` Specifies whether to automatically resume a service when a service function or ingress is called. * If AUTO_RESUME is TRUE, Snowflake resumes the suspended service when a service function is called or when a request is received (ingr...
snowflake_docs/system_allowlist_0_0.txt
/ 1. Control 29. Information 90. Query Information SYSTEM$ALLOWLIST Categories:
snowflake_docs/try_decrypt_0_0.txt
/ encryption) TRY_DECRYPT Categories:
snowflake_docs/create-external-function_11_0.txt
Examples ¶ The following example shows a CREATE EXTERNAL FUNCTION statement that is called through an Amazon API Gateway proxy service: CREATE OR REPLACE EXTERNAL FUNCTION local_echo(string_col VARCHAR) RETURNS VARIANT API_INTEGRATION = demonstration_external_api_integration_01 AS 'https://xyz....
snowflake_docs/extract_semantic_categories_6_0.txt
label-classification-system-tags) and [ System tags system-tags) . ` privacy_category ` Specifies the privacy category tag value. The possible values are ` IDENTIFIER ` , ` QUASI-IDENTIFIER ` and ` SENSITIVE ` . ` confidence ` Specifies one of the following values: ` HIGH ` , ` MEDIUM ` , or ` LOW ` . This valu...
snowflake_docs/validate_0_0.txt
/ 1. Data Loading 4. Data Generation 6. Data Conversion 9. ML-Powered Analysis 11. Object Modeling 13. Semi-Structured Queries 15. Query Results 17. Query Profile 19. User Login 22. Queries 26. Wareho...
snowflake_docs/create-iceberg-table_10_0.txt
Required parameters ¶ ` _ table_name _ ` Specifies the identifier (name) for the table; must be unique for the schema in which the table is created. In addition, the identifier must start with an alphabetic character and cannot contain spaces or special characters unless the entire identifier string is enclosed in ...
snowflake_docs/sin_2_0.txt
Syntax ¶ SIN( <real_expr> ) Copy
snowflake_docs/show-privileges_1_0.txt
SHOW PRIVILEGES ¶ Available to all accounts. Lists the privileges granted to an application.
snowflake_docs/show-databases-in-replication-group_2_0.txt
Syntax ¶ SHOW DATABASES IN REPLICATION GROUP <name> Copy
snowflake_docs/truncate-materialized-view_1_0.txt
TRUNCATE MATERIALIZED VIEW ¶ Snowflake no longer supports truncation of materialized views. If you have an existing materialized view that you want to truncate, but not drop, the closest alternative is: > ` CREATE OR REPLACE ` ` MATERIALIZED VIEW <name> ` ` COPY GRANTS ... > ` The CREATE OR REPLACE MATERIALIZ...
snowflake_docs/nth_value_5_0.txt
Examples ¶ SELECT column1, column2, NTH_VALUE(column2, 2) OVER (PARTITION BY column1 ORDER BY column2) AS column2_2nd FROM VALUES (1, 10), (1, 11), (1, 12), (2, 20), (2, 21), (2, 22); +---------+---------+-------------+ | COLUMN1 | COLUMN2 | COLUMN2_2ND | |...
snowflake_docs/show-row-access-policies_8_0.txt
Usage notes ¶ * The command does not require a running warehouse to execute. * The value for ` LIMIT _ rows _ ` cannot exceed ` 10000 ` . If ` LIMIT _ rows _ ` is omitted, the command results in an error if the result set is larger than 10K rows. To view results for which more than 10K records exist, eith...
snowflake_docs/alter-failover-group_7_0.txt
label-replication-stored-procedures-udfs) . >> >> Note >> >> External access is not supported in the Gov region. >> >> NOTIFICATION INTEGRATIONS : >> >> >> Specifies notification integrations. >> >> Only some types of notification integrations are replicated. For details, intro.html
snowflake_docs/st_distance_3_0.txt
Syntax ¶ ST_DISTANCE( <geography_or_geometry_expression_1> , <geography_or_geometry_expression_2> ) Copy
snowflake_docs/functions-conversion_0_0.txt
/ 1. Any Data Type 4. Text, Character, Binary Data Types 9. Numeric Data Types 18. Boolean Data Types 21. Date and Time Data Types 36. Semi-Structured Data Types 40. Geospatial Data Types
snowflake_docs/functions-analytic_17_0.txt
Rank-related Window Function Syntax and Usage ¶
snowflake_docs/alter-session_3_0.txt
Parameters ¶ ` SET ... ` Specifies one (or more) parameters to set for the session (separated by blank spaces, commas, or new lines). For descriptions of each of the parameters you can set for a session, see [ ` UNSET ... ` Specifies one (or more) parameters to unset for the session, which resets them to the def...
snowflake_docs/base64_encode_6_0.txt
label-base64-format) .
snowflake_docs/copy_history_5_0.txt
Output ¶ The function returns the following columns: Column Name | Data Type | Description ---|---|--- FILE_NAME | TEXT | Name of the source file and relative path to the file. STAGE_LOCATION | TEXT | Name of the stage where the source file is located. LAST_LOAD_TIME | TIMESTAMP_LTZ | Date and time of when t...
snowflake_docs/listing-auto-fulfillment-refresh-daily_2_0.txt
Columns ¶ Column Name | Data Type | Description ---|---|--- REGION_GROUP | VARCHAR | groups) where the data refresh occurred. SNOWFLAKE_REGION | VARCHAR | snowflake-region-ids) where the data refresh occurred. USAGE_DATE | DATE | Date in UTC when the refresh was performed. FULFILLMENT_GROUP_NAME | VARCHAR ...
snowflake_docs/alter-stage_5_1.txt
TS) and consist of > three components: > >> * ` AWS_KEY_ID ` >> >> * ` AWS_SECRET_KEY ` >> >> * ` AWS_TOKEN ` > > All three are required to access a private bucket. After a designated > period of time, temporary credentials expire and can no longer be used. You > must then generate a new set of valid t...
snowflake_docs/copy-into-location_4_0.txt
Additional cloud provider parameters ¶ ` STORAGE_INTEGRATION = _ integration_name _ ` or . ` CREDENTIALS = ( _ cloud_specific_credentials _ ) ` Supported when the COPY statement specifies an external storage URI rather than an external stage name for the target cloud storage location. Specifies the securit...
snowflake_docs/drop-masking-policy_4_0.txt
Access control requirements ¶ access-control-overview-roles) used to execute this SQL command must have the overview.html
snowflake_docs/break_0_0.txt
/ snowflake-scripting) BREAK
snowflake_docs/desc-application_4_0.txt
Output ¶ The command provides properties of an application object in the following columns: Column | Description ---|--- ` property ` | The name of the property of the application object. This column can include the properties listed in the following table. ` value ` | The value assigned to the property of t...
snowflake_docs/remaining_balance_daily_2_0.txt
Columns ¶ Column Name | Data Type | Description ---|---|--- ORGANIZATION_NAME | VARCHAR | Name of the organization. CONTRACT_NUMBER | VARCHAR | Contract number for the organization. DATE | DATE | The date of the FREE_USAGE_BALANCE or CAPACITY_BALANCE in the UTC time zone. CURRENCY | VARCHAR | The currency ...