LocalStack Extension: Snowflake
Project description
LocalStack Snowflake Extension
This LocalStack extension provides basic emulation of the Snowflake API.
⚠️ Please note that this extension is experimental and still under development.
Prerequisites
- LocalStack Pro
- Docker
- Python
Installation
Before installing the extension, make sure you're logged into LocalStack. If not, log in using the following command:
localstack login
You can then install this extension using the following command:
localstack extensions install localstack-extension-snowflake
Usage
Once the extension is installed, configure your Snowflake client connector to point to the API endpoint https://snowflake.localhost.localstack.cloud
. For example, when using the Snowflake Python connector:
client = snowflake.connector.connect(
user="test",
password="test",
account="test",
host="snowflake.localhost.localstack.cloud",
)
client.cursor().execute("...")
Change Log
0.1.14
: Enhance parity aroundSHOW TABLES/OBJECTS/COLUMNS
queries; add more array util functions; fix STRING_AGG for different DISTINCT/GROUP combinations0.1.13
: Support someCURRENT_*
functions; enhanceLISTAGG
for distinct values; add test for JS UDFs with exports0.1.12
: Cast params for string_agg/listagg; more parity fixes for upper/lowercase names0.1.11
: Enhance parity for array aggregation functions; enhance parity around subqueries and timestamp timezones; add logic to keep track of case-sensitive db/table identifiers0.1.10
: Add query transforms forCLUSTER BY
; addSF_S3_ENDPOINT
config; more parity fixes0.1.9
: Add support for Python UDFs; enhance parity aroundCREATE OR REPLACE FUNCTION
queries; add analytics setup0.1.8
: Add SF_LOG config to enable request/response trace logging0.1.7
: Add initial support for Snowflake JavaScript UDFs; enhance parity around responses for DB/table creation; enhancements for Snowflake streaming logic0.1.6
: Introduce session state to retain DB/schema across queries; support async queries andresult_scan(..)
0.1.5
: Enhance parity aroundDESCRIBE TABLE
results; supportMIN_BY
/MAX_BY
aggregate functions0.1.4
: Add logic to parse and replace DB references in queries0.1.3
: Add DBEngine abstraction, experimental support for duckdb; enhance support for JSON queries0.1.2
: Add logic to ingest a CSV file from a Snowflake stage into a table0.1.1
: Initial support for Kafka connector and snowpipe/streaming APIs0.1.0
: Initial release of the extension
License
(c) 2023 LocalStack
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file localstack-extension-snowflake-0.1.14.tar.gz
.
File metadata
- Download URL: localstack-extension-snowflake-0.1.14.tar.gz
- Upload date:
- Size: 25.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f30607d21e05deaea902a5e38d420ba7f92c675c163857e1428ff1d9a66a09b2 |
|
MD5 | 055ffc60bb38400a4377507e145b17d6 |
|
BLAKE2b-256 | 1e67649b59462aa66b4a426da8a0d5e963d8e237b2c9d727bfdd20bbb0f8ebe8 |