Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failure: TestDuckDBJDBC#test_struct_with_bad_type fails because the check for the error message doesn't match. #69

Closed
rpbouman opened this issue Aug 23, 2024 · 0 comments

Comments

@rpbouman
Copy link
Contributor

TestDuckDBJDBC#test_struct_with_bad_type fails with:

TestDuckDBJDBC#test_struct_with_bad_type failed with java.lang.Exception
java.lang.Exception
        at org.duckdb.test.Assertions.assertTrue(Assertions.java:15)
        at org.duckdb.test.Assertions.assertTrue(Assertions.java:10)
        at org.duckdb.TestDuckDBJDBC.test_struct_with_bad_type(TestDuckDBJDBC.java:3510)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.duckdb.test.Runner.runTests(Runner.java:45)
        at org.duckdb.TestDuckDBJDBC.main(TestDuckDBJDBC.java:4531)

The reason is that the assertion checks if the error message contains the string:

"Parser Error: syntax error at or near "TYPE""

But the actual error message returned by DuckDB is:

 "Invalid Input Error: Value "BAD TYPE NAME" can not be converted to a DuckDB Type.
Possible examples as suggestions:
* BYTEA
* DATE
* DATETIME
* BIT
* TINYINT
@Mause Mause closed this as completed in eea6081 Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant