id
stringlengths
16
145
text
stringlengths
1
179k
title
stringclasses
1 value
snowflake_docs/show-stages_1_0.txt
SHOW STAGES ¶ Lists all the stages for which you have access privileges. This command can be used to list the stages for a specified schema or database (or the current schema/database for the session), or your entire account. See also:
snowflake_docs/any_value_1_0.txt
ANY_VALUE ¶ Returns some value of the expression from the group. The result is non- deterministic.
snowflake_docs/drop-replication-group_0_0.txt
/ 4. Replication 11. Failover/Failback 18. Client Redirect DROP REPLICATION GROUP
snowflake_docs/create-replication-group_6_0.txt
label-replication-stored-procedures-udfs) . >> >> Note >> >> External access is not supported in the Gov region. >> >> NOTIFICATION INTEGRATIONS : >> >> >> Specifies notification integrations. >> >> Only some types of notification integrations are replicated. For details, intro.html
snowflake_docs/remove_resource_3_0.txt
Arguments ¶ ` ' _ object_reference _ ' ` The serialized string representation that resolves to an object. This string is the output of the [ SYSTEM$REFERENCE ` _ reference_statement _ ` A SYSTEM$REFERENCE statement that creates a reference for the object to be removed from the budget.
snowflake_docs/array_position_6_0.txt
Examples ¶ The examples below show how to use this function: > > SELECT ARRAY_POSITION('hello'::variant, array_construct('hello', 'hi')); > +------------------------------------------------------------------+ > | ARRAY_POSITION('HELLO'::VARIANT, ARRAY_CONSTRUCT('HELLO', 'HI')) | > |------------------...
snowflake_docs/operators-query_6_0.txt
MINUS , EXCEPT ¶ Removes rows from one query’s result set which appear in another query’s result set, with duplicate elimination. The MINUS and EXCEPT keywords have the same meaning and can be used interchangeably.
snowflake_docs/md5_number_lower64_1_0.txt
MD5_NUMBER_LOWER64 ¶ Calculates the 128-bit MD5 message digest, interprets it as a signed 128-bit big endian number, and returns the lower 64 bits of the number as an unsigned integer. This representation is useful for maximally efficient storage and comparison of MD5 digests. See also:
snowflake_docs/merge_5_0.txt
` notMatchedClause ` (for inserts) ¶ ` WHEN NOT MATCHED ... THEN INSERT ` Specifies the action to perform when the values do not match. ` AND _ case_predicate _ ` Optionally specifies an expression which, when true, causes the not-matching case to be executed. Default: No value (not-matching case is always ...
snowflake_docs/current_user_4_0.txt
Examples ¶ This shows how to call the ` CURRENT_USER ` function: > > SELECT CURRENT_USER(); > > > Copy > > Output: > > > +----------------+ > | CURRENT_USER() | > |----------------| > | TSMITH | > +----------------+ > > > Copy Was this page helpful? Yes No Inc. All Rights R...
snowflake_docs/is_integer_2_0.txt
Syntax ¶ IS_INTEGER( <variant_expr> ) Copy
snowflake_docs/copy-into-table_13_0.txt
TYPE = XML ¶ Available to all accounts. ` COMPRESSION = AUTO | GZIP | BZ2 | BROTLI | ZSTD | DEFLATE | RAW_DEFLATE | NONE ` String (constant) that specifies the current compression algorithm for the data files to be loaded. Snowflake uses this option to detect how already- compressed data files were...
snowflake_docs/minhash_3_0.txt
Usage Notes ¶ * ` _ k _ ` specifies the number of hash functions to be created. The larger the value, the better the approximation; however, this value has a linear impact on the computation time for estimating similarity using APPROXIMATE_SIMILARITY. The suggested value is 100. The maximum value is 1024. * DI...
snowflake_docs/try_base64_decode_string_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/alter-warehouse_7_0.txt
Access Control Requirements ¶ access-control-overview-roles) used to execute this SQL command must have at control-overview.html
snowflake_docs/operators-query_8_0.txt
UNION [ ALL ] ¶ Combines the result sets from two queries: * UNION combines with duplicate elimination. * UNION ALL combines without duplicate elimination. The default is UNION (i.e. duplicate elimination).
snowflake_docs/create_0_0.txt
/
snowflake_docs/dateadd_1_0.txt
DATEADD ¶ Adds the specified value for the specified date or time part to a date, time, or timestamp. Aliases: See also:
snowflake_docs/date-time-examples_6_0.txt
Inserting Valid Date Strings Into Date Columns in a Table ¶ This example show how to insert a value into a DATE column. > > CREATE TABLE my_table(id INTEGER, date1 DATE); > -- July 23, 2016. > INSERT INTO my_table(id, date1) VALUES (1, TO_DATE('2016.07.23', > 'YYYY.MM.DD')); > -- NULL. > INSERT I...
snowflake_docs/drop-resource-monitor_4_0.txt
Usage Notes ¶ * Dropped resource monitors cannot be recovered; they must be recreated. * Dropping a resource monitor immediately enables resuming any assigned warehouses that have been suspended due to the monitor reaching its monthly threshold. guide/resource-monitors) .
snowflake_docs/revoke-role_1_0.txt
REVOKE ROLE ¶ Removes a role from another role or a user. See also:
snowflake_docs/array_except_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/approx_percentile_2_0.txt
Syntax ¶ **Aggregate function** APPROX_PERCENTILE( <expr> , <percentile> ) Copy **Window function** APPROX_PERCENTILE( <expr> , <percentile> ) OVER ( [ PARTITION BY <expr3> ] ) Copy
snowflake_docs/alter-function_12_0.txt
label-access-control-securable-objects) , see [ Overview of
snowflake_docs/create-table_12_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/commands-data-loading_3_0.txt
File Format ¶
snowflake_docs/var_samp_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/sql-format-models_16_0.txt
Text-minimal Numeric Formats ¶ While fixed-position numeric format models always explicitly specify the number of digits, the text-minimal format elements use a minimal number of digits based on the value of the number. The ` TM* ` format elements always produce variable-length output with no spaces, regardless of ...
snowflake_docs/ascii_6_0.txt
Examples ¶ This example demonstrates the behavior for single ASCII characters, as well as special cases, such as multi-character strings, empty strings, and NULL values: > > SELECT column1, ASCII(column1) > FROM (values('!'), ('A'), ('a'), ('bcd'), (''), (null)); > +---------+----------------+ > | ...
snowflake_docs/try_hex_decode_binary_2_0.txt
Syntax ¶ TRY_HEX_DECODE_BINARY(<input>) Copy
snowflake_docs/desc-packages-policy_2_0.txt
Syntax ¶ DESC[RIBE] PACKAGES POLICY <name> Copy
snowflake_docs/create-pipe_5_0.txt
Usage notes ¶ * This SQL command requires the following minimum permissions: Privilege | Object | Notes ---|---|--- CREATE PIPE | Schema | USAGE | Stage in the pipe definition | External stages only READ | Stage in the pipe definition | Internal stages only SELECT, INSERT | Table in the pipe defintion |...
snowflake_docs/drop-budget_10_0.txt
Examples ¶ Drop budget ` my_budget ` in the current schema: DROP SNOWFLAKE.CORE.BUDGET my_budget; 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. Examples Related content Language : **English*...
snowflake_docs/to_timestamp_6_1.txt
('Microseconds', '31536000000000'), >> ('Nanoseconds', '31536000000000000') >> ; >> >> >> Copy > > Pass the strings to the function: > >> >> SELECT >> description, >> value, >> TO_TIMESTAMP(value), >> TO_DATE(value) >> FROM demo1 >> ...
snowflake_docs/system_registry_list_images_3_0.txt
Arguments ¶ **Required:** ` _ dbName _ ` Name of the database in which the repository is created. ` _ schemaName _ ` Name of the database in which the repository is created. ` _ repositoryName _ ` Name of the image repository.
snowflake_docs/to_json_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:
snowflake_docs/list_4_0.txt
Arguments ¶ None.
snowflake_docs/parse_json_2_0.txt
Syntax ¶ PARSE_JSON( <expr> ) Copy
snowflake_docs/complete_task_graphs_8_0.txt
label-task-dag) is/was originally scheduled to start running. Format is epoch time (in milliseconds). . . _Original_ scheduled time refers to rare instances when the system may reschedule the same task to run at a different time to retry it or rebalance the load. If that happens, RUN_ID shows the original scheduled ...
snowflake_docs/alter-external-table_1_0.txt
ALTER EXTERNAL TABLE ¶ Modifies the properties, columns, or constraints for an existing external table. See also:
snowflake_docs/create-alert_12_0.txt
Access Control Requirements ¶ access-control-overview-roles) used to execute this SQL command must have the overview.html
snowflake_docs/alter-alert_5_0.txt
| ________ hour (0-23)
snowflake_docs/show-primary-keys_1_0.txt
SHOW PRIMARY KEYS ¶ Lists primary keys for the specified table, or for all tables in the current or specified schema, or for all tables in the current or specified database, or for all tables in the current account.
snowflake_docs/st_ymax_6_0.txt
Examples ¶
snowflake_docs/map_cat_2_0.txt
Syntax ¶ MAP_CAT( <map1> , <map2> ) Copy
snowflake_docs/parameters_37_0.txt
ENABLE_INTERNAL_STAGES_PRIVATELINK ¶ Type : Account — Can be set only for Account Data Type : Boolean Description : Specifies whether the [ SYSTEM$GET_PRIVATELINK_CONFIG internal-stages ` key in the query result. The corresponding value in the query result is used during the configuration process for private con...
snowflake_docs/regexp_substr_5_0.txt
Returns ¶ The function returns a value of type VARCHAR that is the matching substring.
snowflake_docs/sha2_binary_3_0.txt
Arguments ¶ **Required:** ` _ msg _ ` A string expression, the message to be hashed **Optional:** ` _ digest_size _ ` Size (in bits) of the output, corresponding to the specific SHA-2 function used to encrypt the string: > 224 = SHA-224 > > 256 = SHA-256 (Default) > > 384 = SHA-384 > > 512 = SHA-512 SHA-512/224 an...
snowflake_docs/alter-stage_6_0.txt
Directory table parameters ¶ ` ENABLE = _ TRUE | FALSE _ ` Specifies whether to add a directory table to the stage. When the value is TRUE, a directory table is added to the stage. Note Setting this parameter to TRUE is not supported for [ S3-compatible external S3-compatible external stages cannot be refresh...
snowflake_docs/show-parameters_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/generate_column_description_3_0.txt
Arguments ¶ ` _ expr _ ` Output of the INFER_SCHEMA function formatted as an array. ` ' _ string _ ' ` Type of object that could be created from the column list. The appropriate formatting for this type is applied to the output. Possible values are ` table ` , ` external_table ` , or ` view ` .
snowflake_docs/show-failover-groups_8_0.txt
Examples ¶ List failover groups in account ` myaccount1 ` . SHOW FAILOVER GROUPS IN ACCOUNT myaccount1; +------------------+-------------------------------+--------------+------+----------+---------+------------+-----------------------+---------------------------------------------+--------------------------...
snowflake_docs/create-warehouse_9_0.txt
label-access-control-overview-privileges) at a minimum: Privilege | Object | Notes ---|---|--- CREATE WAREHOUSE | Account | Only the SYSADMIN role, or a higher role, has this privilege by default. The privilege can be granted to additional roles as needed. For instructions on creating a custom role with a specifi...
snowflake_docs/h3_polygon_to_cells_strings_1_0.txt
H3_POLYGON_TO_CELLS_STRINGS ¶ types-geospatial.html
snowflake_docs/system_get_aws_sns_iam_policy_5_0.txt
Examples ¶ Return an IAM policy for a specified SNS topic ARN: > > select system$get_aws_sns_iam_policy('arn:aws:sns:us- > west-2:001234567890:s3_mybucket'); > > > +--------------------------------------------------------------------------------------------------------------------------------------------------...
snowflake_docs/group-by-grouping-sets_0_0.txt
/ SETS Categories:
snowflake_docs/to_time_4_0.txt
label-date-time-input-output-supported-formats-for-auto- detection) , which specifies that Snowflake should automatically detect the format to use. For more information, see [ Date and Time Formats in Conversion time-input-format) session parameter (usually AUTO)
snowflake_docs/show-functions_2_0.txt
Syntax ¶ SHOW FUNCTIONS [ LIKE '<pattern>' ] [ IN { ACCOUNT | CLASS <class_name> | DATABASE | DATABASE <database_name> | ...
snowflake_docs/network_rule_references_1_0.txt
NETWORK_RULE_REFERENCES ¶ Returns a row for each object with which the specified network rule is associated or returns a row for each network rule associated with the specified container. See also: (Account Usage View)
snowflake_docs/split_part_7_0.txt
Examples ¶ Demonstrate the portions returned by different ` _ partNumber _ ` values. > > select 0, split_part('11.22.33', '.', 0) UNION > select 1, split_part('11.22.33', '.', 1) UNION > select 2, split_part('11.22.33', '.', 2) UNION > select 3, split_part('11.22.33', '.', 3) UNION > sel...
snowflake_docs/show-dynamic-tables_4_0.txt
Usage Notes ¶ * To SHOW a dynamic table, you must be using a role that has MONITOR privilege on the table. * 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 ...
snowflake_docs/desc-session-policy_7_0.txt
label-security-custom-role) . For general information about roles and privilege grants for performing SQL overview.html
snowflake_docs/get_query_operator_stats_10_1.txt
t * from . . . ` would produce a set of results in tabular format representing each field in the selection. In general, the results object represents whatever is produced as a result of the query, and ` bytes_written_to_result ` represents the size of the returned result. | ` bytes_read_from_result ` | DOUBLE...
snowflake_docs/show-endpoints_4_0.txt
Output ¶ The command output provides service properties and metadata in the following columns: Column | Description ---|--- ` name ` | User-friendly endpoint name that represents the corresponding port. ` port ` | The network port the service is listening on. ` protocol ` | Supported network protocol (TCP...
snowflake_docs/show-tables_3_0.txt
Parameters ¶ ` TERSE ` Optionally returns only a subset of the output columns: * ` created_on ` * ` name ` * ` kind ` The ` kind ` column value is always TABLE. * ` database_name ` * ` schema_name ` Default: No value (all columns are included in the output) ` HISTORY ` Optionally includes dropped t...
snowflake_docs/regexp_instr_8_1.txt
, nevermore2, nevermore3. | NULL | 0 | > +----+-------------------------------------+-----------+----------+ > > > Copy
snowflake_docs/create-security-integration-scim_8_0.txt
label-access-control-securable-objects) , see [ Overview of
snowflake_docs/revoke-application-role_2_0.txt
Syntax ¶ REVOKE APPLICATION ROLE <name> FROM { ROLE <parent_role_name> | APPLICATION ROLE <application_role> | APPLICATION <application> } Copy
snowflake_docs/ln_1_0.txt
LN ¶ Returns the natural logarithm of a numeric expression.
snowflake_docs/build_scoped_file_url_6_0.txt
Examples ¶ Retrieve a scoped URL for a bitmap format image file in an external stage: SELECT BUILD_SCOPED_FILE_URL(@images_stage,'/us/yosemite/half_dome.jpg'); Copy https://my_account.snowflakecomputing.com/api/files/019260c2-00c0-f2f2-0000-4383001cf046/bXlfZGF0YWJhc2UvbXlfc2NoZW1hL215X3N0YWdlL2ZvbGRlcjEvZm9...
snowflake_docs/atanh_2_0.txt
Syntax ¶ ATANH( <real_expr> ) Copy
snowflake_docs/replication_databases_1_0.txt
REPLICATION_DATABASES View ¶ This Information Schema view displays a row for each primary and secondary database (i.e. database for which replication has been enabled) in your organization. Note This view uses Snowflake terminology of “database”, whereas other Information Schema views use the standard INFORMATION_SC...
snowflake_docs/indexes_1_0.txt
INDEXES View ¶ Available to all accounts. This Account Usage view displays a row for each index defined in the specified (or current) database.
snowflake_docs/st_envelope_9_0.txt
GEOMETRY Examples ¶ Was this page helpful? Yes No Inc. All Rights Reserved . On this page 1. Syntax 2. Arguments 3. Returns 4. Usage Notes 5. Examples Language : **English**
snowflake_docs/create-session-policy_11_0.txt
Examples ¶ Create a session policy for your current account: > > CREATE SESSION POLICY session_policy_prod_1 > SESSION_IDLE_TIMEOUT_MINS = 60 > SESSION_UI_IDLE_TIMEOUT_MINS = 30 > COMMENT = 'session policy for use in the prod_1 environment' > ; > > > Copy Was this page helpful? Yes No In...
snowflake_docs/invoker_role_2_0.txt
Syntax ¶ INVOKER_ROLE() Copy
snowflake_docs/where_1_0.txt
WHERE ¶ The ` WHERE ` clause specifies a condition that acts as a filter. You can use the ` WHERE ` clause to:
snowflake_docs/array_remove_6_0.txt
Examples ¶ The following example returns an ARRAY with elements with the value 5 removed. SELECT ARRAY_REMOVE( [1, 5, 5.00, 5.00::DOUBLE, '5', 5, NULL], 5); Copy +---------------------------------------------+ | ARRAY_REMOVE( | | [1, 5, 5.00, 5.00::DOUBLE, ...
snowflake_docs/desc-compute-pool_6_0.txt
label-access-control-overview-privileges) at a minimum: Privilege | Object | Notes ---|---|--- MONITOR | Compute pool | For instructions on creating a custom role with a specified set of privileges, configure.html
snowflake_docs/metadata_0_0.txt
/ Fields
snowflake_docs/bitor_agg_6_0.txt
Examples ¶ Create the table and load the data: > > CREATE OR REPLACE TABLE bitwise_example > (k int, d decimal(10,5), s1 varchar(10), s2 varchar(10)); > > INSERT INTO bitwise_example VALUES > (15, 1.1, '12','one'), > (26, 2.9, '10','two'), > (12, 7.1, '7.9','...
snowflake_docs/changes_4_0.txt
label-enabling-change-tracking-views) . * The optional END clause sets the end timestamp for the change interval. If no END value is specified, the current timestamp is used as the end of the change interval. Note that the END clause is valid only when combined with the CHANGES clause to query change tracking metada...
snowflake_docs/covar_pop_2_0.txt
Syntax ¶ **Aggregate function** COVAR_POP( y , x ) Copy **Window function** COVAR_POP( y , x ) OVER ( [ PARTITION BY <expr1> ] ) Copy
snowflake_docs/build_stage_file_url_0_0.txt
/ BUILD_STAGE_FILE_URL Categories:
snowflake_docs/create-file-format_14_0.txt
label-managed-access-schemas) , only the schema owner (i.e. the role with the OWNERSHIP privilege on the schema) or a role with the MANAGE GRANTS privilege can grant or revoke privileges on objects in the schema, including future grants. Note that operating on any object in a schema also requires the USAGE privilege ...
snowflake_docs/sha2_binary_1_0.txt
SHA2_BINARY ¶ Returns a binary containing the N-bit SHA-2 message digest, where N is the specified output digest size.
snowflake_docs/access_history_2_1.txt
luding columns, external functions, UDFs, and stored procedures. In this example, the fields in the first array specify a UDF. These same fields in the first array also specify a stored procedure, when applicable. Note the following: * This field specifies view names or view columns, including virtual columns, if a s...
snowflake_docs/organization-usage_6_0.txt
General Usage Notes ¶ The Snowflake-specific views are subject to change. Avoid selecting all columns from these views. Instead, select the columns that you want. For example, if you want the ` name ` column, use ` SELECT name ` , rather than ` SELECT * ` . Was this page helpful? Yes No Inc. All Rights Reserv...
snowflake_docs/table_constraints_3_0.txt
label-extended-constraint-properties) .
snowflake_docs/drop-masking-policy_0_0.txt
/ 1. Column-level Security 7. Row Access Policy 13. Tag MASKING POLICY
snowflake_docs/select_5_0.txt
Parameters ¶ ` ALL | DISTINCT ` Specifies whether to perform duplicate elimination on the result set: * ` ALL ` includes all values in the result set. * ` DISTINCT ` eliminates duplicate values from the result set. Default: ` ALL ` ` TOP _ n _ ` Specifies the maximum number of results to return. See [ ...
snowflake_docs/alter-function_6_0.txt
User-Defined and External Functions ¶ ` _ name _ ` Specifies the identifier for the UDF to alter. The identifier can contain the schema name and database name, as well as the function name. If the identifier contains spaces or special characters, the entire string must be enclosed in double quotes. Identifiers encl...
snowflake_docs/revoke-privilege-share_0_0.txt
/ 1. User Management 7. Database Role Management 16. Account-level Role Management 25. Privilege Management REVOKE <privilege> ... FROM SHARE
snowflake_docs/parameters_90_0.txt
STRICT_JSON_OUTPUT ¶ Type : Session — Can be set for Account » User » Session Data Type : Boolean Description : This parameter specifies whether JSON output in a session is compatible with By design, Snowflake allows JSON input that contains non-standard values; however, these non-standard values might result in ...
snowflake_docs/alter-tag_2_0.txt
label-object-tags-ddl)
snowflake_docs/alter-file-format_9_1.txt
e : Data loading only Definition : String used to convert to and from SQL NULL. Snowflake replaces these strings in the data load source with SQL NULL. To specify more than one string, enclose the list of strings in parentheses and use commas to separate each value. This file format option is applied to the following...
snowflake_docs/alter-aggregation-policy_9_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/build_scoped_file_url_0_0.txt
/ BUILD_SCOPED_FILE_URL Categories:
snowflake_docs/create-user_4_0.txt
Optional Object Properties ( ` objectProperties ` ) ¶ ` PASSWORD = ' _ string _ ' ` The password for the user must be enclosed in single or double quotes. If no password is specified, the user cannot log into Snowflake until a password has been explicitly specified for them. If the password uses the backslash ...
snowflake_docs/rank_5_0.txt
Examples ¶ Create a table and data: > > -- Create table and load data. > create or replace table corn_production (farmer_ID INTEGER, state > varchar, bushels float); > insert into corn_production (farmer_ID, state, bushels) values > (1, 'Iowa', 100), > (2, 'Iowa', 110), > (3, 'Kan...