MaxGekk opened a new pull request #28705:
URL: https://github.com/apache/spark/pull/28705


   ### What changes were proposed in this pull request?
   Set `spark.sql.datetime.java8API.enabled` to `true` in `hiveResultString()`, 
and restore it back at the end of the call.
   
   ### Why are the changes needed?
   TODO
   
   ### Does this PR introduce any user-facing change?
   Yes. Before:
   ```sql
   spark-sql> select make_date(-44, 3, 15);
   0045-03-15
   ```
   After:
   ```sql
   spark-sql> select make_date(-44, 3, 15);
   -0044-03-15
   ```
   
   
   ### How was this patch tested?
   By running hive-thiftserver tests. In particular:
   ```
   ./build/sbt -Phadoop-2.7 -Phive-2.3 -Phive-thriftserver 
"hive-thriftserver/test:testOnly *SparkThriftServerProtocolVersionsSuite"
   ```


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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to