-
Notifications
You must be signed in to change notification settings - Fork 66
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
Case insensitivity mismatch between duckdb and postgres can cause issues #116
Comments
Good find. Some related discussion here: #56 (comment), and related to #43 -- though these are not specific to case insensitivity. |
This may be related, but in either of the two below, the field name cases aren't maintained in the new postgres table. Using column names in double quotes instead of a wildcard also does not resolve the issue
|
This shouldn't be in the long term milestone. but an important bug to fix. |
@pantonis we'll try to address this asap. |
Based on some research I did this should be quite easy to address, postgres_scanner is able to do this. I'm pretty sure it's a few lines of code only. So we can use the same approach as is used there. Let's wait until #477 is merged though, to avoid any merge conflicts. |
We had the same issue when we were using Hydra and it was fixed quite fast I can say. |
This seems to be solved in the current version.
|
If it's indeed resolved we should add some tests to make sure we don't regress again. |
DuckDB considers identifiers with different casing the same even if they are quoted.
The most minimal example of this is the following schema:
When using postgres execution this correctly outputs:
But when enabling duckdb execution both
a
and"A"
are interpreted asa
. Resulting in the following incorrect result:This happens even when I set
preserver_identifier_case
totrue
on the DuckDB connection.The text was updated successfully, but these errors were encountered: