Continuing to dig, I encountered:
https://github.com/apache/spark/blob/master/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/LiteralExpressionSuite.scala#L125

  // TODO(davies): add tests for ArrayType, MapType and StructType

I guess others have thought of this already, just not implemented yet. :)

For others reading this thread, someone suggested using a SQL UDF to return
the constant - this works as a hack for now.




--
View this message in context: 
http://apache-spark-developers-list.1001551.n3.nabble.com/ArrayType-support-in-Spark-SQL-tp19063p19065.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