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


   ### What changes were proposed in this pull request?
   Change a wrong example in the SQL migration guide, and align it to the 
description of behavior change.
   
   ### Why are the changes needed?
   Current example is incorrect, and can confuse users.
   
   ### Does this PR introduce _any_ user-facing change?
   No.
   
   ### How was this patch tested?
   By running the example:
   ```sql
   spark-sql> select INTERVAL 1 day 1 hour;
   1 01:00:00.000000000
   spark-sql> select INTERVAL 1 month 1 hour;
   Error in query:
   Cannot mix year-month and day-time fields: INTERVAL 1 month 1 hour(line 1, 
pos 7)
   
   == SQL ==
   select INTERVAL 1 month 1 hour
   -------^^^
   
   spark-sql> set spark.sql.legacy.interval.enabled=true;
   spark.sql.legacy.interval.enabled    true
   spark-sql> select INTERVAL 1 month 1 hour;
   1 months 1 hours
   ```


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