Skip to content

Commit

Permalink
feat(snowflake): add snowflake sql (#14986)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongbo-miao committed Mar 4, 2024
1 parent 0b5499e commit dd58826
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/.lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,7 @@ jobs:
poetry run poe lint-sql -- --dialect=postgres data-processing/flink/applications/stream-tweets/migrations
poetry run poe lint-sql -- --dialect=postgres data-storage/timescaledb/dummy_iot/migrations
poetry run poe lint-sql -- --dialect=postgres data-storage/timescaledb/motor/migrations
poetry run poe lint-sql -- --dialect=snowflake data-storage/snowflake/queries
poetry run poe lint-sql -- --dialect=sparksql data-storage/delta-lake/queries
poetry run poe lint-sql -- --dialect=sqlite data-storage/sqlite/queries
# poetry run poe lint-sql -- --dialect=trino trino/queries
Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ lint-sql:
poetry run poe lint-sql -- --dialect=postgres data-processing/flink/applications/stream-tweets/migrations
poetry run poe lint-sql -- --dialect=postgres data-storage/timescaledb/dummy_iot/migrations
poetry run poe lint-sql -- --dialect=postgres data-storage/timescaledb/motor/migrations
poetry run poe lint-sql -- --dialect=snowflake data-storage/snowflake/queries
poetry run poe lint-sql -- --dialect=sparksql data-storage/delta-lake/queries
poetry run poe lint-sql -- --dialect=sqlite data-storage/sqlite/queries
poetry run poe lint-sql -- --dialect=trino trino/queries
Expand All @@ -319,6 +320,7 @@ lint-sql-fix:
poetry run poe lint-sql-fix -- --dialect=postgres data-processing/flink/applications/stream-tweets/migrations
poetry run poe lint-sql-fix -- --dialect=postgres data-storage/timescaledb/dummy_iot/migrations
poetry run poe lint-sql-fix -- --dialect=postgres data-storage/timescaledb/motor/migrations
poetry run poe lint-sql-fix -- --dialect=snowflake data-storage/snowflake/queries
poetry run poe lint-sql-fix -- --dialect=sparksql queries
poetry run poe lint-sql-fix -- --dialect=sqlite data-storage/sqlite/queries
poetry run poe lint-sql-fix -- --dialect=trino trino/queries
Expand Down
4 changes: 4 additions & 0 deletions data-storage/snowflake/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
snowsql-install:
brew install --cask snowflake-snowsql
snowsql:
snowsql --accountname=hongbomiao --username=me@hongbomiao.com --authenticator=externalbrowser
5 changes: 5 additions & 0 deletions data-storage/snowflake/queries/query.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
select current_account();

select current_region();

show parameters in database;

0 comments on commit dd58826

Please sign in to comment.