[
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: [email protected]
For additional commands, e-mail: [email protected]