id
stringlengths
16
145
text
stringlengths
1
179k
title
stringclasses
1 value
snowflake_docs/system_start_oauth_flow_0_0.txt
/ 1. Control 29. Information 90. Query Information SYSTEM$START_OAUTH_FLOW Categories:
snowflake_docs/desc-authentication-policy_8_0.txt
Usage Notes ¶
snowflake_docs/add_resource_0_0.txt
/ 1. Commands 4. Methods
snowflake_docs/check_json_4_0.txt
Examples ¶ Create a table and insert some ` VARCHAR ` and ` VARIANT ` values: > > CREATE TABLE sample_json_table (ID INTEGER, varchar1 VARCHAR, variant1 > VARIANT); > INSERT INTO sample_json_table (ID, varchar1) VALUES > (1, '{"ValidKey1": "ValidValue1"}'), > (2, '{"Malformed -- Missing val...
snowflake_docs/to_boolean_4_0.txt
Examples ¶ CREATE OR REPLACE TABLE test_boolean( b BOOLEAN, n NUMBER, s STRING); INSERT INTO test_boolean VALUES (true, 1, 'yes'), (false, 0, 'no'), (null, null, null); SELECT * FROM test_boolean; +-------+------+------+ | B | N | S | |-------+------+------| ...
snowflake_docs/show-views_4_0.txt
Usage Notes ¶ * The command does not require a running warehouse to execute. * The value for ` LIMIT _ rows _ ` cannot exceed ` 10000 ` . If ` LIMIT _ rows _ ` is omitted, the command results in an error if the result set is larger than 10K rows. To view results for which more than 10K records exist, eith...
snowflake_docs/st_length_6_0.txt
Returns ¶ Returns a REAL value, which represents the length: * For GEOGRAPHY input values, the length is in meters. * For GEOMETRY input values, the length is computed with the same units used to define the input coordinates.
snowflake_docs/covar_samp_3_0.txt
Usage Notes ¶ * DISTINCT is not supported for this function. * When used as a window function: > * This function does not support: > >> * ORDER BY sub-clause in the OVER() clause. >> >> * Window frames.
snowflake_docs/current_secondary_roles_6_0.txt
Examples ¶ Custom roles ` role1 ` , ` role2 ` , and ` role3 ` have been granted to the current user and are active as secondary roles: SELECT CURRENT_SECONDARY_ROLES(); Copy Output: > > +------------------------------------------------------+ > | CURRENT_SECONDARY_ROLES() | ...
snowflake_docs/system_pipe_status_6_0.txt
label-snowpipe-resume-stale-pipe) , the ` > pendingFileCount ` count ignores any event notifications older than the > limited retention period. > > ` AUTO_INGEST = FALSE ` > > > Calls to the ` insertFiles ` REST endpoint trigger files to be queued for > loading by the pipe. > > ` lastPipeErrorTimestamp ` > > ...
snowflake_docs/array_max_3_0.txt
Arguments ¶ ` _ array _ ` The input ARRAY.
snowflake_docs/activate_2_0.txt
Syntax ¶ CALL account_root_budget!ACTIVATE() Copy
snowflake_docs/create-image-repository_6_0.txt
label-security-custom-role) . For general information about roles and privilege grants for performing SQL overview.html
snowflake_docs/replication_group_refresh_history_0_0.txt
/ Schema:
snowflake_docs/date-time-examples_2_0.txt
Loading Dates and Timestamps ¶
snowflake_docs/current_organization_name_4_0.txt
Returns ¶ The data type of the returned value is ` VARCHAR ` .
snowflake_docs/show-secrets_1_0.txt
SHOW SECRETS ¶ Lists the secrets for which you have rights to see. This command can be used to list the secrets for a specified database or schema (or the current database/schema for the session), or your entire account. See also:
snowflake_docs/alter-stage_3_0.txt
Directory table syntax ¶ ALTER STAGE [ IF EXISTS ] <name> SET DIRECTORY = ( { ENABLE = TRUE | FALSE } ) ALTER STAGE [ IF EXISTS ] <name> REFRESH [ SUBPATH = '<relative-path>' ] Copy
snowflake_docs/parameters_32_0.txt
DATE_OUTPUT_FORMAT ¶ Type : Session — Can be set for Account » User » Session Data Type : String Description : Specifies the display format for the DATE data type. For more information, see Values : Any valid, supported date format Default : ` YYYY-MM-DD `
snowflake_docs/st_xmax_1_0.txt
ST_XMAX ¶ Returns the maximum longitude (X coordinate) of all points contained in the geometry) object.
snowflake_docs/grant-database-role_8_0.txt
Usage notes ¶ The system-defined roles, including PUBLIC, do not need to be granted to other roles because the role hierarchy for these roles is defined and maintained by Snowflake.
snowflake_docs/commands-replication_1_0.txt
Replication and Failover Commands ¶ Replication and failover commands enable you to manage replication and failover.
snowflake_docs/tag_references_5_0.txt
label-classification-system-tags) , use a role with IMPORTED PRIVILEGES on the shared SNOWFLAKE database.
snowflake_docs/to_char_0_0.txt
/ 1. Any Data Type 4. Text, Character, Binary Data Types 9. Numeric Data Types 18. Boolean Data Types 21. Date and Time Data Types 36. Semi-Structured Data Types 40. Geospatial Data Types conversion) TO_CHAR Categories:
snowflake_docs/hex_encode_5_0.txt
Examples ¶ Encode a string: SELECT HEX_ENCODE('Snowflake'); -------------------------+ HEX_ENCODE('SNOWFLAKE') | -------------------------+ 536E6F77666C616B65 | -------------------------+ Copy Encode a string using lowercase letters: SELECT HEX_ENCODE('Snowflake',0); ----------...
snowflake_docs/usage_privileges_3_0.txt
Usage notes ¶ * 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 : **English**
snowflake_docs/system_abort_session_0_0.txt
/ 1. Control 29. Information 90. Query Information SYSTEM$ABORT_SESSION Categories:
snowflake_docs/views_0_0.txt
/ Schema:
snowflake_docs/drop-resource-monitor_1_0.txt
DROP RESOURCE MONITOR ¶ monitors) from the system. See also: resource-monitors)
snowflake_docs/create-external-table_24_0.txt
External table that references files in a Delta Lake ¶ Create a partitioned external table named ` ext_twitter_feed ` that references the Delta Lake files in Parquet format in the ` mystage ` external stage and ` daily ` path. The partition column ` date_part ` casts ` _ YYYY _ / _ MM _ / _ DD _ ` in the ME...
snowflake_docs/show-grants_3_0.txt
Variants ¶ ` SHOW GRANTS ` Syntactically equivalent to ` SHOW GRANTS TO USER _ current_user _ ` . Lists all the roles granted to the current user. ` LIMIT _ rows _ ` Optionally limits the maximum number of rows returned. The actual number of rows returned night be less than the specified limit. For example,...
snowflake_docs/show-versions_1_0.txt
SHOW VERSIONS ¶ Available This feature is not supported on Google Cloud Platform. Lists the versions defined in the specified application package. See also:
snowflake_docs/timestampadd_4_0.txt
label-supported-date-time-parts) . ` _ value _ ` This is the number of units of time that you want to add. For example, if you want to add 2 days, this is 2. ` _ date_or_time_expr _ ` ` _ date_or_time_expr _ ` must evaluate to a date, time, or timestamp. This is the date, time, or timestamp to which you want to add....
snowflake_docs/show-projection-policies_9_0.txt
Usage notes ¶ * The command does not require a running warehouse to execute. * The value for ` LIMIT _ rows _ ` cannot exceed ` 10000 ` . If ` LIMIT _ rows _ ` is omitted, the command results in an error if the result set is larger than 10K rows. To view results for which more than 10K records exist, eith...
snowflake_docs/alter-alert_16_0.txt
Usage Notes ¶ * When an alert is resumed, Snowflake verifies that the role with the OWNERSHIP privilege on the alert also has the USAGE privilege on the warehouse assigned to the alert, as well as the global EXECUTE ALERT privilege; if not, an error is produced. * When you execute CREATE ALERT or ALTER ALERT, s...
snowflake_docs/grouping_id_1_0.txt
GROUPING_ID ¶ Describes which of a list of expressions are grouped in a row produced by a [
snowflake_docs/data-types-geospatial_34_0.txt
Understanding the Effects of Invalid Shapes on Geospatial Functions ¶ effects when you pass in a GEOGRAPHY or GEOMETRY object for an invalid shape.
snowflake_docs/functions-date-time_9_0.txt
Controlling the First Day of the Week ¶ Setting WEEK_START to ` 0 ` (legacy behavior) or ` 1 ` (Monday) does not have a significant effect, as illustrated in the following two examples: > > ALTER SESSION SET WEEK_START = 0; > > SELECT d "Date", DAYNAME(d) "Day", > DAYOFWEEK(d) "DOW", > ...
snowflake_docs/h3_cell_to_boundary_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) H3_CELL_TO_BOUNDARY Categories:
snowflake_docs/flatten_5_0.txt
Usage Notes ¶ types-structured) , see [ Using the FLATTEN Function With Structured Types
snowflake_docs/alter-file-format_5_0.txt
TYPE = CSV ¶ ` COMPRESSION = AUTO | GZIP | BZ2 | BROTLI | ZSTD | DEFLATE | RAW_DEFLATE | NONE ` Use : Data loading, data unloading, and external tables Definition : * When loading data, specifies the current compression algorithm for the data file. Snowflake uses this option to detect how an alr...
snowflake_docs/drop-pipe_2_0.txt
Syntax ¶ DROP PIPE [ IF EXISTS ] <name> Copy
snowflake_docs/desc-application_4_1.txt
evious version of the application object. ` previous_patch ` | The number of the previous patch of the installed application object. ` previous_version_state ` | The state of the previous version of the application object.
snowflake_docs/operators_1_0.txt
Query Operators ¶ Snowflake supports most of the standard operators defined in SQL:1999. These operators include arithmetic operators (such as ` + ` and ` - ` ), set operators (such as ` UNION ` ), subquery operators (such as ` ANY ` ), etc. Category | Operators ---|--- | ` + ` , ` - ` , ` * ` , ` / ` , ...
snowflake_docs/create-connection_5_0.txt
Optional Parameters ¶ ` COMMENT = ' _ string_literal _ ' ` Specifies a comment for the connection. Default: No value
snowflake_docs/create-role_7_0.txt
label-security-custom-role) . For general information about roles and privilege grants for performing SQL overview.html
snowflake_docs/sqrt_2_0.txt
Syntax ¶ SQRT(expr) Copy
snowflake_docs/alter-view_8_0.txt
Examples ¶ Rename view ` view1 ` to ` view2 ` : > > ALTER VIEW view1 RENAME TO view2; > > > Copy Convert a view to a secure view: > > ALTER VIEW view1 SET SECURE; > > > Copy Revert a secure view to a regular view: > > ALTER VIEW view1 UNSET SECURE; > > > Copy Apply a Column-level Security masking...
snowflake_docs/st_distance_5_0.txt
Returns ¶ Returns a REAL value, which represents the distance: * For GEOGRAPHY input values, the distance is in meters. * For GEOMETRY input values, the distance is computed with the same units used to define the input coordinates.
snowflake_docs/nullif_1_0.txt
NULLIF ¶ Returns NULL if ` _ expr1 _ ` is equal to ` _ expr2 _ ` , otherwise returns ` _ expr1 _ ` .
snowflake_docs/grant-privilege_8_0.txt
Future grants on database or schema objects ¶ The notes in this section apply when assigning future grants on objects in a schema or a database; i.e. when using the ON FUTURE keyword. guide/security-access-control-configure.html
snowflake_docs/where_2_0.txt
Syntax ¶ ... WHERE <predicate> [ ... ] Copy ` _ predicate _ ` A boolean expression. The expression can include [ logical operators
snowflake_docs/sign_0_0.txt
/ 1. Arithmetic 4. Rounding and Truncation 13. Exponent and Root 21. Logarithmic 24. Trigonometric 42. Other numeric) SIGN Categories:
snowflake_docs/get_ignore_case_4_0.txt
label-data-type-variant) that contains either an ARRAY or an OBJECT. ` _ object _ ` semistructured.html
snowflake_docs/hll_estimate_3_0.txt
Arguments ¶ ` _ state _ ` An expression that contains state information generated by a call to [
snowflake_docs/create-clone_0_0.txt
/
snowflake_docs/like_2_0.txt
Syntax ¶ <subject> [ NOT ] LIKE <pattern> [ ESCAPE <escape> ] LIKE( <subject> , <pattern> [ , <escape> ] ) Copy
snowflake_docs/usage_in_currency_daily_legacy_3_0.txt
label-understanding-billing-for-cloud-services-usage) . > > * ` automatic clustering ` — Refer to [ Automatic Clustering > > * ` cloud services ` — Refer to [ Cloud service credit usage > credit-usage) . > > guide/cost-understanding-compute.html
snowflake_docs/show-regions_0_0.txt
/ 4. Replication 11. Failover/Failback 18. Client Redirect SHOW REGIONS
snowflake_docs/create-failover-group_21_0.txt
Examples ¶
snowflake_docs/drop-index_6_0.txt
Examples ¶ Removes the secondary index ` c_idx ` on table ` t0 ` : DROP INDEX t0.c_idx; 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/current_account_5_0.txt
Arguments ¶ None.
snowflake_docs/data-types-datetime_2_0.txt
Data Types ¶
snowflake_docs/to_double_1_0.txt
TO_DOUBLE ¶ Converts an expression to a double-precision floating-point number. For NULL input, the result is NULL. See also:
snowflake_docs/jarowinkler_similarity_2_0.txt
Syntax ¶ JAROWINKLER_SIMILARITY( <string_expr1> , <string_expr2> ) Copy
snowflake_docs/revoke-application-role_0_0.txt
/ 1. APPLICATION 7. APPLICATION PACKAGE 12. APPLICATION ROLE 19. Additional Commands REVOKE APPLICATION ROLE
snowflake_docs/object_dependencies_1_0.txt
OBJECT_DEPENDENCIES view ¶ This Account Usage view displays one row for each object dependency. For example, while creating a view from a single table, the view is dependent on the table. Snowflake returns one row to record the dependency of the view on the table. However, if creating the view is dependent on two ta...
snowflake_docs/like_all_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/mode_1_0.txt
MODE ¶ Returns the most frequent value for the values within ` _ expr1 _ ` . NULL values are ignored. If all the values are NULL, or there are 0 rows, then the function returns NULL.
snowflake_docs/operators-arithmetic_4_0.txt
Multiplication ¶ When performing multiplication: * The number of leading digits in the output is the sum of the leading digits in both inputs. * Snowflake minimizes potential overflow (due to chained multiplication) by adding the number of digits in the scale of both inputs, up to a maximum threshold of 12 digi...
snowflake_docs/show-custom-classifiers_1_0.txt
SHOW CUSTOM_CLASSIFIER ¶ _Fully qualified name:_ SNOWFLAKE.DATA_PRIVACY.CUSTOM_CLASSIFIER 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) . See also: custom...
snowflake_docs/trunc2_3_0.txt
Arguments ¶ * ` _ date_or_time_expr _ ` This must be an expression that evaluates to a DATE or a TIMESTAMP.
snowflake_docs/forecast_2_0.txt
CREATE SNOWFLAKE.ML.FORECAST ¶ Creates a new forecast model from the training data you provide or replaces the forecast model of the same name.
snowflake_docs/alter-password-policy_2_0.txt
label-password-policy-mgmt)
snowflake_docs/with_17_0.txt
112 bolt | 112 | 12 | > | .........piston | 121 | 12 | > | .........cylinder block | 122 | 12 | > +-------------------------+--------------+---------------------+ > > > Copy For more examples, see [ Working with CTE...
snowflake_docs/mod_0_0.txt
/ 1. Arithmetic 4. Rounding and Truncation 13. Exponent and Root 21. Logarithmic 24. Trigonometric 42. Other numeric) MOD Categories:
snowflake_docs/nvl_2_0.txt
Syntax ¶ NVL( <expr1> , <expr2> ) Copy
snowflake_docs/system_global_account_set_parameter_1_0.txt
SYSTEM$GLOBAL_ACCOUNT_SET_PARAMETER ¶ Enables replication and failover features for a specified account in an [ Once an organization administrator (a user with the ORGADMIN role) has called this function, the following features are enabled for the account: Call the SQL function once for each account in your organiza...
snowflake_docs/ilike_any_2_0.txt
Syntax ¶ <subject> ILIKE ANY (<pattern1> [, <pattern2> ... ] ) [ ESCAPE <escape_char> ] Copy
snowflake_docs/create-user_2_0.txt
Syntax ¶ CREATE [ OR REPLACE ] USER [ IF NOT EXISTS ] <name> [ objectProperties ] [ objectParams ] [ sessionParams ] [ [ WITH ] TAG ( <tag_name> = '<tag_value>' [ , <tag_name> = '<tag_value>' , ... ] ) ] Copy Where: > > objectProperties ::= > PASSWORD = '<string>' > LOGIN_...
snowflake_docs/system_link_account_objects_by_name_6_0.txt
Examples ¶ SELECT SYSTEM$LINK_ACCOUNT_OBJECTS_BY_NAME('myfg'); 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/last_value_1_0.txt
LAST_VALUE ¶ Returns the last value within an ordered group of values. See also:
snowflake_docs/sha2_1_0.txt
SHA2 , SHA2_HEX ¶ Returns a hex-encoded string containing the N-bit SHA-2 message digest, where N is the specified output digest size. These functions are synonymous.
snowflake_docs/serverless_task_history_5_0.txt
Usage Notes ¶ * Returns results only for the ACCOUNTADMIN role or any role that has been explicitly granted the MONITOR USAGE global privilege. Note A role with the MONITOR USAGE privilege can view per-object credit usage, but not object names. * The history is displayed in increments of 1 hour.
snowflake_docs/system_enable_behavior_change_bundle_3_0.txt
Arguments ¶ ` _ bundle_name _ ` Name of the behavior change bundle, specified as a string. To obtain the name changes) .
snowflake_docs/desc-password-policy_2_0.txt
label-password-policy-mgmt)
snowflake_docs/show-databases-in-replication-group_5_0.txt
Examples ¶ List the databases in the replication group ` myrg ` : SHOW DATABASES IN REPLICATION GROUP myrg; Copy Was this page helpful? Yes No Inc. All Rights Reserved . On this page 1. Syntax 2. Parameters 3. Usage Notes 4. Examples Language : **English**
snowflake_docs/show-endpoints_11_0.txt
Examples ¶ The following example lists endpoints exposed by ` echo_service ` service: SHOW ENDPOINTS IN SERVICE echo_service; Copy +--------------+------+----------+----------------- +------------------------------------------------------------+ | name | port | protocol | ingress_enabled | ingre...
snowflake_docs/show-network-rules_2_0.txt
Syntax ¶ SHOW NETWORK RULES [ LIKE '<pattern>' ] [ IN { ACCOUNT | DATABASE [ <db_name> ] | [ SCHEMA ] [ <schema_name> ] } ] [ STARTS WITH '<name_string>' ] [ LIMIT <rows> [ FROM '<name_string>' ] ] Copy
snowflake_docs/drop-budget_3_0.txt
Parameters ¶ ` _ name _ ` Specifies the identifier for the budget. The identifier must start with an alphabetic character and cannot contain spaces or special characters unless the identifier string is enclosed in double quotes (e.g. ` "My object" ` ). Identifiers enclosed in double quotes are also case-sensitive...
snowflake_docs/alter-table_20_0.txt
Copy Options ( ` copyOptions ` ) ¶ overview) tables. You can specify one or more of the following copy options (separated by blank spaces, commas, or new lines): ` ON_ERROR = CONTINUE | SKIP_FILE | SKIP_FILE_ _ num _ | 'SKIP_FILE_ _ num _ %' | ABORT_STATEMENT ` Use : Data loading only Definition : St...
snowflake_docs/desc-integration_5_0.txt
Examples ¶ Create a notification integration: > > CREATE NOTIFICATION INTEGRATION myint ( ... ); > > > Copy Describe the columns in the integration: > > DESC INTEGRATION myint; > > > Copy Was this page helpful? Yes No Inc. All Rights Reserved . On this page 1. Syntax 2. Parameters 3. Usage Not...
snowflake_docs/aggregation_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/create-table_18_0.txt
Copy Options ( ` copyOptions ` ) ¶ overview) tables. You can specify one or more of the following copy options (separated by blank spaces, commas, or new lines): ` STAGE_COPY_OPTIONS = ( ... ) ` > ` ON_ERROR = CONTINUE | SKIP_FILE | SKIP_FILE_ _ num _ | > 'SKIP_FILE_ _ num _ %' | ABORT_STATEMENT `...
snowflake_docs/show-procedures_1_0.txt
SHOW PROCEDURES ¶ Lists the stored procedures that you have privileges to access. For more information about stored procedures, see [ Working with Stored . See also:
snowflake_docs/show-row-access-policies_9_0.txt
Examples ¶ The following example is representative of a user with the ACCOUNTADMIN role executing the query. > > SHOW ROW ACCESS POLICIES; > > > Copy > > > > ---------------------------------+------+---------------+-------------+-------------------+--------------+---------+---------+-----------------+ > ...
snowflake_docs/st_geogfromgeohash_6_1.txt
, | | > | 3.755126953125000e+01 | | > | ] | | > | ] | | > | ], | | > | "type": "Polygon" ...
snowflake_docs/create-storage-integration_3_0.txt
Required parameters ¶ ` _ name _ ` String that specifies the identifier (i.e. name) for the 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 quote...
snowflake_docs/drop-external-volume_3_0.txt
Parameters ¶ ` _ name _ ` Specifies the identifier for the external volume to drop. If the identifier contains spaces, special characters, or mixed-case characters, the entire string must be enclosed in double quotes (for example, ` "My object" ` ). Identifiers enclosed in double quotes are also case-sensitive.
snowflake_docs/array_remove_3_0.txt
Arguments ¶ ` _ array _ ` The source array. ` _ value_of_elements_to_remove _ ` The VARIANT value of the elements to be removed. The function removes elements equal to this value. If you specify a VARCHAR value, you must first cast the value to VARIANT.