sathyaprakashg commented on pull request #28222:
URL: https://github.com/apache/spark/pull/28222#issuecomment-620441968


   > @sathyaprakashg Please, take a look at the PRs
   > #26337
   > #27262
   
   Thanks @MaxGekk for prompt reply. CalendarInterval change is not required to 
fix the issue. I can revert the proposed change for CalendarInterval change. 
   
   How does my proposed change for ExtractIntervalPart looks? If it looks good, 
I will update my PR to include only ExtractIntervalPart change
   
   We need to change ExtractIntervalPart so that below query returns output as 
14 instead of 0. Please refer _Why are the changes needed?_ for more information
   
   SELECT EXTRACT(DAY FROM (cast('2020-01-15 00:00:00' as timestamp) - 
cast('2020-01-01 00:00:00' as timestamp)))


----------------------------------------------------------------
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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to