Skip to content

Commit

Permalink
Added redshift example.
Browse files Browse the repository at this point in the history
  • Loading branch information
kenstott committed Sep 27, 2024
1 parent cc7e282 commit 88cf51f
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
9 changes: 9 additions & 0 deletions adapters/redshift/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
JAR_DEPENDENCY_FOLDER=../../calcite-rs-jni/target/dependency
CALCITE_JAR=../../calcite-rs-jni/target/calcite-rs-jni-1.0-SNAPSHOT.jar
OTEL_LOGS_EXPORTER=console
RUST_LOG=info
LOG_LEVEL=info
OTEL_METRICS_EXPORTER=console
OTEL_TRACES_EXPORTER=console
OTEL_LOG_LEVEL=error
OTEL_EXPORTER_OTLP_ENDPOINT=http://local.hasura.dev:4317
6 changes: 6 additions & 0 deletions adapters/redshift/configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"version": "5",
"$schema": "schema.json",
"model_file_path": "./model.json",
"fixes": true
}
6 changes: 6 additions & 0 deletions adapters/redshift/dev.local.configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"version": "5",
"$schema": "schema.json",
"model_file_path": "./model.json",
"fixes": true
}
13 changes: 13 additions & 0 deletions adapters/redshift/model.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"version": "1.0",
"defaultSchema": "default",
"schemas": [
{
"name": "default",
"type": "jdbc",
"jdbcCatalog": "sales_db",
"jdbcSchema": "public",
"jdbcUrl": "jdbc:redshift://test-cluster.c2zsmph7aucw.us-east-1.redshift.amazonaws.com:5439/sales_db?user=admin&password=YourSecurePassword1"
}
]
}

0 comments on commit 88cf51f

Please sign in to comment.