id
stringlengths
16
145
text
stringlengths
1
179k
title
stringclasses
1 value
snowflake_docs/merge_11_0.txt
Examples ¶ Perform a simple merge: > Create and load the tables: > > > CREATE TABLE target_table (ID INTEGER, description VARCHAR); > > CREATE TABLE source_table (ID INTEGER, description VARCHAR); > > > Copy > > > INSERT INTO target_table (ID, description) VALUES > (10, 'To be updated...
snowflake_docs/execute-service_7_0.txt
label-access-control-overview-privileges) at a minimum: Privilege | Object | Notes ---|---|--- USAGE | Compute pool | READ | Stage | This is the stage where the specification is stored. READ | Image Repository | Repository of images referenced by the specification. Note that operating on any object in a schem...
snowflake_docs/st_geographyfromwkb_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_GEOGRAPHYFROMWKB Categories:
snowflake_docs/variance_3_0.txt
Arguments ¶ ` _ expr1 _ ` The ` _ expr1 _ ` should evaluate to one of the numeric data types. ` _ expr2 _ ` This is the expression to partition by. ` _ expr3 _ ` This is the expression to order by within each partition.
snowflake_docs/alter-security-integration-api-auth_5_0.txt
OAuth: JWT bearer flow ¶ ALTER SECURITY INTEGRATION <name> SET [ ENABLED = { TRUE | FALSE } ] [ OAUTH_AUTHORIZATION_ENDPOINT = '<string_literal>' ] [ OAUTH_TOKEN_ENDPOINT = '<string_literal>' ] [ OAUTH_CLIENT_AUTH_METHOD = CLIENT_SECRET_POST ] [ OAUTH_CLIENT_ID = '<string_literal>' ...
snowflake_docs/alter-iceberg-table_7_0.txt
label-security-custom-role) . For general information about roles and privilege grants for performing SQL overview.html
snowflake_docs/show-network-rules_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/constraints-overview_0_0.txt
/
snowflake_docs/jarowinkler_similarity_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/stddev_8_1.txt
ERT INTO menu_items VALUES(47,'Main','The Salad of All Salads',6.00,12.00); INSERT INTO menu_items VALUES(48,'Main','Three Meat Plate',10.00,17.00); INSERT INTO menu_items VALUES(49,'Main','Three Taco Combo Plate',7.00,11.00); INSERT INTO menu_items VALUES(50,'Main','Tonkotsu Ramen',7.00,17.2500); INSER...
snowflake_docs/st_setsrid_1_0.txt
ST_SETSRID ¶ geometry) object that has its SRID (spatial reference system identifier) set to the specified value. Use this function to change the SRID without affecting the coordinates of the object. If you also need to [ change the coordinates to match the new SRS
snowflake_docs/show-password-policies_10_0.txt
Example ¶ SHOW PASSWORD POLICIES; Copy +---------------------------------+------------------------+------------+------------------------------------+---------+ | CREATED_ON | NAME | OWNER | COMMENT | options | +-------------------...
snowflake_docs/alter-external-volume_10_0.txt
Usage notes ¶ Regarding metadata: > Attention > > Customers should ensure that no personal data (other than for a User > object), sensitive data, export-controlled data, or other regulated data is > entered as metadata when using the Snowflake service. For more information,
snowflake_docs/asof-join_6_0.txt
Examples ¶ The following examples demonstrate the expected behavior of ASOF JOIN queries.
snowflake_docs/dynamic_table_refresh_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/show-aggregation-policies_2_0.txt
label-aggregation-policy-ddl)
snowflake_docs/current_role_type_0_0.txt
/ 1. General 14. Session 29. Session Object 41. Alert context) CURRENT_ROLE_TYPE Categories:
snowflake_docs/object_keys_5_0.txt
Usage Notes ¶ * If the object contains nested objects (e.g. objects within objects), this returns only the keys from the top-most level.
snowflake_docs/try_to_geography_4_0.txt
Returns ¶ The function returns a value of type GEOGRAPHY.
snowflake_docs/get_notification_integration_name_0_0.txt
/ 1. Commands 4. Methods
snowflake_docs/h3_string_to_int_1_0.txt
H3_STRING_TO_INT ¶ geospatial-h3) cell ID in hexadecimal format to an INTEGER value. See also:
snowflake_docs/desc-compute-pool_9_0.txt
Usage notes ¶
snowflake_docs/equal_null_5_1.txt
| Not > | True | Selected | > | 2 | 2 | True | Selected > | False | Not | > | 2 | NULL | False | Not > | True | Selected ...
snowflake_docs/file_formats_3_0.txt
Usage Notes ¶ * The view only displays objects for which the current role for the session has been granted access privileges. The view does not honor the MANAGE GRANTS privilege and consequently may show less information compared to a SHOW command when both are executed by a user who holds the MANAGE GRANTS privil...
snowflake_docs/show-iceberg-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 ICEBERG TABLES
snowflake_docs/st_geometryfromwkb_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_GEOMETRYFROMWKB Categories:
snowflake_docs/system_cancel_all_queries_0_0.txt
/ 1. Control 29. Information 90. Query Information SYSTEM$CANCEL_ALL_QUERIES Categories:
snowflake_docs/st_hausdorffdistance_3_0.txt
Arguments ¶ ` _ geography_expression_1 _ ` The argument must be an expression of type GEOGRAPHY. ` _ geography_expression_2 _ ` The argument must be an expression of type GEOGRAPHY.
snowflake_docs/network_rules_3_0.txt
Usage notes ¶ * Latency for the view may be up to 120 minutes (2 hours). * The view only displays objects for which the current role for the session has been granted access privileges. Was this page helpful? Yes No Inc. All Rights Reserved . On this page 1. Columns 2. Usage notes Language : **Englis...
snowflake_docs/result_scan_6_0.txt
Examples ¶
snowflake_docs/create-function_23_0.txt
label-creating-using-external-access-integration-using-udf) .
snowflake_docs/to_double_4_0.txt
Usage Notes ¶ * Fixed-point numbers are converted to floating point; the conversion cannot fail, but might result in loss of precision. * Strings are converted as decimal integer or fractional numbers, scientific notation and special values ( **nan** , **inf** , **infinity** ) are accepted. * For VARIANT inp...
snowflake_docs/call_0_0.txt
/ 1. User Defined Function 7. External Function 13. Stored Procedure 21. Snowflake Scripting function) CALL
snowflake_docs/create-clone_8_0.txt
Event Tables ¶ CREATE [ OR REPLACE ] EVENT TABLE <name> CLONE <source_event_table> [ { AT | BEFORE } ( { TIMESTAMP => <timestamp> | OFFSET => <time_difference> | STATEMENT => <id> } ) ] Copy
snowflake_docs/date_from_parts_4_0.txt
Usage Notes ¶ DATE_FROM_PARTS is typically used to handle values in “normal” ranges (e.g. months 1-12, days 1-31), but it also handles values from outside these ranges. This allows, for example, choosing the N-th day in a year, which can be used to simplify some computations. Year, month, and day values can be negat...
snowflake_docs/is_char-varchar_1_0.txt
IS_CHAR , IS_VARCHAR ¶ Returns TRUE if its VARIANT argument contains a string value. These functions are synonymous. See also:
snowflake_docs/rlike_6_0.txt
Collation Details ¶ Arguments with collation specifications are currently not supported.
snowflake_docs/bitand_6_0.txt
Examples ¶ This example shows how to use ` BITAND() ` , ` BITOR() ` , and ` BITXOR() ` : > Create a simple table and data: > >> >> CREATE TABLE bits (ID INTEGER, bit1 INTEGER, bit2 INTEGER); >> >> >> Copy >> >> >> INSERT INTO bits (ID, bit1, bit2) VALUES >> ( 11, 1, 1), -- Bits a...
snowflake_docs/alter-authentication-policy_3_0.txt
Parameters ¶ ` _ name _ ` Specifies the identifier for the authentication policy to alter. If the identifier contains spaces or special characters, you must enclose the string in double quotation marks. Identifiers enclosed in double quotation marks are case-sensitive. The identifier must meet the [ identifier requ...
snowflake_docs/alter-security-integration-oauth-snowflake_2_0.txt
Syntax ¶ ALTER [ SECURITY ] INTEGRATION <name> SET TAG <tag_name> = '<tag_value>' [ , <tag_name> = '<tag_value>' ... ] ALTER [ SECURITY ] INTEGRATION <name> UNSET TAG <tag_name> [ , <tag_name> ... ] Copy **Snowflake OAuth for partner applications** > > ALTER [ SECURITY ] INTEGRATION [ IF EXISTS ] <name> ...
snowflake_docs/external_tables_2_0.txt
Columns ¶ Column Name | Data Type | Description ---|---|--- TABLE_CATALOG | TEXT | Database that the table belongs to TABLE_SCHEMA | TEXT | Schema that the table belongs to TABLE_NAME | TEXT | Name of the table TABLE_OWNER | TEXT | Name of the role that owns the table CREATED | TIMESTAMP_LTZ | Creation t...
snowflake_docs/decrypt_raw_2_0.txt
Syntax ¶ DECRYPT_RAW( <value_to_decrypt> , <key> , <iv> , [ [ [ <additional_authenticated_data> , ] <encryption_method> , ] <aead_tag> ] ) Copy
snowflake_docs/bitshiftleft_4_0.txt
Returns ¶ This returns a signed 128-bit (16-byte) integer, regardless of the size or data type of the input data value.
snowflake_docs/functions-context_0_0.txt
/ 1. General 14. Session 29. Session Object 41. Alert
snowflake_docs/normal_3_0.txt
Arguments ¶ ` _ mean _ ` A constant specifying the value that the output values should be centered on. ` _ stddev _ ` A constant specifying the width of one standard deviation. For example, if you specify a mean of 0.0 and a standard deviation of 1.0, approximately 68.2% of returned values from multiple calls will...
snowflake_docs/st_ymax_5_0.txt
Usage Notes ¶ * The function takes into account the curvature of the edges toward the poles.
snowflake_docs/alter-security-integration-oauth-external_2_0.txt
Syntax ¶ ALTER [ SECURITY ] INTEGRATION [ IF EXISTS ] <name> SET [ TYPE = EXTERNAL_OAUTH ] [ ENABLED = { TRUE | FALSE } ] [ EXTERNAL_OAUTH_TYPE = { OKTA | AZURE | PING_FEDERATE | CUSTOM } ] [ EXTERNAL_OAUTH_ISSUER = '<string_literal>' ] [ EXTERNAL_OAUTH_TOKEN_USER_MAPPING_CLAIM = '<...
snowflake_docs/alter-resource-monitor_5_0.txt
Examples ¶ Specify a new credit quota for the resource monitor ` limiter ` and replace the existing triggers for the monitor with a new set of triggers: > > ALTER RESOURCE MONITOR limiter > SET CREDIT_QUOTA=2000 > TRIGGERS ON 80 PERCENT DO NOTIFY > ON 100 PERCENT DO SUSPEND_IMMEDIATE;...
snowflake_docs/system_allowlist_privatelink_3_0.txt
Arguments ¶ None.
snowflake_docs/alter-external-table_7_0.txt
label-security-custom-role) . For general information about roles and privilege grants for performing SQL overview.html
snowflake_docs/data_transfer_daily_history_3_0.txt
Usage Notes ¶ * Latency for the view may be up to 120 minutes (2 hours). * The data is retained for 365 days (1 year). Was this page helpful? Yes No Inc. All Rights Reserved . On this page 1. Columns 2. Usage Notes Language : **English**
snowflake_docs/create-clone_15_0.txt
Notes for Cloning with Time Travel (Databases, Schemas, Tables, and Event Tables Only) ¶ > * The ` AT ` keyword specifies that the request is inclusive of any > changes made by a statement or transaction with timestamp equal to the > specified parameter. > > * The ` BEFORE ` keyword specifies that the requ...
snowflake_docs/drop-stream_2_0.txt
Syntax ¶ DROP STREAM [ IF EXISTS ] <name> Copy
snowflake_docs/map_contains_key_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) (Map)
snowflake_docs/functions-analytic_3_0.txt
What is a Window? ¶ A window is a group of related rows. For example, a window might be defined based on timestamps, with all rows in the same month grouped in the same window. Or a window might be defined based on location, with all rows from a particular city grouped in the same window. A window can consist of zer...
snowflake_docs/pipes_3_0.txt
Usage Notes ¶ * Latency for the view may be up to 180 minutes (3 hours). * The view only displays objects for which the current role for the session has been granted access privileges. * The view does not recognize the MANAGE GRANTS privilege and consequently may show less information compared to a SHOW comm...
snowflake_docs/show-secrets_7_0.txt
label-access-control-securable-objects) , see [ Overview of
snowflake_docs/current_region_2_0.txt
Syntax ¶ CURRENT_REGION() Copy
snowflake_docs/cast_8_0.txt
Usage Notes ¶ * If the scale is not sufficient to hold the input value, the function rounds the value. * If the precision is not sufficient to hold the input value, the function raises an error.
snowflake_docs/complete-snowflake-cortex_12_0.txt
Examples ¶
snowflake_docs/create-security-integration-oauth-external_7_0.txt
label-security-custom-role) . For general information about roles and privilege grants for performing SQL overview.html
snowflake_docs/grant-privilege-share_5_0.txt
Examples ¶ This is an example of sharing objects from a single database: > > GRANT USAGE ON DATABASE mydb TO SHARE share1; > > GRANT USAGE ON SCHEMA mydb.public TO SHARE share1; > > GRANT USAGE ON FUNCTION mydb.shared_schema.function1 TO SHARE share1; > > GRANT USAGE ON FUNCTION mydb.shared_sch...
snowflake_docs/system_stream_get_table_timestamp_3_0.txt
Arguments ¶ ` _ stream_name _ ` The name of the stream to query. * Note that the entire name must be enclosed in single quotes, including the database and schema (if the name is fully-qualified), i.e. ` '<db>.<schema>.<stream_name>' ` . * If the stream name is case-sensitive or includes any special characters...
snowflake_docs/decompress_string_5_0.txt
Usage Notes ¶ * If the compression method is unknown or invalid, the query fails. * The compression method name (e.g. ` ZLIB ` ) is case insensitive.
snowflake_docs/system_classify_0_0.txt
/ 1. Alerts 3. Data Classification procedures) SYSTEM$CLASSIFY
snowflake_docs/listing_auto_fulfillment_usage_history_0_0.txt
/ 24. Legacy Views Schema:
snowflake_docs/count_if_4_0.txt
Returns ¶ If the function does not return NULL, the data type of the returned value is NUMBER.
snowflake_docs/st_union_agg_2_0.txt
Syntax ¶ ST_UNION_AGG( <geography_column> ) Copy
snowflake_docs/collation_2_0.txt
Overview ¶ The following sections explain what collation is and how you use collation when comparing strings: * Understanding Collation * Uses for Collation * Collation Control
snowflake_docs/alter-warehouse_2_0.txt
Syntax ¶ ALTER WAREHOUSE [ IF EXISTS ] [ <name> ] { SUSPEND | RESUME [ IF SUSPENDED ] } ALTER WAREHOUSE [ IF EXISTS ] [ <name> ] ABORT ALL QUERIES ALTER WAREHOUSE [ IF EXISTS ] <name> RENAME TO <new_name> ALTER WAREHOUSE [ IF EXISTS ] <name> SET [ objectProperties ] ...
snowflake_docs/create-application-package_9_0.txt
Usage Notes ¶ * To create an application package, the caller must have the CREATE APPLICATION PACKAGE privilege on the account. * There are no restrictions on the types of objects that may reside in the application package or what roles (database or account level) that may own those objects. * Regarding meta...
snowflake_docs/to_date_1_0.txt
TO_DATE , DATE ¶ Converts an input expression to a date: * For a string expression, the result of converting the string to a date. * For a timestamp expression, the date from the timestamp. * For a variant expression: > * If the variant contains a string, a string conversion is performed. > > * If t...
snowflake_docs/percentile_disc_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/parameters_108_0.txt
USER_TASK_MANAGED_INITIAL_WAREHOUSE_SIZE ¶ Type : Object (for databases, schemas, and tasks) — Can be set for Account » Database » Schema » Task Data Type : String Description : Specifies the size of the compute resources to provision for the first run of the task, before a task history is available for Snowflake...
snowflake_docs/typeof_4_0.txt
Arguments ¶ ` _ expr _ ` The argument can be a column name or a general expression of type VARIANT. If
snowflake_docs/system_get_tag_on_current_column_4_0.txt
Usage notes ¶ * Currently, this function can only be used in a masking policy condition to dynamically evaluate the tag string value set on a column. Snowflake returns an error while using the function in either a SELECT query, a row access policy, a view, or a user-defined function (UDF). * Note that this func...
snowflake_docs/build_stage_file_url_1_0.txt
BUILD_STAGE_FILE_URL ¶ Generates a Snowflake _file URL_ to a staged file using the stage name and relative file path as inputs. A file URL permits prolonged access to a specified file. That is, the file URL does not expire. Call this SQL function in a query, user-defined function (UDF), or stored procedure. Access f...
snowflake_docs/exception_2_0.txt
Syntax ¶ EXCEPTION WHEN <exception_name> [ OR <exception_name> ... ] THEN <statement>; [ <statement>; ... ] [ WHEN ... ] [ WHEN OTHER THEN ] <statement>; [ <statement>; ... ] Copy Where: > ` _ exception_name _ ` > > > An exception name de...
snowflake_docs/strtok_split_to_table_2_0.txt
Syntax ¶ STRTOK_SPLIT_TO_TABLE(<string> [,<delimiter_list>]) Copy
snowflake_docs/drop-procedure_0_0.txt
/ 1. User Defined Function 7. External Function 13. Stored Procedure 21. Snowflake Scripting function) DROP PROCEDURE
snowflake_docs/functions-all_37_0.txt
label-data-types-geometry) . | | same operation (i.e. converts an input expression into a time), but with error-handling support (i.e. if the conversion cannot be performed, it returns a NULL value instead of raising an error). | | A special version of [ TO_TIMESTAMP / TO_TIMESTAMP_* input expression into a timestamp),...
snowflake_docs/commands-integration_5_0.txt
External Network Access ¶
snowflake_docs/commands-security_2_0.txt
Authentication policy ¶
snowflake_docs/create-catalog-integration_4_0.txt
Required parameters ¶ ` _ name _ ` String that specifies the identifier (name) for the catalog integration; must be unique in your account. 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 double qu...
snowflake_docs/to_variant_3_0.txt
Arguments ¶ ` _ expr _ ` An expression of any data type.
snowflake_docs/functions-date-time_9_1.txt
017-12-25 | Mon | 2017-12-31 | Sun > | 52 | > > +------------+-----+-----+------------+-----------+---------------+--------------+------------------------------------+ > > > Copy > > 1. With WEEK_START set to ` 0 ` , the DOW for Sunday is ` 0 ` . > > 2. With WEEK_START s...
snowflake_docs/use-warehouse_2_0.txt
Syntax ¶ USE WAREHOUSE <name> Copy
snowflake_docs/contains_6_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/system_cleanup_database_role_grants_2_0.txt
Syntax ¶ SYSTEM$CLEANUP_DATABASE_ROLE_GRANTS( '<database_role_name>' , '<share_name>' ) Copy
snowflake_docs/limit_3_0.txt
Usage Notes ¶ * ` _ count _ ` and ` _ start _ ` must be non-negative integer constants. > * ` _ count _ ` specifies the number of rows returned. > > The values NULL, empty string ( ` '' ` ), and ` $$$$ ` are also accepted > and are treated as “unlimited”; this is useful primarily for connectors and > dri...
snowflake_docs/pipe_usage_history_0_0.txt
/ Schema:
snowflake_docs/sessions_3_0.txt
Usage notes ¶ * Latency for the view may be up to 180 minutes (3 hours). * The view displays data starting from July 20-21, 2020. * The SESSIONS view does not currently track SQL API transient sessions. * This view does not record the activity of internal users the system defines to perform various operat...
snowflake_docs/drop-schema_3_0.txt
Parameters ¶ ` _ name _ ` Specifies the identifier for the schema 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. If the schema identifier is not fully-qualif...
snowflake_docs/data-types-geospatial_1_0.txt
Geospatial Data Types ¶ Snowflake offers native support for geospatial features such as points, lines, and polygons on the Earth’s surface. Tip You can use the search optimization service to improve query performance. For optimization-service) .
snowflake_docs/create-resource-monitor_3_0.txt
Required Parameters ¶ ` _ name _ ` Identifier for the resource monitor; must be unique for your account. The identifier must start with an alphabetic character and cannot contain spaces or special characters unless the entire identifier string is enclosed in double quotes (e.g. ` "My object" ` ). Identifiers encl...
snowflake_docs/commands-account_2_0.txt
Account Parameters and Functions ¶
snowflake_docs/regr_valx_5_0.txt
Examples ¶ Basic example: > > SELECT REGR_VALX(NULL, 10), REGR_VALX(1, NULL), REGR_VALX(1, 10); > +---------------------+--------------------+------------------+ > | REGR_VALX(NULL, 10) | REGR_VALX(1, NULL) | REGR_VALX(1, 10) | > |---------------------+--------------------+------------------| > |...
snowflake_docs/functions-conversion_8_0.txt
Binary Formats in Conversion Functions ¶ format to parse or produce a string. The format can be one of the following strings (case-insensitive): > * HEX > > * BASE64 > > * UTF-8 > > For more information about these formats, see [ Overview of Supported Binary formats) . For examples of using these formats, see ...
snowflake_docs/parameters_11_0.txt
ABORT_DETACHED_QUERY ¶ Type : Session — Can be set for Account » User » Session Data Type : Boolean Description : Specifies the action that Snowflake performs for in-progress queries if connectivity is lost due to abrupt termination of a session (e.g. network outage, browser termination, service interruption). Va...
snowflake_docs/st_pointn_1_0.txt
ST_POINTN ¶ Returns a Point at a specified index in a LineString. See also: