You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/07/01 09:43:41 UTC

[GitHub] [spark] priyankagargnitk opened a new pull request #25022: [SPARK-24695][SQL]: To add support to return Calendar interval from udf.

priyankagargnitk opened a new pull request #25022: [SPARK-24695][SQL]: To add support to return Calendar interval from udf.
URL: https://github.com/apache/spark/pull/25022
 
 
   What changes were proposed in this pull request?
   This change adds capability to return Calender interval from udf.
   
   Earlier, the udf of Type (String => CalendarInterval) was throwing Exception stating:
   Schema for type org.apache.spark.unsafe.types.CalendarInterval is not supported
   java.lang.UnsupportedOperationException: Schema for type org.apache.spark.unsafe.types.CalendarInterval is not supported
   at org.apache.spark.sql.catalyst.ScalaReflection391anonfun.apply(ScalaReflection.scala:781)
   
   How was this patch tested?
   Added test case in ScalaReflectionSuite.scala and ExpressionEncoderSuite.scala
   Also, tested by creating an udf that returns Calendar interval.
   
   jira entry for detail: https://issues.apache.org/jira/browse/SPARK-24695

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