id
stringlengths
16
145
text
stringlengths
1
179k
title
stringclasses
1 value
snowflake_docs/dynamic_table_graph_history_1_0.txt
DYNAMIC_TABLE_GRAPH_HISTORY ¶ Available to accounts. guide/dynamic-tables-about) in the current account. This information includes the dependencies between dynamic tables and on base tables. A common use is to identify all dynamic tables that are part of a pipeline. In the output of this function, each row represent...
snowflake_docs/parse_json_4_0.txt
Returns ¶ The returned value is of type ` VARIANT ` and contains a JSON document. .
snowflake_docs/functions-encryption_0_0.txt
/
snowflake_docs/access_history_5_0.txt
label-native-apps-redacted-info) . Tag-based masking notes : If a user accesses a table or view protected by a [ tag-based masking policy column contains the masking policy applied through the tag when Snowflake enforces the masking policy on the protected column. The ACCESS_HISTORY view does not record any tag inform...
snowflake_docs/applicable_roles_1_0.txt
APPLICABLE_ROLES View ¶ This Information Schema view displays one row for each role grant. Roles can be granted to individual users and other roles. For more information about roles and grants, see [ Overview of Access Control See also:
snowflake_docs/show-packages-policies_7_0.txt
label-security-custom-role) . For general information about roles and privilege grants for performing SQL overview.html
snowflake_docs/approx_top_k_accumulate_3_0.txt
Arguments ¶ ` _ expr _ ` The expression (e.g. column name) for which you want to find the most common values. ` _ counters _ ` This is the maximum number of distinct values that can be tracked at a time during the estimation process. For example, if ` _ counters _ ` is set to 100000, then the algorithm tracks 100...
snowflake_docs/h3_get_resolution_1_0.txt
H3_GET_RESOLUTION ¶ types-geospatial-h3) cell.
snowflake_docs/commands-database_4_0.txt
Share ¶ Was this page helpful? Yes No Inc. All Rights Reserved . On this page 1. Database 2. Schema 3. Share Language : **English**
snowflake_docs/create-password-policy_3_0.txt
Syntax ¶ CREATE [ OR REPLACE ] PASSWORD POLICY [ IF NOT EXISTS ] <name> [ PASSWORD_MIN_LENGTH = <integer> ] [ PASSWORD_MAX_LENGTH = <integer> ] [ PASSWORD_MIN_UPPER_CASE_CHARS = <integer> ] [ PASSWORD_MIN_LOWER_CASE_CHARS = <integer> ] [ PASSWORD_MIN_NUMERIC_CHARS = <integer> ] ...
snowflake_docs/account-usage_22_0.txt
Examples: Data Storage Usage ¶ Billable terabytes stored in your account over time: > > select date_trunc(month, usage_date) as usage_month > , avg(storage_bytes + stage_bytes + failsafe_bytes) / power(1024, 4) > as billable_tb > from storage_usage > group by 1 > order by 1; > > > Copy
snowflake_docs/st_startpoint_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_STARTPOINT Categories:
snowflake_docs/regr_sxy_5_0.txt
Examples ¶ create or replace table aggr(k int, v decimal(10,2), v2 decimal(10, 2)); insert into aggr values(1, 10, null); insert into aggr values(2, 10, 11), (2, 20, 22), (2, 25,null), (2, 30, 35); Copy select k, regr_sxy(v, v2) from aggr group by k; ---+-----------------+ k | regr_sxy(v, v2...
snowflake_docs/regexp_substr_8_3.txt
> | APACHE_HTTP_SERVER_ACCESS > | > > |-----------------------------------------------------------------------------------------------------------------------------------------| > | { "ip_addr":"127.0.0.1", "date":"10/Jan/2018:16:55:36 -0800", > "request":"GET / HTTP/1.0", "status":"200", "size":"2216"} ...
snowflake_docs/qualify_2_0.txt
Syntax ¶ QUALIFY <predicate> Copy The general form of a statement with QUALIFY is similar to the following (some variations in order are allowed, but are not shown): SELECT <column_list> FROM <data_source> [GROUP BY ...] [HAVING ...] QUALIFY <predicate> [ ... ] Copy ` _ column_l...
snowflake_docs/copy-into-table_8_1.txt
h PARSE_HEADER = TRUE. Default: ` FALSE ` ` SKIP_HEADER = _ integer _ ` Number of lines at the start of the file to skip. Note that SKIP_HEADER does not use the RECORD_DELIMITER or FIELD_DELIMITER values to determine what a header line is; rather, it simply skips the specified number of CRLF (Carriage Return, Line ...
snowflake_docs/timestampadd_0_0.txt
/ 1. Construction 5. Extraction 29. Addition & Subtraction 38. Truncation 42. Conversion 57. Time Zone 59. Alerts date-time) TIMESTAMPADD Categories:
snowflake_docs/system_whitelist_3_0.txt
Arguments ¶ None.
snowflake_docs/undrop-database_2_0.txt
Syntax ¶ UNDROP DATABASE <name> Copy
snowflake_docs/st_geomfromgeohash_4_0.txt
Returns ¶ data-types-geometry) .
snowflake_docs/floor_0_0.txt
/ 1. Arithmetic 4. Rounding and Truncation 13. Exponent and Root 21. Logarithmic 24. Trigonometric 42. Other numeric) FLOOR Categories:
snowflake_docs/projection_policies_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/object_construct_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) (Array/Object)
snowflake_docs/alter-security-integration-scim_1_0.txt
ALTER SECURITY INTEGRATION (SCIM) ¶ Modifies the properties of an existing SCIM security integration. For information about modifying other types of security integrations (e.g. SAML2), See also:
snowflake_docs/create-database_4_0.txt
Secure Data Sharing Parameters ¶ ` _ provider_account _ . _ share_name _ ` intro) from which to create the database. As documented, the name of the share must be fully-qualified with the name of the account providing the share.
snowflake_docs/alter-materialized-view_4_0.txt
_ ` This command clusters the materialized view. Clustering re-orders the rows in the materialized view to increase performance for queries that filter based on the clustering key expressions. The ` _ expr
snowflake_docs/try_to_geography_3_0.txt
Arguments ¶ **Required:** ` _ varchar_expression _ ` The argument must be a string expression that represents a valid geometric object in one of the following formats: * WKT (well-known text). * WKB (well-known binary) in hexadecimal format (without a leading ` 0x ` ). * EWKT (extended well-known text). ...
snowflake_docs/create-stage_0_0.txt
/ 1. Stage 7. File Format 13. External Volume 20. Pipe 26. Snowpipe Streaming 28. Loading and Unloading loading) CREATE STAGE
snowflake_docs/get_spending_limit_4_0.txt
Access Control Requirements ¶ * The following minimum privileges and roles are required to view results for _custom budgets_ : * A role granted the USAGE privilege on the database and schema that contains the budget instance. * The following role is required to view results for the _account budget_ :
snowflake_docs/grant-ownership_0_0.txt
/ 1. User Management 7. Database Role Management 16. Account-level Role Management 25. Privilege Management GRANT OWNERSHIP
snowflake_docs/like_8_0.txt
Examples ¶ The following examples show the use of ` LIKE ` , ` NOT LIKE ` , and the wildcard character ` % ` : > > CREATE OR REPLACE TABLE like_ex(name VARCHAR(20)); > INSERT INTO like_ex VALUES > ('John Dddoe'), > ('Joe Doe'), > ('John_down'), > ('Joe down'), > ...
snowflake_docs/system_task_runtime_info_2_0.txt
Syntax ¶ SYSTEM$TASK_RUNTIME_INFO('<arg_name>') Copy
snowflake_docs/scheduled_time_2_0.txt
label-alerts-specify-timestamps) .
snowflake_docs/st_geographyfromwkb_3_0.txt
label-data-types-geography) . Aliases: ST_GEOGFROMWKB , ST_GEOGRAPHYFROMEWKB , ST_GEOGFROMEWKB See also:
snowflake_docs/desc-secret_7_0.txt
label-security-custom-role) . For general information about roles and privilege grants for performing SQL overview.html
snowflake_docs/bitmap_count_3_0.txt
Arguments ¶ ` _ bitmap _ ` This expression must evaluate to a bitmap returned by the [
snowflake_docs/grant-database-role-share_2_0.txt
Syntax ¶ GRANT DATABASE ROLE <name> TO SHARE <share_name> Copy
snowflake_docs/st_area_6_0.txt
Usage Notes ¶ * If ` _ geography_expression _ ` is not a Polygon, MultiPolygon, or GeometryCollection containing polygons, ST_AREA returns 0. * If ` _ geography_expression _ ` is a GeometryCollection, ST_AREA returns the sum of the areas of the polygons in the collection.
snowflake_docs/alter-stage_2_0.txt
Syntax ¶ ALTER STAGE [ IF EXISTS ] <name> RENAME TO <new_name> ALTER STAGE [ IF EXISTS ] <name> SET TAG <tag_name> = '<tag_value>' [ , <tag_name> = '<tag_value>' ... ] ALTER STAGE <name> UNSET TAG <tag_name> [ , <tag_name> ... ] -- Internal stage ALTER STAGE [ IF EXISTS ] <name> SET { [ FIL...
snowflake_docs/dense_rank_5_1.txt
------+ > > > Copy Was this page helpful? Yes No Inc. All Rights Reserved . On this page 1. Syntax 2. Arguments 3. Usage Notes 4. Examples Language : **English**
snowflake_docs/drop-password-policy_2_0.txt
label-password-policy-mgmt)
snowflake_docs/system_database_refresh_progress_2_0.txt
Syntax ¶ SYSTEM$DATABASE_REFRESH_PROGRESS( '<secondary_db_name>' ) SYSTEM$DATABASE_REFRESH_PROGRESS_BY_JOB( '<query_id>' ) Copy
snowflake_docs/get_object_references_6_0.txt
Examples ¶ Return the list of references for a view: > > -- create a database > create or replace database ex1_gor_x; > use database ex1_gor_x; > use schema PUBLIC; > > -- create a set of tables > create or replace table x_tab_a (mycol int not null); > create or replace table x_tab_b (m...
snowflake_docs/mod_2_0.txt
Syntax ¶ MOD( <expr1> , <expr2> ) Copy
snowflake_docs/system_get_compute_pool_status_4_0.txt
Returns ¶ Returns status information as a JSON object. The JSON fields are: * ` status ` . Compute pool status. * ` message ` . Message relevant to the status, if any. Otherwise, this field is empty.
snowflake_docs/sqrt_3_0.txt
Usage Notes ¶ * Always returns a floating point number, even if the input expression is of an integer type. * If the input expression is negative, an error will be reported.
snowflake_docs/drop-managed-account_2_0.txt
Syntax ¶ DROP MANAGED ACCOUNT <name> Copy
snowflake_docs/get_absolute_path_1_0.txt
GET_ABSOLUTE_PATH ¶ Retrieves the absolute path of a staged file using the stage name and path of the file relative to its location in the stage as inputs.
snowflake_docs/drop-budget_8_0.txt
label-access-control-securable-objects) , see [ Overview .
snowflake_docs/desc-alert_8_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.
snowflake_docs/st_aswkt_1_0.txt
ST_ASWKT , ST_ASTEXT ¶ types-geometry) , return the text (VARCHAR) representation of that value in [ known_text_representation_of_geometry) format. See also:
snowflake_docs/h3_coverage_strings_6_0.txt
Examples ¶ The following example returns an ARRAY of the hexadecimal IDs that identify the minimal set of H3 cells that completely cover the specified Polygon. SELECT H3_COVERAGE_STRINGS( TO_GEGGRAPHY( 'POLYGON((-122.481889 37.826683,-122.479487 37.808548,-122.474150 37.808904,-122.476510 37.826935...
snowflake_docs/execute-service_8_0.txt
label-security-custom-role) . For general information about roles and privilege grants for performing SQL overview.html
snowflake_docs/replication_group_refresh_progress_2_0.txt
Syntax ¶ REPLICATION_GROUP_REFRESH_PROGRESS( '<secondary_group_name>' ) REPLICATION_GROUP_REFRESH_PROGRESS_BY_JOB( '<query_id>' ) Copy
snowflake_docs/mod_5_0.txt
Usage Notes ¶ * Both ` _ expr1 _ ` and ` _ expr2 _ ` must be numeric expressions. They are not required to be integers.
snowflake_docs/create-function_21_0.txt
All Languages ¶ ` SECURE ` Specifies that the function is secure. For more information about secure functions, see [ Protecting Sensitive Information with Secure UDFs and Stored ` { TEMP | TEMPORARY } ` Specifies that the function persists only for the duration of the [ session function is dropped at the end o...
snowflake_docs/date-time-input-output_15_0.txt
Additional Information About Using Date, Time, and Timestamp Formats ¶ The following sections describe requirements and best practices for individual fields in dates, times, and timestamps. * Valid Ranges of Values for Fields * Using the Correct Number of Digits with Format Elements * Whitespace In Values an...
snowflake_docs/equal_null_0_0.txt
/ reference/expressions-conditional) EQUAL_NULL Categories:
snowflake_docs/alter-external-table_10_0.txt
Examples ¶
snowflake_docs/system_send_email_4_0.txt
Required ¶ ` _ integration_name _ ` procedures.html
snowflake_docs/is_granted_to_invoker_role_5_0.txt
label-stream-required-privileges) .
snowflake_docs/alter-file-format_2_0.txt
Syntax ¶ ALTER FILE FORMAT [ IF EXISTS ] <name> RENAME TO <new_name> ALTER FILE FORMAT [ IF EXISTS ] <name> SET { [ formatTypeOptions ] [ COMMENT = '<string_literal>' ] } Copy Where: > > formatTypeOptions ::= > -- If TYPE = CSV > COMPRESSION = AUTO | GZIP | BZ2 | BROTLI | ZSTD | DEFLATE | > ...
snowflake_docs/decrypt_raw_3_0.txt
Arguments ¶ **Required:** ` _ value_to_decrypt _ ` The binary value to decrypt. ` _ key _ ` The key to use to encrypt/decrypt the data. The key must be a BINARY value. The key can be any value as long as the length is correct. For example, for AES128, the key must be 128 bits (16 bytes), and for AES256, the key mu...
snowflake_docs/desc-catalog-integration_7_0.txt
label-security-custom-role) . For general information about roles and privilege grants for performing SQL overview.html
snowflake_docs/task_history_3_0.txt
label-task-dag) . The return value is explicitly set by function by the predecessor task. QUERY_ID | TEXT | ID of the SQL statement executed by the task. Can be joined with the QUERY_HISTORY view for additional details about the execution of the statement or stored procedure. QUERY_START_TIME | TIMESTAMP_LTZ | Time...
snowflake_docs/regexp_substr_1_0.txt
REGEXP_SUBSTR ¶ Returns the substring that matches a regular expression within a string. If no match is found, returns NULL.
snowflake_docs/system_get_privatelink_5_0.txt
Examples ¶ Verify whether AWS PrivateLink is authorized for your Snowflake account on AWS. Note that the values are truncated in this example. > > use role accountadmin; > > select SYSTEM$GET_PRIVATELINK( > '185...', > '{ > "Credentials": { > "AccessKeyId": "ASI...",...
snowflake_docs/task_versions_1_0.txt
TASK_VERSIONS view ¶ Available to all accounts. This Account Usage view enables you to retrieve the history of [ task versions guide/tasks-intro.html
snowflake_docs/collate_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/drop-aggregation-policy_2_0.txt
label-aggregation-policy-ddl)
snowflake_docs/commands-data-loading_1_0.txt
Data Loading and Unloading Commands ¶ Data loading and unloading commands enable you to manage data loading and unloading.
snowflake_docs/generate_column_description_2_0.txt
Syntax ¶ GENERATE_COLUMN_DESCRIPTION( <expr> , '<string>' ) Copy
snowflake_docs/normal_5_0.txt
Usage Notes ¶ function, both in the ranges of the values returned and their distribution. * ` RANDOM ` generates random 64-bit integers in a uniform distribution. It accepts an optional seed that allows random sequences to be repeated. When ` RANDOM ` is called a large number of times, the results are more or l...
snowflake_docs/st_npoints_7_0.txt
Examples ¶
snowflake_docs/literals-table_3_0.txt
Usage Notes ¶ * When a bind variable is used to prepare a statement, table metadata is not available after preparing the statement.
snowflake_docs/desc-catalog-integration_0_0.txt
/ 1. General 7. API 10. Catalog 15. External access 18. Notification 21. Security 25. Storage CATALOG INTEGRATION
snowflake_docs/substr_1_0.txt
SUBSTR , SUBSTRING ¶ Returns the portion of the string or binary value from ` _ base_expr _ ` , starting from the character/byte specified by ` _ start_expr _ ` , with optionally limited length. These functions are synonymous. See also :
snowflake_docs/encrypt_raw_2_0.txt
Syntax ¶ ENCRYPT_RAW( <value_to_encrypt> , <key> , <iv> , [ [ <additional_authenticated_data> , ] <encryption_method> ] ) Copy
snowflake_docs/alter-network-policy_1_0.txt
ALTER NETWORK POLICY ¶ Modifies the properties for an existing network policy. Currently, the only supported actions are changing the IP addresses that are allowed or denied access to the account and adding/overwriting/removing a comment for a network policy. Note Only the network policy owner (i.e. role with the OW...
snowflake_docs/create-service_1_0.txt
CREATE SERVICE ¶ > services/overview) is available to all Snowflake accounts in AWS commercial > regions except for trial accounts. guide/snowpark-container-services/working-with-services) in the current schema. If a service with that name already exists, use the [ DROP SERVICE You can run more than one instance of ...
snowflake_docs/alter-external-access-integration_2_0.txt
Syntax ¶ ALTER EXTERNAL ACCESS INTEGRATION [ IF EXISTS ] <name> SET [ ALLOWED_NETWORK_RULES = (<rule_name> [ , <rule_name> ... ]) ] [ ALLOWED_API_AUTHENTICATION_INTEGRATIONS = ( <integration_name_1> [, <integration_name_2>, ... ] ) ] [ ALLOWED_AUTHENTICATION_SECRETS = (<secret_name> [ , <secret...
snowflake_docs/operators-logical_3_0.txt
Examples ¶ The first example uses the following table and data: > > CREATE TABLE logical (t BOOLEAN, f BOOLEAN, n BOOLEAN); > INSERT INTO logical (t, f, n) VALUES (True, False, NULL); > > > Copy Logical operators are typically used in WHERE clauses: > > >> SELECT t, f, n FROM logical WHERE t AND NOT f;...
snowflake_docs/revoke-privilege_7_0.txt
label-role-hierarchy-and-privilege-inheritance) , can be used to revoke privileges on an object from other roles: If multiple instances of a privilege have been granted on the specified object, only the instances granted by the active grantor role are revoked. * The role has the global MANAGE GRANTS privilege. If mu...
snowflake_docs/drop-service_3_0.txt
Parameters ¶ ` _ name _ ` Specifies the identifier for the service to be dropped. 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/array_flatten_3_0.txt
Arguments ¶ ` _ array _ ` The ARRAY of ARRAYs to flatten. If any element of ` _ array _ ` is not an ARRAY, the function reports an error.
snowflake_docs/explain_json_3_0.txt
Arguments ¶ ` _ explain_output_in_json_format _ ` A string, or an expression that evaluates to a string, containing EXPLAIN output as a JSON-compatible string. Typically, this input is the output of the function SYSTEM$EXPLAIN_PLAN_JSON. If a literal string is used, it should be surrounded by single quote character...
snowflake_docs/concat_7_0.txt
Examples ¶ Concatenate two strings: > > SELECT CONCAT('George Washington ', 'Carver'); > +----------------------------------------+ > | CONCAT('GEORGE WASHINGTON ', 'CARVER') | > |----------------------------------------| > | George Washington Carver | > +-----------------------...
snowflake_docs/sysdate_4_0.txt
Returns ¶ Returns the current timestamp in the UTC time zone. datetime.html
snowflake_docs/transactions_18_0.txt
READ COMMITTED Isolation ¶ With READ COMMITTED isolation, a statement sees only data that was committed before the statement began. It never sees uncommitted data. When a statement is executed inside a multi-statement transaction: * A statement sees only data that was committed before the statement began. _Two s...
snowflake_docs/call-with_17_0.txt
General Usage ¶ * 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/listing-telemetry-daily_0_0.txt
/ Schema:
snowflake_docs/alter-file-format_5_1.txt
LE_EXTENSION = ' _ string _ ' | NONE ` Use : Data unloading only Definition : Specifies the extension for files unloaded to a stage. Accepts any extension. The user is responsible for specifying a file extension that can be read by any desired software or services. Default : null, meaning the file extension i...
snowflake_docs/iff_3_0.txt
Arguments ¶ ` _ condition _ ` The condition is an expression that should evaluate to a BOOLEAN value (True, False, or NULL). ` _ expr1 _ ` A general expression. This value is returned if the ` _ condition _ ` is true. ` _ expr2 _ ` A general expression. This value is returned if the ` _ condition _ ` is not tru...
snowflake_docs/concat_ws_4_0.txt
Returns ¶ The function returns a VARCHAR or BINARY that contains the 2nd through Nth arguments, separated by the first argument. The data type of the returned value is the same as the data type of the input value(s).
snowflake_docs/current_schema_5_0.txt
Examples ¶ Show the current warehouse, database, and schema: > > SELECT CURRENT_WAREHOUSE(), CURRENT_DATABASE(), CURRENT_SCHEMA(); > > > Copy > > Output: > > > +---------------------+--------------------+------------------+ > | CURRENT_WAREHOUSE() | CURRENT_DATABASE() | CURRENT_SCHEMA() | > |--...
snowflake_docs/show-schemas_4_0.txt
Usage Notes ¶ * When you specify the scope to either ` APPLICATION ` or the database named ` SNOWFLAKE ` , the ` owner ` column returns ` SNOWFLAKE ` as the owner for the schema named ` LOCAL ` . For example: > > SHOW SCHEMAS IN APPLICATION my_app; > SHOW SCHEMAS IN DATABASE SNOWFLAKE; > > > Copy T...
snowflake_docs/parameters_83_0.txt
SAML_IDENTITY_PROVIDER ¶ This parameter is deprecated. For more information, see [ Migrating to a SAML2 snowflake) . Type : Account — Can be set only for Account Data Type : JSON Description : Enables federated authentication. This deprecated parameter enables federated authentication. This parameter accepts a JS...
snowflake_docs/bitmap_construct_agg_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/current_statement_0_0.txt
/ 1. General 14. Session 29. Session Object 41. Alert context) CURRENT_STATEMENT Categories:
snowflake_docs/alter-stream_3_0.txt
Parameters ¶ ` _ name _ ` Identifier for the stream 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. ` SET ... ` Specifies the properties to set for the stream: ` TAG _ tag_name ...