Skip to content

Commit

Permalink
Updated dataset loading URLs
Browse files Browse the repository at this point in the history
Fixed example `COPY FROM` URLs to point to the new location.
  • Loading branch information
simonprickett authored and amotl committed Jan 10, 2025
1 parent 7890334 commit fbc5c7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/cloud_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def import_csv(cluster_id: str):
cluster = ManagedCluster(cloud_id=cluster_id)

# Encapsulate source parameter.
url = "https://github.com/crate/cratedb-datasets/raw/main/machine-learning/timeseries/nab-machine-failure.csv"
url = "https://cdn.crate.io/downloads/datasets/cratedb-datasets/machine-learning/timeseries/nab-machine-failure.csv"
resource = InputOutputResource(url=url)

# Invoke import job. Without `target` argument, the destination
Expand All @@ -78,7 +78,7 @@ def import_parquet(cluster_id: str):
cluster = ManagedCluster(cloud_id=cluster_id)

# Encapsulate source and target parameters.
url = "https://github.com/crate/cratedb-datasets/raw/main/timeseries/yc.2019.07-tiny.parquet.gz"
url = "https://cdn.crate.io/downloads/datasets/cratedb-datasets/timeseries/yc.2019.07-tiny.parquet.gz"
resource = InputOutputResource(url=url)
target = TableAddress(schema="testdrive", table="yc-201907")

Expand Down

0 comments on commit fbc5c7e

Please sign in to comment.