Skip to content

Commit 2040e59

Browse files
authored
feat(db): Reimplement ATC/AT Databricks scaffolding [sc-512318] (#562)
1 parent 4743285 commit 2040e59

File tree

433 files changed

+549
-9190
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

433 files changed

+549
-9190
lines changed

.github/workflows/databricks.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ jobs:
2828
timeout-minutes: 30
2929
env:
3030
DB_PREFIX: ci_${{ github.sha }}_${{ github.run_id }}_${{ github.run_attempt }}_
31-
DB_CLUSTER_ID: ${{ secrets.DB_CLUSTER_ID_CI }}
3231
DB_HTTP_PATH: ${{ secrets.DB_HTTP_PATH_CI }}
33-
DB_HOST: ${{ secrets.DB_HOST_CI }}
32+
DB_HOST_NAME: ${{ secrets.DB_HOST_CI }}
3433
steps:
3534
- name: Checkout repo
3635
uses: actions/checkout@v3
@@ -76,13 +75,11 @@ jobs:
7675
strategy:
7776
matrix:
7877
include:
79-
- cluster_id: DB_CLUSTER_ID_CD
80-
http_path: DB_HTTP_PATH_CD
81-
host: DB_HOST_CD
78+
- http_path: DB_HTTP_PATH_CD
79+
host_name: DB_HOST_CD
8280
env:
83-
DB_CLUSTER_ID: ${{ secrets[matrix.cluster_id] }}
8481
DB_HTTP_PATH: ${{ secrets[matrix.http_path] }}
85-
DB_HOST: ${{ secrets[matrix.host] }}
82+
DB_HOST_NAME: ${{ secrets[matrix.host_name] }}
8683
steps:
8784
- name: Checkout repo
8885
uses: actions/checkout@v3

clouds/bigquery/modules/Makefile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ include $(COMMON_DIR)/Makefile
3434

3535
.SILENT:
3636

37-
.PHONY: help lint build build-share deploy deploy-share test remove remove-functions remove-share clean
37+
.PHONY: help lint build build-share deploy deploy-share test remove remove-share clean
3838

3939
help:
40-
echo "Available targets: lint build deploy test remove remove-functions clean"
40+
echo "Available targets: lint build deploy test remove clean"
4141

4242
lint: venv3 $(NODE_MODULES_DEV)
4343
echo "Linting modules..."
@@ -101,11 +101,6 @@ remove: check
101101
GOOGLE_APPLICATION_CREDENTIALS=$(GOOGLE_APPLICATION_CREDENTIALS) \
102102
$(COMMON_DIR)/run-script.js $(COMMON_DIR)/DROP_FUNCTIONS.sql
103103

104-
remove-functions: check
105-
echo "Removing functions..."
106-
REPLACEMENTS=$(REPLACEMENTS)" "$(REPLACEMENTS_EXTRA) \
107-
GOOGLE_APPLICATION_CREDENTIALS=$(GOOGLE_APPLICATION_CREDENTIALS) \
108-
$(COMMON_DIR)/run-script.js $(COMMON_DIR)/DROP_FUNCTIONS.sql
109104

110105
clean:
111106
echo "Cleaning modules..."

clouds/databricks/.env.template

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
11
# This is a sample .env file for use in local development.
22
# Duplicate this file as .env in the root of the project
33
# and update the environment variables to match your desired
4-
# config. Replace each <template> with your values.
4+
# config.
55
#
66
# Note: duplicate dollar sign to make it visible: $$.
77

88
# Databricks
99
DB_PREFIX=
10-
DB_CLUSTER_ID=<cluster_id>
11-
DB_HTTP_PATH=<http_path>
12-
DB_HOST=<hostname>
13-
DB_TOKEN=<token>
14-
15-
# For CI-releases from local
16-
PGP_PASSPHRASE=<pgp_passphrase>
17-
PGP_SECRET=<pgp_secret>
18-
SONATYPE_PASSWORD=<sonatype_password>
19-
SONATYPE_USERNAME=<sonatype_username>
10+
DB_CATALOG=
11+
DB_HOST_NAME=
12+
DB_HTTP_PATH=
13+
DB_TOKEN=

clouds/databricks/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,6 @@ java/*dll
6363
metastore_db
6464
derby.log
6565

66-
# Deploy
66+
# Deploy
6767
submit-run.json
6868
dropUDF.sql

clouds/databricks/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ CARTO Analytics Toolbox Core for Databricks.
44

55
All notable commits to this project will be documented in this file.
66

7-
## [0.1.1]
7+
## [0.1.0]

clouds/databricks/CHANGELOG.old.md

Lines changed: 0 additions & 244 deletions
This file was deleted.

0 commit comments

Comments
 (0)