LuciferYang commented on issue #13647:
URL: https://github.com/apache/gluten/issues/13647#issuecomment-6978920048

   Spark can take test refactors that move an assertion into an overridable 
helper, especially ones that clean up Spark's suite. SPARK-54301 was a one-off; 
Hyukjin's point was that Spark shouldn't change tests for other projects. 
Gluten's 4.0-4.2 suites already override `assertLengthCheckFailure`, which 
SPARK-47689 added in 4.0.0, so 50 of the 53 copied char/varchar tests are in 
3.4/3.5. Those use the 3.4.4/3.5.5 test jars, which a Spark change won't reach.
   
   Two Spark PRs would help:
   - In `RuntimeNullChecksV2Writes`, `assertNotNullException` is private and 
all ten NOT NULL checks do their own `intercept[SparkRuntimeException]`. A 
protected helper doing the intercept removes that, and Gluten could override it 
instead of copying tests once a release ships it.
   - On master and branch-4.4, `FileSourceCharVarcharTestSuite` has four length 
checks outside the helper. The bare write-side `intercept` fits the helper as 
is; the three read-side ones (limits 2, 2, 3) need a limit parameter.
   
   Happy to review either.
   


-- 
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