pvary commented on code in PR #15795:
URL: https://github.com/apache/iceberg/pull/15795#discussion_r3354741564


##########
data/src/test/java/org/apache/iceberg/data/BaseFormatModelTests.java:
##########
@@ -130,6 +130,99 @@ protected boolean supportsBatchReads() {
 
   @TempDir private File tableDir;
 
+  protected boolean supportsTime() {
+    return true;
+  }
+
+  protected boolean supportsTimestampNano() {
+    return true;
+  }
+
+  protected boolean supportsVariant() {
+    return true;
+  }
+
+  protected boolean supportsUnknown() {
+    return true;
+  }
+
+  /**
+   * Returns the schema with columns whose types are unsupported by this 
engine removed. Engines may
+   * override to extend or replace filtering logic. The default implementation 
drops top-level
+   * columns whose types (recursively) contain TIME, TIMESTAMP_NANO, VARIANT, 
or UNKNOWN when the
+   * corresponding {@code supports*} method returns false.
+   */
+  protected Schema filterUnsupported(Schema schema) {

Review Comment:
   Maybe create a `SchemaVisitor` implementation for this?



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

Reply via email to