Skip to content

Commit 76f5240

Browse files
committed
Add adbc drivers
1 parent e8bfbdb commit 76f5240

3 files changed

Lines changed: 14 additions & 28 deletions

File tree

.github/workflows/run_spicebench.yml

Lines changed: 12 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -108,76 +108,60 @@ jobs:
108108
path: ~/.spice/bin/databricks-system-adapter
109109
key: databricks-system-adapter-${{ runner.os }}-${{ hashFiles('system-adapters/databricks/Cargo.toml', 'system-adapters/databricks/Cargo.lock', 'system-adapters/databricks/src/**/*.rs', 'crates/system-adapter-protocol/Cargo.toml', 'crates/system-adapter-protocol/src/**/*.rs') }}
110110

111-
- name: Checkout adbc-mongodb Rust driver
112-
if: ${{ startsWith(env.SYSTEM_UNDER_TEST, 'mongodb') }}
113-
uses: actions/checkout@v6
114-
with:
115-
repository: spiceai/adbc-mongodb
116-
ref: main
117-
path: adbc-mongodb
118-
119111
- name: Restore adbc-mongodb cache
120112
if: ${{ startsWith(env.SYSTEM_UNDER_TEST, 'mongodb') }}
121113
id: cache-adbc-mongodb
122114
uses: actions/cache/restore@v4
123115
with:
124-
path: adbc-mongodb/rust/target/release/libadbc_mongodb.so
125-
key: adbc-mongodb-${{ runner.os }}-${{ hashFiles('adbc-mongodb/rust/Cargo.lock') }}
116+
path: adbc-drivers/mongodb/rust/target/release/libadbc_mongodb.so
117+
key: adbc-mongodb-${{ runner.os }}-${{ hashFiles('adbc-drivers/mongodb/rust/Cargo.lock') }}
126118
restore-keys: |
127119
adbc-mongodb-${{ runner.os }}-
128120
129121
- name: Build adbc-mongodb Rust driver
130122
if: ${{ startsWith(env.SYSTEM_UNDER_TEST, 'mongodb') && steps.cache-adbc-mongodb.outputs.cache-hit != 'true' }}
131123
id: build-adbc-mongodb
132-
run: cargo build --release --manifest-path adbc-mongodb/rust/Cargo.toml
124+
run: cargo build --release --manifest-path adbc-drivers/mongodb/rust/Cargo.toml
133125

134126
- name: Save adbc-mongodb cache
135127
if: ${{ startsWith(env.SYSTEM_UNDER_TEST, 'mongodb') && steps.build-adbc-mongodb.outcome == 'success' }}
136128
uses: actions/cache/save@v4
137129
with:
138-
path: adbc-mongodb/rust/target/release/libadbc_mongodb.so
139-
key: adbc-mongodb-${{ runner.os }}-${{ hashFiles('adbc-mongodb/rust/Cargo.lock') }}
130+
path: adbc-drivers/mongodb/rust/target/release/libadbc_mongodb.so
131+
key: adbc-mongodb-${{ runner.os }}-${{ hashFiles('adbc-drivers/mongodb/rust/Cargo.lock') }}
140132

141133
- name: Install adbc-mongodb Rust driver
142134
if: ${{ startsWith(env.SYSTEM_UNDER_TEST, 'mongodb') }}
143135
run: |
144-
sudo install -m 755 adbc-mongodb/rust/target/release/libadbc_mongodb.so /usr/local/lib/libmongodb.so
136+
sudo install -m 755 adbc-drivers/mongodb/rust/target/release/libadbc_mongodb.so /usr/local/lib/libmongodb.so
145137
sudo ldconfig
146138
147-
- name: Checkout adbc-dynamodb Rust driver
148-
if: ${{ startsWith(env.SYSTEM_UNDER_TEST, 'dynamodb') }}
149-
uses: actions/checkout@v6
150-
with:
151-
repository: spiceai/adbc-dynamodb
152-
ref: main
153-
path: adbc-dynamodb
154-
155139
- name: Restore adbc-dynamodb cache
156140
if: ${{ startsWith(env.SYSTEM_UNDER_TEST, 'dynamodb') }}
157141
id: cache-adbc-dynamodb
158142
uses: actions/cache/restore@v4
159143
with:
160-
path: adbc-dynamodb/rust/target/release/libadbc_dynamodb.so
161-
key: adbc-dynamodb-${{ runner.os }}-${{ hashFiles('adbc-dynamodb/rust/Cargo.lock') }}
144+
path: adbc-drivers/dynamodb/rust/target/release/libadbc_dynamodb.so
145+
key: adbc-dynamodb-${{ runner.os }}-${{ hashFiles('adbc-drivers/dynamodb/rust/Cargo.lock') }}
162146
restore-keys: |
163147
adbc-dynamodb-${{ runner.os }}-
164148
165149
- name: Build adbc-dynamodb Rust driver
166150
if: ${{ startsWith(env.SYSTEM_UNDER_TEST, 'dynamodb') && steps.cache-adbc-dynamodb.outputs.cache-hit != 'true' }}
167151
id: build-adbc-dynamodb
168-
run: cargo build --release --manifest-path adbc-dynamodb/rust/Cargo.toml
152+
run: cargo build --release --manifest-path adbc-drivers/dynamodb/rust/Cargo.toml
169153

170154
- name: Save adbc-dynamodb cache
171155
if: ${{ startsWith(env.SYSTEM_UNDER_TEST, 'dynamodb') && steps.build-adbc-dynamodb.outcome == 'success' }}
172156
uses: actions/cache/save@v4
173157
with:
174-
path: adbc-dynamodb/rust/target/release/libadbc_dynamodb.so
175-
key: adbc-dynamodb-${{ runner.os }}-${{ hashFiles('adbc-dynamodb/rust/Cargo.lock') }}
158+
path: adbc-drivers/dynamodb/rust/target/release/libadbc_dynamodb.so
159+
key: adbc-dynamodb-${{ runner.os }}-${{ hashFiles('adbc-drivers/dynamodb/rust/Cargo.lock') }}
176160

177161
- name: Install adbc-dynamodb Rust driver
178162
if: ${{ startsWith(env.SYSTEM_UNDER_TEST, 'dynamodb') }}
179163
run: |
180-
sudo install -m 755 adbc-dynamodb/rust/target/release/libadbc_dynamodb.so /usr/local/lib/libdynamodb.so
164+
sudo install -m 755 adbc-drivers/dynamodb/rust/target/release/libadbc_dynamodb.so /usr/local/lib/libdynamodb.so
181165
sudo ldconfig
182166
183167
- name: Validate adapter configuration

adbc-drivers/dynamodb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit b7dacc9144ce1a26c48ef72c6c4bd53f4f6514ac

adbc-drivers/mongodb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 247b229171972355c48b861c4941fb5b2861c0a3

0 commit comments

Comments
 (0)