Thanks, Michael, for your quick response.

View is critical for my project that is migrating from shark to spark SQL. I 
have implemented and tested everything else. It would be perfect if view could 
be implemented soon.

Du


From: Michael Armbrust <mich...@databricks.com<mailto:mich...@databricks.com>>
Date: Sunday, September 28, 2014 at 12:13 PM
To: Du Li <l...@yahoo-inc.com.invalid<mailto:l...@yahoo-inc.com.invalid>>
Cc: "d...@spark.apache.org<mailto:d...@spark.apache.org>" 
<d...@spark.apache.org<mailto:d...@spark.apache.org>>, 
"user@spark.apache.org<mailto:user@spark.apache.org>" 
<user@spark.apache.org<mailto:user@spark.apache.org>>
Subject: Re: view not supported in spark thrift server?

Views are not supported yet.  Its not currently on the near term roadmap, but 
that can change if there is sufficient demand or someone in the community is 
interested in implementing them.  I do not think it would be very hard.

Michael

On Sun, Sep 28, 2014 at 11:59 AM, Du Li 
<l...@yahoo-inc.com.invalid<mailto:l...@yahoo-inc.com.invalid>> wrote:

Can anybody confirm whether or not view is currently supported in spark? I 
found “create view translate” in the blacklist of HiveCompatibilitySuite.scala 
and also the following scenario threw NullPointerException on 
beeline/thriftserver (1.1.0). Any plan to support it soon?


> create table src(k string, v string);

> load data local inpath 
> '/home/y/share/yspark/examples/src/main/resources/kv1.txt' into table src;

> create view kv as select k, v from src;

> select * from kv;

Error: java.lang.NullPointerException (state=,code=0)

Reply via email to