You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Wang Cheng <34...@qq.com.INVALID> on 2022/02/16 09:19:17 UTC

restoring SQL text from logical plan

I’m implementing the materialized feature for Spark. I have built a customized listener that logs the logical plan and physical plan of each sql query. After some analysis, I can get the most valuable subtree that needs to be materialized. Then I need to restore the subtree of the plan back to sql to recommend to the user. I’m wondering is there any function that converts a logical plan back to SQL text?