@@ -90,11 +90,6 @@ def session(self):
90
90
def _node_hash (self ):
91
91
return hash (tuple (hash (getattr (self , field .name )) for field in fields (self )))
92
92
93
- @property
94
- def peekable (self ) -> bool :
95
- """Indicates whether the node can be sampled efficiently"""
96
- return all (child .peekable for child in self .child_nodes )
97
-
98
93
@property
99
94
def roots (self ) -> typing .Set [BigFrameNode ]:
100
95
roots = itertools .chain .from_iterable (
@@ -143,12 +138,6 @@ def child_nodes(self) -> typing.Sequence[BigFrameNode]:
143
138
def __hash__ (self ):
144
139
return self ._node_hash
145
140
146
- @property
147
- def peekable (self ) -> bool :
148
- children_peekable = all (child .peekable for child in self .child_nodes )
149
- single_root = len (self .roots ) == 1
150
- return children_peekable and single_root
151
-
152
141
@functools .cached_property
153
142
def schema (self ) -> schemata .ArraySchema :
154
143
def join_mapping_to_schema_item (mapping : JoinColumnMapping ):
@@ -204,10 +193,6 @@ class ReadLocalNode(BigFrameNode):
204
193
def __hash__ (self ):
205
194
return self ._node_hash
206
195
207
- @property
208
- def peekable (self ) -> bool :
209
- return True
210
-
211
196
@property
212
197
def roots (self ) -> typing .Set [BigFrameNode ]:
213
198
return {self }
@@ -233,10 +218,6 @@ def session(self):
233
218
def __hash__ (self ):
234
219
return self ._node_hash
235
220
236
- @property
237
- def peekable (self ) -> bool :
238
- return True
239
-
240
221
@property
241
222
def roots (self ) -> typing .Set [BigFrameNode ]:
242
223
return {self }
@@ -261,13 +242,9 @@ class PromoteOffsetsNode(UnaryNode):
261
242
def __hash__ (self ):
262
243
return self ._node_hash
263
244
264
- @property
265
- def peekable (self ) -> bool :
266
- return False
267
-
268
245
@property
269
246
def non_local (self ) -> bool :
270
- return False
247
+ return True
271
248
272
249
@property
273
250
def schema (self ) -> schemata .ArraySchema :
@@ -371,10 +348,6 @@ def row_preserving(self) -> bool:
371
348
def __hash__ (self ):
372
349
return self ._node_hash
373
350
374
- @property
375
- def peekable (self ) -> bool :
376
- return False
377
-
378
351
@property
379
352
def non_local (self ) -> bool :
380
353
return True
@@ -407,10 +380,6 @@ class WindowOpNode(UnaryNode):
407
380
def __hash__ (self ):
408
381
return self ._node_hash
409
382
410
- @property
411
- def peekable (self ) -> bool :
412
- return False
413
-
414
383
@property
415
384
def non_local (self ) -> bool :
416
385
return True
@@ -459,10 +428,6 @@ def row_preserving(self) -> bool:
459
428
def non_local (self ) -> bool :
460
429
return True
461
430
462
- @property
463
- def peekable (self ) -> bool :
464
- return False
465
-
466
431
@functools .cached_property
467
432
def schema (self ) -> schemata .ArraySchema :
468
433
def infer_dtype (
0 commit comments