id
stringlengths
16
145
text
stringlengths
1
179k
title
stringclasses
1 value
snowflake_docs/collation_7_0.txt
COLLATE Clause (for Table Column Definitions) ¶ Adding the optional ` COLLATE ` clause to the definition of a table column indicates that the specified collation is used for comparisons and other related operations performed on the data in the column: CREATE TABLE <table_name> ( <col_name> <col_type> COLLATE '<...
snowflake_docs/h3_point_to_cell_string_6_0.txt
Examples ¶ The following example returns the hexadecimal H3 cell ID for the Brandenburg Gate at resolution 8. SELECT H3_POINT_TO_CELL_STRING(ST_POINT(13.377704, 52.516262), 8); Copy +------------------------------------------------------------+ | H3_POINT_TO_CELL_STRING(ST_POINT(13.377704, 52.516262), 8)...
snowflake_docs/h3_point_to_cell_string_2_0.txt
label-data-types-geospatial-h3) cell ID for a Point (specified object) at a given resolution. See also:
snowflake_docs/create-password-policy_11_0.txt
label-security-custom-role) . For general information about roles and privilege grants for performing SQL overview.html
snowflake_docs/system_get_service_status_1_0.txt
SYSTEM$GET_SERVICE_STATUS ¶ > services/overview) is available to all Snowflake accounts in AWS commercial > regions except for trial accounts. Retrieves the status of a [ Snowpark Container Services service See also: services/working-with-services.html
snowflake_docs/add_regex_10_0.txt
label-security-custom-role) . For general information about roles and privilege grants for performing SQL control-overview.html
snowflake_docs/current_secondary_roles_0_0.txt
/ 1. General 14. Session 29. Session Object 41. Alert context) CURRENT_SECONDARY_ROLES Categories:
snowflake_docs/data_transfer_history_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/drop-network-policy_3_0.txt
Parameters ¶ ` _ name _ ` Specifies the identifier for the network 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/show-event-tables_0_0.txt
/ 2. Table 13. Dynamic Table 19. Event Table 24. External Table 30. Hybrid Table 36. Iceberg Table 43. View 49. Materialized View 56. Sequence SHOW EVENT TABLES
snowflake_docs/commands-snowpark-container-services_1_0.txt
Snowpark Container Services Commands ¶ The Snowpark Container Services support SQL commands that enable you to manage Snowpark Container Services objects. notes/preview-features) — Open > services/overview) is available to all Snowflake accounts in AWS commercial > regions except for trial accounts.
snowflake_docs/h3_grid_path_5_0.txt
Returns ¶ Returns an ARRAY of the IDs of H3 cells that represent the line between the cells specified by ` _ cell_id_1 _ ` and ` _ cell_id_2 _ ` . The IDs are in one of the following formats: * If ` _ cell_id_1 _ ` and ` _ cell_id_2 _ ` are INTEGER values, the function returns the IDs as INTEGER values. * I...
snowflake_docs/approx_count_distinct_2_0.txt
Syntax ¶ **Aggregate function** APPROX_COUNT_DISTINCT( [ DISTINCT ] <expr1> [ , ... ] ) APPROX_COUNT_DISTINCT(*) Copy **Window function** APPROX_COUNT_DISTINCT( [ DISTINCT ] <expr1> [ , ... ] ) OVER ( [ PARTITION BY <expr2> ] ) APPROX_COUNT_DISTINCT(*) OVER ( [ PARTITION BY <expr2> ] ) Copy
snowflake_docs/exp_1_0.txt
EXP ¶ Computes Euler’s number ` _ e _ ` raised to a floating-point value.
snowflake_docs/functions-all_13_1.txt
a TIME value. | | Verifies whether a VARIANT value contains the respective TIMESTAMP value. | **J** | | | Computes the [ Jaro-Winkler similarity input strings. | | Parses the first argument as a JSON string and returns the value of the element pointed to by the path in the second argument. | **K** | | | Returns t...
snowflake_docs/rank_4_0.txt
Usage Notes ¶ * ` _ expr1 _ ` The column or expression to partition the window by. For example, suppose that within each state or province, you want to rank farmers in order by the amount of corn they produced. In this case, you partition by state. If you want only a single group (e.g. you want to rank all farme...
snowflake_docs/system_create_billing_event_0_0.txt
/ 1. Control 29. Information 90. Query Information SYSTEM$CREATE_BILLING_EVENT Categories:
snowflake_docs/create-function_31_0.txt
label-creating-using-external-access-integration-secret) and [ Using the external access integration in a function or procedure network-access.html
snowflake_docs/var_pop_6_0.txt
Examples ¶ This example shows how to use the ` VAR_POP ` 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/create-dynamic-table_7_0.txt
Access Control Requirements ¶ access-control-overview-roles) used to execute this SQL command must have the overview.html
snowflake_docs/alter-connection_1_0.txt
ALTER CONNECTION ¶ Requires Business Critical Edition (or higher). To inquire about upgrading, please contact [ Snowflake Support Snowflake-Lodge) . Modifies the properties for an existing connection. See also:
snowflake_docs/covar_pop_0_0.txt
/ 1. General 26. Bitwise 30. Boolean 34. Hash 36. Semi-Structured 39. Linear Regression 49. Statistics and Probability 52. Count Distinct Values 60. Cardinality Estimation 68. Similarity Estimation 73...
snowflake_docs/drop-budget_1_0.txt
DROP SNOWFLAKE.CORE.BUDGET ¶ guide/intro-editions) . This feature is currently not available for [ Trial Accounts Drop an instance of a _custom_ budget. See also: SYSTEM$SHOW_BUDGETS_IN_ACCOUNT
snowflake_docs/alter-application-package-version_4_0.txt
Usage Notes ¶ * Version identifiers have a maximum limit of 30 characters. * A single version can have up to 130 patches. * Modifying the version requires a role with the OWNERSHIP privilege on the application or the global MANAGE VERSIONS privilege. * If you do not specify the values for the optional pro...
snowflake_docs/get_notification_mute_flag_0_0.txt
/ 1. Commands 4. Methods
snowflake_docs/asinh_3_0.txt
Arguments ¶ ` _ real_expr _ ` This expression should evaluate to a real number.
snowflake_docs/show-schemas_3_1.txt
. * ` ... STARTS WITH 'A' LIMIT ... FROM 'AB' ` would return results (if any rows match the input strings).
snowflake_docs/external_table_files_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-security-integration-oauth-snowflake_16_0.txt
Tableau Online or Tableau Server example ¶ The following example creates an OAuth integration with the default settings: > > CREATE SECURITY INTEGRATION ts_oauth_int1 > TYPE = oauth > ENABLED = true > OAUTH_CLIENT = tableau_server; > > > Copy integration) : DESC SECURITY INTEGRATION ts_oa...
snowflake_docs/use-secondary-roles_3_0.txt
Parameters ¶ ` ALL ` : All roles that have been granted to the user in addition to the current active primary role. Note that the set of roles is reevaluated when each SQL statement executes. If additional roles are granted to the user, and that user executes a new SQL statement, the newly granted roles are activ...
snowflake_docs/add_regex_11_0.txt
label-access-control-securable-objects) , see [ Overview .
snowflake_docs/list_1_0.txt
` _ custom_classifier _ ` !LIST ¶ Available to all Snowflake accounts that are [ Enterprise Edition Custom Classification requires Enterprise Edition (or higher). To inquire about upgrading, please contact [ Snowflake Support Snowflake-Lodge) . Lists each custom classification semantic category system tag with its ...
snowflake_docs/median_1_0.txt
MEDIAN ¶ Determines the median of a set of values.
snowflake_docs/st_centroid_8_0.txt
GEOMETRY Examples ¶ The following example computes the centroid of a simple rectangular Polygon. Note how the result differs from the result when using ST_CENTROID with a GEOGRAPHY object > > SELECT ST_CENTROID(TO_GEOMETRY('POLYGON((10 10, 10 20, 20 20, 20 10, 10 > 10))')); > > > Copy > > > > +-----------...
snowflake_docs/system_disable_behavior_change_bundle_0_0.txt
/ 1. Control 29. Information 90. Query Information SYSTEM$DISABLE_BEHAVIOR_CHANGE_BUNDLE Categories:
snowflake_docs/replication_usage_history_2_0.txt
Syntax ¶ REPLICATION_USAGE_HISTORY( [ DATE_RANGE_START => <constant_expr> ] [ , DATE_RANGE_END => <constant_expr> ] [ , DATABASE_NAME => '<string>' ] ) Copy
snowflake_docs/show-managed-accounts_4_0.txt
Usage Notes ¶ * The command can be executed by users with the ACCOUNTADMIN role (or a role that has been granted the MONITOR USAGE global privilege). * Columns that start with the prefix ` is_ ` return either ` Y ` (yes) or ` N ` (no). * The command does not require a running warehouse to execute. * Th...
snowflake_docs/forecast_28_0.txt
Output ¶ The SERIES column is present only for multi-series models. Single-series models do not have this column. Column | Type | Description ---|---|--- SERIES | | Series value (if model was trained with multiple time series). LOGS | | Object containing errors encountered during training. Currently the only k...
snowflake_docs/desc-event-table_0_0.txt
/ 2. Table 13. Dynamic Table 19. Event Table 24. External Table 30. Hybrid Table 36. Iceberg Table 43. View 49. Materialized View 56. Sequence DESCRIBE EVENT TABLE
snowflake_docs/create-image-repository_4_0.txt
Access control requirements ¶ access-control-overview-roles) used to execute this SQL command must have the overview.html
snowflake_docs/stage_storage_usage_history_2_0.txt
Columns ¶ Column Name | Data Type | Description ---|---|--- USAGE_DATE | DATE | Date of this storage usage record. AVERAGE_STAGE_BYTES | NUMBER | Number of bytes of stage storage used.
snowflake_docs/functions-date-time_8_0.txt
Examples ¶ Note These examples query the same set of date functions, but with different values parameters to illustrate how they influence the results of the functions.
snowflake_docs/map_insert_1_0.txt
MAP_INSERT ¶ available to all accounts. with a new key-value pair inserted (an existing key updated with a new value).
snowflake_docs/parse_ip_4_0.txt
Returns ¶
snowflake_docs/desc-sequence_3_0.txt
Parameters ¶ ` _ name _ ` Specifies the identifier for the sequence to describe.
snowflake_docs/system_get_aws_sns_iam_policy_0_0.txt
/ 1. Control 29. Information 90. Query Information SYSTEM$GET_AWS_SNS_IAM_POLICY Categories:
snowflake_docs/create-managed-account_6_0.txt
Access Control Requirements ¶ access-control-overview-roles) used to execute this SQL command must have the overview.html
snowflake_docs/constraints-other_3_0.txt
Comments for Constraints ¶ Similar to other database objects and constructs, Snowflake supports providing comments for constraints. Comments can be added to constraints in two ways: * Out-of-line constraint support the COMMENT clause, in which a comment can be specified while defining the constraint. Comments are...
snowflake_docs/functions-analytic_8_0.txt
What is a Window Frame? ¶ A window frame is a sub-group of the rows in a window. Creating subsets allows you to compute values over just that specified sub-group of rows. Window frames are specified as an additional subclause in the ` ORDER BY ` subclause of the ` OVER ` clause.
snowflake_docs/ifnull_6_0.txt
Collation Details ¶
snowflake_docs/show-applications_3_0.txt
Parameters ¶ ` LIKE ' _ pattern _ ' ` Optionally filters the command output by object name. The filter uses case- insensitive pattern matching, with support for SQL wildcard characters ( ` % ` and ` _ ` ). For example, the following patterns return the same results: ` ... LIKE '%testing%' ... ` ` ... L...
snowflake_docs/decrypt_raw_1_0.txt
DECRYPT_RAW ¶ Decrypts a BINARY value using a BINARY key. See also:
snowflake_docs/atan_5_0.txt
Examples ¶ > > SELECT ATAN(1); > > --------------+ > ATAN(1) | > --------------+ > 0.7853981634 | > --------------+ > > > Copy Was this page helpful? Yes No Inc. All Rights Reserved . On this page 1. Syntax 2. Arguments 3. Returns 4. Examples Language : **English**
snowflake_docs/complete-snowflake-cortex_11_0.txt
Usage Notes ¶ COMPLETE does not retain any state from one call to the next. To use the COMPLETE function to provide a stateful, conversational experience, pass all previous user prompts and model responses in the conversation as part of the ` _ prompt_or_history _ ` array. (See [ Templates for Chat Models chat-mode...
snowflake_docs/create-stage_26_0.txt
label-security-encryption-tss) for security compliance, use the ` SNOWFLAKE_FULL ` encryption type for internal stages. ` SNOWFLAKE_SSE ` does not support Tri-Secret Secure. Caution Recreating a stage (using CREATE OR REPLACE STAGE) has the following additional, potentially undesirable, outcomes: * The existing dir...
snowflake_docs/snowpipe_streaming_file_migration_history_3_0.txt
Usage notes ¶ * Latency for the view may be up to 12 hours. Note that file migration sometimes may be pre-empted by clustering or other DML operations. Migration may not always occur and therefore the migration history will be empty even after 12 hours. * The NUM_BYTES_MIGRATED and NUM_ROWS_MIGRATED columns onl...
snowflake_docs/extract_answer-snowflake-cortex_9_0.txt
Legal Notices ¶ Snowflake Cortex LLM Functions are powered by machine learning technology, including Meta’s LLaMA 2. The foundation LLaMA 2 model is licensed under the [ LLaMA 2 Community License (c) Meta Platforms, Inc. All Rights Reserved. Your use of any LLM Functions based on the LLama 2 model is subject to Meta...
snowflake_docs/h3_get_resolution_4_0.txt
Returns ¶ Returns an INTEGER value between 0 and 15, which represents the resolution of the input H3 cell.
snowflake_docs/drop-schema_0_0.txt
/ 1. Database 9. Schema 17. Share database) DROP SCHEMA
snowflake_docs/data-types-logical_5_0.txt
Conversion to Boolean ¶
snowflake_docs/cos_2_0.txt
Syntax ¶ COS( <real_expr> ) Copy
snowflake_docs/factorial_1_0.txt
FACTORIAL ¶ Computes the factorial of its input. The input argument must be an integer expression in the range of ` 0 ` to ` 33 ` .
snowflake_docs/alter-projection-policy_4_0.txt
Parameters ¶ ` _ name _ ` Specifies the identifier for the projection policy to alter. 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. . ` RENAME TO _ new_name _ ` Specifies the new identi...
snowflake_docs/data-types-geospatial_5_0.txt
Geospatial Input and Output ¶ The following sections cover the supported standard formats and object types when reading and writing geospatial data. * Supported Standard Input and Output Formats * Supported Geospatial Object Types * Specifying the Output Format for Result Sets * Examples of Inserting and ...
snowflake_docs/min_1_0.txt
MIN ¶ Returns the minimum value for the records within ` _ expr _ ` . NULL values are ignored unless all the records are NULL, in which case a NULL value is returned. See also :
snowflake_docs/revoke-privilege-application-role_5_0.txt
Security requirements ¶ Revoking privileges on individual objects : overview.html
snowflake_docs/st_makepolygon_0_0.txt
/ 1. Conversion, Input, Parsing 14. Conversion, Output, Formatting 23. Constructor 32. Accessor 44. Relationship and Measurement 61. Transformation 75. Utility 77. H3 geospatial) ST_MAKEPOLYGON Categories:
snowflake_docs/octet_length_2_0.txt
Syntax ¶ OCTET_LENGTH(<string_or_binary>) Copy
snowflake_docs/event_tables_4_0.txt
Examples ¶ Retrieve the names of all event tables in all schemas in the ` mydatabase ` database: SELECT TABLE_NAME FROM mydatabase.information_schema.event_tables; Copy Was this page helpful? Yes No Inc. All Rights Reserved . On this page 1. Columns 2. Usage Notes 3. Examples Language : **...
snowflake_docs/system_get_cmk_akv_consent_url_3_0.txt
Arguments ¶ ` ' _ account_identifier _ ' ` identifier) for your Snowflake account on Azure. Required. ` ' _ tenant_id _ ' ` Specifies the unique identifier for the [ tenant your Azure subscription. This value is in the GUID/UUID format, such as ` b3ddabe4-e5ed-4e71-8827-0cefb99af240 ` . Required. To locate th...
snowflake_docs/account-usage_6_0.txt
Historical Data Retention ¶ Certain account usage views provide historical usage metrics. The retention period for these views is 1 year (365 days). In contrast, the corresponding views and table functions in the [ Snowflake ranging from 7 days to 6 months, depending on the view.
snowflake_docs/alter-table-event-table_8_0.txt
Examples ¶ Rename event table ` t1 ` to ` a1 ` : > > CREATE OR REPLACE TABLE t1(a1 number); > > SHOW TABLES LIKE 't1'; > > > ---------------------------------+------+---------------+-------------+-------+---------+------------+------+-------+--------+----------------+ > created_on ...
snowflake_docs/create-row-access-policy_7_0.txt
label-security-custom-role) . For general information about roles and privilege grants for performing SQL overview.html
snowflake_docs/try_decrypt_raw_2_0.txt
Syntax ¶ TRY_DECRYPT_RAW( <value_to_decrypt> , <key> , <iv> , [ [ [ <additional_authenticated_data> , ] <encryption_method> , ] <aead_tag> ] ) Copy
snowflake_docs/create-security-integration_1_0.txt
CREATE SECURITY INTEGRATION ¶ Creates a new security integration in the account or replaces an existing integration. An integration is a Snowflake object that provides an interface between Snowflake and a third-party service. See also:
snowflake_docs/show-models_0_0.txt
/ 1. Models 6. Versions MODELS
snowflake_docs/session-variables_4_0.txt
Variable DDL ¶ Snowflake provides the following DDL commands for using SQL variables:
snowflake_docs/trunc_1_0.txt
TRUNCATE , TRUNC ¶ Rounds the input expression down to the nearest (or equal) integer closer to zero, or to the nearest equal or smaller value with the specified number of places after the decimal point. These functions are synonymous. Note TRUNC is overloaded; it can also be used as a date/time function to [ trunca...
snowflake_docs/st_y_3_0.txt
Arguments ¶ ` _ geography_or_geometry_expression _ ` The argument must be an expression of the type GEOGRAPHY or GEOMETRY and must contain a Point.
snowflake_docs/drop-index_5_0.txt
Usage Notes ¶ * Indexes cannot be undropped.
snowflake_docs/nth_value_2_0.txt
Syntax ¶ NTH_VALUE( <expr> , <n> ) [ FROM { FIRST | LAST } ] [ { IGNORE | RESPECT } NULLS ] OVER ( [ PARTITION BY <expr1> ] ORDER BY <expr2> [ { ASC | DESC } ] [ <window_frame> ] ) Copy For details about ` _ window_frame _ ` syntax, see [ Window Frame Syntax and
snowflake_docs/is_integer_4_0.txt
Examples ¶ This shows how to use the function: > Create a table and data: > >> >> CREATE TABLE multiple_types ( >> array1 VARIANT, >> array2 VARIANT, >> boolean1 VARIANT, >> char1 VARIANT, >> varchar1 VARIANT, >> decimal1 VARIANT, >> double1 VARIANT, >> ...
snowflake_docs/close_3_0.txt
Usage Notes ¶ * After a cursor is closed, the cursor’s current row pointer is invalid. Re-opening the cursor causes the cursor to start from the beginning of the new result set.
snowflake_docs/sysdate_0_0.txt
/ 1. General 14. Session 29. Session Object 41. Alert context) SYSDATE Categories:
snowflake_docs/copy-into-location_21_0.txt
000000951 > | 0 | nstructions sleep furiously among > | > 2 | 78002 | O | 46929.18 | 1996-12-01 | 1-URGENT | Clerk
snowflake_docs/current_timestamp_2_0.txt
Syntax ¶ CURRENT_TIMESTAMP( [ <fract_sec_precision> ] ) CURRENT_TIMESTAMP Copy
snowflake_docs/show-shares-in-failover-group_3_0.txt
Parameters ¶ ` _ name _ ` Specifies the identifier for the failover group.
snowflake_docs/percent_rank_3_0.txt
Usage Notes ¶ * ` _ expr1 _ ` specifies the column (or expression) to partition by. For example, suppose that within each state or province, you want to rank farmers in order by the amount of corn they produced. In this case, you partition by state. If you want only a single group (e.g. you want to rank all farm...
snowflake_docs/alter-table_21_0.txt
Usage Notes ¶ * Changes to a table are not automatically propagated to views created on that table. For example, if you drop a column in a table, and a view is defined to include that column, the view becomes invalid; the view is not adjusted to remove the column. * Dropping a column does not immediately free u...
snowflake_docs/show-references_0_0.txt
/ 1. APPLICATION 7. APPLICATION PACKAGE 12. APPLICATION ROLE 19. Additional Commands SHOW REFERENCES
snowflake_docs/st_ymin_0_0.txt
/ 1. Conversion, Input, Parsing 14. Conversion, Output, Formatting 23. Constructor 32. Accessor 44. Relationship and Measurement 61. Transformation 75. Utility 77. H3 geospatial) ST_YMIN Categories:
snowflake_docs/system_snowpipe_streaming_update_channel_offset_token_5_0.txt
Examples ¶ Updates the offset token for ` mychannel ` in ` mydb.myschema.mytable ` with a ` <new_offset_token> ` : > > show channels; > select > SYSTEM$SNOWPIPE_STREAMING_UPDATE_CHANNEL_OFFSET_TOKEN('mydb.myschema.mytable', > 'mychannel', '<new_offset_token>'); > show channels; > > > Copy Was this pa...
snowflake_docs/drop-budget_4_0.txt
Access Control Requirements ¶ overview.html
snowflake_docs/system_explain_json_to_text_1_0.txt
SYSTEM$EXPLAIN_JSON_TO_TEXT ¶ This function converts EXPLAIN output from JSON to formatted text. See also:
snowflake_docs/data-types-structured_3_0.txt
Specifying a Structured ARRAY ¶ To specify a structured ARRAY, use the following syntax: ARRAY( <element_type> [ NOT NULL ] ) Copy Where: You can also specify a structured ARRAY, a structured OBJECT, or a MAP as the type of the element. Note In the definition of an Iceberg table column, you cannot specify a VARI...
snowflake_docs/st_length_8_0.txt
Examples ¶
snowflake_docs/show-integrations_8_0.txt
Usage Notes ¶ * Currently, only the ` API | CATALOG | EXTERNAL ACCESS | NOTIFICATION | SECURITY | STORAGE ` parameter is supported. * The command does not require a running warehouse to execute.
snowflake_docs/base64_decode_string_6_0.txt
label-base64-format) .
snowflake_docs/sha2_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/show-warehouses_1_0.txt
SHOW WAREHOUSES ¶ Lists all the warehouses in your account for which you have access privileges. See also: