You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/03/18 19:15:07 UTC

[GitHub] [spark] chakravarthiT opened a new pull request #24136: [SPARK-27088][SQL] Apply conf "spark.sql.optimizer.planChangeLog.leve…

chakravarthiT opened a new pull request #24136: [SPARK-27088][SQL] Apply conf "spark.sql.optimizer.planChangeLog.leve…
URL: https://github.com/apache/spark/pull/24136
 
 
   ## What changes were proposed in this pull request?
   
   Similar to #22406 , which has made log level for plan changes by each rule configurable ,this PR is to make log level for plan changes by each batch configurable,and I have reused the same configuration: "spark.sql.optimizer.planChangeLog.level".
   
   Config proposed in this PR ,
   spark.sql.optimizer.planChangeLog.batches - enable plan change logging only for a set of specified batches, separated by commas.
   
   
   ## How was this patch tested?
   
   Added UT , also tested manually and attached screenshots below.
   
   1)Setting spark.sql.optimizer.planChangeLog.leve to warn.
   
   ![settingLogLevelToWarn](https://user-images.githubusercontent.com/45845595/54556730-8803dd00-49df-11e9-95ab-ebb0c8d735ef.png)
   
   2)setting spark.sql.optimizer.planChangeLog.batches to Resolution and Subquery.
   ![settingBatchestoLog](https://user-images.githubusercontent.com/45845595/54556740-8cc89100-49df-11e9-80ab-fbbbe1ff2cdf.png)
   
   3)  plan change logging enabled only for a set of specified batches(Resolution and Subquery)
   ![batchloggingOp](https://user-images.githubusercontent.com/45845595/54556788-ab2e8c80-49df-11e9-9ae0-57815f552896.png)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org