It seems that `functions.lit` doesn't support ArrayTypes. To reproduce:

org.apache.spark.sql.functions.lit(2 :: 1 :: Nil)

java.lang.RuntimeException: Unsupported literal type class
scala.collection.immutable.$colon$colon List(2, 1)
  at
org.apache.spark.sql.catalyst.expressions.Literal$.apply(literals.scala:59)
  at org.apache.spark.sql.functions$.lit(functions.scala:101)
  ... 48 elided

This is about the first thing I tried to do with ArrayTypes in Spark SQL. Is
this usage supported, or on the roadmap?



--
View this message in context: 
http://apache-spark-developers-list.1001551.n3.nabble.com/ArrayType-support-in-Spark-SQL-tp19063.html
Sent from the Apache Spark Developers List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe e-mail: dev-unsubscr...@spark.apache.org

Reply via email to