You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2020/05/06 03:03:48 UTC

[GitHub] [incubator-iceberg] jerryshao commented on a change in pull request #796: Support Spark Structured Streaming Read for Iceberg

jerryshao commented on a change in pull request #796:
URL: https://github.com/apache/incubator-iceberg/pull/796#discussion_r420521123



##########
File path: api/src/main/java/org/apache/iceberg/TableScan.java
##########
@@ -165,6 +166,22 @@ default TableScan select(String... columns) {
    */
   CloseableIterable<FileScanTask> planFiles();
 
+  /**
+   * Plan the {@link FileScanTask files} for the specified {@link ManifestFile manifests} that will be read by this
+   * scan.
+   * <p>
+   * Each file has a residual expression that should be applied to filter the file's rows.
+   * <p>
+   * This simple plan returns file scans for each file from position 0 to the file's length. For
+   * planning that will combine small files, split large files, and attempt to balance work, use
+   * {@link #planTasks()} instead.
+   *
+   * @param manifests the specified manifests for this scan.
+   * @param filterAddedFiles whether to filter just added files or all files.
+   * @return an Iterable of file tasks that are required by this scan
+   */
+  CloseableIterable<FileScanTask> planFilesForManifests(List<ManifestFile> manifests, boolean filterAddedFiles);

Review comment:
       Sorry for the late response @rdblue , I will take a look at this implementation today.




----------------------------------------------------------------
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



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org