stevenzwu commented on code in PR #4744:
URL: https://github.com/apache/iceberg/pull/4744#discussion_r872932558
##########
api/src/main/java/org/apache/iceberg/Scan.java:
##########
@@ -93,6 +100,18 @@
*/
T planWith(ExecutorService executorService);
+ /**
+ * Returns this scan's projection {@link Schema}.
+ * <p>
+ * If the projection schema was set directly using {@link #project(Schema)},
returns that schema.
+ * <p>
+ * If the projection schema was set by calling {@link #select(Collection)},
returns a projection
+ * schema that includes the selected data fields and any fields used in the
filter expression.
+ *
+ * @return this scan's projection schema
+ */
+ Schema schema();
Review Comment:
This is moved from `TableScan` to base `Scan` interface as it is used by
`ScanTestBase`.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]