rich7420 commented on code in PR #7195:
URL: https://github.com/apache/datafusion-comet/pull/7195#discussion_r4662304388


##########
spark/src/test/scala/org/apache/comet/CometNativeCastSuite.scala:
##########
@@ -128,6 +128,81 @@ class CometNativeCastSuite
     }
   }
 
+  test("non-collect LIMIT skips a failing cast beyond its projection input 
cap") {

Review Comment:
   Thanks! I moved the behavior checks into SQL fixtures, 
`limit_projection.sql` plus `limit_projection_offset.sql` for the OFFSET cases, 
which need Spark 4.0 or later: ANSI on, `COALESCE(1)`, 
`expect_error_class(CAST_INVALID_INPUT)` for `limit + 1`, AQE on/off and batch 
sizes 2 and 8192. The fixtures use a `-- Config:` line for the codegen 
dispatch. The two non-collect Scala tests now only check what a fixture can't: 
that the cap is `limit + offset` with AQE on and off, and that it applies in 
each partition.
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to