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 reproducer for #8738 #8750

Merged
merged 1 commit into from
Jan 5, 2024
Merged

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Jan 4, 2024

Which issue does this PR close?

Part of #8738

Rationale for this change

#8738 is a regression, but there was no test coverage. Thus I would like to ensure we don't introduce additional bugs while fixing it or in the future

We have also hit similar regressions in the past related to handling of dictionaries.

What changes are included in this PR?

Introduce a test that contains basic timeseries data with a schema like we use, along with several queries, including the one that errors due to #8738

Are these changes tested?

The change is all tests

Are there any user-facing changes?

No, this is test change only

@github-actions github-actions bot added the sqllogictest SQL Logic Tests (.slt) label Jan 4, 2024
# Reproducer for https://github.com/apache/arrow-datafusion/issues/8738
# This query should work correctly
query error DataFusion error: External error: Arrow error: Invalid argument error: RowConverter column schema mismatch, expected Utf8 got Dictionary\(Int32, Utf8\)
SELECT
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW all the quoting makes this quite hard to read, and doesn't appear to be necessary

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree it is not necessary, however it is what we tell our customers to do (so they don't have to deal with the upper/lower case distinction) and thus it is very common in our production systems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants