Oh, never mind. The support of CTAS queries is pretty limited. Can you try to first create the table and then use insert into?
On Thu, Sep 11, 2014 at 6:45 PM, Yin Huai <huaiyin....@gmail.com> wrote: > What is the schema of "table"? > > On Thu, Sep 11, 2014 at 4:30 PM, jamborta <jambo...@gmail.com> wrote: > >> thanks. this was actually using hivecontext. >> >> >> >> -- >> View this message in context: >> http://apache-spark-user-list.1001560.n3.nabble.com/spark-sql-create-new-table-as-select-from-table-tp14006p14009.html >> Sent from the Apache Spark User List mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscr...@spark.apache.org >> For additional commands, e-mail: user-h...@spark.apache.org >> >> >