-
Couldn't load subscription status.
- Fork 2.7k
Always execute cast and try_cast if they are not invertible #19010
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Just some comments on the test file.
| # group: [optimizer] | ||
|
|
||
| statement ok | ||
| pragma disable_optimizer; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove this? And can we add the statement pragma enable_verification?
| INSERT INTO t0(c0, c1) VALUES (890608529, false); | ||
|
|
||
| statement ok | ||
| pragma enable_optimizer; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can also be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems like you added an empty file here. Can you take this out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for that. I should have double-checked the commit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
|
Thanks! |
Always execute cast and try_cast if they are not invertible (duckdb/duckdb#19010) add a bunch of expected error messages to old macro tests and fix iss… (duckdb/duckdb#19042) [unittest] Fixes so that '{BASE_TEST_NAME}' can be used within --on-new-connection (duckdb/duckdb#19056)
fixes https://github.com/duckdblabs/duckdb-internal/issues/5876
fixes #18967
Together with @Tmonster we managed to come up with a fix. We identified two separate issue.
To solve this we identified two solutions. One option is to change the functionality and when the cast is not invertible always run the cast or try_cast, but that is more work for the engine. The other option is to keep the old functionality, and just fix the inconsistency