You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by cloud-fan <gi...@git.apache.org> on 2018/03/16 21:49:15 UTC
[GitHub] spark pull request #20726: [SPARK-23574][SQL] Report SinglePartition in Data...
Github user cloud-fan commented on a diff in the pull request:
https://github.com/apache/spark/pull/20726#discussion_r175222350
--- Diff: sql/core/src/main/java/org/apache/spark/sql/sources/v2/reader/SupportsReportPartitioning.java ---
@@ -23,6 +23,11 @@
/**
* A mix in interface for {@link DataSourceReader}. Data source readers can implement this
* interface to report data partitioning and try to avoid shuffle at Spark side.
+ *
+ * Note that Spark will always infer a
+ * {@link org.apache.spark.sql.catalyst.plans.physical.SinglePartition} partitioning when the
--- End diff --
We should not expose internal classes. How about
```
Note that sometimes Spark can avoid shuffle if the reader creates exactly 1 {@link DataReaderFactory}, even if the reader does not implement this interface.
```
---
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org