id
stringlengths
16
145
text
stringlengths
1
179k
title
stringclasses
1 value
snowflake_docs/create-row-access-policy_2_0.txt
Syntax ¶ Snowflake supports the following syntax to create a row access policy. CREATE [ OR REPLACE ] ROW ACCESS POLICY [ IF NOT EXISTS ] <name> AS ( <arg_name> <arg_type> [ , ... ] ) RETURNS BOOLEAN -> <body> [ COMMENT = '<string_literal>' ] Copy
snowflake_docs/system_typeof_0_0.txt
/ 1. Control 29. Information 90. Query Information SYSTEM$TYPEOF Categories:
snowflake_docs/create-task_6_0.txt
__________ minute (0-59)
snowflake_docs/show-aggregation-policies_4_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/system_classify_schema_3_0.txt
Syntax ¶ CALL SYSTEM$CLASSIFY_SCHEMA( '<object_name>' , <arg> ) Copy
snowflake_docs/drop-failover-group_2_0.txt
Syntax ¶ DROP FAILOVER GROUP [ IF EXISTS ] <name> Copy
snowflake_docs/functions-data-generation_3_0.txt
Usage Notes ¶ * Random distribution functions are deterministic. * Each random distribution function takes a generator expression, ` _ gen _ ` , as its last argument. The generator expression, ` _ gen _ ` , can be constant or variable: > * If constant, then the result of the random distribution function ...
snowflake_docs/cot_0_0.txt
/ 1. Arithmetic 4. Rounding and Truncation 13. Exponent and Root 21. Logarithmic 24. Trigonometric 42. Other numeric) COT Categories:
snowflake_docs/create-external-table_2_0.txt
Syntax ¶ -- Partitions computed from expressions CREATE [ OR REPLACE ] EXTERNAL TABLE [IF NOT EXISTS] <table_name> ( [ <col_name> <col_type> AS <expr> | <part_col_name> <col_type> AS <part_expr> ] [ inlineConstraint ] [ , <col_name> <col_type> AS <expr> | <part_col_name> <co...
snowflake_docs/commands-user-role_2_0.txt
User management ¶
snowflake_docs/set_spending_limit_8_0.txt
Usage Notes ¶ The ` _ number _ ` argument must be a positive integer.
snowflake_docs/create-task_16_0.txt
label-security-custom-role) . For general information about roles and privilege grants for performing SQL overview.html
snowflake_docs/copy-files_0_0.txt
/
snowflake_docs/policy_references_2_0.txt
Syntax ¶ For network policy objects only: > > POLICY_REFERENCES( > POLICY_NAME => '<string>' , > POLICY_KIND => 'NETWORK_POLICY' > ) > > > Copy For other policy objects: > > POLICY_REFERENCES( > POLICY_NAME => '<string>' > ) > > > Copy For all policy obje...
snowflake_docs/try_to_geometry_3_0.txt
Syntax ¶ Use one of the following: TRY_TO_GEOMETRY( <varchar_expression> [ , <srid> ] [ , <allow_invalid> ] ) TRY_TO_GEOMETRY( <binary_expression> [ , <srid> ] [ , <allow_invalid> ] ) TRY_TO_GEOMETRY( <variant_expression> [ , <srid> ] [ , <allow_invalid> ] ) Copy
snowflake_docs/drop-image-repository_8_0.txt
Usage notes ¶ Dropping an image repository while services are running that reference images in that repository can cause problems. Currently running service instances and jobs will continue to run, but any attempt to create a new service instance will fail.
snowflake_docs/listing-events-daily_1_0.txt
LISTING_EVENTS_DAILY View ¶ usage) schema lets you query the daily history of consumer activity on listings for the Snowflake Marketplace and data exchanges, including: * Consumer installs a database from a listing. * Consumer installs a Snowflake Native App. * Consumer requests unlimited access to a limited...
snowflake_docs/acosh_4_0.txt
Returns ¶ The data type of the returned value is ` FLOAT ` .
snowflake_docs/object_pick_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/alter-file-format_5_2.txt
ading data : Specifies the escape character for enclosed fields only. Specify the character used to enclose fields by setting ` FIELD_OPTIONALLY_ENCLOSED_BY ` . Note This file format option supports singlebyte characters only. Note that UTF-8 character encoding represents high-order ASCII characters as multibyte char...
snowflake_docs/data-types-geospatial_7_0.txt
Note on GeoJSON Handling for GEOGRAPHY Values ¶ The WKT and WKB standards specify a format only; the semantics of WKT/WKB objects depend on the reference system - for example, a plane or a sphere. The GeoJSON standard, on the other hand, specifies both a format and its semantics: GeoJSON points are explicitly WGS 84...
snowflake_docs/exception_4_0.txt
Examples ¶ This example declares, raises, and handles an exception. Note that: * The exception handler is designed to handle more than one type of exception. DECLARE RESULT VARCHAR; EXCEPTION_1 EXCEPTION (-20001, 'I caught the expected exception.'); EXCEPTION_2 EXCEPTION (-20002, 'Not th...
snowflake_docs/get_query_operator_stats_0_0.txt
/ 1. Control 29. Information 90. Query Information 1. Data Loading 4. Data Generation 6. Data Conversion 9. ML-Powered Analysis 11. Object Modeling 13. Semi-Structured Queries 15. Query Results 17. Qu...
snowflake_docs/rest_event_history_4_0.txt
Usage notes ¶ * Only account administrators (i.e. users with the ACCOUNTADMIN role) can obtain query results.
snowflake_docs/sql-format-models_5_0.txt
Format Modifiers and Generic Space Handling ¶ The following table lists special format elements that control printing and matching input text, and are common to all format models: Element | Description ---|--- ` _ ` (underscore) | Nothing printed; optional space on input. ` FM ` | Fill mode modifier; toggles...
snowflake_docs/st_symdifference_5_0.txt
Usage Notes ¶ * If any vertex of one input object is on the boundary of the other input object (excluding the vertices), the output might not be accurate. * The function is not guaranteed to produce normalized and/or minimal results. For example, an output could consist of a LineString containing several Points...
snowflake_docs/fetch_1_0.txt
FETCH (Snowflake Scripting) ¶ Uses the specified cursor to fetch one or more rows. For more information on cursors, see [ Working with Cursors Note construct is valid only within a [ Snowflake Scripting block See also :
snowflake_docs/data-types-semistructured_20_0.txt
Sparse vs Dense ARRAYs ¶ An array can be _dense_ or _sparse_ . In a dense array, the index values of the elements start at zero and are sequential (0, 1, 2, etc.). However, in a sparse array, the index values can be non-sequential (e.g. 0, 2, 5). The values do not need to start at 0. If an index has no corresponding...
snowflake_docs/show-masking-policies_4_0.txt
Access control requirements ¶ access-control-overview-roles) used to execute this SQL command must have at control-overview.html
snowflake_docs/where_7_0.txt
Performing Joins in the ` WHERE ` Clause ¶ To specify a join in the ` WHERE ` clause, list the tables to be joined in the ` FROM clause ` , separating the tables with a comma. Specify the join condition as a filter in the ` WHERE ` clause, as shown in the following example: > > SELECT t1.col1, t2.col1 > ...
snowflake_docs/system_estimate_search_optimization_costs_10_2.txt
> Was this page helpful? Yes No Inc. All Rights Reserved . On this page 1. Syntax 2. Arguments 3. Output 4. Usage Notes 5. Examples Language : **English**
snowflake_docs/declare_0_0.txt
/ snowflake-scripting) DECLARE
snowflake_docs/alter-integration_0_0.txt
/ 1. General 7. API 10. Catalog 15. External access 18. Notification 21. Security 25. Storage INTEGRATION
snowflake_docs/approx_count_distinct_1_0.txt
APPROX_COUNT_DISTINCT ¶ Uses HyperLogLog to return an approximation of the distinct cardinality of the input (i.e. ` HLL(col1, col2, ... ) ` returns an approximation of ` COUNT(DISTINCT col1, col2, ... ) ` ). For more information about HyperLogLog, see [ Estimating the Number of Aliases: See also:
snowflake_docs/convert_timezone_3_0.txt
Arguments ¶ ` _ source_tz _ ` String specifying the time zone for the input timestamp. Required for timestamps with no time zone (i.e. TIMESTAMP_NTZ). ` _ target_tz _ ` String specifying the time zone to which the input timestamp should be converted. ` _ source_timestamp_ntz _ ` For the 3-argument version, string...
snowflake_docs/external_table_registration_history_0_0.txt
/ 1. Data Loading 4. Data Generation 6. Data Conversion 9. ML-Powered Analysis 11. Object Modeling 13. Semi-Structured Queries 15. Query Results 17. Query Profile 19. User Login 22. Queries 26. Wareho...
snowflake_docs/last_transaction_4_0.txt
Examples ¶ This example calls the ` LAST_TRANSACTION ` function: > > SELECT LAST_TRANSACTION(); > > > Copy > > Output: > > > +---------------------+ > | LAST_TRANSACTION() | > |---------------------| > | 1661899308790000000 | > +---------------------+ > > > Copy Was this page helpfu...
snowflake_docs/update_6_0.txt
Examples ¶ Perform a standard update using two tables: > > UPDATE t1 > SET number_column = t1.number_column + t2.number_column, > t1.text_column = 'ASDF' > FROM t2 > WHERE t1.key_column = t2.t1_key and t1.number_column < 10; > > > Copy Update with join that produces nondeterministic results: ...
snowflake_docs/data-types-geospatial_13_0.txt
Understanding the Effects of Using Different SRIDs with GEOMETRY ¶ In a GEOMETRY column, you can insert objects that have different [ SRIDs column contains more than one SRID, some of the important performance optimizations are not applied. This can result in slower queries, in particular when joining on a geospatia...
snowflake_docs/regexp_instr_7_0.txt
Examples ¶
snowflake_docs/external_access_history_1_0.txt
EXTERNAL_ACCESS_HISTORY View ¶ Available External access is not supported in the Gov region. This Account Usage view can be used to query the history of external access performed by procedure or UDF handler code within the last 365 days (1 year).
snowflake_docs/set_notification_mute_flag_6_0.txt
label-budgets-application-roles) for the account budget.
snowflake_docs/round_4_0.txt
Returns ¶ The return type is based on the input type: * If the input is FLOAT, the data type of the returned value is FLOAT. * If the input is NUMBER, the data type of the returned value is NUMBER. If the input scale is greater than or equal to zero, the output scale generally matches the input scale. If the i...
snowflake_docs/identifiers-syntax_7_0.txt
Migrating from databases that treat double-quoted identifiers as case- insensitive ¶ In the ANSI/ISO standard for SQL, identifiers in double quotes (delimited identifiers) are treated as case-sensitive. However, some companies provide databases that treat double-quoted identifiers as case-insensitive. If you are mig...
snowflake_docs/constraints_1_0.txt
Constraints ¶ Constraints define integrity and consistency rules for data stored in tables. Snowflake provides support for constraints as defined in the ANSI SQL standard, as well as some extensions for compatibility with other databases, such as Oracle. Note Snowflake supports defining and maintaining constraints, ...
snowflake_docs/encrypt_raw_5_0.txt
Usage Notes ¶ > * To decrypt data encrypted by ` ENCRYPT() ` , use ` DECRYPT() ` . Do > not use ` DECRYPT_RAW() ` . * To decrypt data encrypted by ` ENCRYPT_RAW() ` , use ` DECRYPT_RAW() ` . Do not use ` DECRYPT() ` . * The function’s parameters are masked for security. Sensitive information such as the...
snowflake_docs/collation_4_0.txt
Uses for Collation ¶ Collation can be used in a wide variety of operations, including (but not limited to): Usage | Example | Link ---|---|--- Simple comparison | ` ... WHERE column1 = column2 ... ` | Joins | ` ... ON table1.column1 = table2.column2 ... ` | Sorting | ` ... ORDER BY column1 ... `...
snowflake_docs/show-masking-policies_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/aggregate_query_history_4_0.txt
label-udf-sql-scalar-memoizable) . HYBRID_TABLE_REQUESTS_THROTTLED_COUNT | NUMBER | Number of hybrid table queries that were throttled. OWNER_ROLE_TYPE | TEXT | The type of role that owns the object, either ` ROLE ` or ` DATABASE_ROLE ` . . If a Snowflake Native App owns the object, the value is ` APPLICATION ...
snowflake_docs/current_schemas_1_0.txt
CURRENT_SCHEMAS ¶ Returns active search path schemas. For more information about search path, see [ Object Name Resolution
snowflake_docs/regexp_count_3_0.txt
Arguments ¶ **Required:** ` _ subject _ ` Subject to match. ` _ pattern _ ` Pattern to match. **Optional:** ` _ position _ ` Number of characters from the beginning of the string where the function starts searching for matches. Default: ` 1 ` (the search for a match starts at the first character on the left) ` _...
snowflake_docs/drop-service_1_0.txt
DROP SERVICE ¶ > services/overview) is available to all Snowflake accounts in AWS commercial > regions except for trial accounts. Removes the specified [ Snowpark Container Services service from the current or specified schema. The containers for the service are terminated. See also:
snowflake_docs/bitmap_or_agg_5_0.txt
Examples ¶ See [ Using Bitmaps to Compute Distinct Values for Hierarchical Aggregations Was this page helpful? Yes No Inc. All Rights Reserved . On this page 1. Syntax 2. Arguments 3. Returns 4. Examples Language : **English**
snowflake_docs/check_xml_8_0.txt
Show the Output of the Function When the XML is Invalid ¶ SELECT CHECK_XML('<name> Invalid </WRONG_CLOSING_TAG>'); +--------------------------------------------------+ | CHECK_XML('<NAME> INVALID </WRONG_CLOSING_TAG>') | |--------------------------------------------------| | no opening tag for </...
snowflake_docs/st_collect_5_0.txt
Usage Notes ¶ * If g1 and g2 are both Point objects, the result is a MultiPoint object containing the two Points. Similarly, if g1 and g2 are both LineString objects, the result is a MultiLineString object. Etc. * If g1 and g2 are different types of geospatial objects, or if at least one of the input GEOGRAPHY ...
snowflake_docs/binary-input-output_6_0.txt
UTF-8 ¶ The UTF-8 format refers to the UTF-8 character encoding for Unicode. UTF-8 is used for text-to-binary encoding. UTF-8 cannot be used for binary-to- text encoding because not all possible BINARY values can be converted to valid UTF-8 strings. This format is convenient for performing one-to-one conversion betw...
snowflake_docs/st_length_4_0.txt
Syntax ¶ ST_LENGTH( <geography_or_geometry_expression> ) Copy
snowflake_docs/system_get_job_status_3_0.txt
Syntax ¶ SYSTEM$GET_JOB_STATUS( <job_uuid> [ , <timeout_secs> ] ) Copy
snowflake_docs/base64_encode_2_0.txt
Syntax ¶ BASE64_ENCODE( <input> [ , <max_line_length> ] [ , <alphabet> ] ) Copy
snowflake_docs/scheduled_time_6_0.txt
Usage Notes ¶ * This function is defined in the ALERT schema of the SNOWFLAKE database. To call this function, you must use a role that is granted the [ SNOWFLAKE function as a user with the role alert_role, execute: GRANT DATABASE ROLE snowflake.alert_viewer TO ROLE alert_role; Copy
snowflake_docs/data-types-structured_37_0.txt
Transforming Structured Types ¶ The following sections explain how to transform structured ARRAYs, structured OBJECTs, and MAPs: * Transforming Structured ARRAYs * Transforming Structured OBJECTs * Transforming MAPs
snowflake_docs/alter-model_4_0.txt
Access Control Requirements ¶ access-control-overview-roles) used to execute this SQL command must have the overview.html
snowflake_docs/constraints-other_1_0.txt
Additional Constraint Details ¶
snowflake_docs/base64_decode_binary_6_0.txt
label-base64-format) .
snowflake_docs/listing_auto_fulfillment_usage_history_4_0.txt
Usage Notes ¶ * Latency for the view may be up to 72 hours. * The data is retained for 365 days (1 year). Was this page helpful? Yes No Inc. All Rights Reserved . On this page 1. Columns 2. Usage Notes Language : **English**
snowflake_docs/merge_11_1.txt
th a value (e.g. 11, 12, or 13) from one > of the duplicate rows (row not defined). > > CREATE OR REPLACE TABLE target CLONE target_orig; > > MERGE INTO target > USING src ON target.k = src.k > WHEN MATCHED THEN UPDATE SET target.v = src.v; > > -- Updates and deletes conflict with each oth...
snowflake_docs/map_contains_key_2_0.txt
Syntax ¶ MAP_CONTAINS_KEY( <key> , <map> ) Copy
snowflake_docs/connect-by_0_0.txt
/ Categories:
snowflake_docs/array_remove_at_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/st_setsrid_3_0.txt
Arguments ¶ ` _ geometry_expression _ ` The argument must be an expression of type GEOMETRY. ` _ srid _ ` The SRID to set in the returned GEOMETRY object.
snowflake_docs/stages_1_0.txt
STAGES View ¶ This Information Schema view displays a row for each stage defined in the specified (or current) database. Stages are named objects that can be used for loading/unloading data. For more
snowflake_docs/snowpipe_streaming_client_history_2_0.txt
Columns ¶ Column Name | Data Type | Description ---|---|--- CLIENT_NAME | TEXT | Name of the Snowpipe Streaming ingest client. SNOWFLAKE_PROVIDED_ID | TEXT | Internal/system-generated identifier for the Snowpipe Streaming ingest client used for the data load. EVENT_TIMESTAMP | TIMESTAMP_LTZ | Start of the ti...
snowflake_docs/nvl2_3_0.txt
Arguments ¶ ` _ expr1 _ ` The expression to be checked to see whether it is NULL. ` _ expr2 _ ` If ` _ expr1 _ ` is not NULL, this expression will be evaluated and its value will be returned. ` _ expr3 _ ` If ` _ expr1 _ ` is NULL, this expression will be evaluated and its value will be returned.
snowflake_docs/alter-alert_4_0.txt
__________ minute (0-59)
snowflake_docs/strip_null_value_5_0.txt
Returns ¶ * If the expression contains a JSON null value, the function returns a SQL NULL. * If the expression does not contain a JSON null value, the function returns the input value.
snowflake_docs/st_distance_8_0.txt
GEOGRAPHY Examples ¶ This shows the distance in meters between two points 1 degree apart along the equator (approximately 111 kilometers or 69 miles). > > WITH d AS > ( ST_DISTANCE(ST_MAKEPOINT(0, 0), ST_MAKEPOINT(1, 0)) ) > SELECT d / 1000 AS kilometers, d / 1609 AS miles; > +---------------+---...
snowflake_docs/insert_4_0.txt
Optional Parameters ¶ ` OVERWRITE ` Specifies that the target table should be truncated before inserting the values into the table. Note that specifying this option does not affect the access control privileges on the table. INSERT statements with ` OVERWRITE ` can be processed within the scope of the current tran...
snowflake_docs/regexp_like_6_0.txt
Collation Details ¶ Arguments with collation specifications are currently not supported.
snowflake_docs/get_condition_query_uuid_4_0.txt
Returns ¶ The query ID for the SQL statement for the condition of the alert.
snowflake_docs/sentiment-snowflake-cortex_7_0.txt
label-cortex-llm-privileges) for more information on granting this privilege.
snowflake_docs/alter-view_4_0.txt
Data Governance policy and tag actions ( ` dataGovnPolicyTagAction ` ) ¶ ` TAG _ tag_name _ = ' _ tag_value _ ' [ , _ tag_name _ = ' _ tag_value _ ' , ... ] ` string value. The tag value is always a string, and the maximum number of characters for the tag value is 256. For information about specifyi...
snowflake_docs/st_npoints_2_0.txt
label-data-types-geography) object.
snowflake_docs/alter-security-integration-api-auth_3_0.txt
OAuth: Client credentials ¶ ALTER SECURITY INTEGRATION <name> SET [ ENABLED = { TRUE | FALSE } ] [ OAUTH_TOKEN_ENDPOINT = '<string_literal>' ] [ OAUTH_CLIENT_AUTH_METHOD = CLIENT_SECRET_POST ] [ OAUTH_CLIENT_ID = '<string_literal>' ] [ OAUTH_CLIENT_SECRET = '<string_literal>' ] ...
snowflake_docs/create-network-rule_1_0.txt
CREATE NETWORK RULE ¶ Creates a network rule or replaces an existing network rule. See also:
snowflake_docs/listing-auto-fulfillment-refresh-daily_4_0.txt
label-listings-ccaf-costs-view) for more details.
snowflake_docs/drop-iceberg-table_9_0.txt
Examples ¶ Drop a table: > > DROP ICEBERG TABLE t2; > > +--------------------------+ > | status | > |--------------------------| > | T2 successfully dropped. | > +--------------------------+ > > > Copy Drop the table again, but don’t raise an error if the table doesn’t e...
snowflake_docs/system_get_login_failure_details_10_0.txt
label-key-pair-troubleshooting-common-errors) . 394300 | JWT_TOKEN_INVALID_USER_IN_ISSUER | The user name specified in the issuer does not exist in the Snowflake account. guide/key-pair-auth-troubleshooting.html
snowflake_docs/array_agg_12_0.txt
000000136', 1095808.00), > (101700, 'O', 'Clerk
snowflake_docs/functions-all_10_0.txt
label-data-types-geospatial-h3) cells that have centroids geospatial.html
snowflake_docs/bitxor_agg_3_0.txt
Arguments ¶ ` _ expr1 _ ` The input expression must be an expression that can be evaluated to a number or converted to a number. ` _ expr2 _ ` This expression is used to group the rows in partitions.
snowflake_docs/create-index_3_0.txt
Syntax ¶ CREATE [ OR REPLACE ] INDEX [ IF NOT EXISTS ] <index_name> ( <col_name> [ , <col_name> ] ) ON <table_name> Copy
snowflake_docs/get_spending_history_1_0.txt
<budget_name>!GET_SPENDING_HISTORY ¶ guide/intro-editions) . This feature is currently not available for [ Trial Accounts See also:
snowflake_docs/snowflake-db-roles_1_0.txt
SNOWFLAKE database roles ¶ When an account is provisioned, the SNOWFLAKE database is automatically imported. The database is an example of Snowflake using [ Secure Data Sharing metrics for your organization and accounts. Access to schema objects in the SNOWFLAKE database is controlled by different considerations.htm...
snowflake_docs/parse_json_6_1.txt
ON(PARSE_JSON('{"B":1,"A":2}')) | TO_JSON(PARSE_JSON('{"B":1,"A":2}')) = '{"B":1,"A":2}' | TO_JSON(PARSE_JSON('{"B":1,"A":2}')) = '{"A":2,"B":1}' | >> |--------------------------------------+--------------------------------------------------------+--------------------------------------------------------| >> | {"a":...
snowflake_docs/drop-alert_2_0.txt
Syntax ¶ DROP ALERT [ IF EXISTS ] <name> Copy
snowflake_docs/mode_3_0.txt
Arguments ¶ ` _ expr1 _ ` This expression produces the values that are searched to find the most frequent value. The expression can be of any of the following data types: > * BINARY > > * BOOLEAN > > * DATE > > * FLOAT > > * INTEGER > > * NUMBER > > * TIMESTAMP (TIMESTAMP_LTZ, TIMESTAMP_NTZ, TIMESTAMP...
snowflake_docs/array_insert_2_0.txt
Syntax ¶ ARRAY_INSERT( <array> , <pos> , <new_element> ) Copy See also:
snowflake_docs/while_1_0.txt
WHILE (Snowflake Scripting) ¶ A ` WHILE ` loop iterates while a specified condition is true. guide/snowflake-scripting/loops) . Note construct is valid only within a [ Snowflake Scripting block See also :
snowflake_docs/time_slice_1_0.txt
TIME_SLICE ¶ Calculates the beginning or end of a “slice” of time, where the length of the slice is a multiple of a standard unit of time (minute, hour, day, etc.). This function can be used to calculate the start and end times of fixed-width “buckets” into which data can be categorized. See also:
snowflake_docs/st_union_agg_4_0.txt
Returns ¶ The function returns a value of type GEOGRAPHY.