timothyw553 commented on code in PR #19143:
URL: https://github.com/apache/iceberg/pull/19143#discussion_r4796478945
##########
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:
to my understanding `TestBigQueryCatalog` disables
`testCreateTableWithDefaultColumnValue` because BigQuery Metastore doesn't
support v3 yet, so won't this fail there too?
`RESTCompatibilityKitCatalogTests` also inherits this and would require
external servers to accept `"NaN"` and `"-Infinity"` strings even though the
spec doesn't define that yet. should we move this back into `TestRESTCatalog`
instead?
--
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]