cloud-fan commented on pull request #28222:
URL: https://github.com/apache/spark/pull/28222#issuecomment-620586933


   I think extracting days should return "interval.days + interval.microseconds 
/ micros_per_day", to simulate the day-time interval semantic. But we shouldn't 
consider months in this case.
   
   @yaooqinn can you send a PR to make this happen?
   
   @sathyaprakashg we are trying hard to avoid assuming 1 month = 30 days. This 
makes interval not comparable, but we need to see how other systems implement 
it. I know pgsql assumes 1 month = 30 days, can you check other systems like 
presto, hive, snowflake, etc.? 


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