MaxGekk commented on issue #25022: [SPARK-24695][SQL] Move `CalendarInterval` 
to org.apache.spark.sql.types package
URL: https://github.com/apache/spark/pull/25022#issuecomment-534520091
 
 
   > What do you mean by "already exposed"? CalendarInterval is the internal 
data representation of interval type, like long for timestamp type and int for 
date type.
   
   I mean when an user collects an interval column, she/he gets 
`CalendarInterval`:
   ```
   scala> spark.sql("select interval '10' 
year").collect()(0).get(0).isInstanceOf[org.apache.spark.unsafe.types.CalendarInterval]
   res9: Boolean = true
   ```

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