id
stringlengths
16
145
text
stringlengths
1
179k
title
stringclasses
1 value
snowflake_docs/policy_references_3_0.txt
Arguments ¶ ` POLICY_NAME => ' _ string _ ' ` Specifies the policy name. * The entire policy name must be enclosed in single quotes. * If the policy name is case-sensitive or includes any special characters or spaces, double quotes are required to process the case/characters. The double quotes must be enclo...
snowflake_docs/create-database_11_0.txt
General Usage Notes ¶ * If a database with the same name already exists, an error is returned and the database is not created, unless the optional ` OR REPLACE ` keyword is specified in the command. Important database) on the existing database and then creating a new database with the same name; however, the dr...
snowflake_docs/get_query_operator_stats_19_0.txt
Identifying “Exploding” Join Operators ¶ The following example shows how to use GET_QUERY_OPERATOR_STATS to examine a complicated query. This example looks for operators within a query that produce many more rows than were input to that operator. This is the query to be analyzed: select * from t1 joi...
snowflake_docs/forecast_29_0.txt
Examples ¶ forecasting-examples) . Was this page helpful? Yes No Inc. All Rights Reserved . On this page 1. CREATE SNOWFLAKE.ML.FORECAST 2. SHOW SNOWFLAKE.ML.FORECAST 3. DROP SNOWFLAKE.ML.FORECAST 4. <name>!FORECAST 5. <name>!EXPLAIN_FEATURE_IMPORTANCE 6. <name>!SHOW_EVALUATION_METRICS 7. <nam...
snowflake_docs/collate_6_0.txt
Examples ¶ The following example shows that calling the ` COLLATE ` function returns a copy of the string with a different collation specification. > Create the table and insert a row. The collation specification of the value > in the inserted row is ‘sp’ (Spanish). > >> >> CREATE TABLE collation1 (v VARCHAR CO...
snowflake_docs/drop-stage_0_0.txt
/ 1. Stage 7. File Format 13. External Volume 20. Pipe 26. Snowpipe Streaming 28. Loading and Unloading loading) DROP STAGE
snowflake_docs/create-external-table_5_0.txt
label-create-table-copy-grants) in this document.
snowflake_docs/create-task_14_0.txt
Access control requirements ¶ access-control-overview-roles) used to execute this SQL command must have the overview.html
snowflake_docs/create-stage_29_1.txt
e.windows.net/load/files/' > STORAGE_INTEGRATION = myint; > > > Copy > > Create an external stage using an Azure storage account named ` myaccount ` > and a container named ` mycontainer ` with a folder path named ` files ` > and client-side encryption enabled. The stage references a file format named > ` my...
snowflake_docs/current_version_1_0.txt
CURRENT_VERSION ¶ Returns the current Snowflake version. See also:
snowflake_docs/h3_latlng_to_cell_5_0.txt
Usage Notes ¶ * Specifying NaN or Inf values for any input argument results in an error.
snowflake_docs/storage_usage_1_0.txt
STORAGE_USAGE View ¶ This Account Usage view displays the average daily data storage usage, in bytes, within the last 365 days (1 year) across the entire account, including data in: * Database tables. * Files in all internal stages. See also:
snowflake_docs/alter_0_0.txt
/
snowflake_docs/create-security-integration-oauth-snowflake_6_0.txt
Optional parameters (all OAuth clients) ¶ ` ENABLED = { TRUE | FALSE } ` Specifies whether to initiate operation of the integration or suspend it. * ` TRUE ` enables the integration. * ` FALSE ` disables the integration for maintenance. Any integration between Snowflake and a third-party service fails ...
snowflake_docs/alter-materialized-view_2_0.txt
Syntax ¶ ALTER MATERIALIZED VIEW <name> { RENAME TO <new_name> | CLUSTER BY ( <expr1> [, <expr2> ... ] ) | DROP CLUSTERING KEY | SUSPEND RECLUSTER | RESUME RECLUSTER | SUSPEND ...
snowflake_docs/alter-view_9_0.txt
label-security-row-policy-refs) . > > alter view v1 > add row access policy rap_v1 on (empl_id); > > > Copy The following example drops a row access policy from a view. Verify the guide/security-row-intro.html
snowflake_docs/from_4_0.txt
Inline View Clause ¶ ` [ LATERAL ] ( _ subquery _ ) ` Specifies an inline view within the FROM clause. If the optional ` LATERAL ` keyword is used, then the ` _ subquery _ ` can refer to columns from other tables (or views or table functions) that are in the current FROM clause and to the left of the inline ...
snowflake_docs/array_max_2_0.txt
Syntax ¶ ARRAY_MAX( <array> ) Copy
snowflake_docs/to_array_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:
snowflake_docs/create-budget_6_0.txt
label-access-control-overview-roles) used to execute this SQL guide/security-access-control-overview.html
snowflake_docs/drop-integration_3_0.txt
Parameters ¶ ` _ name _ ` Specifies the identifier for the integration to drop. If the identifier contains spaces, special characters, or mixed-case characters, the entire string must be enclosed in double quotes. Identifiers enclosed in double quotes are also case-sensitive (e.g. ` "My Object" ` ). ` API | CAT...
snowflake_docs/functions-all_2_0.txt
label-data-type-array) and the values specified by another input ARRAY. | | This family of functions can be used to perform strict casting of VARIANT values to other data types. | | Casts a VARIANT value to an array. | | Casts a VARIANT value to a binary string. | | Casts a VARIANT value to a BOOLEAN value. | | Casts a...
snowflake_docs/create-managed-account_8_0.txt
label-security-custom-role) . For general information about roles and privilege grants for performing SQL overview.html
snowflake_docs/like_all_8_0.txt
label-manage-bcr-enable-bundle) . To enable this bundle in your account, execute the following statement: SELECT SYSTEM$ENABLE_BEHAVIOR_CHANGE_BUNDLE('2024_02'); Copy
snowflake_docs/create-stage_4_0.txt
Optional parameters ¶ ` { TEMP | TEMPORARY } ` Specifies that the stage created is temporary and will be dropped at the end of the session in which it was created. Note: * When a temporary _external_ stage is dropped, only the stage itself is dropped; the data files are not removed. * When a temporary _int...
snowflake_docs/desc-network-rule_6_0.txt
label-access-control-overview-privileges) at a minimum: Privilege | Object | Notes ---|---|--- OWNERSHIP | Network Rule | OWNERSHIP is a special privilege on an object that is automatically granted to the role that created the object, but can also be transferred using the [ role (or any role with the MANAGE GRANTS ...
snowflake_docs/ceil_2_0.txt
Syntax ¶ CEIL( <input_expr> [, <scale_expr> ] ) Copy
snowflake_docs/execute-task_3_0.txt
Syntax ¶ EXECUTE TASK <name> EXECUTE TASK <name> RETRY LAST Copy
snowflake_docs/show-warehouses_4_0.txt
Usage Notes ¶ * Columns that start with the prefix ` is_ ` return either ` Y ` (yes) or ` N ` (no). * The command does not require a running warehouse to execute. * The command returns a maximum of 10K records for the specified object type, as dictated by the access privileges for the role used to execu...
snowflake_docs/system_task_dependents_enable_1_0.txt
SYSTEM$TASK_DEPENDENTS_ENABLE ¶ Recursively resumes a specified task and all its dependent tasks. This intro.html
snowflake_docs/classes_4_0.txt
Examples ¶ The following example finds all classes in the account: SELECT name, database_name, schema_name FROM SNOWFLAKE.ACCOUNT_USAGE.CLASSES; Copy Was this page helpful? Yes No Inc. All Rights Reserved . On this page 1. Columns 2. Usage Notes 3. Examples Related content Language : **Englis...
snowflake_docs/create-iceberg-table_8_0.txt
CREATE ICEBERG TABLE … LIKE ¶ Creates a new table with the same column definitions as an existing table, but without copying data from the existing table. Column names, types, defaults, and constraints are copied to the new table: > > CREATE [ OR REPLACE ] ICEBERG TABLE <table_name> LIKE <source_table> > [...
snowflake_docs/create-failover-group_12_0.txt
| | | ____ month (1-12, JAN-DEC)
snowflake_docs/last_query_id_2_0.txt
Syntax ¶ LAST_QUERY_ID( [ <num> ] ) Copy
snowflake_docs/data-types-semistructured_17_0.txt
Characteristics of an ARRAY ¶ Each value in a semi-structured ARRAY is of type VARIANT . (A VARIANT can contain a value of any other data type.) Values of other data types can be cast to VARIANT and then stored in an array. Some functions for ARRAYs, including [ ARRAY_CONSTRUCT values to VARIANT for you. Because A...
snowflake_docs/sql-all_12_2.txt
including the creation date, database and schema names, owner, and any available comments. | system. | Lists shares in a failover group. | Lists shares in a replication group. | Lists all the stages for which you have access privileges. | Lists the Streamlit objects for which you have access privileges. | ...
snowflake_docs/as_double-real_2_0.txt
Syntax ¶ AS_DOUBLE( <variant> ) AS_REAL( <variant> ) Copy
snowflake_docs/summarize-snowflake-cortex_0_0.txt
/ 1. General Manipulation 34. Case Conversion 38. Regular Expression Matching 48. Other Matching/Comparison 66. Compression/Decompression 70. Encoding/Decoding 81. Cryptographic/Checksum 93. Hash (Non-cryptographic) 96. Co...
snowflake_docs/desc-task_2_0.txt
Syntax ¶ DESC[RIBE] TASK <name> Copy
snowflake_docs/create-budget_9_0.txt
label-security-custom-role) . For general information about roles and privilege grants for performing SQL control-overview.html
snowflake_docs/get_query_operator_stats_4_0.txt
Syntax ¶ GET_QUERY_OPERATOR_STATS( <query_id> ) Copy
snowflake_docs/order-by_3_0.txt
Usage Notes ¶ * All data is sorted according to the numeric byte value of each character in the ASCII table. UTF-8 encoding is supported. * For numeric values, leading zeros before the decimal point and trailing zeros ( ` 0 ` ) after the decimal point have no effect on sort order. * Unless specified otherwi...
snowflake_docs/sign_2_0.txt
Syntax ¶ SIGN( <expr> ) Copy
snowflake_docs/system_internal_stages_public_access_status_1_0.txt
SYSTEM$INTERNAL_STAGES_PUBLIC_ACCESS_STATUS ¶ This function requires Business Critical (or higher). To inquire about upgrading, please contact [ Snowflake Support Snowflake-Lodge) . Checks to see whether public IP addresses are allowed to access the internal stage of the current Snowflake account on Microsoft Azure....
snowflake_docs/ternary-logic_6_0.txt
IFF Behavior ¶ logic. Given a BOOLEAN column ` C ` : If ` C ` is: | ` IFF(C, e1, e2) ` evaluates to: ---|--- TRUE | ` e1 ` FALSE | ` e2 ` NULL | ` e2 `
snowflake_docs/variance_1_0.txt
VARIANCE , VARIANCE_SAMP ¶ Returns the sample variance of non-NULL records in a group. If all records inside a group are NULL, a NULL is returned. Aliases:
snowflake_docs/var_samp_6_0.txt
Examples ¶ This example shows how to use the ` VAR_SAMP ` function: > Create and fill a table: > >> >> create table aggr(k int, v decimal(10,2), v2 decimal(10, 2)); >> insert into aggr values >> (1, 10, null), >> (2, 10, 11), >> (2, 20, 22), >> (2, 25, null), >> (2, 30, 35...
snowflake_docs/drop-row-access-policy_4_0.txt
Access control requirements ¶ access-control-overview-roles) used to execute this SQL command must have the overview.html
snowflake_docs/sql-format-models_17_0.txt
Text-minimal Format Elements ¶ The following table lists the supported elements for text-minimal formats. Note the following: * No elements can be repeated within a text-minimal format string. * The **Case-sensitive** column indicates elements where the case of the element affects the format. For example: ...
snowflake_docs/create-task_11_0.txt
| | | | |
snowflake_docs/show-compute-pools_9_0.txt
label-spcs-working-with-compute-pool-lifecycle) . ` min_nodes ` | Minimum number of nodes in the compute pool. ` max_nodes ` | Maximum number of nodes in the compute pool. ` instance_family ` | Machine type of nodes in the compute pool. ` num_services ` | Number of services running on the compute pool. ` ...
snowflake_docs/get_linked_resources_5_0.txt
Usage Notes ¶ This method can only be called on _custom budget_ instances.
snowflake_docs/create-index_4_0.txt
Parameters ¶ ` _ index_name _ ` Specifies the identifier for the new index. The name must be unique for the hybrid table for which the index is created. No other secondary index with either the same name or on the same ordered set of columns can exist on the hybrid table. ` _ table_name _ ` Specifies the name of a...
snowflake_docs/minhash_combine_2_0.txt
Syntax ¶ MINHASH_COMBINE( [ DISTINCT ] <state> ) Copy
snowflake_docs/invoker_share_4_0.txt
Usage Notes ¶ * Use the INVOKER_SHARE function in a policy that is attached to a table or view that is directly invoked by a share.
snowflake_docs/st_endpoint_2_0.txt
Syntax ¶ ST_ENDPOINT( <geography_or_geometry_expression> ) Copy
snowflake_docs/parameters_104_0.txt
TRANSACTION_DEFAULT_ISOLATION_LEVEL ¶ Type : Session — Can be set for Account » User » Session Data Type : String Description : Specifies the isolation level for transactions in the user session. Values : ` READ COMMITTED ` (only currently-supported value) Default : ` READ COMMITTED `
snowflake_docs/show-grants_4_0.txt
label-update-search-path) , specify the fully-qualified name of the class. For example, ` SNOWFLAKE.CORE.BUDGET ` . For details, see the instance role example . ` ROLE _ role_name _ ` Lists all privileges and roles granted to the role. If the role has a grant on a temporary object, then the grant only exists in th...
snowflake_docs/repeat_2_0.txt
Syntax ¶ REPEAT(<input>, <n>) Copy
snowflake_docs/alter-database_8_0.txt
label-account-replication-feature-availability) and [ replicated-objects) , refer to [ Introduction to replication and failover * Only account administrators (users with the ACCOUNTADMIN role) can enable and manage database replication and failover. Note that there is currently no default size limit applied to subse...
snowflake_docs/show-locks_0_0.txt
/
snowflake_docs/like_any_3_0.txt
Arguments ¶ **Required:** ` _ subject _ ` The string to compare to the pattern(s). ` _ pattern
snowflake_docs/show-failover-groups_2_0.txt
Syntax ¶ SHOW FAILOVER GROUPS [ IN ACCOUNT <account> ] Copy
snowflake_docs/rpad_0_0.txt
/ 1. General Manipulation 34. Case Conversion 38. Regular Expression Matching 48. Other Matching/Comparison 66. Compression/Decompression 70. Encoding/Decoding 81. Cryptographic/Checksum 93. Hash (Non-cryptographic) 96. Co...
snowflake_docs/ilike_3_0.txt
Arguments ¶ **Required:** ` _ subject _ ` Subject to match. ` _ pattern _ ` Pattern to match. **Optional:** ` _ escape _ ` Character(s) inserted in front of a wildcard character to indicate that the wildcard should be interpreted as a regular character and not as a wildcard.
snowflake_docs/alter-share_0_0.txt
/ 1. Database 9. Schema 17. Share database) ALTER SHARE
snowflake_docs/timestamp_from_parts_5_0.txt
Examples ¶ Set the session variables that control output format and time zone: > > ALTER SESSION SET TIMESTAMP_OUTPUT_FORMAT='YYYY-MM-DD HH24:MI:SS.FF9 > TZH:TZM'; > ALTER SESSION SET TIMESTAMP_NTZ_OUTPUT_FORMAT='YYYY-MM-DD HH24:MI:SS.FF9 > TZH:TZM'; > ALTER SESSION SET TIMEZONE='America/New_York'; > >...
snowflake_docs/data-types-structured_41_0.txt
Transforming Structured OBJECTs ¶ The following sections explain how to return a structured OBJECT that has been transformed from another OBJECT: * Removing Key-Value Pairs * Inserting Key-Value Pairs and Updating Values * Selecting Key-Value Pairs From an Existing OBJECT If you need to change the order of ...
snowflake_docs/st_geogfromgeohash_6_0.txt
Examples ¶ The following example returns the GEOGRAPHY object for a geohash: > > SELECT ST_GEOGFROMGEOHASH('9q9j8ue2v71y5zzy0s4q') > AS geography_from_geohash, > ST_AREA(ST_GEOGFROMGEOHASH('9q9j8ue2v71y5zzy0s4q')) > AS area_of_geohash; > +---------------------------------+------------...
snowflake_docs/editdistance_1_0.txt
EDITDISTANCE ¶ Computes the Levenshtein distance between two input strings. It is the number of single-character insertions, deletions, or substitutions needed to convert one string to another. Note Unlike some other metrics (e.g. Damerau-Levenshtein distance), character transpositions are not considered.
snowflake_docs/drop-account_4_0.txt
Usage Notes ¶ * Only organization administrators (i.e. a user with the ORGADMIN role) can execute the command. * The organization administrator cannot drop the account they are currently logged in to.
snowflake_docs/drop_0_0.txt
/
snowflake_docs/try_cast_4_0.txt
Examples ¶ The following code samples show how to use the ` TRY_CAST ` function with valid and invalid values: > > SELECT TRY_CAST('05-Mar-2016' AS TIMESTAMP); > +--------------------------------------+ > | TRY_CAST('05-MAR-2016' AS TIMESTAMP) | > |--------------------------------------| > | 201...
snowflake_docs/approx_top_k_accumulate_2_0.txt
Syntax ¶ APPROX_TOP_K_ACCUMULATE( <expr> , <counters> ) Copy
snowflake_docs/create-password-policy_9_0.txt
Access control requirements ¶ access-control-overview-roles) used to execute this SQL command must have the overview.html
snowflake_docs/timestamp_from_parts_1_0.txt
TIMESTAMP_FROM_PARTS ¶ Creates a timestamp from individual numeric components. If no time zone is in effect, the function can be used to create a timestamp from a date expression and a time expression. Aliases: TIMESTAMPFROMPARTS Variations (and Aliases): TIMESTAMP_LTZ_FROM_PARTS , TIMESTAMPLTZFROMPARTS TIMESTAMP_NT...
snowflake_docs/is_null_value_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 reference/expressions-conditional) IS_NULL_VALUE Categories: Predicates)
snowflake_docs/st_makegeompoint_4_0.txt
Returns ¶ The function returns a value of type GEOMETRY.
snowflake_docs/array_agg_8_0.txt
000000386', 1041445.00), > ( 55937, 'O', 'Clerk
snowflake_docs/reverse_2_0.txt
Syntax ¶ REVERSE(<subject>) Copy
snowflake_docs/commands-alert_0_0.txt
/ commands) Alerts
snowflake_docs/forecast_8_0.txt
Usage Notes ¶ instances is currently not supported.
snowflake_docs/commands-data-governance_0_0.txt
/ 1. Column-level Security 7. Row Access Policy 13. Tag commands) Data Governance
snowflake_docs/show-replication-accounts_7_0.txt
Examples ¶ Show all the global accounts whose name starts with ` myaccount ` : SHOW REPLICATION ACCOUNTS LIKE 'myaccount%'; Copy Was this page helpful? Yes No Inc. All Rights Reserved . On this page 1. Syntax 2. Parameters 3. Usage Notes 4. Output 5. Examples Language : **English**
snowflake_docs/show-aggregation-policies_6_0.txt
label-access-control-overview-privileges) at a minimum: Privilege | Object | Notes ---|---|--- APPLY AGGREGATION POLICY | Account | APPLY | Aggregation policy | OWNERSHIP | Aggregation policy | OWNERSHIP is a special privilege on an object that is automatically granted to the role that created the object, but c...
snowflake_docs/as_object_1_0.txt
AS_OBJECT ¶ Casts a VARIANT value to an object. See also:
snowflake_docs/create-connection_3_0.txt
Required Parameters ¶ ` _ name _ ` String that specifies the identifier (i.e. name) for the connection. It must conform to the following: * Must start with an alphabetic character and may only contain letters, decimal digits (0-9), and underscores (_). * For a primary connection, the name must be unique across...
snowflake_docs/dateadd_2_0.txt
Syntax ¶ DATEADD( <date_or_time_part>, <value>, <date_or_time_expr> ) Copy
snowflake_docs/create-task_24_0.txt
Root task with configuration ¶ Create a task that specifies configuration, and then reads that configuration. CREATE OR REPLACE TASK root_task_with_config WAREHOUSE=mywarehouse SCHEDULE='10 m' CONFIG=$${"output_dir": "/temp/test_directory/", "learning_rate": 0.1}$$ AS BEGIN ...
snowflake_docs/data-types-datetime_8_1.txt
| Thu, 02 Jan 2014 16:00:00 | 16 | > +---------------------------+----------+ > > > Copy Use TIMESTAMP_TZ: > > CREATE OR REPLACE TABLE ts_test(ts timestamp_tz); > > ALTER SESSION SET TIMEZONE = 'America/Los_Angeles'; > > INSERT INTO ts_test values('2014-01-01 16:00:00'); > INSERT INTO ts...
snowflake_docs/drop-dynamic-table_5_0.txt
Examples ¶ Drop the dynamic table named ` product ` : > > DROP DYNAMIC TABLE product; > > > Copy Was this page helpful? Yes No Inc. All Rights Reserved . On this page 1. Syntax 2. Parameters 3. Usage Notes 4. Examples Related content Language : **English**
snowflake_docs/ltrim_6_0.txt
Examples ¶ Remove leading ‘0’ and ‘
snowflake_docs/alter-masking-policy_5_0.txt
label-access-control-overview-privileges) at a minimum: Privilege | Object | Notes ---|---|--- OWNERSHIP | Masking policy | OWNERSHIP is a special privilege on an object that is automatically granted to the role that created the object, but can also be transferred using the [ role (or any role with the MANAGE GRANT...
snowflake_docs/system_snowpipe_streaming_update_channel_offset_token_1_0.txt
SYSTEM$SNOWPIPE_STREAMING_UPDATE_CHANNEL_OFFSET_TOKEN ¶ Updates the offset token for a particular channel used by Snowpipe Streaming with a new offset token. For more information about channels and offset tokens, see [ Snowpipe See also:
snowflake_docs/query_history_6_0.txt
Examples ¶ Retrieve up to the last 100 queries run in the current session: > > select * > from table(information_schema.query_history_by_session()) > order by start_time; > > > Copy Retrieve up to the last 100 queries run by the current user (or run by any user on any warehouse on which the current use...
snowflake_docs/as_decimal-number_2_0.txt
Syntax ¶ AS_DECIMAL( <variant_expr> [ , <precision> [ , <scale> ] ] ) AS_NUMBER( <variant_expr> [ , <precision> [ , <scale> ] ] ) Copy
snowflake_docs/listagg_6_0.txt
Collation Details ¶ * The collation of the result is the same as the collation of the input. * Elements inside the list are ordered according to collations, if the ORDER BY sub-clause specified an expression with collation. * The ` _ delimiter _ ` can not use a collation specification. * Specifying colla...
snowflake_docs/create-stream_10_0.txt
label-access-control-securable-objects) , see [ Overview of
snowflake_docs/to_json_6_0.txt
Examples ¶ This is a short example of ` TO_JSON ` and ` PARSE_JSON ` : > > CREATE TABLE jdemo1 (v VARIANT); > INSERT INTO jdemo1 SELECT PARSE_JSON('{"food":"bard"}'); > > > Copy > > > SELECT v, v:food, TO_JSON(v) FROM jdemo1; > +------------------+--------+-----------------+ > | V ...
snowflake_docs/create-task_17_0.txt
label-access-control-securable-objects) , see [ Overview of