-
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.
Remove introspection at the startup of the connector (#5)
* fix databricks * code refactors * Fix conflicts * fix the warnings * no introspection while the connector runs * added conditional logic to use models from config where available in delivering schema * clean up: removed debug lines and some commented out code * fix more warnings * use --release in the calcite dockerfile * fix the initializing logic of the otel stuff * fix the github workflow * revert databricks change * remove debug statements * fix warnings * do not intialize otel during introspection * fix warnings and README * update README * fix trace attribute * fix the rust-anaylzer.toml --------- Co-authored-by: Jonathan Weiss <[email protected]>
- Loading branch information
1 parent
b8388ec
commit ce0c9a9
Showing
29 changed files
with
266 additions
and
382 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
((nil . ((lsp-file-watch-ignored-directories . ["target" "calcite-rs-jni" "grafana" "scripts" "shared" "[/\\\\]\\.git$" "[/\\\\]\\.hg$" "[/\\\\]\\.svn$"])))) |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 |
---|---|---|
|
@@ -125,4 +125,4 @@ Different components are released under different licenses: | |
For support options: | ||
- File issues on the respective GitHub repositories | ||
- Contact Hasura support at [email protected] for commercial support | ||
- Join the community discussions on calcite.apache.org/community/ | ||
- Join the community discussions on calcite.apache.org/community/ |
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,14 +1,42 @@ | ||
# prevents local build artifacts being added to image | ||
cd calcite-rs-jni | ||
mvn clean | ||
cd calcite | ||
./gradlew clean | ||
|
||
create a tag name from the last connector release | ||
cd ../.. | ||
docker build . -t ghcr.io/hasura/ndc-calcite:latest | ||
|
||
cd calcite-rs-jni/calcite | ||
./gradlew assemble | ||
cd .. | ||
mvn install -DskipTests | ||
#!/bin/bash | ||
|
||
# Check if version argument is provided | ||
if [ $# -ne 1 ]; then | ||
echo "Error: Version argument is required" | ||
echo "Usage: $0 <version>" | ||
echo "Example: $0 1.0.0" | ||
exit 1 | ||
fi | ||
|
||
VERSION=$1 | ||
|
||
# Store the script's starting directory | ||
INITIAL_DIR=$(pwd) | ||
|
||
# Function to handle errors | ||
handle_error() { | ||
echo "Error: $1" | ||
cd "$INITIAL_DIR" # Return to initial directory | ||
exit 1 | ||
} | ||
|
||
# Clean Maven artifacts | ||
cd calcite-rs-jni || handle_error "Failed to change directory to calcite-rs-jni" | ||
mvn clean || handle_error "Maven clean failed" | ||
|
||
# Clean Gradle artifacts | ||
cd calcite || handle_error "Failed to change directory to calcite" | ||
./gradlew clean || handle_error "Gradle clean failed" | ||
|
||
# Build Docker image | ||
cd ../.. || handle_error "Failed to return to root directory" | ||
docker build . -t "ghcr.io/hasura/ndc-calcite:${VERSION}" || handle_error "Docker build failed" | ||
|
||
# Build and install Java artifacts | ||
cd calcite-rs-jni/calcite || handle_error "Failed to change directory to calcite-rs-jni/calcite" | ||
./gradlew assemble || handle_error "Gradle assemble failed" | ||
cd .. || handle_error "Failed to change directory" | ||
mvn install -DskipTests || handle_error "Maven install failed" | ||
|
||
echo "Build completed successfully!" | ||
echo "Docker image tagged as: ghcr.io/hasura/ndc-calcite:${VERSION}" |
Submodule calcite
updated
33 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
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
Oops, something went wrong.