@@ -59,14 +59,11 @@ class TPCHPlan extends TPCHBase with SubstraitPlanTestBase {
59
59
assertSqlSubstraitRelRoundTrip(
60
60
" select l_partkey from lineitem where l_shipdate < date '1998-01-01' " +
61
61
" order by l_shipdate asc, l_discount desc" )
62
- // assertSqlSubstraitRelRoundTrip(
63
- // "select l_partkey from lineitem where l_shipdate < date '1998-01-01' " +
64
- // "order by l_shipdate asc, l_discount desc limit 100 offset 1000")
65
- // assertSqlSubstraitRelRoundTrip(
66
- // "select l_partkey from lineitem where l_shipdate < date '1998-01-01' " +
67
- // "order by l_shipdate asc, l_discount desc limit 100")
68
- // assertSqlSubstraitRelRoundTrip(
69
- // "select l_partkey from lineitem where l_shipdate < date '1998-01-01' limit 100")
62
+ assertSqlSubstraitRelRoundTrip(
63
+ " select l_partkey from lineitem where l_shipdate < date '1998-01-01' " +
64
+ " order by l_shipdate asc, l_discount desc limit 100" )
65
+ assertSqlSubstraitRelRoundTrip(
66
+ " select l_partkey from lineitem where l_shipdate < date '1998-01-01' limit 100" )
70
67
assertSqlSubstraitRelRoundTrip(
71
68
" select l_partkey from lineitem where l_shipdate < date '1998-01-01' " +
72
69
" order by l_shipdate asc, l_discount desc nulls first" )
@@ -75,6 +72,12 @@ class TPCHPlan extends TPCHBase with SubstraitPlanTestBase {
75
72
" order by l_shipdate asc, l_discount desc nulls last" )
76
73
}
77
74
75
+ ignore(" simpleOffsetClause" ) { // TODO need to implement the 'offset' clause for this to pass
76
+ assertSqlSubstraitRelRoundTrip(
77
+ " select l_partkey from lineitem where l_shipdate < date '1998-01-01' " +
78
+ " order by l_shipdate asc, l_discount desc limit 100 offset 1000" )
79
+ }
80
+
78
81
test(" simpleTest" ) {
79
82
val query = " select p_size from part where p_partkey > cast(100 as bigint)"
80
83
assertSqlSubstraitRelRoundTrip(query)
0 commit comments