anchovYu opened a new pull request #35618:
URL: https://github.com/apache/spark/pull/35618


   ### What changes were proposed in this pull request?
   The PR fixes the following tests under ANSI mode:
   * DataExpressionSuite, 
   * NullExpressionsSuite, 
   * StringExpressionsSuite, 
   * ComplexTypesSuite, 
   * CastSuite
   
   Most of them should only work with ANSI off. The fix wrap the corresponding 
code with
   ```scala
   withSQLConf(SQLConf.ANSI_ENABLED.key -> "false") {
     // code only works under ANSI off
   }
   ```
   
   The `CastSuite` intentionally tests the case of ANSI off. The fix explicitly 
set ANSI off in `beforeAll` and reset it in `afterAll`.
   
   
   ### Why are the changes needed?
   To set up a new GA job to run tests with ANSI mode before 3.3.0 release.
   
   ### Does this PR introduce _any_ user-facing change?
   No.
   
   
   ### How was this patch tested?
   Test locally with both ANSI on and off, both passed.
   


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