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

Add tests for assigning aliases of different casing #565

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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
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