File tree 2 files changed +19
-11
lines changed
2 files changed +19
-11
lines changed Original file line number Diff line number Diff line change @@ -85,14 +85,18 @@ def test_limit(test_ctx):
85
85
86
86
plan = plan .to_variant ()
87
87
assert isinstance (plan , Limit )
88
- assert plan .skip () == 0
88
+ # TODO: Upstream now has expressions for skip and fetch
89
+ # REF: https://github.com/apache/datafusion/pull/12836
90
+ # assert plan.skip() == 0
89
91
90
92
df = test_ctx .sql ("select c1 from test LIMIT 10 OFFSET 5" )
91
93
plan = df .logical_plan ()
92
94
93
95
plan = plan .to_variant ()
94
96
assert isinstance (plan , Limit )
95
- assert plan .skip () == 5
97
+ # TODO: Upstream now has expressions for skip and fetch
98
+ # REF: https://github.com/apache/datafusion/pull/12836
99
+ # assert plan.skip() == 5
96
100
97
101
98
102
def test_aggregate_query (test_ctx ):
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ impl Display for PyLimit {
46
46
write ! (
47
47
f,
48
48
"Limit
49
- Skip: {}
49
+ Skip: {:? }
50
50
Fetch: {:?}
51
51
Input: {:?}" ,
52
52
& self . limit. skip, & self . limit. fetch, & self . limit. input
@@ -56,15 +56,19 @@ impl Display for PyLimit {
56
56
57
57
#[ pymethods]
58
58
impl PyLimit {
59
- /// Retrieves the skip value for this `Limit`
60
- fn skip ( & self ) -> usize {
61
- self . limit . skip
62
- }
59
+ // NOTE: Upstream now has expressions for skip and fetch
60
+ // TODO: Do we still want to expose these?
61
+ // REF: https://github.com/apache/datafusion/pull/12836
63
62
64
- /// Retrieves the fetch value for this `Limit`
65
- fn fetch ( & self ) -> Option < usize > {
66
- self . limit . fetch
67
- }
63
+ // /// Retrieves the skip value for this `Limit`
64
+ // fn skip(&self) -> usize {
65
+ // self.limit.skip
66
+ // }
67
+
68
+ // /// Retrieves the fetch value for this `Limit`
69
+ // fn fetch(&self) -> Option<usize> {
70
+ // self.limit.fetch
71
+ // }
68
72
69
73
/// Retrieves the input `LogicalPlan` to this `Limit` node
70
74
fn input ( & self ) -> PyResult < Vec < PyLogicalPlan > > {
You can’t perform that action at this time.
0 commit comments