Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime : Snowflake connector for clickhouse #5294

Merged
merged 25 commits into from
Jul 24, 2024
Merged

Runtime : Snowflake connector for clickhouse #5294

merged 25 commits into from
Jul 24, 2024

Conversation

k-anshul
Copy link
Member

@k-anshul k-anshul commented Jul 16, 2024

Sample model:

refresh:
  cron: "0 * * * *"

type: model
connector: snowflake
sql: >
  select * 
  from SNOWFLAKE_SAMPLE_DATA.TPCH_SF1.CUSTOMER 
  {{ if incremental }} WHERE C_CUSTKEY > '{{ .state.max_c_custkey }}' {{ end }}
  order by c_custkey asc 
  limit 1001

incremental: true
state:
  sql: SELECT MAX(C_CUSTKEY) as max_c_custkey FROM model


stage:
  connector: s3
  path: s3://<bucket>/snow

output:
  connector: clickhouse
  incremental_strategy: append
  materialize: true
  

closes https://github.com/rilldata/rill-private-issues/issues/480

@k-anshul k-anshul self-assigned this Jul 17, 2024
@k-anshul k-anshul marked this pull request as ready for review July 17, 2024 07:16
@k-anshul
Copy link
Member Author

runtime/compilers/rillv1/connectors.go Outdated Show resolved Hide resolved
runtime/drivers/clickhouse/model_executor_s3_self.go Outdated Show resolved Hide resolved
runtime/drivers/clickhouse/model_executor_s3_self.go Outdated Show resolved Hide resolved
runtime/drivers/models.go Outdated Show resolved Hide resolved
runtime/reconcilers/model.go Outdated Show resolved Hide resolved
runtime/reconcilers/model.go Outdated Show resolved Hide resolved
runtime/reconcilers/model.go Outdated Show resolved Hide resolved
runtime/reconcilers/model.go Outdated Show resolved Hide resolved
runtime/reconcilers/model.go Outdated Show resolved Hide resolved
runtime/drivers/warehouse.go Outdated Show resolved Hide resolved
runtime/drivers/clickhouse/model_executor_s3_self.go Outdated Show resolved Hide resolved
runtime/drivers/s3/model_manager.go Outdated Show resolved Hide resolved
runtime/drivers/s3/model_manager.go Outdated Show resolved Hide resolved
runtime/reconcilers/model.go Outdated Show resolved Hide resolved
@k-anshul k-anshul merged commit a294650 into main Jul 24, 2024
7 checks passed
@k-anshul k-anshul deleted the warehouse_to_ch branch July 24, 2024 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants