Re: Error aliasing an array column.

2016-02-09 Thread Ted Yu
Below is an example to reproduce it. > > > > this throws the following exception: > > > > > -- > View this message in context: > http://apache-spark-developers-list.1001551.n3.nabble.com/Error-aliasing-an-array-column-tp162

Re: Error aliasing an array column.

2016-02-09 Thread Ted Yu
;> wrote: >> >>> Hi All: >>> >>> I am getting an "UnsupportedOperationException" when trying to alias an >>> array column. The issue seems to be at "CreateArray" expression -> >>> dataType, >>> which checks for null

Re: Error aliasing an array column.

2016-02-09 Thread Rakesh Chalasani
ren, while aliasing is creating a >> PrettyAttribute that does not implement nullability. >> >> Below is an example to reproduce it. >> >> >> >> this throws the following exception: >> >> >> >> >> -- >> View this me

Re: Error aliasing an array column.

2016-02-09 Thread Rakesh Chalasani
>> org.apache.spark.repl.SparkIMain.interpret(SparkIMain.scala:819) >> >> On Tue, Feb 9, 2016 at 4:23 PM Ted Yu <yuzhih...@gmail.com> wrote: >> >>> Do you mind pastebin'ning code snippet and exception one more time - I >>> couldn't see them in your original

Re: Error aliasing an array column.

2016-02-09 Thread Ted Yu
>>> org.apache.spark.repl.SparkIMain.interpret(SparkIMain.scala:871) >>> at >>> org.apache.spark.repl.SparkIMain.interpret(SparkIMain.scala:819) >>> >>> On Tue, Feb 9, 2016 at 4:23 PM Ted Yu <yuzhih...@gmail.com> wrote: >>>

Re: Error aliasing an array column.

2016-02-09 Thread Michael Armbrust
>>> Hi All: >>> >>> I am getting an "UnsupportedOperationException" when trying to alias an >>> array column. The issue seems to be at "CreateArray" expression -> >>> dataType, >>> which checks for nullability of its children, whi

Re: Error aliasing an array column.

2016-02-09 Thread Rakesh Chalasani
at >>>> org.apache.spark.repl.SparkIMain$ReadEvalPrint.call(SparkIMain.scala:1065) >>>> at >>>> org.apache.spark.repl.SparkIMain$Request.loadAndRun(SparkIMain.scala:1346) >>>> at >>>> org.apache.spark.repl.SparkIMai

Error aliasing an array column.

2016-02-09 Thread rakeshchalasani
t nullability. Below is an example to reproduce it. this throws the following exception: -- View this message in context: http://apache-spark-developers-list.1001551.n3.nabble.com/Error-aliasing-an-array-column-tp16288.html Sent from the Apache Spark Developers List mailing lis