Skip to content

Conversation

JelteF
Copy link
Collaborator

@JelteF JelteF commented Jan 29, 2025

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

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
@JelteF JelteF merged commit 4a2e0ab into main Feb 3, 2025
5 checks passed
@JelteF JelteF deleted the add-case-insensitive-test branch February 3, 2025 17:07
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

Successfully merging this pull request may close these issues.

Cannot change case using output name (as) of an upper case column
2 participants