Description
What is the current behavior?
The COPY INTO <location>
statement support gcs buckets, but there is no GCSBucket ClauseElement in https://github.com/snowflakedb/snowflake-sqlalchemy/blob/a84fa77ae4387ed60db036db61dc7d8f82849a98/src/snowflake/sqlalchemy/custom_commands.py. Similarly, the statement supports using a STORAGE_INTEGRATION option, but that option is not supported by CopyInto
snowflake-sqlalchemy/src/snowflake/sqlalchemy/custom_commands.py
Lines 110 to 157 in a84fa77
What is the desired behavior?
The CopyInto class supports Copy Into <location>
statements of the type
COPY INTO '<gcs_bucket>'
FROM (<select>)
FILE_FORMAT = ( TYPE = PARQUET )
STORAGE_INTEGRATION = <gcs_storage_integration>
HEADER = TRUE;
How would this improve snowflake-connector-python
?
This would make it possible to use the CopyInto class on order to execute such variants of the COPY INTO <location>
statement.
References, Other Background
We're a small company that make use of the snowflake-sqlalchemy library. If someone will give us pointers as to what we should add in terms of classes and tests, we can allocate time to work on a pr.