spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [spark] MaxGekk commented on issue #25022: [SPARK-24695][SQL] Move `CalendarInterval` to org.apache.spark.sql.types package
Date Tue, 24 Sep 2019 11:43:07 GMT
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Mime
View raw message