Skip to content

Commit 86d828a

Browse files
committed
chore: add dependency versions to examples
1 parent a9a52df commit 86d828a

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

examples/adbc_example.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1-
"""
2-
Install pyarrow, adbc-driver-manager and duckdb before running this example
3-
This example currently can be run only with duckdb<=1.1.3, later vesions of duckdb no longer support substrait in adbc
4-
"""
1+
# Install pyarrow, adbc-driver-manager and duckdb before running this example
2+
# This example currently can be run only with duckdb<=1.1.3, later vesions of duckdb no longer support substrait in adbc
3+
# /// script
4+
# dependencies = [
5+
# "pyarrow==20.0.0",
6+
# "adbc-driver-manager==1.5.0",
7+
# "duckdb==1.1.3",
8+
# "substrait[extensions] @ file:///${PROJECT_ROOT}/"
9+
# ]
10+
# ///
11+
512

613
import adbc_driver_duckdb.dbapi
714
import pyarrow

examples/duckdb_example.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
"""
2-
Install duckdb and pyarrow before running this example
3-
"""
1+
# Install duckdb and pyarrow before running this example
2+
# /// script
3+
# dependencies = [
4+
# "pyarrow==20.0.0",
5+
# "duckdb==1.2.1",
6+
# "substrait[extensions] @ file:///${PROJECT_ROOT}/"
7+
# ]
8+
# ///
9+
410

511
import duckdb
612
from substrait.builders.plan import read_named_table, project, filter

0 commit comments

Comments
 (0)