You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by we...@apache.org on 2019/04/04 17:07:35 UTC
[spark] branch master updated: [SPARK-26811][SQL][FOLLOWUP] some
more document fixes
This is an automated email from the ASF dual-hosted git repository.
wenchen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new f7bd1ab [SPARK-26811][SQL][FOLLOWUP] some more document fixes
f7bd1ab is described below
commit f7bd1ab5862c38a9ae93c6c6f27919c529e8fb6d
Author: Wenchen Fan <we...@databricks.com>
AuthorDate: Fri Apr 5 01:07:08 2019 +0800
[SPARK-26811][SQL][FOLLOWUP] some more document fixes
## What changes were proposed in this pull request?
while working on https://github.com/apache/spark/pull/24129, I realized that I missed some document fixes in https://github.com/apache/spark/pull/24285. This PR covers all of them.
## How was this patch tested?
N/A
Author: Wenchen Fan <we...@databricks.com>
Closes #24295 from cloud-fan/doc.
---
.../src/main/java/org/apache/spark/sql/sources/v2/reader/Scan.java | 2 +-
.../java/org/apache/spark/sql/sources/v2/writer/WriteBuilder.java | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/sql/core/src/main/java/org/apache/spark/sql/sources/v2/reader/Scan.java b/sql/core/src/main/java/org/apache/spark/sql/sources/v2/reader/Scan.java
index 7633d50..f6085b9 100644
--- a/sql/core/src/main/java/org/apache/spark/sql/sources/v2/reader/Scan.java
+++ b/sql/core/src/main/java/org/apache/spark/sql/sources/v2/reader/Scan.java
@@ -62,7 +62,7 @@ public interface Scan {
/**
* Returns the physical representation of this scan for batch query. By default this method throws
* exception, data sources must overwrite this method to provide an implementation, if the
- * {@link Table} that creates this scan returns {@link TableCapability#BATCH_READ} in its
+ * {@link Table} that creates this scan returns {@link TableCapability#BATCH_READ} support in its
* {@link Table#capabilities()}.
*
* @throws UnsupportedOperationException
diff --git a/sql/core/src/main/java/org/apache/spark/sql/sources/v2/writer/WriteBuilder.java b/sql/core/src/main/java/org/apache/spark/sql/sources/v2/writer/WriteBuilder.java
index e08d34f..aab46b0 100644
--- a/sql/core/src/main/java/org/apache/spark/sql/sources/v2/writer/WriteBuilder.java
+++ b/sql/core/src/main/java/org/apache/spark/sql/sources/v2/writer/WriteBuilder.java
@@ -19,6 +19,7 @@ package org.apache.spark.sql.sources.v2.writer;
import org.apache.spark.annotation.Evolving;
import org.apache.spark.sql.sources.v2.Table;
+import org.apache.spark.sql.sources.v2.TableCapability;
import org.apache.spark.sql.sources.v2.writer.streaming.StreamingWrite;
import org.apache.spark.sql.types.StructType;
@@ -57,8 +58,8 @@ public interface WriteBuilder {
/**
* Returns a {@link BatchWrite} to write data to batch source. By default this method throws
* exception, data sources must overwrite this method to provide an implementation, if the
- * {@link Table} that creates this write returns BATCH_WRITE support in its
- * {@link Table#capabilities()}.
+ * {@link Table} that creates this write returns {@link TableCapability#BATCH_WRITE} support in
+ * its {@link Table#capabilities()}.
*
* Note that, the returned {@link BatchWrite} can be null if the implementation supports SaveMode,
* to indicate that no writing is needed. We can clean it up after removing
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org