@@ -82,36 +82,37 @@ Available types: {func}`~vortex.null`, {func}`~vortex.bool_`,
8282### Element Access
8383
8484``` {doctest} pycon
85+ >>> session = vx.Session()
8586>>> arr = vx.array([10, 20, 30, 40, 50])
86- >>> arr.scalar_at(0).as_py()
87+ >>> arr.scalar_at(0, session=session ).as_py()
878810
88- >>> arr.to_arrow_array().to_pylist()
89+ >>> arr.to_arrow_array(session=session ).to_pylist()
8990[10, 20, 30, 40, 50]
9091```
9192
9293### Slicing and Selection
9394
9495``` {doctest} pycon
95- >>> arr.slice(1, 3).to_arrow_array().to_pylist()
96+ >>> arr.slice(1, 3).to_arrow_array(session=session ).to_pylist()
9697[20, 30]
9798>>> indices = vx.array([0, 2, 4])
98- >>> arr.take(indices).to_arrow_array().to_pylist()
99+ >>> arr.take(indices).to_arrow_array(session=session ).to_pylist()
99100[10, 30, 50]
100101```
101102
102103### Filtering
103104
104105``` {doctest} pycon
105106>>> mask = vx.array([True, False, True, False, True])
106- >>> arr.filter(mask).to_arrow_array().to_pylist()
107+ >>> arr.filter(mask, session=session ).to_arrow_array(session=session ).to_pylist()
107108[10, 30, 50]
108109```
109110
110111### Comparisons
111112
112113``` {doctest} pycon
113114>>> other = vx.array([10, 25, 25, 45, 50])
114- >>> (arr > other).to_arrow_array().to_pylist()
115+ >>> (arr > other).to_arrow_array(session=session ).to_pylist()
115116[False, False, True, False, False]
116117```
117118
@@ -129,7 +130,7 @@ applied directly:
129130... {'name': 'Carol', 'age': 35},
130131... ])
131132>>> expr = ve.column('age') > 28
132- >>> arr.apply(expr).to_arrow_array().to_pylist()
133+ >>> arr.apply(expr).to_arrow_array(session=session ).to_pylist()
133134[True, False, True]
134135```
135136
@@ -139,9 +140,10 @@ applied directly:
139140
140141``` {doctest} pycon
141142>>> import pyarrow.parquet as pq
142- >>> vx.io.write(pq.read_table("_static/example.parquet"), 'example.vortex')
143+ >>> session = vx.Session()
144+ >>> vx.io.write(pq.read_table("_static/example.parquet"), 'example.vortex', session=session)
143145>>>
144- >>> f = vx.open('example.vortex')
146+ >>> f = vx.open('example.vortex', session=session )
145147>>> len(f)
1461481000
147149```
@@ -150,7 +152,7 @@ Use {meth}`.VortexFile.scan` to read data with optional projection, filtering, a
150152
151153``` {doctest} pycon
152154>>> result = f.scan(['tip_amount'], limit=3).read_all()
153- >>> result.to_arrow_array()
155+ >>> result.to_arrow_array(session=session )
154156<pyarrow.lib.StructArray object at ...>
155157-- is_valid: all not null
156158-- child 0 type: double
0 commit comments