anchovYu opened a new pull request #35471:
URL: https://github.com/apache/spark/pull/35471
### What changes were proposed in this pull request?
This PR explicitly sets the ANSI to false in the timestampNTZ/timestamp.sql
input itself, and in the `SQLQueryTestSuite` when the input doesn't match with
any of `PgSQLTest`, `AnsiTest` or `TimestampNTZTest`.
### Why are the changes needed?
<!--
Please clarify why the changes are needed. For instance,
1. If you propose a new API, clarify the use case for a new API.
2. If you fix a bug, you can clarify why it is a bug.
-->
Without this change, `ThriftServerQueryTestSuite` will fail on
timestampNTZ/timestamp.sql, when ANSI is on by default. It is because the
timestampNTZ/timestamp.sql should only work with ANSI off according to the
golden result file, but ThriftServerQueryTestSuite or the timestamp.sql test
doesn't override the default ANSI setting.
The same goes with the `SQLQueryTestSuite`.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Unit test.
--
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]