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

Minor: Add test for date_trunc schema on scalars #6655

Merged
merged 2 commits into from
Jun 13, 2023

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Jun 12, 2023

Which issue does this PR close?

Related to #6653

Rationale for this change

I was surprised that the change in #6654 did not cause a test failure so I reviewed our coverage and found there wasn't coverage for the schema of the scalar version of date_trunc

What changes are included in this PR?

Add a test

Are these changes tested?

yes

Are there any user-facing changes?

@github-actions github-actions bot added core Core DataFusion crate sqllogictest SQL Logic Tests (.slt) labels Jun 12, 2023
Copy link
Member

@viirya viirya left a comment

Choose a reason for hiding this comment

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

I think it actually causes some test failures in datafusion/core/tests/sql/timestamp.rs but the tests are modified.

@viirya
Copy link
Member

viirya commented Jun 13, 2023

But it is still good to add some more tests for this, especially in sqllogictest.

@alamb
Copy link
Contributor Author

alamb commented Jun 13, 2023

I think this test needs a rowsort -- will add it

@alamb alamb merged commit d602de2 into apache:main Jun 13, 2023
@alamb alamb deleted the alamb/add_timestamp_test branch June 13, 2023 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core DataFusion crate sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants