Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Includes/Copy-Datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,19 @@ def load_new_json_data(all=False):

download_dataset(data_source_uri, dataset_bookstore)
set_current_catalog(data_catalog)

# COMMAND ----------

# Registers the books table for notebook 3.1
spark.sql(
f"""
CREATE EXTERNAL TABLE IF NOT EXISTS books
USING PARQUET
OPTIONS (
header "true",
inferSchema "true",
recursiveFileLookup "true"
)
LOCATION '{dataset_bookstore}/orders-streaming'
"""
)