id
stringlengths
16
145
text
stringlengths
1
179k
title
stringclasses
1 value
snowflake_docs/get_linked_resources_2_0.txt
Syntax ¶ <budget_name>!GET_LINKED_RESOURCES() Copy
snowflake_docs/drop-compute-pool_6_0.txt
label-security-custom-role) . For general information about roles and privilege grants for performing SQL overview.html
snowflake_docs/date-time-examples_13_0.txt
Applying Date Arithmetic to Date Strings ¶ Add five days to the date expressed in a string: SELECT DATEADD('day',5,TO_TIMESTAMP ('12-jan-2016 00:00:00','dd-mon-yyyy hh:mi:ss') ); +--------------------------------------------------------------------------------+ | DATEADD('DAY',5,TO_TIMESTAMP ('12-JAN-201...
snowflake_docs/jarowinkler_similarity_6_0.txt
Examples ¶ The following example computes the similarity between the strings in the columns ` s ` and ` t ` in the table ` ed ` . SELECT s, t, JAROWINKLER_SIMILARITY(s, t), JAROWINKLER_SIMILARITY(t, s) FROM ed; ----------------+-----------------+------------------------------+-----------------------------...
snowflake_docs/array_sort_3_0.txt
Arguments ¶ **Required** ` _ array _ ` The ARRAY of elements to sort. **Optional** ` _ sort_ascending _ ` Specifies whether to sort the elements in ascending or descending order: * Specify TRUE to sort the elements in ascending order. * Specify FALSE to sort the elements in descending order. Default: TRUE ` ...
snowflake_docs/array_contains_3_0.txt
Arguments ¶ ` _ value_expr _ ` Value to find in ` _ array _ ` . ` _ array _ ` The ARRAY to search.
snowflake_docs/st_asgeojson_6_0.txt
Examples ¶
snowflake_docs/grant-privilege_3_0.txt
Required parameters ¶ ` _ object_name _ ` Specifies the identifier for the object on which the privileges are granted. ` _ object_type _ ` Specifies the type of object for schema-level objects. * ` AGGREGATION POLICY ` * ` ALERT ` * ` AUTHENTICATION POLICY ` * ` DYNAMIC TABLE ` * ` EVENT TABLE `...
snowflake_docs/ilike_any_7_0.txt
Collation Details ¶ Only the ` upper ` , ` lower ` , and ` trim ` collation specifications are supported. Combinations with ` upper ` , ` lower ` , and ` trim ` are also supported (for example, ` upper-trim ` and ` lower-trim ` ), except for locale combinations (for example, ` en-upper ` ). Note To use this...
snowflake_docs/raise_0_0.txt
/ snowflake-scripting) RAISE
snowflake_docs/functions-analytic_19_0.txt
Rank-related Window Function Usage Notes ¶ * A function can be both a rank-related function and a window-frame function. For example, you can rank rows within a sliding window.
snowflake_docs/copy-into-table_15_0.txt
Usage notes ¶ * The DISTINCT keyword in SELECT statements is not fully supported. Specifying the keyword can lead to inconsistent or unexpected ON_ERROR copy option behavior. * Loading from Google Cloud Storage only: The list of objects returned for an external stage might include one or more “directory blobs”...
snowflake_docs/show-aggregation-policies_10_0.txt
Example ¶ SHOW AGGREGATION POLICIES; Copy Was this page helpful? Yes No Inc. All Rights Reserved . On this page 1. Syntax 2. Parameters 3. Access control requirements 4. Usage notes 5. Example Language : **English**
snowflake_docs/create-external-table_19_0.txt
label-access-control-securable-objects) , see [ Overview of
snowflake_docs/desc-network-rule_8_0.txt
label-access-control-securable-objects) , see [ Overview of
snowflake_docs/binary-input-output_10_0.txt
Data Unloading ¶ When used in data unloading, the BINARY_FORMAT option specifies the format applied to binary values unloaded to the files in the specified stage. This option overrides any value set for the BINARY_OUTPUT_FORMAT parameter in the session (see Session Parameters for Binary Values above). If the opt...
snowflake_docs/st_intersects_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_INTERSECTS Categories:
snowflake_docs/budget_0_0.txt
/ 1. Commands 4. Methods BUDGET
snowflake_docs/create-alert_11_0.txt
| | | | | * * * * * Copy The following special characters are supported: Special Character | Description ---|--- ` * ` | Wildcard. When specified for a given field, the alert runs at every unit of time for that field. For example, ` * ` in the month field specifies that the alert runs every month. ` L `...
snowflake_docs/create-network-policy_5_0.txt
Access control requirements ¶ access-control-overview-roles) used to execute this SQL command must have the overview.html
snowflake_docs/nullifzero_3_0.txt
Arguments ¶ ` _ expr _ ` The input should be an expression that evaluates to a numeric value.
snowflake_docs/hll_accumulate_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-tag_9_0.txt
Example ¶ The following example drops a tag: > > DROP TAG cost_center; > > > Copy Was this page helpful? Yes No Inc. All Rights Reserved . On this page 1. Syntax 2. Parameters 3. Access control requirements 4. Usage notes 5. Example Language : **English**
snowflake_docs/alter-network-rule_7_0.txt
label-access-control-securable-objects) , see [ Overview of
snowflake_docs/constraints-overview_1_0.txt
Overview of Constraints ¶ Snowflake provides the following constraint functionality: * Unique, primary, and foreign keys, and NOT NULL columns. * Named constraints. * Single-column and multi-column constraints. * Creation of constraints inline and out-of-line. * Support for creation, modification and d...
snowflake_docs/identifiers-syntax_8_0.txt
Controlling case using the QUOTED_IDENTIFIERS_IGNORE_CASE parameter ¶ To configure Snowflake to treat alphabetic characters in double-quoted identifiers as uppercase for the session, set the parameter to TRUE for the session. With this setting, all alphabetical characters in identifiers are stored and resolved as up...
snowflake_docs/create-file-format_17_0.txt
Usage Notes ¶ Caution Recreating a file format (using CREATE OR REPLACE FILE FORMAT) breaks the association between the file format and any external table that references it. This is because an external table links to a file format using a hidden ID rather than the name of the file format. Behind the scenes, the CRE...
snowflake_docs/decode_1_0.txt
DECODE ¶ Compares the select expression to each search expression in order. As soon as a search expression matches the selection expression, the corresponding result expression is returned. Note DECODE in Snowflake is different from the DECODE function in PostgreSQL, which converts data into different encodings.
snowflake_docs/create-procedure_21_0.txt
Java ¶ ` IMPORTS = ( ' _ stage_path_and_file_name_to_read _ ' [, ' _ stage_path_and_file_name_to_read _ ' ...] ) ` The location (stage), path, and name of the file(s) to import. You must set the IMPORTS clause to include any files that your stored procedure depends on: * If you are writing an in-line s...
snowflake_docs/system_task_dependents_enable_0_0.txt
/ 1. Control 29. Information 90. Query Information SYSTEM$TASK_DEPENDENTS_ENABLE Categories:
snowflake_docs/parameters_62_0.txt
MAX_DATA_EXTENSION_TIME_IN_DAYS ¶ Type : Object (for databases, schemas, and tables) — Can be set for Account » Database » Schema » Table Data Type : Integer Description : Maximum number of days for which Snowflake can extend the data retention period for tables to prevent streams on the tables from becoming stal...
snowflake_docs/as_char-varchar_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/to_variant_5_0.txt
Examples ¶ Use TO_VARIANT to insert values into a table. CREATE OR REPLACE TABLE to_variant_example ( v_varchar VARIANT, v_number VARIANT, v_timestamp VARIANT, v_array VARIANT, v_object VARIANT); INSERT INTO to_variant_example (v_varchar, v_number, v_timestamp, v_arr...
snowflake_docs/right_6_0.txt
Collation Details ¶ * Collation applies to ` VARCHAR ` inputs. Collation does not apply if the input data type of the first parameter is ` BINARY ` . * No impact. Although collation is accepted syntactically, collations have no impact on processing. For example, languages with two-character and three-characte...
snowflake_docs/columns_1_0.txt
COLUMNS View ¶ This Information Schema view displays a row for each column in the tables defined in the specified (or current) database. See also:
snowflake_docs/rlike_2_0.txt
Syntax ¶ -- 1st syntax RLIKE( <subject> , <pattern> [ , <parameters> ] ) -- 2nd syntax <subject> [ NOT ] RLIKE <pattern> Copy
snowflake_docs/rtrim_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/set_spending_limit_2_0.txt
Syntax ¶ <budget_name>!SET_SPENDING_LIMIT(<number>) Copy
snowflake_docs/revoke-privilege_12_0.txt
Database roles ¶ Revoke the SELECT privilege on all existing tables in the ` mydb.myschema ` schema from the ` mydb.dr1 ` database role: > > REVOKE SELECT ON ALL TABLES IN SCHEMA mydb.myschema > FROM DATABASE ROLE mydb.dr1; > > > Copy Revoke all privileges on two UDFs (with the same name in the current...
snowflake_docs/intro-summary-operators-functions_2_0.txt
Scalar Functions ¶ A scalar function is a function that returns one value per invocation; in most cases, you can think of this as returning one value per row. This contrasts per group of rows. For a complete list of scalar function categories, see [ Scalar Functions
snowflake_docs/changes_0_0.txt
/ Categories:
snowflake_docs/constraints-overview_3_0.txt
Table Constraints ¶ Snowflake supports defining constraints on permanent, transient, and temporary tables. Constraints can be defined on columns of all data types, and there are no limits on the number of columns that can be included in a constraint. * When a table is copied using CREATE TABLE … LIKE or CREATE TAB...
snowflake_docs/is-distinct-from_2_0.txt
Syntax ¶ <expr1> IS [ NOT ] DISTINCT FROM <expr2> Copy
snowflake_docs/services_1_0.txt
SERVICES View ¶ This view shows existing Snowpark Container Services services in the database.
snowflake_docs/select_4_0.txt
Selecting Specific Columns ¶ [ ... ] SELECT [ { ALL | DISTINCT } ] [ TOP <n> ] { [{<object_name>|<alias>}.]<col_name> | [{<object_name>|<alias>}.]$<col_position> | <expr> } [ [ AS ] <col_alias> ] [ , ... ] [ ......
snowflake_docs/show-application-roles_3_0.txt
Required parameters ¶ ` _ name _ ` Specifies the application whose application roles you want to view.
snowflake_docs/as_array_2_0.txt
Syntax ¶ AS_ARRAY( <variant_expr> ) Copy
snowflake_docs/system_start_oauth_flow_3_0.txt
Arguments ¶ ` ' _ database_name.schema_name.secret_name _ ' ` The name of the OAuth2 secret specifying authentication information for the API to access with OAuth.
snowflake_docs/bitnot_3_0.txt
Arguments ¶ ` _ expr _ ` This expression must evaluate to a data type that can be cast to ` INTEGER ` .
snowflake_docs/system_clustering_ratio_4_0.txt
Usage Notes ¶ * All arguments are strings (i.e. they must be enclosed in single quotes). * If ` _ predicate _ ` contains a string, the string must be enclosed in single quotes, which then must be escaped using single quotes. For example: > ` SYSTEM$CLUSTERING_RATIO( ... , 'col1 = 100 and col2 = ''A''...
snowflake_docs/create-share_0_0.txt
/ 1. Database 9. Schema 17. Share database) CREATE SHARE
snowflake_docs/create-integration_0_0.txt
/ 1. General 7. API 10. Catalog 15. External access 18. Notification 21. Security 25. Storage INTEGRATION
snowflake_docs/position_7_0.txt
Examples ¶
snowflake_docs/create-custom-classifier_4_0.txt
Parameters ¶ ` _ custom_classifier_name _ () ` Specifies the identifier (name) for the instance; the name must be unique for the schema in which the object is created. You must add the parentheses at the end of the identifier when creating the object. In addition, the identifier must start with an alphabetic chara...
snowflake_docs/data-types-semistructured_16_0.txt
ARRAY ¶ A Snowflake ARRAY is similar to an array in many other programming languages. An ARRAY contains 0 or more pieces of data. Each element is accessed by specifying its position in the array.
snowflake_docs/system_classify_schema_5_0.txt
Returns ¶ The stored procedure returns a JSON object in the following format. For example: { "failed": [ { "message": "Insufficient privileges.", "table_name": "t4" } ], "succeeded": [ { "table_name": "t1" }, { "tab...
snowflake_docs/information_schema_catalog_name_3_0.txt
Usage Notes ¶ * This view always contains a single row. Was this page helpful? Yes No Inc. All Rights Reserved . On this page 1. Columns 2. Usage Notes Language : **English**
snowflake_docs/show-streamlits_5_0.txt
Output ¶ The command output provides information about a Streamlit object in the following columns: Column | Description ---|--- ` created_on ` | Date and time when the Streamlit object was created. ` name ` | Name of the Streamlit object. ` database_name ` | Database in which the Streamlit object is stor...
snowflake_docs/drop-authentication-policy_2_0.txt
Syntax ¶ DROP AUTHENTICATION POLICY [ IF EXISTS ] <name> Copy
snowflake_docs/sha1_1_0.txt
SHA1 , SHA1_HEX ¶ Returns a 40-character hex-encoded string containing the 160-bit SHA-1 message digest. These functions are synonymous.
snowflake_docs/pow_3_0.txt
Usage Notes ¶ Always returns a floating point number, even if the input expressions are of integer types.
snowflake_docs/date_from_parts_0_0.txt
/ 1. Construction 5. Extraction 29. Addition & Subtraction 38. Truncation 42. Conversion 57. Time Zone 59. Alerts date-time) DATE_FROM_PARTS Categories:
snowflake_docs/get_linked_resources_3_0.txt
Returns ¶ The function returns the following columns: Column Name | Data Type | Description ---|---|--- RESOURCE_ID | NUMBER | Internal identifier for the object. NAME | VARCHAR | Name of the object. DOMAIN | VARCHAR | Domain of the object. Valid values: TABLE SCHEMA_NAME | VARCHAR | Name of the schema tha...
snowflake_docs/bitmap_bit_position_2_0.txt
Syntax ¶ BITMAP_BIT_POSITION( <numeric_expr> ) Copy
snowflake_docs/where_0_0.txt
/ Categories:
snowflake_docs/system_log_0_0.txt
/ 1. Control 29. Information 90. Query Information SYSTEM$LOG Categories:
snowflake_docs/current_task_graphs_6_0.txt
label-task-dag) ) is next scheduled to start running, assuming the current run of the standalone task or [ Task graphs SCHEDULED_TIME time completes in time. ROOT_TASK_ID | TEXT | guide/tasks-intro.html
snowflake_docs/cosh_2_0.txt
Syntax ¶ COSH( <real_expr> ) Copy
snowflake_docs/show-delegated-authorizations_5_0.txt
Examples ¶ List all delegated authorizations for your account: > > SHOW DELEGATED AUTHORIZATIONS; > > > +-------------------------------+-----------+-----------+-------------------+--------------------+ > | created_on | user_name | role_name | > integration_name | integration_status | >...
snowflake_docs/show-replication-accounts_1_0.txt
SHOW REPLICATION ACCOUNTS ¶ Lists all the accounts in your organization that are enabled for replication account is located. Note accounts) , which is deprecated. See also:
snowflake_docs/hll_estimate_4_0.txt
Examples ¶ This example shows how to use the three related functions ` HLL_ACCUMULATE ` , ` HLL_ESTIMATE ` , and ` HLL_COMBINE ` . > Create a simple table and data: > >> >> -- Create a sequence to use to generate values for the table. >> CREATE OR REPLACE SEQUENCE seq92; >> CREATE OR REPLACE TABLE seq...
snowflake_docs/to_geography_5_0.txt
Usage Notes ¶ * Issues an error if the input cannot be parsed as one of the supported formats (WKT, WKB, EWKT, EWKB, GeoJSON). * For the coordinates in WKT, EWKT, and GeoJSON, longitude appears before latitude (e.g. ` POINT( _ lon _ _ lat _ ) ` ).
snowflake_docs/bitand_agg_4_0.txt
Returns ¶ The data type of the returned value is NUMERIC(38, 0).
snowflake_docs/timeadd_5_0.txt
Returns ¶ If ` _ date_or_time_expr _ ` is a time: > * The return data type is a time. > > If ` _ date_or_time_expr _ ` is a timestamp: > * The return data type is a timestamp. > > If ` _ date_or_time_expr _ ` is a date: > * If ` _ date_or_time_part _ ` is ` day ` or larger (e.g. ` month ` , ` > year ` )...
snowflake_docs/bitand_4_0.txt
Returns ¶ Returns an integer that represents the bitwise AND of the input expressions.
snowflake_docs/system_allowlist_privatelink_4_0.txt
Returns ¶ The data type of the returned value is ` VARIANT ` . The value is an array of JSON structures. Each JSON structure contains three key/value pairs: ` type ` Snowflake supports the following types: ` SNOWFLAKE_DEPLOYMENT ` Hostname and port number information for your Snowflake account. ` SNOWFLAKE_DEPLOY...
snowflake_docs/query_acceleration_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/last_value_2_0.txt
Syntax ¶ LAST_VALUE( <expr> ) [ { 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/arrays_to_object_7_0.txt
Examples ¶ The following example returns an OBJECT that contains key-value pairs specified by two input ARRAYs: SELECT ARRAYS_TO_OBJECT(['key1', 'key2', 'key3'], [1, 2, 3]); Copy +-------------------------------------------------------+ | ARRAYS_TO_OBJECT(['KEY1', 'KEY2', 'KEY3'], [1, 2, 3]) | |-----...
snowflake_docs/sha1_binary_6_0.txt
Examples ¶ SELECT sha1_binary('Snowflake'); ------------------------------------------+ SHA1_BINARY('SNOWFLAKE') | ------------------------------------------+ FDA76B0BCC1E87CF259B1D1E3271D76F590FB5DD | ------------------------------------------+ Copy The data type of the out...
snowflake_docs/commands-streamlit_2_0.txt
Streamlit Commands ¶ Was this page helpful? Yes No Inc. All Rights Reserved . On this page 1. Streamlit Commands Related content Language : **English**
snowflake_docs/expressions-conditional_0_0.txt
/
snowflake_docs/alter-service_8_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, see [
snowflake_docs/sample_5_0.txt
Examples ¶
snowflake_docs/ntile_5_0.txt
Examples ¶ SELECT exchange, symbol, NTILE(4) OVER (PARTITION BY exchange ORDER BY shares) AS ntile_4 FROM trades ORDER BY exchange, NTILE_4; +--------+------+-------+ |exchange|symbol|NTILE_4| +--------+------+-------+ |C |SPY | 1| |C |AAPL | ...
snowflake_docs/to_object_3_0.txt
Syntax ¶ TO_OBJECT( <expr> ) Copy
snowflake_docs/system_revoke_stage_privatelink_access_4_0.txt
Arguments ¶ ` ' _ privateEndpointResourceID _ ' ` The unique identifier for the Private Endpoint in Azure. Snowflake uses this endpoint value to access the internal stage through the Azure internal network to avoid the public Internet. For instructions on how to obtain this value, see [ Configuring private intern...
snowflake_docs/desc-task_3_0.txt
Parameters ¶ ` _ name _ ` Specifies the identifier for the task to describe. 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/data-types-structured_40_0.txt
Functions That Accept Multiple ARRAYs as Input ¶ The following functions accept multiple ARRAYs as input arguments: When you call these functions, both arguments must either be structured ARRAYs or semi-structured ARRAYs. For example, the following calls fail because one argument is a structured ARRAY and the other ...
snowflake_docs/alter-table-column_3_0.txt
label-data-type-number) (e.g. ` NUMBER(20,2) ` to ` NUMBER(10,2) ` ). | ✔ | | Only allowed if the new precision is sufficient to hold all values currently in the column. In addition, decreasing the precision can impact Time Travel (see Usage Notes for details). data-type-number) (e.g. ` NUMBER(10,2) ` to ` NUM...
snowflake_docs/st_makeline_3_0.txt
Arguments ¶ ` _ geography_expression_1 _ ` A GEOGRAPHY object containing the points to connect. This object must be a Point, MultiPoint, or LineString. ` _ geography_expression_2 _ ` A GEOGRAPHY object containing the points to connect. This object must be a Point, MultiPoint, or LineString. ` _ geometry_expression...
snowflake_docs/try_to_time_1_0.txt
TRY_TO_TIME ¶ 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). For more information, see [ Error-handling Conversion Functions See also:
snowflake_docs/commands-security_3_0.txt
Network policy ¶
snowflake_docs/account-usage_7_1.txt
3 hours | | Data retained for 1 year. [1] All latency times are approximate; in some instances, the actual latency may be lower. [2] The latency of the views for a given table may be up to 2 days if both of the following conditions are true: 1. Fewer than 32 DML statements have been added to the given table since i...
snowflake_docs/array_to_string_1_0.txt
ARRAY_TO_STRING ¶ Returns an input array converted to a string by casting all values to strings from the second argument to separate the elements).
snowflake_docs/changes_3_0.txt
Usage Notes ¶ * Currently, at least one of the following must be true before change tracking metadata is recorded for a table: Both options add hidden columns to the table which store change tracking metadata. The columns consume a small amount of storage. To query the change data for a view, change tracking mu...
snowflake_docs/show-alerts_9_0.txt
Usage Notes ¶ * Only returns rows for an alert owner (i.e. the role with the OWNERSHIP privilege on an alert) or a role with the OPERATE privilege on an alert. * The command does not require a running warehouse to execute. * The value for ` LIMIT _ rows _ ` cannot exceed ` 10000 ` . If ` LIMIT _ rows _ ...
snowflake_docs/system_get_directory_table_status_5_0.txt
Usage notes ¶ * To call this function, you must use a role that is granted or inherits the READ privilege on the stage(s) for which you want to retrieve consistency status.
snowflake_docs/desc-row-access-policy_2_0.txt
Syntax ¶ DESC[RIBE] ROW ACCESS POLICY <name>; Copy
snowflake_docs/md5_number_lower64_4_0.txt
Returns ¶ A 64 bit unsigned integer that represents the lower 64 bits of the message digest.