spark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maciej Bryński <mac...@brynski.pl>
Subject Re: Tree for SQL Query
Date Thu, 25 Aug 2016 06:23:08 GMT
@rxin
It's not I'm looking for.
Explain prints output like this.
== Physical Plan ==
*Project [id#1576L AS id#1582L]
+- *Range (0, 1000, splits=400)

I'd like to have whole tree with expressions.

So when I have "select x + y" there should by Add expresion etc.

M.

2016-08-24 22:39 GMT+02:00 Reynold Xin <rxin@databricks.com>:
> It's basically the output of the explain command.
>
>
> On Wed, Aug 24, 2016 at 12:31 PM, Maciej Bryński <maciek@brynski.pl> 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 to get / print Tree for SQL Query ?
>>
>> Something like this:
>>
>> Add(Attribute(x), Add(Literal(1), Literal(2)))
>>
>> Regards,
>> --
>> Maciek Bryński
>>
>> ---------------------------------------------------------------------
>> To unsubscribe e-mail: dev-unsubscribe@spark.apache.org
>>
>



-- 
Maciek Bryński

---------------------------------------------------------------------
To unsubscribe e-mail: dev-unsubscribe@spark.apache.org


Mime
View raw message