You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Reynold Xin (JIRA)" <ji...@apache.org> on 2016/05/09 18:47:12 UTC
[jira] [Closed] (SPARK-15216) Add a new Dataset API explainCodegen
[ https://issues.apache.org/jira/browse/SPARK-15216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Reynold Xin closed SPARK-15216.
-------------------------------
Resolution: Won't Fix
Closing this because I don't think it makes sense to have a top level method for something so developer facing. Otherwise the public APIs will be littered with internal developer facing methods.
> Add a new Dataset API explainCodegen
> ------------------------------------
>
> Key: SPARK-15216
> URL: https://issues.apache.org/jira/browse/SPARK-15216
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 2.0.0
> Reporter: Xiao Li
>
> {noformat}
> val ds = Seq("a" -> 1, "a" -> 3, "b" -> 3).toDS().groupByKey(_._1).agg(
> expr("avg(_2)").as[Double],
> ComplexResultAgg.toColumn)
> ds.explainCodegen()
> {noformat}
> Reading codegen output is important for developers to debug. So far, outputting codegen results is available in the SQL interface by `EXPLAIN CODEGEN`. However, in the Dataset/DataFrame APIs, we face the same issue. We can add a new API for it.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org