id
stringlengths
16
145
text
stringlengths
1
179k
title
stringclasses
1 value
snowflake_docs/is_null_value_3_0.txt
Returns ¶ The data type of the returned value is ` BOOLEAN ` .
snowflake_docs/drop-database-role_5_0.txt
Examples ¶ > > DROP DATABASE ROLE d1.dr1; > > > 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/class_instances_0_0.txt
/
snowflake_docs/create-warehouse_0_0.txt
/ 1. Virtual Warehouses 8. Resource Monitors reference/commands-warehouse) CREATE WAREHOUSE
snowflake_docs/try_to_boolean_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) TRY_TO_BOOLEAN Categories:
snowflake_docs/trim_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/parameters_36_0.txt
ENABLE_IDENTIFIER_FIRST_LOGIN ¶ Type : Account — Can be set only for Account Data Type : Boolean Description : Determines the login flow for users. When enabled, Snowflake prompts users for their username or email address before presenting authentication methods. For . Values : ` TRUE ` : Snowflake uses an iden...
snowflake_docs/drop-resource-monitor_0_0.txt
/ 1. Virtual Warehouses 8. Resource Monitors reference/commands-warehouse) DROP RESOURCE MONITOR
snowflake_docs/desc-application_6_0.txt
Examples ¶ Describe the properties of an application object: DESC APPLICATION hello_snowflake_app; Copy +----------------------------+-------------------------------+ | property | value | |----------------------------+-------------------------------| | na...
snowflake_docs/at-before_1_0.txt
AT | BEFORE ¶ The AT or BEFORE clause is used for Snowflake Time Travel. In a query, it is it determines the point in the past from which historical data is requested for the object: * The AT keyword specifies that the request is inclusive of any changes made by a statement or transaction with timestamp equal to t...
snowflake_docs/automatic_clustering_history_0_0.txt
/ Schema:
snowflake_docs/undrop_3_0.txt
General Usage Notes ¶ * Not all DROP commands have a corresponding UNDROP.
snowflake_docs/as_decimal-number_5_0.txt
Examples ¶ This shows how to use the function: > Create a table and data: > >> >> CREATE TABLE multiple_types ( >> binary1 VARIANT, >> date1 VARIANT, >> decimal1 VARIANT, >> time1 VARIANT, >> timestamp1 VARIANT >> ); >> INSERT INTO multiple_types >> (b...
snowflake_docs/show-applications_5_0.txt
Examples ¶ SHOW APPLICATIONS; Copy +-------------------------------+------------------------+------------+------------+---------------------+----------------------------+---------------+---------+---------------------+-----------------+-------+---------+----------------+ | created_on |...
snowflake_docs/hash_agg_5_0.txt
Examples ¶ NULLs are never ignored: > > select hash_agg(null), hash_agg(null, null), hash_agg(null, null, null); > > > ----------------------+----------------------+----------------------------+ > HASH_AGG(NULL) | HASH_AGG(NULL, NULL) | HASH_AGG(NULL, NULL, > NULL) | > > ----------------------+-----...
snowflake_docs/nth_value_4_0.txt
Usage Notes ¶ * Input value ` _ n _ ` cannot be greater than 1000. * If ` FROM { FIRST | LAST } ` is not specified, the default is ` FIRST ` (i.e. the direction is from the beginning of the ordered list). * If ` { IGNORE | RESPECT } NULLS ` is not specified, the default is ` RESPECT NULLS ` (...
snowflake_docs/drop-aggregation-policy_0_0.txt
/ 1. Aggregation Policy 7. Projection Policy POLICY
snowflake_docs/data-types-datetime_13_0.txt
Examples of Using Date and Time Formats ¶ The following example uses “FF” to indicate that the output should have 9 digits in the fractional seconds field: > > CREATE TABLE timestamp_demo_table(t TIMESTAMP, > t_tz TIMESTAMP_TZ, > t_ntz ...
snowflake_docs/st_makegeompoint_1_0.txt
ST_MAKEGEOMPOINT , ST_GEOM_POINT ¶ geometry) object that represents a Point with the specified longitude and latitude. See also:
snowflake_docs/get_ddl_6_0.txt
UNKNOWN_POLICY ` and the tag with `
snowflake_docs/create-managed-account_9_0.txt
label-access-control-securable-objects) , see [ Overview of
snowflake_docs/soundex_p123_1_0.txt
SOUNDEX_P123 ¶ Returns a string that contains a phonetic representation of the input string, and retains the Soundex code number for the second letter when the first and second letters use the same number. cases in which the first and second letters of the input string use the same Soundex code number. In those case...
snowflake_docs/policy_references_5_0.txt
Usage notes ¶ * Results are returned based on the privileges granted to the role executing the query: * If the role has the global APPLY MASKING POLICY privilege, Snowflake returns all masking policy associations in the query result. * If the role has the global APPLY ROW ACCESS POLICY privilege, Snowfla...
snowflake_docs/collation_22_0.txt
Additional Considerations for Using Collation ¶ * Remember that, despite the similarity in their names, the following collation functions return different results: * COLLATE explicitly specifies which collation to use. * COLLATION shows which collation is used if none is specified explicitly. * A co...
snowflake_docs/soundex_p123_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/cosh_3_0.txt
Arguments ¶ ` _ real_expr _ ` This expression should evaluate to a real number.
snowflake_docs/st_aswkb_2_0.txt
Well-known_binary) format. See also:
snowflake_docs/insert_8_0.txt
Multi-row Insert Using Explicitly-specified Values ¶ Insert two rows of data into the ` employees ` table by providing both sets of values in a comma-separated list in the ` VALUES ` clause: > > SELECT * FROM employees; > > > +------------+-----------+----------------+---------------+-------------+ > | F...
snowflake_docs/alter-row-access-policy_6_0.txt
label-security-custom-role) . For general information about roles and privilege grants for performing SQL overview.html
snowflake_docs/grant-privilege_0_0.txt
/ 1. User Management 7. Database Role Management 16. Account-level Role Management 25. Privilege Management GRANT <privileges> ... TO ROLE
snowflake_docs/position_8_0.txt
VARCHAR Expressions ¶ Find the first occurrence of ‘an’ in ‘banana’: > > select position('an', 'banana', 1); > +-----------------------------+ > | POSITION('AN', 'BANANA', 1) | > |-----------------------------| > | 2 | > +-----------------------------+ > > > Copy F...
snowflake_docs/alter-failover-group_10_0.txt
| ________ hour (0-23)
snowflake_docs/get_ddl_8_0.txt
UNKNOWN_VALUE ` . This text indicates that the column or the object is protected by a policy and a tag is set on the object or column. If this text is not removed prior to recreating the object, the CREATE OR REPLACE _ <object> _ statement fails. If this text is present in the GET_DDL query result, prior to recreatin...
snowflake_docs/group-by_8_0.txt
Group By All Columns ¶ The following example is equivalent to the example used in Group By Multiple Columns . SELECT state, city, SUM(retail_price * quantity) AS gross_revenue FROM sales GROUP BY ALL; Copy +-------+---------+---------------+ | STATE | CITY | GROSS REVENUE | +=======+...
snowflake_docs/h3_string_to_int_4_0.txt
Returns ¶ Returns an INTEGER value representing the H3 cell ID.
snowflake_docs/desc-event-table_4_0.txt
Usage Notes ¶
snowflake_docs/alter-streamlit_1_0.txt
ALTER STREAMLIT ¶ Attention This feature is available to accounts in [ AWS and Microsoft Azure commercial Modifies the properties of an existing Streamlit object. See also:
snowflake_docs/snowflake-db-classes_2_0.txt
Concepts ¶ A _Class_ is similar to a class in object oriented programming and serves as a blueprint for creating instances. An _Instance_ is an object created from a Class. Classes and instances are schema-level objects in Snowflake. You can think of a class as an extensible Snowflake object type and an instance as ...
snowflake_docs/to_json_1_0.txt
TO_JSON ¶ Converts a VARIANT value to a string containing the JSON representation of the value. If the input is NULL, the result is also NULL.
snowflake_docs/data-types-geospatial_11_0.txt
Examples of Inserting and Querying GEOGRAPHY Data ¶ The code below shows sample input and output for the GEOGRAPHY data type. Note the following: * For the coordinates in WKT, EWKT, and GeoJSON, longitude appears before latitude (e.g. ` POINT( _ lon _ _ lat _ ) ` ). The example creates a table with a GEOGRAPH...
snowflake_docs/ilike_6_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/data-type-conversion_6_0.txt
Casting and Precedence ¶ When casting inside an expression, the code must take into account the precedence of the cast operator relative to other operators in the expression. Consider the following example: > > SELECT height * width::VARCHAR || " square meters" > FROM dimensions; > > > Copy The cast op...
snowflake_docs/create-stream_9_0.txt
label-security-custom-role) . For general information about roles and privilege grants for performing SQL overview.html
snowflake_docs/current_client_5_0.txt
> > | > > CURRENT_CLIENT() > > ---|--- > > 1 > > | > > Snowflake UI 1434236365 Was this page helpful? Yes No Inc. All Rights Reserved . On this page 1. Syntax 2. Usage Notes 3. Examples Language : **English**
snowflake_docs/st_geogfromgeohash_3_0.txt
Arguments ¶ **Required:** ` _ geohash _ ` The argument must be a geohash. **Optional:** ` _ precision _ ` The number of characters to use from the input geohash. For example, passing ` 5 ` for ` _ precision _ ` causes the function to use the first 5 characters in the geohash. You can specify a value from ` 1 ` ...
snowflake_docs/create-external-access-integration_6_0.txt
label-access-control-overview-privileges) at a minimum: Privilege | Object | Notes ---|---|--- CREATE INTEGRATION | Account | Only the ACCOUNTADMIN role has this privilege by default. The privilege can be granted to additional roles as needed. USAGE | Secret | Required for all secrets referenced by the integratio...
snowflake_docs/sha2_2_0.txt
Syntax ¶ SHA2( <msg> [, <digest_size>] ) SHA2_HEX( <msg> [, <digest_size>] ) Copy
snowflake_docs/alter-table_2_1.txt
> > Copy > > For detailed syntax and examples for altering columns, see [ ALTER TABLE … > > For detailed syntax and examples for creating/altering inline constraints, > > > dataGovnPolicyTagAction ::= > { > SET TAG <tag_name> = '<tag_value>' [ , <tag_name> = '<tag_value>' > ... ] > | UN...
snowflake_docs/create-masking-policy_9_0.txt
label-access-control-securable-objects) , see [ Overview of When specifying the ` EXEMPT_OTHER_POLICIES ` property in a masking policy, the role that owns the masking policy (i.e. the role with OWNERSHIP privilege on the policy) must be in the role hierarchy of the role that owns the row access policy or the condition...
snowflake_docs/functions-analytic_15_0.txt
Window Frame Syntax ¶ <function> ( <arguments> ) OVER ( [ PARTITION BY <expr1> ] ORDER BY <expr2> [ cumulativeFrame | slidingFrame ] ) Copy Where: > > cumulativeFrame ::= > { > { ROWS | RANGE } BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW > | { ROWS | RANGE } BETWEEN CURRENT ROW AN...
snowflake_docs/references_12_0.txt
Query references ¶ A _query reference_ is a type of transient reference. It references a SELECT statement that can be used in the FROM clause of another SQL statement in a stored procedure. You can create a query reference by using the [ guide/stored-procedure/stored-procedures-calling-references.html
snowflake_docs/h3_point_to_cell_2_0.txt
Syntax ¶ H3_POINT_TO_CELL( <geography_point> , <target_resolution> ) Copy
snowflake_docs/min_5_0.txt
Collation Details ¶ * The comparisons follow the collation based on the input arguments’ collations and precedences. * The collation of the result is the same as the collation of the input.
snowflake_docs/undrop-account_0_0.txt
/ 1. Organization 7. Managed Accounts 11. Account Parameters & Functions
snowflake_docs/alter-stage_17_0.txt
Directory table examples ¶ Add a directory table to an existing stage named ` mystage ` : ALTER STAGE mystage SET DIRECTORY = ( ENABLE = TRUE ); Copy Manually refresh the directory table metadata in a stage named ` mystage ` : ALTER STAGE mystage REFRESH; +-------------------------+----------------+---...
snowflake_docs/base64_encode_3_0.txt
Arguments ¶ **Required:** ` _ input _ ` A string or binary expression to be encoded. **Optional:** ` _ max_line_length _ ` A positive integer that specifies the maximum number of characters in a single line of the output. Default: ` 0 ` (specifies that no line breaks are inserted (i.e. the maximum line length is ...
snowflake_docs/st_perimeter_1_0.txt
ST_PERIMETER ¶ Returns the length of the perimeter of the polygon(s) in a [ GEOGRAPHY
snowflake_docs/network_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/st_azimuth_4_0.txt
Returns ¶ Returns a value of type REAL that is the azimuth in radians.
snowflake_docs/data-types-semistructured_10_0.txt
label-hierarchical-data) . Note Snowflake also supports structured OBJECTs, which allows for values other than VARIANTs. A structured OBJECT type also defines the keys that must be present in an OBJECT of that type. For more information, see [ Structured Data Types
snowflake_docs/h3_point_to_cell_string_3_0.txt
Syntax ¶ H3_POINT_TO_CELL_STRING( <geography_point> , <target_resolution> ) Copy
snowflake_docs/create-stage_2_0.txt
Syntax ¶ -- Internal stage CREATE [ OR REPLACE ] [ { TEMP | TEMPORARY } ] STAGE [ IF NOT EXISTS ] <internal_stage_name> internalStageParams directoryTableParams [ FILE_FORMAT = ( { FORMAT_NAME = '<file_format_name>' | TYPE = { CSV | JSON | AVRO | ORC | PARQUET | XML } [ formatTypeOption...
snowflake_docs/show-image-repositories_2_0.txt
Syntax ¶ SHOW IMAGE REPOSITORIES [ LIKE '<pattern>' ] [ IN { ACCOUNT | DATABASE | DATABASE <database_name> | SCHEMA | ...
snowflake_docs/convert_timezone_2_0.txt
Syntax ¶ CONVERT_TIMEZONE( <source_tz> , <target_tz> , <source_timestamp_ntz> ) CONVERT_TIMEZONE( <target_tz> , <source_timestamp> ) Copy
snowflake_docs/data-types-structured_31_0.txt
Looking up Elements in a Structured ARRAY ¶ To determine if an element is present in a structured ARRAY, call the [ SELECT ARRAY_CONTAINS(10, [1, 10, 100]::ARRAY(NUMBER)); Copy To determine the position of an element in a structured ARRAY, call the [ SELECT ARRAY_POSITION(10, [1, 10, 100]::ARRAY(NUMBER)); Co...
snowflake_docs/create-api-integration_1_0.txt
CREATE API INTEGRATION ¶ Creates a new API integration object in the account, or replaces an existing API integration. An API integration object stores information about an HTTPS proxy service, including information about: > * The cloud platform provider (e.g. Amazon AWS). > > * The type of proxy service (in cas...
snowflake_docs/show-indexes_2_0.txt
label-hybrid-table-limitations-regions) . Lists all the indexes in your account for which you have access privileges. See also:
snowflake_docs/h3_cell_to_children_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_CHILDREN Categories:
snowflake_docs/space_4_0.txt
Examples ¶ SELECT SPACE(3); Copy Was this page helpful? Yes No Inc. All Rights Reserved . On this page 1. Syntax 2. Arguments 3. Examples Language : **English**
snowflake_docs/st_geompointfromgeohash_3_0.txt
Arguments ¶ ` _ geohash _ ` The argument must be a geohash.
snowflake_docs/regr_avgy_2_0.txt
Syntax ¶ **Aggregate function** REGR_AVGY(y, x) Copy **Window function** REGR_AVGY(y, x) OVER ( [ PARTITION BY <expr3> ] ) Copy
snowflake_docs/show-shares_6_1.txt
EXAMPLE | | ACCOUNTADMIN | > | | > | 2022-08-18 12:02:29.625 -0700 | OUTBOUND | SNOW.MY_TEST_ACCOUNT | > SNOW_DATA | ALFALFA_DB | AB12345, YZ23456 | ACCOUNTADMIN | > | | > | 2022-08-18 14:02:40.625 -0700 | OUTBOUND | SNOW.MY_TEST...
snowflake_docs/desc-alert_0_0.txt
/
snowflake_docs/system_show_budgets_in_account_1_0.txt
SYSTEM$SHOW_BUDGETS_IN_ACCOUNT ¶ editions) . guide/intro-regions) . See also:
snowflake_docs/div0null_2_0.txt
Syntax ¶ DIV0NULL( <dividend> , <divisor> ) Copy
snowflake_docs/alter-failover-group_15_0.txt
| | | | | * * * * * The following special characters are supported: ` * ` Wildcard. Specifies any occurrence of the field. ` L ` Stands for “last”. When used in the day-of-week field, it allows you to specify constructs such as “the last Friday” (“5L”) of a given month. In the day-of-month field, it specifies ...
snowflake_docs/complete_task_graphs_6_0.txt
label-task-dag) . This ID matches the ID column value in the SHOW TASKS output for the same task. GRAPH_VERSION | NUMBER | intro.html
snowflake_docs/null_4_0.txt
Usage Notes ¶ * A NULL statement in an exception handler ensures that the code continues executing rather than aborting if there is no higher-level handler. * A NULL statement in a branch does nothing; however, it communicates to the reader that the author of the code explicitly considered the condition for whi...
snowflake_docs/aggregate_access_history_2_0.txt
Columns ¶ Column Name | Data Type | Description ---|---|--- INTERVAL_START_TIME | TIMESTAMP_LTZ | Start time of the window of measurement. INTERVAL_END_TIME | TIMESTAMP_LTZ | End time of the window of measurement. QUERY_PARAMETERIZED_HASH | TEXT | Unique ID to identify identical parameterized queries. See [ ...
snowflake_docs/rtrim_5_0.txt
Collation Details ¶ Collation is supported when the optional second argument is omitted, or when it contains only constant whitespace. The collation specification of the returned value is the same as the collation specification of the first argument.
snowflake_docs/base64_encode_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/md5_number_lower64_2_0.txt
Syntax ¶ MD5_NUMBER_LOWER64(<msg>) Copy
snowflake_docs/ln_2_0.txt
Syntax ¶ LN(<expr>) Copy
snowflake_docs/accounts_5_0.txt
label-connecting-via-url) was saved when the account was renamed, provides the original URL. If the original account URL was dropped, the value is NULL even if the account was renamed. ACCOUNT_OLD_URL_LAST_USED | VARCHAR | If the original account URL was saved when the account was renamed, indicates the last time the...
snowflake_docs/object_delete_3_0.txt
Arguments ¶ ` _ object _ ` The source object. ` _ key1 _ ` , ` _ key2 _ ` Key to be omitted from the returned object.
snowflake_docs/create-aggregation-policy_6_0.txt
label-access-control-overview-privileges) at a minimum: Privilege | Object | Notes ---|---|--- CREATE AGGREGATION POLICY | Schema | Note that operating on any object in a schema also requires the USAGE privilege on the parent database and schema. For instructions on creating a custom role with a specified set of ...
snowflake_docs/system_authorize_stage_privatelink_access_4_0.txt
label-private-internal-stages-azure-configure- endpoints) .
snowflake_docs/create-file-format_11_0.txt
TYPE = XML ¶ Available to all accounts. ` COMPRESSION = AUTO | GZIP | BZ2 | BROTLI | ZSTD | DEFLATE | RAW_DEFLATE | NONE ` Use : Data loading only Definition : * When loading data, specifies the current compression algorithm for the data file. Snowflake uses this option to detect how an already-...
snowflake_docs/create-network-rule_5_0.txt
Access control requirements ¶ access-control-overview-roles) used to execute this SQL command must have the overview.html
snowflake_docs/last_successful_scheduled_time_4_0.txt
Arguments ¶ None.
snowflake_docs/commands-model_0_0.txt
/ 1. Models 6. Versions commands) Machine Learning Models
snowflake_docs/try_base64_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/desc-masking-policy_0_0.txt
/ 1. Column-level Security 7. Row Access Policy 13. Tag DESCRIBE MASKING POLICY
snowflake_docs/system_clustering_depth_2_0.txt
Syntax ¶ SYSTEM$CLUSTERING_DEPTH( '<table_name>' , '( <col1> [ , <col2> ... ] )' [ , '<predicate>' ] ) Copy
snowflake_docs/desc-table_4_0.txt
Usage Notes ¶ If a masking policy is not set on the column or if the Snowflake account is not Enterprise Edition or higher, Snowflake returns ` NULL ` .
snowflake_docs/sha1_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/alter-table_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 ALTER TABLE
snowflake_docs/any_value_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/hash_4_0.txt
Returns ¶ Returns a signed 64-bit value as NUMBER(19,0). HASH never returns NULL, even for NULL inputs.
snowflake_docs/drop-dynamic-table_3_0.txt
Parameters ¶ ` _ name _ ` Specifies the identifier for the dynamic table to drop. If the identifier contains spaces, special characters, or mixed-case characters, the entire string must be enclosed in double quotes. Identifiers enclosed in double quotes are also case-sensitive (e.g. ` "My Object" ` ). If the tabl...