Skip to content

Commit 1a9a5a8

Browse files
committed
Revert "add explicit handling for empty slices"
This reverts commit d0d616b.
1 parent b5c8f52 commit 1a9a5a8

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

bigframes/core/rewrite/slices.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -76,17 +76,6 @@ def rewrite_slice(node: nodes.BigFrameNode):
7676
return node
7777

7878
slice_def = (node.start, node.stop, node.step)
79-
80-
# Handle empty slice cases exlicitly (e.g. [0:0])
81-
if (
82-
node.start is not None
83-
and node.stop is not None
84-
and node.start >= node.stop
85-
and (node.step is None or node.step > 0)
86-
):
87-
# Return empty result by filtering with impossible condition
88-
return slice_as_filter(node.child, node.start, node.start, node.step or 1)
89-
9079
# no-op (eg. df[::1])
9180
if slices.is_noop(slice_def, node.child.row_count):
9281
return node.child

0 commit comments

Comments
 (0)