cloud-fan commented on issue #26092: [SPARK-29440][SQL] Support 
java.time.Duration as an external type of CalendarIntervalType
URL: https://github.com/apache/spark/pull/26092#issuecomment-541499455
 
 
   My opinion on this is to expose the `CalendarInterval` class directly, with 
2 new methods `extractPeriod` and `extractDuration`. Semantically, 
`CalendarInterval` is java `Period` + `Duration`. I don't think we can map 
`CalendarInterval` to `Duration` as it's kind of a truncation.
   
   Like @MaxGekk said, we can also separate the interval type to year-month 
interval and day-time interval. But it's a lot of effort to change the type 
system and is not compatible with parquet.

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


With regards,
Apache Git Services

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

Reply via email to