Re: Tree for SQL Query

2016-08-24 Thread Reynold Xin
> On Wed, Aug 24, 2016 at 12:31 PM, Maciej Bryński > wrote: > >> > >> Hi, > >> I read this article: > >> > >> https://databricks.com/blog/2015/04/13/deep-dive-into- > spark-sqls-catalyst-optimizer.html > >> > >> And I have a q

Re: Tree for SQL Query

2016-08-24 Thread Maciej Bryński
s-catalyst-optimizer.html >> >> And I have a question. Is it possible to get / print Tree for SQL Query ? >> >> Something like this: >> >> Add(Attribute(x), Add(Literal(1), Literal(2))) >> >> Regards, >> -- >> Maciek Bryński &g

Re: Tree for SQL Query

2016-08-24 Thread Reynold Xin
It's basically the output of the explain command. On Wed, Aug 24, 2016 at 12:31 PM, Maciej Bryński wrote: > Hi, > I read this article: > https://databricks.com/blog/2015/04/13/deep-dive-into- > spark-sqls-catalyst-optimizer.html > > And I have a question. Is it possible

Tree for SQL Query

2016-08-24 Thread Maciej Bryński
Hi, I read this article: https://databricks.com/blog/2015/04/13/deep-dive-into-spark-sqls-catalyst-optimizer.html And I have a question. Is it possible to get / print Tree for SQL Query ? Something like this: Add(Attribute(x), Add(Literal(1), Literal(2))) Regards, -- Maciek Bryński