timothyw553 commented on code in PR #19143:
URL: https://github.com/apache/iceberg/pull/19143#discussion_r4809949465
##########
core/src/test/java/org/apache/iceberg/catalog/CatalogTests.java:
##########
@@ -935,6 +935,47 @@ public void testCreateTableWithDefaultColumnValue() {
assertThat(schemaWithDefault.asStruct()).isEqualTo(catalog.loadTable(TBL).schema().asStruct());
}
+ @Test
+ public void testNonFiniteColumnDefaults() {
+ C catalog = catalog();
+
+ if (requiresNamespaceCreate()) {
+ catalog.createNamespace(TBL.namespace());
+ }
+
+ catalog
+ .buildTable(TBL, SCHEMA)
+ .withLocation(baseTableLocation(TBL))
+ .withProperty(TableProperties.FORMAT_VERSION, "3")
Review Comment:
right, i dont think we really need the catalog test.. i'd probably keep one
schema round-trip test where `Expressions.lit` rejects NaN, so
`SingleValueParser` tests alone would miss that failure.
--
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]