-
Notifications
You must be signed in to change notification settings - Fork 29k
Revert "[SPARK-30808][SQL] Enable Java 8 time API in Thrift server" #27733
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This reverts commit afaeb29.
|
cc @cloud-fan and @MaxGekk the case passed both |
| localSparkSession.conf.set(SQLConf.ANSI_ENABLED.key, true) | ||
| case _ => | ||
| } | ||
| localSparkSession.conf.set(SQLConf.DATETIME_JAVA8API_ENABLED.key, true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
Test build #119083 has finished for PR 27733 at commit
|
|
Test build #119086 has finished for PR 27733 at commit
|
|
retest this please |
|
Test build #119092 has finished for PR 27733 at commit
|
|
thanks, merging to master/3.0! |
This reverts commit afaeb29. ### What changes were proposed in this pull request? Based on the result and comment from #27552 (comment) In the hive module, server-side provides datetime values simply use `value.toSting`, and the client-side regenerates the results back in `HiveBaseResultSet` with `java.sql.Date(Timestamp).valueOf`. there will be inconsistency between client and server if we use java8 APIs ### Why are the changes needed? the change is still unclear enough ### Does this PR introduce any user-facing change? no ### How was this patch tested? Nah Closes #27733 from yaooqinn/SPARK-30808. Authored-by: Kent Yao <yaooqinn@hotmail.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com> (cherry picked from commit 1fac06c) Signed-off-by: Wenchen Fan <wenchen@databricks.com>
This reverts commit afaeb29. ### What changes were proposed in this pull request? Based on the result and comment from apache#27552 (comment) In the hive module, server-side provides datetime values simply use `value.toSting`, and the client-side regenerates the results back in `HiveBaseResultSet` with `java.sql.Date(Timestamp).valueOf`. there will be inconsistency between client and server if we use java8 APIs ### Why are the changes needed? the change is still unclear enough ### Does this PR introduce any user-facing change? no ### How was this patch tested? Nah Closes apache#27733 from yaooqinn/SPARK-30808. Authored-by: Kent Yao <yaooqinn@hotmail.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com>
This reverts commit afaeb29.
What changes were proposed in this pull request?
Based on the result and comment from #27552 (comment)
In the hive module, server-side provides datetime values simply use
value.toSting, and the client-side regenerates the results back inHiveBaseResultSetwithjava.sql.Date(Timestamp).valueOf.there will be inconsistency between client and server if we use java8 APIs
Why are the changes needed?
the change is still unclear enough
Does this PR introduce any user-facing change?
no
How was this patch tested?
Nah