Files
email-tracker/external/duckdb/benchmark/ldbc/download-benchmark-data.py
2025-10-24 19:21:19 -05:00

13 lines
324 B
Python

import urllib.request
import tarfile
import tempfile
import os
dirname = os.path.dirname(os.path.realpath(__file__))
tf = tempfile.NamedTemporaryFile()
urllib.request.urlretrieve(
'https://github.com/duckdb/duckdb-data/releases/download/v1.0/ldbc-snb-sf0.1.tar.gz', tf.name
)
tarfile.open(tf.name).extractall(dirname)