Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

Commit 35ab260

Browse files
committed
fix: add force download test to misc
1 parent c7f3d74 commit 35ab260

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

docs/katas/9_misc.ipynb

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,17 @@
1313
},
1414
{
1515
"cell_type": "code",
16-
"execution_count": 6,
16+
"execution_count": 1,
1717
"id": "56d3efc8",
1818
"metadata": {},
1919
"outputs": [
2020
{
2121
"name": "stdout",
2222
"output_type": "stream",
2323
"text": [
24-
"Retrieved 10000 in 1.54s (6498.29 items/s)\n",
25-
"Retrieved 10000 in 0.34s (29430.88 items/s)\n"
24+
"Retrieved 10000 in 1.46s (6830.45 items/s)\n",
25+
"Retrieved 10000 in 1.24s (8076.42 items/s)\n",
26+
"Retrieved 10000 in 0.33s (30516.66 items/s)\n"
2627
]
2728
}
2829
],
@@ -38,7 +39,13 @@
3839
" items = rustac_client.search(NAIP_GEOPARQUET_URI)\n",
3940
" timer.report(items)\n",
4041
"\n",
41-
"# duckdb.sql(\"CREATE SECRET (TYPE S3, PROVIDER CREDENTIAL_CHAIN)\")\n",
42+
"rustac_client.execute(\"SET parquet_metadata_cache = true;\")\n",
43+
"rustac_client.execute(\"SET force_download = true;\")\n",
44+
"with Timer() as timer:\n",
45+
" items = rustac_client.search(NAIP_GEOPARQUET_URI)\n",
46+
" timer.report(items)\n",
47+
"\n",
48+
"duckdb.sql(\"CREATE SECRET (TYPE S3, PROVIDER CREDENTIAL_CHAIN)\")\n",
4249
"with Timer() as timer:\n",
4350
" items = duckdb.sql(f\"SELECT * from '{NAIP_GEOPARQUET_URI}'\")\n",
4451
" timer.report(items)"

0 commit comments

Comments
 (0)