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

test: check record count and types in parquet window test #12277

Merged
merged 2 commits into from
Sep 3, 2024

Conversation

korowa
Copy link
Contributor

@korowa korowa commented Sep 1, 2024

Which issue does this PR close?

Closes #12185 .

Rationale for this change

The test output is not deterministic due to absence of sorting and bunch of duplicates in input data, and according to the commit history it was not intended to check the output data, but was introduced in order to check that timestamp with timezones are not losing timezones while passing through query pipeline (original PR link).

What changes are included in this PR?

The test behavior is rolled back to the one before porting to sqllogictests -- it now is checking output timestamp type (must contain tz), minimum output timestamp value (suppose it may be important) and total count of output records (not necessary, but may be helpful in case of debugging potential issues with this test).

Test comment also updated as it was suggested in comment to previous PR

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the sqllogictest SQL Logic Tests (.slt) label Sep 1, 2024
@alamb alamb changed the title test: check record count and types in paqruet window test test: check record count and types in parquet window test Sep 2, 2024
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thank you @korowa -- the description and code archeology are 👌 👨‍🍳 -- very nice

datafusion/sqllogictest/test_files/parquet.slt Outdated Show resolved Hide resolved
Co-authored-by: Andrew Lamb <[email protected]>
@korowa korowa merged commit 6bceeae into apache:main Sep 3, 2024
24 checks passed
joroKr21 pushed a commit to coralogix/arrow-datafusion that referenced this pull request Sep 6, 2024
* test: check record count and types in paqruet window test

* Review suggestions

Co-authored-by: Andrew Lamb <[email protected]>

---------

Co-authored-by: Andrew Lamb <[email protected]>
joroKr21 added a commit to coralogix/arrow-datafusion that referenced this pull request Sep 6, 2024
* Support encoding and decoding UnnestExec

* test: check record count and types in parquet window test (apache#12277)

* test: check record count and types in paqruet window test

* Review suggestions

Co-authored-by: Andrew Lamb <[email protected]>

---------

Co-authored-by: Andrew Lamb <[email protected]>

---------

Co-authored-by: Eduard Karacharov <[email protected]>
Co-authored-by: Andrew Lamb <[email protected]>
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.

Sqllogictest(parquet.slt) failed in rustc 1.81.0-nightly (cc8da78a0 2024-07-04) using main branch
2 participants