spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-24695) Unable to return calendar interval from udf
Date Sat, 30 Jun 2018 07:31:00 GMT

    [ https://issues.apache.org/jira/browse/SPARK-24695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16528597#comment-16528597
] 

Apache Spark commented on SPARK-24695:
--------------------------------------

User 'priyankagargnitk' has created a pull request for this issue:
https://github.com/apache/spark/pull/21679

> Unable to return calendar interval from udf
> -------------------------------------------
>
>                 Key: SPARK-24695
>                 URL: https://issues.apache.org/jira/browse/SPARK-24695
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.3.1
>            Reporter: Priyanka Garg
>            Priority: Major
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> When i am trying to write an udf which returns calendar interval type, i am getting the
following error:
> 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.ScalaReflection$$anonfun$schemaFor$1.apply(ScalaReflection.scala:781)
>  at org.apache.spark.sql.catalyst.ScalaReflection$$anonfun$schemaFor$1.apply(ScalaReflection.scala:715)
>  at scala.reflect.internal.tpe.TypeConstraints$UndoLog.undo(TypeConstraints.scala:56)
>  at org.apache.spark.sql.catalyst.ScalaReflection$class.cleanUpReflectionObjects(ScalaReflection.scala:825)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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


Mime
View raw message