You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can experiment with the time it takes to generate queries when using non-accelerated datasets. You can change the acceleration setting from `true` to `false` in the datasets.yaml file.
248
-
249
-
## Importing dataset from Dremio
250
-
251
-
**Step 1.** If you have a dataset hosted in Dremio, you can load it into the Spice Runtime as follows:
252
-
253
-
```bash
254
-
spice login dremio -u <USERNAME> -p <PASSWORD>
255
-
```
256
-
257
-
**Step 2.** If you haven't already initialized a new project, you need to do so. Then, start the Spice Runtime.
258
-
259
-
```bash
260
-
spice init dremio-demo-project
261
-
```
262
-
263
-
```bash
264
-
spice run
265
-
```
266
-
267
-
**Step 3.** We now configure the dataset from Dremio:
268
-
269
-
```bash
270
-
spice dataset configure
271
-
```
272
-
273
-
Enter the name of the dataset:
274
-
275
-
```bash
276
-
dataset name: (dremio-demo-project) my_dataset
277
-
```
278
-
279
-
Enter the description of the dataset:
280
-
281
-
```
282
-
description: my dataset in dremio
283
-
```
284
-
285
-
Specify the location of the dataset:
286
-
287
-
```bash
288
-
from: dremio:datasets.my_dataset
289
-
```
290
-
291
-
Select "y" when prompted whether to locally accelerate the dataset:
292
-
293
-
```bash
294
-
Locally accelerate (y/n)? y
295
-
```
296
-
297
-
We should now see the following output:
298
-
299
-
```
300
-
Dataset settings written to `datasets/my_dataset/dataset.yaml`!
301
-
```
302
-
303
-
If the login credentials were entered correctly, your dataset will have loaded into the runtime. You should see the following in the Spice runtime terminal :
304
-
305
-
```
306
-
2024-02-14T18:34:15.174564Z INFO spiced: Loaded dataset: my_dataset
307
-
2024-02-14T18:34:15.175189Z INFO runtime::datasource: Refreshing data for my_dataset
308
-
```
309
-
310
-
**Step 4.** Run queries against the dataset using the Spice SQL REPL.
311
-
312
-
In a new terminal, start the Spice SQL REPL
313
-
314
-
```bash
315
-
spice sql
316
-
```
317
-
318
-
You can now now query `my_dataset` in the runtime.
0 commit comments