id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
snowflake_docs/approximate_jaccard_index_6_0.txt | Examples ¶
USE SCHEMA snowflake_sample_data.tpch_sf1;
SELECT APPROXIMATE_JACCARD_INDEX(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/use-schema_0_0.txt | /
1. Parameters
4. Context
10. Variables
14. Queries
1. Database
9. Schema
17. Share
| |
snowflake_docs/get_absolute_path_6_0.txt | Examples ¶
Retrieve the absolute path of a bitmap format image file in an external stage:
SELECT GET_ABSOLUTE_PATH(@images_stage, 'us/yosemite/half_dome.jpg');
+------------------------------------------------------------------------------------------+
| GET_ABSOLUTE_PATH(@IMAGES_STAGE, 'US/YOSEMITE/HALF... | |
snowflake_docs/drop-stage_1_0.txt | DROP STAGE ¶
Removes the specified named internal or external stage from the
current/specified schema. The status of the files in the stage depends on the
stage type:
* For an internal stage, all of the files in the stage are purged from Snowflake, regardless of their load status. This prevents the files from ... | |
snowflake_docs/create-custom-classifier_0_0.txt | /
1. Commands
5. Methods
CUSTOM_CLASSIFIER
| |
snowflake_docs/set_email_notifications_8_0.txt | Examples ¶
Send email notifications for budget ` my_budget ` in the current schema to [
CALL budget_db.budget_schema.my_budget!SET_EMAIL_NOTIFICATIONS(
'budgets_notification', 'costadmin@domain.com, budgetadmin@domain.com');
Copy
Send email notifications for the account budget to [ budgetadmin @ domain... | |
snowflake_docs/get_service_type_usage_7_0.txt | Usage Notes ¶
For ` _ timezone _ ` , you can specify a [ time zone name
America/Los_Angeles ` , ` Europe/London ` , ` UTC ` , ` Etc/GMT ` , etc.).
Note
* Time zone names are case-sensitive and must be enclosed in single quotes (e.g. ` 'UTC' ` ).
| |
snowflake_docs/create-stage_15_0.txt | TYPE = AVRO ¶
` COMPRESSION = AUTO | GZIP | 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-compressed data file was compress... | |
snowflake_docs/hll_combine_2_0.txt | Syntax ¶
HLL_COMBINE([DISTINCT] state)
Copy
| |
snowflake_docs/desc-external-volume_10_0.txt | Examples ¶
Describe the columns in external volume ` extvol ` :
>
> DESC EXTERNAL VOLUME extvol;
>
>
> 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
Language : **English** | |
snowflake_docs/notification_history_1_0.txt | NOTIFICATION_HISTORY ¶
This table function can be used to query the history of notifications sent
through Snowflake. These notifications include:
Note
This function only returns information about notifications that have been
processed (notifications that were either sent out or have failed).
Notifications in the que... | |
snowflake_docs/alter-failover-group_8_0.txt | label-account-replication-integrations) .
` REPLICATION_SCHEDULE ... `
Specifies the schedule for refreshing secondary failover groups.
* ` USING CRON _ expr _ _ time_zone _ `
Specifies a cron expression and time zone for the secondary group refresh.
Supports a subset of standard cron utility syntax.
For a list... | |
snowflake_docs/create-security-integration-oauth-snowflake_2_0.txt | Syntax ¶
**Snowflake OAuth for partner applications**
CREATE [ OR REPLACE ] SECURITY INTEGRATION [IF NOT EXISTS]
<name>
TYPE = OAUTH
OAUTH_CLIENT = <partner_application>
OAUTH_REDIRECT_URI = '<uri>' -- Required when OAUTH_CLIENT=LOOKER
[ ENABLED = { TRUE | FALSE } ]
[ OAUTH_I... | |
snowflake_docs/data-types-structured_43_0.txt | Inserting Key-Value Pairs and Updating Values ¶
To return a new object that contains the key-value pairs from an existing
object with additional key-value pairs or new values for keys, call the [
When calling this function, note the following:
* For the arguments that are keys, you must specify constants.
* Whe... | |
snowflake_docs/show-streams_3_0.txt | Parameters ¶
` TERSE `
Returns only a subset of the output columns:
* ` created_on `
* ` name `
* ` kind ` (rename of ` type ` column in full set of columns)
* ` database_name `
* ` schema_name `
* ` tableOn ` (rename of ` table_name ` column in full set of columns)
` LIKE ' _ pattern _ ' ... | |
snowflake_docs/st_within_5_0.txt | Examples ¶
| |
snowflake_docs/show-stages_4_0.txt | Usage notes ¶
* Columns that start with the prefix ` is_ ` return either ` Y ` (yes) or ` N ` (no).
* The command does not require a running warehouse to execute.
* The command returns a maximum of 10K records for the specified object type, as dictated by the access privileges for the role used to execu... | |
snowflake_docs/alter-service_1_0.txt | ALTER SERVICE ¶
> services/overview) is available to all Snowflake accounts in AWS commercial
> regions except for trial accounts.
guide/snowpark-container-services/working-with-services) configuration,
upgrades the code for the service, and allows you to suspend or resume a
service. You can:
* Apply modifications... | |
snowflake_docs/get_ignore_case_6_0.txt | Returns ¶
* The returned value is the specified element of the ARRAY, or the value that corresponds to the specified key of a key-value pair in the OBJECT.
* If the input object is a semi-structured OBJECT, ARRAY, or VARIANT, the function returns a VARIANT. The data type is VARIANT because:
* In an ARRAY, ... | |
snowflake_docs/regexp_count_2_0.txt | Syntax ¶
REGEXP_COUNT( <subject> , <pattern> [ , <position> , <parameters> ] )
Copy
| |
snowflake_docs/drop-integration_1_0.txt | DROP INTEGRATION ¶
Removes an integration from the account.
See also:
API integrations :
catalog integrations :
External access integrations :
Notification integrations :
Security integrations :
Storage integrations :
| |
snowflake_docs/boolor_1_0.txt | BOOLOR ¶
Computes the Boolean OR of two numeric expressions. In accordance with Boolean
semantics:
* Non-zero values (including negative numbers) are regarded as True.
* Zero values are regarded as False.
As a result, the function returns:
* ` True ` if both expressions are non-zero or one expression is non... | |
snowflake_docs/current_role_type_4_0.txt | Usage notes ¶
None.
| |
snowflake_docs/decompress_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/array_union_agg_7_0.txt | Aggregation: Union of Arrays ¶
The following example illustrates how the function returns the union of
distinct values from two ARRAYs:
CREATE TABLE union_test(a array);
INSERT INTO union_test
SELECT PARSE_JSON('[ 1, 1, 2]')
UNION ALL
SELECT PARSE_JSON('[ 1, 2, 3]');
SELECT ARRAY_... | |
snowflake_docs/query_acceleration_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.
Was this page helpful?
Yes No
Inc. All Rights Reserved .
On this page
1. Syntax
2. Parameters
3. Output
4. Usage Notes
Language : **English** | |
snowflake_docs/table_storage_metrics_3_0.txt | Usage Notes ¶
* Latency for the view may be up to 90 minutes.
* ` ID ` and ` CLONE_GROUP_ID ` :
> * ` ID ` does not change for a table throughout its lifecycle,
> including if the table is renamed or dropped.
>
> * ` CLONE_GROUP_ID ` is the ID of the oldest ancestor of a clone,
> including if the t... | |
snowflake_docs/h3_latlng_to_cell_3_0.txt | Arguments ¶
` _ latitude _ `
A FLOAT that represents the latitude.
Values outside the standard latitude range are wrapped to the range [-90, 90].
` _ longitude _ `
A FLOAT that represents the longitude.
Values outside the standard longitude range are wrapped to the range [-180,
180].
` _ target_resolution _ `
An ... | |
snowflake_docs/top_n_1_0.txt | TOP _ <n> _ ¶
Constrains the maximum number of rows returned by a statement or subquery.
See also:
| |
snowflake_docs/regr_valy_0_0.txt | /
reference/expressions-conditional) REGR_VALY
Categories:
| |
snowflake_docs/data-types-text_15_0.txt | Dollar-Quoted String Constants ¶
In some cases, you might need to specify a string constant that contains:
* Single quote characters.
In these cases, you can avoid escaping these characters by using a pair of
dollar signs ( ` $$ ` ) rather than a single quote ( ` ' ` ) to delimit the
beginning and ending of t... | |
snowflake_docs/array_distinct_1_0.txt | ARRAY_DISTINCT ¶
array) that contains only the distinct elements from the input ARRAY. The
function excludes any duplicate elements that are present in the input ARRAY.
The function is not guaranteed to return the elements in the ARRAY in a
specific order.
The function is NULL-safe, which means that it treats NULLs ... | |
snowflake_docs/alter-pipe_0_0.txt | /
1. Stage
7. File Format
13. External Volume
20. Pipe
26. Snowpipe Streaming
28. Loading and Unloading
loading) ALTER PIPE
| |
snowflake_docs/system_show_budgets_in_account_3_0.txt | Returns ¶
The function returns the following elements in a JSON object:
Column Name
|
Data Type
|
Description
---|---|---
DATABASE
|
TEXT
|
Name of the database to which the budget instance belongs.
SCHEMA
|
TEXT
|
Name of the schema to which the budget instance belongs.
CREATED_ON
|
NUMBER
|
UTC timestamp w... | |
snowflake_docs/get_notification_mute_flag_5_0.txt | Examples ¶
View the state of the notification mute flag for ` my_budget ` in schema `
budget_db.budget_schema ` :
CALL budget_db.budget_schema.my_budget!GET_NOTIFICATION_MUTE_FLAG();
Copy
View the state of the notification mute flag for the account budget:
CALL snowflake.local.account_root_budget!GET_NOTIF... | |
snowflake_docs/percentile_cont_2_0.txt | Syntax ¶
**Aggregate function**
PERCENTILE_CONT( <percentile> ) WITHIN GROUP (ORDER BY <order_by_expr>)
Copy
**Window function**
PERCENTILE_CONT( <percentile> ) WITHIN GROUP (ORDER BY <order_by_expr>) OVER ( [ PARTITION BY <expr3> ] )
Copy
| |
snowflake_docs/create-clone_9_0.txt | Database Roles ¶
CREATE [ OR REPLACE ] DATABASE ROLE [ IF NOT EXISTS ] <database_role_name>
CLONE <source_database_role_name>
Copy
| |
snowflake_docs/min_4_0.txt | Usage Notes ¶
* For compatibility with other systems, you can specify the DISTINCT keyword as an argument for the function, but it does not have any effect.
* If the function is called as a window function, the window can include an optional ` _ window_frame _ ` . The ` _ window_frame _ ` (either cumulative o... | |
snowflake_docs/normal_2_0.txt | Syntax ¶
NORMAL( <mean> , <stddev> , <gen> )
Copy
| |
snowflake_docs/with_12_0.txt | Non-recursive Examples ¶
This section provides sample queries and sample output. To keep the examples
short, the code omits the statements to create and load the tables.
This first example uses a simple WITH clause as a view to extract a subset of
data, in this case the music albums that were released in 1976. For t... | |
snowflake_docs/drop-aggregation-policy_1_0.txt | DROP AGGREGATION POLICY ¶
This feature requires Enterprise Edition (or higher). To inquire about
upgrading, please contact [ Snowflake Support
Snowflake-Lodge) .
Available to all accounts that are Enterprise Edition (or higher).
To inquire about upgrading, please contact [ Snowflake Support
Snowflake-Lodge) .
the cu... | |
snowflake_docs/square_0_0.txt | /
1. Arithmetic
4. Rounding and Truncation
13. Exponent and Root
21. Logarithmic
24. Trigonometric
42. Other
numeric) SQUARE
Categories:
| |
snowflake_docs/current_schema_0_0.txt | /
1. General
14. Session
29. Session Object
41. Alert
context) CURRENT_SCHEMA
Categories:
| |
snowflake_docs/object_insert_2_0.txt | Syntax ¶
OBJECT_INSERT( <object> , <key> , <value> [ , <updateFlag> ] )
Copy
| |
snowflake_docs/last_transaction_0_0.txt | /
1. General
14. Session
29. Session Object
41. Alert
context) LAST_TRANSACTION
Categories:
| |
snowflake_docs/call-with_19_0.txt | Privileges ¶
* Creating and calling a procedure with this command does not require a role with CREATE PROCEDURE schema privileges.
* The procedure’s handler code will be able to perform only actions permitted for the role assigned to the person who ran this command.
| |
snowflake_docs/regr_sxx_2_0.txt | Syntax ¶
**Aggregate function**
REGR_SXX(y, x)
Copy
**Window function**
REGR_SXX(y, x) OVER ( [ PARTITION BY <expr3> ] )
Copy
| |
snowflake_docs/system_abort_transaction_0_0.txt | /
1. Control
29. Information
90. Query Information
SYSTEM$ABORT_TRANSACTION
Categories:
| |
snowflake_docs/constraints-other_4_0.txt | Support for Constraints in Copy Commands ¶
Snowflake supports creating copies of tables using [ CREATE TABLE
* To create an empty copy, use CREATE TABLE … LIKE.
* To create a clone, use CREATE TABLE … CLONE.
In addition, copies of tables are automatically created when a schema or
database is cloned.
Regardless... | |
snowflake_docs/zeroifnull_1_0.txt | ZEROIFNULL ¶
Returns 0 if its argument is null; otherwise, returns its argument.
| |
snowflake_docs/accounts_1_0.txt | ACCOUNTS View ¶
Available to all accounts.
The ACCOUNTS view in the ORGANIZATION_USAGE schema can be used to obtain
details about the accounts in an organization.
| |
snowflake_docs/create-stage_13_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/hll_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/conventions_3_0.txt | Examples ¶
In the following, the keyword ` WORK ` is optional:
BEGIN [ WORK ]
Copy
Therefore, either of the following are valid:
BEGIN;
BEGIN WORK;
Copy
In the following, you can use either the keyword ` WORK ` or the keyword `
TRANSACTION ` . You must not use both. You can omit both.
BEGIN [ { WO... | |
snowflake_docs/references_19_0.txt | label-native-apps-considerations-for-references) .
| |
snowflake_docs/set_email_notifications_0_0.txt | /
1. Commands
4. Methods
| |
snowflake_docs/task_history_4_0.txt | Usage notes ¶
* Latency for the view may be up to 45 minutes.
* For increased performance, filter queries on the COMPLETED_TIME or SCHEDULED_TIME column. See the Examples section (in this topic).
| |
snowflake_docs/try_hex_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/set_4_0.txt | Usage Notes ¶
* The command supports setting multiple variables in the same statement.
* If the command executing complex expressions, it might require a running virtual warehouse in the session.
* The number of expressions must match the number of variables to initialize.
* The size of string or binary v... | |
snowflake_docs/alter-tag_6_0.txt | label-tag-based-masking-replace-masking-policy) .
` COMMENT = ' _ string_literal _ ' `
Specifies a comment for the tag.
Default: No value
` UNSET `
Specifies one (or more) properties and/or parameters to unset for the tag,
which resets them to the defaults:
* ` COMMENT `
* ` ALLOWED_VALUES `
| |
snowflake_docs/systimestamp_1_0.txt | SYSTIMESTAMP ¶
Returns the current timestamp for the system.
See also:
| |
snowflake_docs/drop-aggregation-policy_7_0.txt | label-security-custom-role) .
For general information about roles and privilege grants for performing SQL
overview.html | |
snowflake_docs/data_transfer_history_1_0.txt | DATA_TRANSFER_HISTORY ¶
This table function can be used to query the history of data transferred from
Snowflake tables into a different cloud storage provider’s network (i.e. from
Snowflake on AWS, Google Cloud Platform, or Microsoft Azure into the other
cloud provider’s network) and/or geographical region within a ... | |
snowflake_docs/year_4_1.txt | K(tstamp) AS "DAY OF WEEK",
> DAYOFWEEKISO(tstamp) AS "DAY OF WEEK ISO"
> ;
> +-------------------------+-------------+-----------------+
> | TSTAMP | DAY OF WEEK | DAY OF WEEK ISO |
> |-------------------------+-------------+-----------------|
> | 2016-01-02 23:39... | |
snowflake_docs/show-failover-groups_0_0.txt | /
4. Replication
11. Failover/Failback
18. Client Redirect
SHOW FAILOVER GROUPS
| |
snowflake_docs/encrypt_raw_0_0.txt | /
encryption) ENCRYPT_RAW
Categories:
| |
snowflake_docs/cast_6_0.txt | label-structured-types-casting-struct-struct-object-key-add) .
The values for the newly added keys will be set to NULL. If you want to assign
structured.html | |
snowflake_docs/systimestamp_6_0.txt | Examples ¶
Show the current system timestamp:
>
> SELECT SYSTIMESTAMP();
>
>
> Copy
>
>
> +-------------------------------+
> | SYSTIMESTAMP() |
> |-------------------------------|
> | 2024-01-08 12:47:10.197000000 |
> +-------------------------------+
>
Was this page h... | |
snowflake_docs/sin_1_0.txt | SIN ¶
Computes the sine of its argument; the argument should be expressed in
radians.
| |
snowflake_docs/data-types-unsupported_1_0.txt | Unsupported Data Types ¶
Snowflake does not support the following data types:
Category
|
Type
|
Notes
---|---|---
LOB (Large Object)
|
BLOB
|
BINARY can be used instead; maximum of 8,388,608 bytes. For more information,
CLOB
|
VARCHAR can be used instead; maximum of 16,777,216 bytes (for singlebyte). For
Other
|... | |
snowflake_docs/load_history_1_0.txt | LOAD_HISTORY View ¶
This Information Schema view enables you to retrieve the history of data
command within the last 14 days. The view displays one row for each file
loaded.
Note
This view does not return the history of data loaded using Snowpipe. For this
table function instead.
| |
snowflake_docs/create-authentication-policy_3_0.txt | Required Parameters ¶
` _ name _ `
If the identifier contains spaces or special characters, you must enclose the
string in double quotation marks. Identifiers enclosed in double quotation
marks are case-sensitive. The identifier must meet the [ identifier
| |
snowflake_docs/create-file-format_10_0.txt | TYPE = PARQUET ¶
` COMPRESSION = AUTO | LZO | SNAPPY | NONE `
Use :
Data loading, data unloading, and external tables
Definition :
* When loading data, specifies the current compression algorithm for columns in the Parquet files.
* When unloading data, compresses the data file using the specified com... | |
snowflake_docs/show-integrations_2_0.txt | Syntax ¶
SHOW [ { API | CATALOG | EXTERNAL ACCESS | NOTIFICATION | SECURITY | STORAGE } ] INTEGRATIONS [ LIKE '<pattern>' ]
Copy
| |
snowflake_docs/transactions_7_0.txt | DDL ¶
Each DDL statement executes as a separate transaction.
If a DDL statement is executed while a transaction is active, the DDL
statement:
1. Implicitly commits the active transaction.
2. Executes the DDL statement as a separate transaction.
Because a DDL statement is its own transaction, you cannot roll ba... | |
snowflake_docs/create-iceberg-table_9_0.txt | label-create-table-copy-grants) in this document.
> Note
>
> CREATE TABLE … LIKE for a table with an auto-increment sequence accessed
> through a data share is currently not supported.
| |
snowflake_docs/infer_schema_4_0.txt | Output ¶
The function returns the following columns:
Column Name
|
Data Type
|
Description
---|---|---
COLUMN_NAME
|
TEXT
|
Name of a column in the staged files.
TYPE
|
TEXT
|
Data type of the column.
NULLABLE
|
BOOLEAN
|
Specifies whether rows in the column can store NULL instead of a value.
Currently, the ... | |
snowflake_docs/create-security-integration-oauth-external_5_0.txt | Access control requirements ¶
access-control-overview-roles) used to execute this SQL command must have the
overview.html | |
snowflake_docs/array_unique_agg_4_0.txt | Returns ¶
The function returns an ARRAY containing the distinct values in the specified
column. The values in the ARRAY are in no particular order, and the order is
not deterministic.
The function ignores NULL values in ` _ column _ ` . If ` _ column _ `
contains only NULL values or the table containing ` _ column... | |
snowflake_docs/show-functions_6_0.txt | Examples ¶
Show all functions:
>
> SHOW FUNCTIONS;
>
>
> Copy
Show only functions matching the specified regular expression:
>
> SHOW FUNCTIONS LIKE 'SQUARE';
>
>
> ------------+--------+-------------+------------+--------------+---------+-------------------+-------------------+--------------------------... | |
snowflake_docs/desc-packages-policy_4_0.txt | Access Control Requirements ¶
access-control-overview-roles) used to execute this SQL command must have at
control-overview.html | |
snowflake_docs/system_classify_2_0.txt | Syntax ¶
CALL SYSTEM$CLASSIFY( '<object_name>' , <arg> )
Copy
| |
snowflake_docs/map_pick_5_0.txt | Examples ¶
Create a new map that contains two of the three key-value pairs from an
existing map:
SELECT MAP_PICK({'a':1,'b':2,'c':3}::MAP(VARCHAR,NUMBER),'a', 'b')
AS new_map;
Copy
+-----------+
| NEW_MAP |
|-----------|
| { |
| "a": 1, |
| "b": 2 |
| } |
... | |
snowflake_docs/sql-all_2_0.txt | label-tables-iceberg-external-volume-def) .
|
guide/account-replication-intro.html | |
snowflake_docs/commands-session_0_0.txt | /
1. Parameters
4. Context
10. Variables
14. Queries
commands) Sessions
| |
snowflake_docs/drop-authentication-policy_0_0.txt | /
1. Authentication Policy
7. Network Policy
13. Network Rule
19. Packages Policy
25. Password Policy
31. Session Policy
37. Secret
AUTHENTICATION POLICY
| |
snowflake_docs/array_flatten_2_0.txt | Syntax ¶
ARRAY_FLATTEN( <array> )
Copy
| |
snowflake_docs/alter-replication-group_17_0.txt | Usage Notes ¶
* The following minimal privileges are required:
* To refresh a secondary replication group using ALTER REPLICATION GROUP … REFRESH, the active, primary role must have either the OWNERSHIP or REPLICATE privilege on the replication group.
* To make any other changes to the replication group,... | |
snowflake_docs/alter-security-integration-scim_2_0.txt | Syntax ¶
ALTER [ SECURITY ] INTEGRATION [ IF EXISTS ] <name> SET
[ ENABLED = { TRUE | FALSE } ]
[ NETWORK_POLICY = '<network_policy>' ]
[ SYNC_PASSWORD = { TRUE | FALSE } ]
[ COMMENT = '<string_literal>' ]
ALTER [ SECURITY ] INTEGRATION [ IF EXISTS ] <name> UNSET {
... | |
snowflake_docs/group-by-cube_0_0.txt | /
Categories:
| |
snowflake_docs/functions-conversion_2_0.txt | List of Functions ¶
Sub-category
|
Function
|
Notes
---|---|---
**Any Data Type**
|
|
|
Error-handling version of CAST.
**Text/Character/Binary Data Types**
|
|
|
|
Error-handling version to TO_BINARY.
**Numeric Data Types**
|
|
|
|
Error-handling versions of TO_DECIMAL, TO_NUMBER, etc.
|
Error-h... | |
snowflake_docs/date-time-examples_4_0.txt | Loading Timestamps with a Time Zone Attached ¶
In the following example, the [ TIMESTAMP_TYPE_MAPPING
timezone) parameter is set to America/Chicago time. Suppose a set of incoming
timestamps has a different time zone specified. Snowflake loads the string in
America/Chicago time.
ALTER SESSION SET TIMESTAMP_TYPE_... | |
snowflake_docs/show-stages_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/grant-role_1_0.txt | GRANT ROLE ¶
Assigns a role to a user or another role:
* Granting a role to another role creates a “parent-child” relationship between the roles (also referred to as a _role hierarchy_ ).
* Granting a role to a user enables the user to perform all operations allowed by the role (through the access privileges gr... | |
snowflake_docs/try_parse_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:
semistructured) (Parsing)
| |
snowflake_docs/system_get_tag_on_current_column_0_0.txt | /
1. Control
29. Information
90. Query Information
SYSTEM$GET_TAG_ON_CURRENT_COLUMN
Categories:
| |
snowflake_docs/create-warehouse_3_0.txt | Required Parameters ¶
` _ name _ `
Identifier for the virtual warehouse; must be unique for 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 quotes (for example, ` "My object" ... | |
snowflake_docs/alter-function_16_0.txt | Examples ¶
Rename the function ` function1 ` to ` function2 ` :
ALTER FUNCTION IF EXISTS function1(number) RENAME TO function2;
Copy
Convert a regular function ` function2 ` to a secure function:
ALTER FUNCTION function2(number) SET SECURE;
Copy
| |
snowflake_docs/desc-alert_1_0.txt | DESCRIBE ALERT ¶
See also:
alert)
| |
snowflake_docs/alter-task_6_0.txt | Examples ¶
The following example initiates operation of a task:
ALTER TASK mytask RESUME;
Copy
The following example converts a task to the serverless compute model and sets
` xsmall ` as the amount of compute resources to provision for the first
serverless runs of the task:
ALTER TASK mytask UNSET WAREHOUS... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.