Re: Fwd: [SparkSQL] Project using NamedExpression

2017-04-03 Thread Aviral Agarwal
;> at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsR > >> DD.scala:38) > >> at > >> org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:306) > >> at org.apache.spark.rdd.RDD.iterator(RDD.scala:270) > >>

Re: Fwd: [SparkSQL] Project using NamedExpression

2017-03-28 Thread Liang-Chi Hsieh
>> at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.sca >> la:66) >> at org.apache.spark.scheduler.Task.run(Task.scala:89) >> at org.apache.spark.executor.Executor$TaskRunner.run(Executor. >> scala:214) >> at java.util.concurrent.ThreadPoolEx

Re: Fwd: [SparkSQL] Project using NamedExpression

2017-03-27 Thread Aviral Agarwal
t; > at org.apache.spark.executor.Executor$TaskRunner.run(Executor. > > scala:214) > > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool > > Executor.java:1142) > > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo > >

Re: Fwd: [SparkSQL] Project using NamedExpression

2017-03-24 Thread Aviral Agarwal
nWorker(ThreadPool > Executor.java:1142) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo > lExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) > > > This might be because the Expression is unresolved. > > Any help would be appreciated

Re: Fwd: [SparkSQL] Project using NamedExpression

2017-03-23 Thread Liang-Chi Hsieh
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool > Executor.java:1142) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo > lExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) > > > This might be because the Expressio

Fwd: [SparkSQL] Project using NamedExpression

2017-03-21 Thread Aviral Agarwal
Hi guys, I want transform Row using NamedExpression. Below is the code snipped that I am using : def apply(dataFrame: DataFrame, selectExpressions: java.util.List[String]): RDD[UnsafeRow] = { val exprArray = selectExpressions.map(s => Column(SqlParser.parseExpression(s)).named )