-
Notifications
You must be signed in to change notification settings - Fork 8
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
1 parent
2ebf42a
commit c10aaa9
Showing
8 changed files
with
127 additions
and
87 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
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
40 changes: 40 additions & 0 deletions
40
devnotes/2025_01_sqlalchemy2_databricks/notes_databricks.txt
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,40 @@ | ||
=============================================================================== | ||
CHANGES FOR DATABRICKS SUPPORT | ||
=============================================================================== | ||
|
||
Databricks is a cloud-based data platform: | ||
https://en.wikipedia.org/wiki/Databricks. | ||
|
||
|
||
------------------------------------------------------------------------------- | ||
Can you run Databricks locally? | ||
------------------------------------------------------------------------------- | ||
|
||
Maybe not. This set of instructions about a Docker image look ultimately to be | ||
about creating a Docker image that you can push to an existing Databricks | ||
cluster and run there: | ||
|
||
https://medium.com/@d.v.rademaker/do-it-yourself-building-your-own-databricks-docker-container-9cd670612927 | ||
|
||
|
||
------------------------------------------------------------------------------- | ||
Databricks for SQLAlchemy | ||
------------------------------------------------------------------------------- | ||
|
||
Tutorial for Azure Databricks: | ||
|
||
https://learn.microsoft.com/en-us/azure/databricks/dev-tools/sqlalchemy | ||
|
||
... has a broken link to its example sqlalchemy.py | ||
|
||
The basic SQL connector for Databricks is: | ||
|
||
https://github.com/databricks/databricks-sql-python | ||
|
||
The SQLAlchemy dialect is: | ||
|
||
https://github.com/databricks/databricks-sqlalchemy | ||
|
||
To import it: | ||
|
||
from databricks.sqlalchemy import DatabricksDialect |
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,18 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
if [ -z "$TMP_CRATE_DEMO_DATABASE_URL" ]; then | ||
echo "Please set environment variable TMP_CRATE_DEMO_DATABASE_URL first." | ||
exit 1 | ||
fi | ||
|
||
crate_make_demo_database "${TMP_CRATE_DEMO_DATABASE_URL}" | ||
crate_anon_draft_dd | ||
crate_anonymise --full | ||
crate_anonymise --incremental | ||
crate_nlp --nlpdef crate_biomarkers --full | ||
crate_nlp --nlpdef crate_biomarkers --incremental | ||
crate_researcher_report ~/Downloads/tmp_crate_researcher_report.pdf | ||
|
||
pytest # Do this last: warnings (which may be OK) cause exit code failure. |
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