Skip to content

Commit 5c3a0b1

Browse files
committed
Add CREATE EXTERNAL VOLUME sql
1 parent d0e9ddd commit 5c3a0b1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/sqlparser_snowflake.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3606,6 +3606,8 @@ fn test_external_volume() {
36063606
snowflake().verified_stmt("CREATE EXTERNAL VOLUME exvol STORAGE_LOCATIONS = ((NAME = 'my-us-east-1' STORAGE_PROVIDER = 'GCS' STORAGE_BASE_URL = 'gcs://mybucket1/path1/' ENCRYPTION=(TYPE='GCS_SSE_KMS' KMS_KEY_ID='1234abcd-12ab-34cd-56ef-1234567890ab'))) ALLOW_WRITES = TRUE");
36073607
snowflake().verified_stmt("CREATE EXTERNAL VOLUME exvol STORAGE_LOCATIONS = ((NAME = 'my-azure-northeurope' STORAGE_PROVIDER = 'AZURE' STORAGE_BASE_URL = 'azure://exampleacct.blob.core.windows.net/my_container_northeurope/' AZURE_TENANT_ID = 'a123b4c5-1234-123a-a12b-1a23b45678c9')) ALLOW_WRITES = TRUE");
36083608
snowflake().verified_stmt("CREATE OR REPLACE EXTERNAL VOLUME ext_vol_s3_compat STORAGE_LOCATIONS = ((NAME = 'my_s3_compat_storage_location' STORAGE_PROVIDER = 'S3COMPAT' STORAGE_BASE_URL = 's3compat://mybucket/unload/mys3compatdata' STORAGE_ENDPOINT = 'example.com' CREDENTIALS=(AWS_KEY_ID='1a2b3c...' AWS_SECRET_KEY='4x5y6z...')))", );
3609+
snowflake().verified_stmt("CREATE OR REPLACE EXTERNAL VOLUME mem STORAGE_LOCATIONS = ((NAME = 'mem' STORAGE_PROVIDER = 'MEMORY'))");
3610+
snowflake().verified_stmt("CREATE OR REPLACE EXTERNAL VOLUME file STORAGE_LOCATIONS = ((NAME = 'file' STORAGE_PROVIDER = 'FILE' STORAGE_BASE_URL = '/home/user/'))");
36093611

36103612
let err = snowflake()
36113613
.parse_sql_statements("CREATE EXTERNAL VOLUME name NAME")

0 commit comments

Comments
 (0)