id
stringlengths
16
145
text
stringlengths
1
179k
title
stringclasses
1 value
snowflake_docs/connect-by_5_1.txt
20 | 1 | Vice President HR | President | > | 100 | 10 | Programmer | President | > | 101 | 10 | QA Engineer | President | > | 200 | 20 | Health Insurance Analyst | President | > +------------...
snowflake_docs/desc-external-table_2_0.txt
Syntax ¶ DESC[RIBE] [ EXTERNAL ] TABLE <name> [ TYPE = { COLUMNS | STAGE } ] Copy
snowflake_docs/system_add_event_0_0.txt
/ 1. Control 29. Information 90. Query Information SYSTEM$ADD_EVENT Categories:
snowflake_docs/parameters_79_0.txt
REQUIRE_STORAGE_INTEGRATION_FOR_STAGE_OPERATION ¶ Type : Account — Can be set only for Account Data Type : Boolean Description : Specifies whether to require using a named external stage that references a storage integration object as cloud credentials when loading data from or unloading data to a private cloud s...
snowflake_docs/show-secrets_0_0.txt
/ 1. Authentication Policy 7. Network Policy 13. Network Rule 19. Packages Policy 25. Password Policy 31. Session Policy 37. Secret
snowflake_docs/forecast_25_0.txt
Output ¶ The SERIES column is present only for multi-series forecasts. Single-series forecasts do not have this column. Column | Type | Description ---|---|--- SERIES | | Series value (only present if model was trained with multiple time series) ERROR_METRIC | | The name of the error metric used. The method re...
snowflake_docs/regexp_replace_2_0.txt
Syntax ¶ REGEXP_REPLACE( <subject> , <pattern> [ , <replacement> , <position> , <occurrence> , <parameters> ] ) Copy
snowflake_docs/functions-table_4_0.txt
Functions in Which Each Output Row Depends Upon Multiple Input Rows ¶ Table functions can be grouped into two categories based on the number of input rows that affect each output row: * 1-to-N * M-to-N The functions described earlier are 1-to-N table functions: each output row depends upon only one input row. ...
snowflake_docs/sql-format-models_25_0.txt
Input Examples ¶ These examples demonstrate the use of format models for inputs. > The following example shows some simple input operations, with an emphasis > on showing the difference between using “0” and “9” to specify format of > digits. > > The digit “9” as a formatter will accept blanks or “missing” leading d...
snowflake_docs/create-procedure_19_0.txt
Optional Parameters ¶
snowflake_docs/undrop-table_1_0.txt
UNDROP TABLE ¶ Restores the most recent version of a dropped table. See also: table)
snowflake_docs/build_stage_file_url_2_0.txt
Syntax ¶ BUILD_STAGE_FILE_URL( @<stage_name> , '<relative_file_path>' ) Copy
snowflake_docs/try_hex_decode_binary_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/variance_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/alter-external-table_9_0.txt
Usage notes ¶ * Only the external table owner (i.e. the role with the OWNERSHIP privilege on the external table) or higher can execute this command. * ` ALTER EXTERNAL TABLE ... REFRESH ` * ` ALTER EXTERNAL TABLE ... ADD FILES ` * ` ALTER EXTERNAL TABLE ... REMOVE FILES ` Explicit tra...
snowflake_docs/desc-file-format_3_0.txt
Parameters ¶ ` _ name _ ` Specifies the identifier for the file format 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/st_buffer_3_0.txt
Arguments ¶ ` _ geometry_expression _ ` The argument must be an expression of type GEOMETRY. ` _ distance _ ` The distance from the GEOMETRY object. To “shrink” the object, you can specify a negative value for the distance.
snowflake_docs/show-masking-policies_9_0.txt
Example ¶ SHOW MASKING POLICIES IN SCHEMA governance.policies; Copy +-------------------------------+------------+---------------+-------------+----------------+---------------+------------------------------+-----------------------------------+-----------------+ | created_on | name ...
snowflake_docs/revoke-privilege-application-role_9_0.txt
label-managed-access-schemas) .
snowflake_docs/usage_in_currency_daily_2_0.txt
Columns ¶ Column Name | Data Type | Description ---|---|--- ORGANIZATION_NAME | VARCHAR | Name of the organization. CONTRACT_NUMBER | VARCHAR | Snowflake contract number for the organization. ACCOUNT_NAME | VARCHAR | Name of the account where the usage was consumed. ACCOUNT_LOCATOR | VARCHAR | Locator for ...
snowflake_docs/create-security-integration-oauth-snowflake_5_0.txt
Additional required parameters (custom clients) ¶ Required only when OAUTH_CLIENT = CUSTOM (i.e. when creating an integration for a custom client) ` OAUTH_CLIENT_TYPE = { 'CONFIDENTIAL' | 'PUBLIC' } ` Specifies the type of client being registered. Snowflake supports both confidential and public clients. Confi...
snowflake_docs/get_query_operator_stats_18_3.txt
itions_scanned": 1, | | | | | | | | | "partitions_total": 1 | ...
snowflake_docs/get_condition_query_uuid_6_0.txt
Examples ¶ Refer to [ Checking the Results of the SQL Statement for the Condition in the 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/login_history_3_0.txt
label-authentication-and-client-redirect) .
snowflake_docs/st_union_2_0.txt
Syntax ¶ ST_UNION( <geography_expression_1> , <geography_expression_2> ) Copy
snowflake_docs/ascii_1_0.txt
ASCII ¶ Returns the ASCII code for the first character of a string. If the string is empty, a value of ` 0 ` is returned. See also:
snowflake_docs/create-iceberg-table_6_0.txt
CREATE ICEBERG TABLE … AS SELECT (also referred to as CTAS) ¶ Creates a new table populated with the data returned by a query: > > CREATE [ OR REPLACE ] ICEBERG TABLE <table_name> [ ( <col_name> [ > <col_type> ] , <col_name> [ <col_type> ] , ... ) ] > [ CLUSTER BY ( <expr> [ , <expr> , ... ] ) ] > [ ...
snowflake_docs/st_geogfromgeohash_2_0.txt
Syntax ¶ ST_GEOGFROMGEOHASH( <geohash> [, <precision> ] ) Copy
snowflake_docs/encrypt_raw_1_0.txt
ENCRYPT_RAW ¶ Encrypts a BINARY value using a BINARY key. See also:
snowflake_docs/get_object_references_1_0.txt
GET_OBJECT_REFERENCES ¶ Returns a list of objects that a specified object references. Input is currently limited to the name of a view. The following table identifies which types of database objects are currently returned in the output: Object Type | Returned in Output? ---|--- Tables | Yes Views (including se...
snowflake_docs/create-task_3_0.txt
Variant syntax ¶ **CREATE TASK … CLONE** Creates a new task with the same parameter values: > > CREATE [ OR REPLACE ] TASK <name> CLONE <source_task> > [ ... ] > > > Copy Note Cloning tasks using CREATE TASK <name> CLONE, or cloning a schema containing tasks, copies all underlying task properties unless ...
snowflake_docs/create-tag_11_0.txt
Examples ¶ Create a tag with the key ` cost_center ` . > > CREATE TAG cost_center COMMENT = 'cost_center tag'; > > > Copy Was this page helpful? Yes No Inc. All Rights Reserved . On this page 1. Syntax 2. Required parameters 3. Optional parameters 4. Access control requirements 5. Usage notes...
snowflake_docs/task_history_0_0.txt
/ Schema:
snowflake_docs/st_ymin_4_0.txt
Returns ¶ Returns a REAL value.
snowflake_docs/scheduled_time_5_0.txt
Returns ¶ TIMESTAMP_LTZ value that represents the scheduled time of the current alert.
snowflake_docs/mode_4_0.txt
Returns ¶ The data type of the returned value is identical to the data type of the input expression.
snowflake_docs/array_construct_6_0.txt
Examples ¶ Construct a basic array consisting of numeric data types: > > SELECT ARRAY_CONSTRUCT(10, 20, 30); > +-----------------------------+ > | ARRAY_CONSTRUCT(10, 20, 30) | > |-----------------------------| > | [ | > | 10, | > | 20, ...
snowflake_docs/create-failover-group_1_0.txt
CREATE FAILOVER GROUP ¶ Requires Business Critical Edition (or higher). To inquire about upgrading, please contact [ Snowflake Support Snowflake-Lodge) . Creates a new failover group of specified objects in the system. For more details see [ Introduction to replication and failover across This command can be used to...
snowflake_docs/session-variables_1_0.txt
SQL Variables ¶ This topic describes how to define and use SQL variables in sessions in Snowflake.
snowflake_docs/alter-account_0_0.txt
/ 1. Organization 7. Managed Accounts 11. Account Parameters & Functions
snowflake_docs/for_0_0.txt
/ snowflake-scripting) FOR
snowflake_docs/alter-table_14_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/get_object_references_3_0.txt
Arguments ¶ ` DATABASE_NAME => ' _ string _ ' ` Name of the database in which the schema and object reside. ` SCHEMA_NAME => ' _ string _ ' ` Name of the schema in which the object resides. ` OBJECT_NAME => ' _ string _ ' ` Name of the object. Currently limited to the name of a view (secure or not secure...
snowflake_docs/create-stream_16_0.txt
Creating an Insert-only Stream on an External Table ¶ Create an external table stream and query the change data capture records in the stream, which track the records added to the external table metadata: -- Create an external table that points to the MY_EXT_STAGE stage. -- The external table is partitioned ...
snowflake_docs/anomaly_detection_3_0.txt
Syntax ¶ CREATE [ OR REPLACE ] SNOWFLAKE.ML.ANOMALY_DETECTION <name>( INPUT_DATA => <reference_to_training_data>, [ SERIES_COLNAME => '<series_column_name>', ] TIMESTAMP_COLNAME => '<timestamp_column_name>', TARGET_COLNAME => '<target_column_name>', LABEL_COLNAME => '<label_column_n...
snowflake_docs/alter-task_2_0.txt
Syntax ¶ ALTER TASK [ IF EXISTS ] <name> RESUME | SUSPEND ALTER TASK [ IF EXISTS ] <name> REMOVE AFTER <string> [ , <string> , ... ] | ADD AFTER <string> [ , <string> , ... ] ALTER TASK [ IF EXISTS ] <name> SET [ { WAREHOUSE = <string> } | { USER_TASK_MANAGED_INITIAL_WAREHOUSE_SIZE = <string> } ] ...
snowflake_docs/operators-subquery_6_0.txt
[ NOT ] EXISTS ¶ An EXISTS subquery is a boolean expression that can appear in a [ WHERE function that operates on a boolean expression: * An EXISTS expression evaluates to TRUE if any rows are produced by the subquery. * A NOT EXISTS expression evaluates to TRUE if no rows are produced by the subquery.
snowflake_docs/is_decimal_3_0.txt
Arguments ¶ ` _ variant_expr _ ` An expression that evaluates to a value of type VARIANT.
snowflake_docs/st_srid_3_0.txt
Arguments ¶ ` _ geography_or_geometry_expression _ ` The argument must be an expression of type GEOGRAPHY or GEOMETRY.
snowflake_docs/try_to_timestamp_0_0.txt
/ 1. Construction 5. Extraction 29. Addition & Subtraction 38. Truncation 42. Conversion 57. Time Zone 59. Alerts date-time) TRY_TO_TIMESTAMP Categories:
snowflake_docs/alter-stage_15_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/referential_constraints_1_0.txt
REFERENTIAL_CONSTRAINTS View ¶ This Account Usage view displays a row for each referential integrity constraint defined in the account. For more information about referential integrity constraints, see [ See also:
snowflake_docs/data-types-structured_11_0.txt
Casting Semi-Structured OBJECTs and VARIANTs to MAPs ¶ The following statements demonstrate how to cast a semi-structured OBJECT or VARIANT to a MAP that associates a VARCHAR key with a VARCHAR value: SELECT SYSTEM$TYPEOF( CAST ({'my_key':'my_value'} AS MAP(VARCHAR, VARCHAR)) ) AS map_cast_ty...
snowflake_docs/serverless_task_history_3_0.txt
Syntax ¶ SERVERLESS_TASK_HISTORY( [ DATE_RANGE_START => <constant_expr> ] [ , DATE_RANGE_END => <constant_expr> ] [ , TASK_NAME => '<string>' ] ) Copy
snowflake_docs/show-file-formats_0_0.txt
/ 1. Stage 7. File Format 13. External Volume 20. Pipe 26. Snowpipe Streaming 28. Loading and Unloading loading) SHOW FILE FORMATS
snowflake_docs/anomaly_detection_18_0.txt
Usage Notes ¶ * The columns for the data specified in the CREATE SNOWFLAKE.ML.ANOMALY_DETECTION command (in the INPUT_DATA constructor argument) must match the columns for the data specified in the INPUT_DATA argument of this method. For example, if you passed the SERIES_COLNAME argument to the CREATE SNOWFLAK...
snowflake_docs/functions-all_21_0.txt
label-data-types-geography) or the minimum Euclidean distance geometry) objects. | | Returns TRUE if the minimum geodesic distance between two points (two [ is within the specified distance. | | Returns the last Point in a LineString. | | Returns the minimum bounding box (a rectangular “envelope”) that encloses a geome...
snowflake_docs/is_binary_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) (Type Predicates)
snowflake_docs/get_config_6_0.txt
Examples ¶ View the budget configuration properties for ` my_budget ` in schema ` budget_db.budget_schema ` : CALL budget_db.budget_schema.my_budget!GET_CONFIG(); Copy View the budget configuration properties for the account budget: CALL snowflake.local.account_root_budget!GET_CONFIG(); Copy Was this page ...
snowflake_docs/commit_2_0.txt
Syntax ¶ COMMIT [ WORK ] Copy
snowflake_docs/bind-variables_6_0.txt
Using Bind Variables with the SQL API ¶ to access and update data in a Snowflake database. You can create applications that use the SQL API to submit SQL statements and manage deployments. When you submit a request that executes a SQL statement, you can use bind variables for values in the statement. For more inform...
snowflake_docs/show-custom-classifiers_6_0.txt
label-access-control-overview-roles) used to execute this SQL guide/security-access-control-overview.html
snowflake_docs/min_by_6_0.txt
Examples ¶ The following examples demonstrate how to use the MIN_BY function. To run these examples, execute the following statements to set up the table and data for the examples: CREATE OR REPLACE TABLE employees(employee_id NUMBER, department_id NUMBER, salary NUMBER); INSERT INTO employees VALUES (...
snowflake_docs/alter-file-format_8_0.txt
TYPE = ORC ¶ ` TRIM_SPACE = TRUE | FALSE ` Use : Data loading and external tables Definition : Boolean that specifies whether to remove leading and trailing white space from strings. For example, if your external database software encloses fields in quotes, but inserts a leading space, Snowflake reads the lea...
snowflake_docs/create-event-table_4_1.txt
about specifying tags in a statement, see [ Tag quotas for tagging-quota) .
snowflake_docs/to_char_4_0.txt
label-overview-of-supported-binary-formats) .
snowflake_docs/system_estimate_query_acceleration_5_0.txt
Usage Notes ¶ * Estimated query times are for analysis purposes only and are not guaranteed. * Estimated query times are calculated based on the assumption that the query is serviced by all the compute resources allocated by the query acceleration service based on scale factor. * Estimated query times do not...
snowflake_docs/external_functions_history_5_0.txt
Output ¶ The function returns the following columns: Column Name | Data Type | Description ---|---|--- START_TIME | TIMESTAMP_LTZ | Start of the specified time range for which to return history. END_TIME | TIMESTAMP_LTZ | End of the specified time range for which to return history. NAME | TEXT | Name of the ...
snowflake_docs/asin_4_0.txt
Returns ¶ The data type of the return value is FLOAT. Returns the arc sine in radians (not degrees) in the range ` [-pi/2, pi/2] ` .
snowflake_docs/repeat_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/strtok_2_0.txt
Syntax ¶ STRTOK(<string> [,<delimiter>] [,<partNr>]) Copy
snowflake_docs/create-model_3_0.txt
Parameters ¶ ` _ name _ ` String that specifies the identifier (i.e. name) for the new model; must be unique for the schema in which the model is created. In addition, the identifier must start with an alphabetic character and cannot contain spaces or special characters unless the entire identifier string is enclos...
snowflake_docs/alter-security-integration-api-auth_12_0.txt
Examples ¶ The following example initiates operation of a suspended integration: > > ALTER SECURITY INTEGRATION myint SET ENABLED = TRUE; > > > 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. Ex...
snowflake_docs/desc-sequence_1_0.txt
DESCRIBE SEQUENCE ¶ Describes a sequence, including the sequence’s interval. DESCRIBE can be abbreviated to DESC. See also:
snowflake_docs/create-view_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 CREATE VIEW
snowflake_docs/sentiment-snowflake-cortex_4_0.txt
Arguments ¶ ` _ text _ ` A string containing the text for which a sentiment score should be calculated.
snowflake_docs/execute-service_6_0.txt
Access control requirements ¶ access-control-overview-roles) used to execute this SQL command must have the overview.html
snowflake_docs/desc-external-table_4_0.txt
Usage notes ¶
snowflake_docs/try_decrypt_raw_4_0.txt
Returns ¶ The function returns the decrypted value or a NULL value if any runtime error occurs during decryption. The data type of the returned value is BINARY.
snowflake_docs/alter-materialized-view_7_0.txt
label-clustering-base-table-and-materialized-view) . ` RESUME RECLUSTER ` The ` RESUME RECLUSTER ` option resumes reclustering of the materialized view. ` SUSPEND ` The ` SUSPEND ` option suspends the maintenance (updates) and use of the materialized view. While the view is suspended, updates to the base table ar...
snowflake_docs/metering_daily_history_1_0.txt
METERING_DAILY_HISTORY View ¶ The METERING_DAILY_HISTORY view in the ACCOUNT_USAGE schema can be used to return the daily credit usage and a cloud services rebate for an account within the last 365 days (1 year).
snowflake_docs/show-file-formats_4_0.txt
Output ¶ The command output provides file format properties and metadata in the following columns: Column | Description ---|--- format_options | Values of all options for the file format type. Returns the default value for any option that is not explicitly defined. created_on | Date and time when the database ...
snowflake_docs/base64_decode_string_2_0.txt
Syntax ¶ BASE64_DECODE_STRING( <input> [ , <alphabet> ] ) Copy
snowflake_docs/match_recognize_16_0.txt
label-match-recognize-introduction-displaying-information- about-the-match) . In general, when a window function is used inside a ` MATCH_RECOGNIZE ` clause, the window function does not require its own ` OVER (PARTITION BY ... ORDER BY ...) ` clause. The window is implicitly determined by the ` PARTITION BY `...
snowflake_docs/current_schemas_0_0.txt
/ 1. General 14. Session 29. Session Object 41. Alert context) CURRENT_SCHEMAS Categories:
snowflake_docs/parse_xml_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) (Parsing)
snowflake_docs/to_time_5_0.txt
Returns ¶ The data type of the returned value is ` TIME ` .
snowflake_docs/transactions_5_0.txt
Explicit Transactions ¶ statement. Snowflake supports the synonyms ` BEGIN WORK ` and ` BEGIN TRANSACTION ` . Snowflake recommends using ` BEGIN TRANSACTION ` . for ` COMMIT ` , and the synonym ` ROLLBACK WORK ` for ` ROLLBACK ` . In general, if a transaction is already active, any ` BEGIN TRANSACTION ` s...
snowflake_docs/st_distance_7_0.txt
Examples ¶
snowflake_docs/commands-user-role_3_0.txt
Database role management ¶
snowflake_docs/array_min_4_0.txt
Returns ¶ data-type-variant) that contains the element with the lowest value that is not a SQL NULL. The function returns NULL if ` _ array _ ` is NULL, empty, or contains only SQL NULL elements.
snowflake_docs/h3_polygon_to_cells_3_0.txt
label-data-types-geography) object). See also:
snowflake_docs/complete_task_graphs_4_0.txt
label-task-dag) started at the SCHEDULED_TIME time completes in time. COMPLETED_TIME | TIMESTAMP_LTZ | intro.html
snowflake_docs/data-types-geospatial_19_0.txt
label-udf-java-passing-geo) for details.
snowflake_docs/show-pipes_4_0.txt
Usage notes ¶ * Returns results only for the pipe owner (i.e. the role with the OWNERSHIP privilege on the pipe), a role with the MONITOR or OPERATE privilege on the pipe, or a role with the global MONITOR EXECUTION privilege. * Columns that start with the prefix ` is_ ` return either ` Y ` (yes) or ` N ` ...
snowflake_docs/approximate_similarity_6_0.txt
Examples ¶ USE SCHEMA snowflake_sample_data.tpch_sf1; SELECT APPROXIMATE_SIMILARITY(mh) FROM ( (SELECT MINHASH(100, C5) mh FROM orders WHERE c2 <= 50000) UNION (SELECT MINHASH(100, C5) mh FROM orders WHERE C2 > 50000) ); +----------------------------+ ...
snowflake_docs/set_1_0.txt
SET ¶ result of a SQL expression. See also:
snowflake_docs/list_8_0.txt
label-access-control-overview- privileges) at a minimum: Instance role | Object | Notes ---|---|--- ` _ custom_classifier _ ` !PRIVACY_USER. | The custom classifier instance. | The role that calls this method must be granted the instance role. By default, the account role used to create the instance can call this ...
snowflake_docs/hex_encode_3_0.txt
Arguments ¶ **Required:** ` _ input _ ` A binary or string expression to be encoded. **Optional:** ` _ case _ ` This optional boolean argument controls the case of the letters (‘A’, ‘B’, ‘C’, ‘D’, ‘E’ and ‘F’) used in the encoding. The default value is ` 1 ` and indicates that uppercase letters are used. The valu...
snowflake_docs/h3_polygon_to_cells_strings_8_0.txt
Examples ¶ The following example returns an ARRAY of VARCHAR values representing the hexadecimal IDs of H3 cells that have centroids contained in the specified Polygon. SELECT H3_POLYGON_TO_CELLS_STRINGS( TO_GEOGRAPHY( 'POLYGON((-122.481889 37.826683,-122.479487 37.808548,-122.474150 37.808904,-122...