-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
354 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,4 @@ | |
target/ | ||
*.rs.bk | ||
/adapters/file/model.json | ||
/config-test/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
RUST_LOG=info | ||
OTEL_LOGS_EXPORTER=console | ||
OTEL_LOG_LEVEL=trace | ||
LOG4J_CONFIGURATION_FILE=../../calcite-rs-jni/target/classes/log4j2.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
release_info=$(curl -L \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "Authorization: Bearer $GITHUB_TOKEN" \ | ||
-H "X-GitHub-Api-Version: 2022-11-28" \ | ||
https://api.github.com/repos/hasura/ndc-calcite/releases/latest) | ||
TAG=$(echo "$release_info" | grep 'tag_name' | awk -F':' '{print $2}' | tr -d ' "",') | ||
tar -czvf connector-definition.tgz connector-definition | ||
docker build . --platform linux/arm64,linux/amd64 -t kstott/meta_connector:latest | ||
docker tag kstott/meta_connector:latest kstott/meta_connector:"$TAG" | ||
docker push kstott/meta_connector:latest | ||
docker push kstott/meta_connector:"$TAG" |
Submodule calcite
updated
1 files
+28 −14 | core/src/main/java/org/apache/calcite/sql/dialect/PostgresqlSqlDialect.java |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
RUST_LOG=info | ||
OTEL_LOGS_EXPORTER=console | ||
OTEL_LOG_LEVEL=trace | ||
OTEL_EXPORTER_OTLP_ENDPOINT=http://local.hasura.dev:4317 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"version": "4", | ||
"$schema": "schema.json", | ||
"model_file_path": "/etc/connector/model.json", | ||
"fixes": true | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
[ | ||
{ | ||
"id": 19990101, | ||
"a": "Friday", | ||
"b": "New Years Day", | ||
"c": "Tractor trouble.", | ||
"d": [ | ||
"Alice", | ||
"Bob", | ||
"Xavier" | ||
], | ||
"e": "Julian Hyde", | ||
"f": "", | ||
"g": [ | ||
"Bob's tractor got stuck in a field.", | ||
"Alice and Xavier hatch a plan to surprise Charlie." | ||
], | ||
"object": { | ||
"count": 1 | ||
} | ||
}, | ||
{ | ||
"id": 19990103, | ||
"a": "Sunday", | ||
"b": "Sunday 3rd January", | ||
"c": "Charlie's surprise.", | ||
"d": [ | ||
"Alice", | ||
"Zebedee", | ||
"Charlie", | ||
"Xavier" | ||
], | ||
"e": "William Shakespeare", | ||
"f": "", | ||
"g": [ | ||
"Charlie is very surprised by Alice and Xavier's surprise plan." | ||
], | ||
"object": { | ||
"count": 2 | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
EMPNO:int,JOINEDAT:date,JOINTIME:time,JOINTIMES:timestamp | ||
100,"1996-08-03","00:01:02","1996-08-03 00:01:02" | ||
110,"2001-01-01","00:00:00","2001-01-01 00:00:00" | ||
110,"2002-05-03","00:00:00","2002-05-03 00:00:00" | ||
120,"2005-09-07","00:00:00","2005-09-07 00:00:00" | ||
130,"2007-01-01","00:00:00","2007-01-01 00:00:00" | ||
140,"2015-12-31","07:15:56","2015-12-31 07:15:56" | ||
200,,,, | ||
150,"2015-12-31","13:31:21","2015-12-31 13:31:21" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
DEPTNO:int,NAME:string | ||
10,"Sales" | ||
20,"Marketing" | ||
30,"Accounts" |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
EMPNO:long,NAME:string,DEPTNO:int,GENDER:string,CITY:string,EMPID:int,AGE:int,SLACKER:boolean,MANAGER:boolean,JOINEDAT:date | ||
100,"Fred",10,,,30,25,true,false,"1996-08-03" | ||
110,"Eric",20,"M","San Francisco",3,80,,false,"2001-01-01" | ||
110,"John",40,"M","Vancouver",2,,false,true,"2002-05-03" | ||
120,"Wilma",20,"F",,1,5,,true,"2005-09-07" | ||
130,"Alice",40,"F","Vancouver",2,,false,true,"2007-01-01" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
DEPTNO:int,NAME:string | ||
10,"Sales" | ||
20,"Marketing" | ||
30,"Accounts" | ||
40,"40" | ||
50,"50" | ||
60,"60" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
EMPNO:int,naME:string,DEPTNO:Integer,2gender:string,CITY:string,EMPID:int,AGE:int,SLACKER:boolean,MANAGER:boolean,joined at:date | ||
100,"Fred",10,,,30,25,true,false,"1996-08-03" | ||
110,"Eric",20,"M","San Francisco",3,80,,false,"2001-01-01" | ||
110,"John",40,"M","Vancouver",2,,false,true,"2002-05-03" | ||
120,"Wilma",20,"F",,1,5,,true,"2005-09-07" | ||
130,"Alice",40,"F","Vancouver",2,,false,true,"2007-01-01" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"version": "1.0", | ||
"defaultSchema": "test", | ||
"schemas": [ | ||
{ | ||
"type": "jdbc", | ||
"name": "test", | ||
"jdbcUser": "kenstott", | ||
"jdbcPassword": "rN8qOh6AEMCP", | ||
"jdbcUrl": "jdbc:postgresql://ep-yellow-salad-961725.us-west-2.aws.neon.tech/crisp-sheepdog-47_db_3216533?sslmode=require", | ||
"jdbcCatalog": "public" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"version": "1.0", | ||
"defaultSchema": "sales", | ||
"schemas": [ | ||
{ | ||
"type": "custom", | ||
"name": "sales", | ||
"factory": "org.apache.calcite.adapter.file.FileSchemaFactory", | ||
"operand": { | ||
"directory": "/etc/connector/data/files" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"version": "1.0", | ||
"defaultSchema": "test", | ||
"schemas": [ | ||
{ | ||
"type": "jdbc", | ||
"name": "test", | ||
"sqlDialectFactory": "org.kenstott.SQLiteSqlDialectFactory", | ||
"jdbcUrl": "jdbc:sqlite:/etc/connector/data/chinook.db" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"version": "1.0", | ||
"defaultSchema": "test", | ||
"schemas": [ | ||
{ | ||
"type": "jdbc", | ||
"name": "test", | ||
"jdbcUser": "<username>", | ||
"jdbcPassword": "<password>", | ||
"jdbcUrl": "jdbc:postgresql://<server>/<database>?sslmode=require", | ||
"jdbcCatalog": "public" | ||
} | ||
] | ||
} |
Oops, something went wrong.