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

chore: Implement remaining CAST tests #356

Merged
merged 4 commits into from
May 1, 2024

Conversation

andygrove
Copy link
Member

Which issue does this PR close?

Part of #286

Rationale for this change

Implement more tests.

Status:

  • Tests: 104
  • Passing: 44
  • Ignored: 60

What changes are included in this PR?

  • Implement tests for casting from Date and TimestampType
  • Change some tests from ignore to test
  • Update comments in failing tests
  • Note that TIMESTAMP_NTZ is not tested yet because that requires some shim work, so will tackle that in a separate PR

How are these changes tested?

Comment on lines -91 to 92
// https://github.com/apache/datafusion-comet/issues/311
test("cast BooleanType to ByteType") {
castTest(generateBools(), DataTypes.ByteType)
}
Copy link
Member

Choose a reason for hiding this comment

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

This is not supported before and supported now?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not quite. It was disabled before and now it is enabled. With this PR, I enabled all of the tests and then kept the ones that are passing.

Copy link
Member

Choose a reason for hiding this comment

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

Got it. Thanks.

@andygrove andygrove merged commit ec64040 into apache:main May 1, 2024
29 checks passed
@andygrove andygrove deleted the cast-test-temporal branch May 1, 2024 04:14
himadripal pushed a commit to himadripal/datafusion-comet that referenced this pull request Sep 7, 2024
himadripal pushed a commit to himadripal/datafusion-comet that referenced this pull request Sep 7, 2024
During the docker build, additional repos are added which still use mirrorlist.
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.

2 participants