rdblue commented on code in PR #12346: URL: https://github.com/apache/iceberg/pull/12346#discussion_r1994453224
########## core/src/test/java/org/apache/iceberg/TestSingleValueParser.java: ########## @@ -157,6 +167,15 @@ public void testInvalidTimestamptz() { .hasMessageStartingWith("Cannot parse default as a timestamptz value"); } + @Test + public void testInvalidGeometry() { + Type expectedType = Types.GeometryType.get(); + String defaultJson = "\"POINT (1 2 3 4 5 6)\""; + assertThatThrownBy(() -> defaultValueParseAndUnParseRoundTrip(expectedType, defaultJson)) + .isInstanceOf(IllegalArgumentException.class) + .hasMessageMatching("Cannot parse default as a geometry.* value.*"); Review Comment: What are the `.*` patterns matching? -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org