Skip to content

Commit

Permalink
refactor modules
Browse files Browse the repository at this point in the history
  • Loading branch information
buremba committed Jan 26, 2025
1 parent e43b0af commit eccd061
Show file tree
Hide file tree
Showing 34 changed files with 1,692 additions and 705 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/dwh-benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: deploy
on: [push]
jobs:
version:
name: "Check Snowflake CLI version"
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- uses: Snowflake-Labs/[email protected]
with:
cli-version: "latest"
- name: Test project
env:
SNOWFLAKE_CONNECTIONS_BASE64: ${{ secrets.SNOWFLAKE_CONNECTIONS_BASE64 }}
run: |
export SNOWFLAKE_CONNECTIONS=$(printf '%s' "$SNOWFLAKE_CONNECTIONS_BASE64" | base64 -d | tr '\r' '\n')
snow --version
snow connection test
snow sql -f /resources/dwh-benchmark/clickbench.sql
5 changes: 5 additions & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Running Github Actions locally

```shell
act push --container-architecture linux/amd64 --secret-file .env.act --workflows ./.github/workflows/test.yml --insecure-secrets
```

# [DRAFT] Transformers

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Execute Snowflake queries locally on DuckDB
# 10x more efficient Snowflake compute

UniverSQL is a Snowflake proxy that allows you to run SQL queries **locally** on Snowflake Iceberg tables and Polaris catalog, using DuckDB.
You can join Snowflake data with your local datasets, **without any need for a running warehouse**.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,19 +212,19 @@ def ast_to_link_analysis(ast, classes):

default_flattenable_classes = ["Column", "ColumnDef", "Alias"]

flattenable_classes = st.multiselect(
"Select what types of expressions you would like to flatten:",
sql_expressions.keys(),
default=default_flattenable_classes,
)

if parsed_sql[0]:
st.code(parsed_sql[0].__repr__())

flattenable_classes = st.multiselect(
"Select what types of expressions you would like to flatten:",
sql_expressions.keys(),
default=default_flattenable_classes,
)

ast_to_link_analysis(
parsed_sql[0],
tuple(
sql_expressions.get(class_name)
for class_name in flattenable_classes
),
)

st.code(parsed_sql[0].__repr__())
)
5 changes: 5 additions & 0 deletions examples/playground/app/sqlglot/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
streamlit
sqlglot
duckdb
networkx
st_link_analysis
11 changes: 11 additions & 0 deletions examples/playground/universql_project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

name: 'utilities'
version: '2.0'

profile: 'default'
config-version: 2
app-path: 'app'
target-path: 'target'

vars:
example_variable: 'value'
45 changes: 0 additions & 45 deletions examples/snowfake_to_duckdb/universql.yml

This file was deleted.

Loading

0 comments on commit eccd061

Please sign in to comment.