-
Notifications
You must be signed in to change notification settings - Fork 73
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
Cannot change case using output name (as
) of an upper case column
#564
Comments
Can you update the example to include ones with the new syntax? That makes copy pasting easier when debugging. |
not sure I understand what you are asking, but I've split the sql from the output |
With the `read_parquet` syntax from before #531 we had a bug where it was impossible to change casing of an alias from upper to lower: ``` select upper as "upper", lower as "LOWER" from read_parquet('/tmp/tmp.parquet') as t(upper int8, lower int8) limit 2; UPPER | LOWER -------+------- 0 | 0 1 | 1 (2 rows) ``` See #564 for more details. Luckily #531 has completely fixed this problem, so all this PR does is add some regression tests. Finally it also corrects the output file of the `case_insensitivity.sql` test, which was introduced by #563. It also adds that test to the `schedule` file, which was the reason that CI didn't notice that the output was wrong. Fixes #564 Related #563
See #565 with what I meant with the "new syntax", i.e no |
oh nice change. I didn't know about it, since I did not find it yet mentioned in the readme |
Yeah docs+readme updates are planned soon |
I'm curious how your old syntax worked with the new docker images though. Because those should fail now. |
I'm just using whatever is in
|
Hmm, maybe try force pulling the image? Maybe you have an old one cached. |
I'm sure I pulled it yesterday.
running that seems to match the latests one on docker hub: https://hub.docker.com/layers/pgduckdb/pgduckdb/17-main/images/sha256-5c9219f89312824a2a63bd3c12694db9c99332f69786d0aa35716981a1677084 |
Not sure if it's related, but it seems you can't change the casing of the names with as if the name is upper when reading from parquet.
create a parquet, like
duckdb -c "COPY (select generate_series as \"UPPER\", generate_series as \"lower\" FROM generate_series(100)) TO '/tmp/tmp.parquet' (FORMAT 'parquet')"
then from the postgresql
output of the above queries is
can't rename
UPPER
to lowercase. If you change the name it works fine.interestingly it only happens UPPERCASE to lowercase, not the opposite as shown in the lower column
let me know if I should open a new issue
Originally posted by @CaselIT in #116
The text was updated successfully, but these errors were encountered: