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

Fixes null comparisons and coercions of null collections #1454

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

johnedquinn
Copy link
Member

@johnedquinn johnedquinn commented May 2, 2024

Relevant Issues

  • None

Description

  • Increases conformance by 46 tests (.79%). Here's the latest report.
  • This fixes some conformance tests in relation to nullability (especially when it comes to EQ and NEQ).
  • A previous iteration of this PR was based on StaticType using the union of null to indicate nullability. As that has been updated, this PR has been updated.

Other Information

  • Updated Unreleased Section in CHANGELOG: NO

  • Any backward-incompatible changes? NO

    • Bug fixes. Some tests change. Our customers shouldn't be impacted with this change as it only deals with nullable aspects of types. API doesn't change.
  • Any new external dependencies? NO

  • Do your changes comply with the Contributing Guidelines
    and Code Style Guidelines? YES

License Information

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@johnedquinn johnedquinn marked this pull request as ready for review May 14, 2024 22:05
@johnedquinn johnedquinn marked this pull request as draft May 15, 2024 23:32
@johnedquinn johnedquinn force-pushed the v1-conformance-null-equality branch from 41bffc2 to 17f59e2 Compare July 10, 2024 18:56
@johnedquinn johnedquinn marked this pull request as ready for review July 10, 2024 22:08
Copy link
Member

@alancai98 alancai98 left a comment

Choose a reason for hiding this comment

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

one minor comment about a TODO. otherwise fixes look good

@@ -595,14 +595,13 @@ internal class PlanTyperTestsPorted {
catalog = "pql",
expected = StaticType.BOOL,
),
ErrorTestCase(
// TODO: For some reason, the conformance tests say that this results in TRUE. Regardless, we know it returns
Copy link
Member

Choose a reason for hiding this comment

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

Could we cut an issue to partiql-tests for this? Or just fix the problematic conformance tests?

Copy link
Member Author

Choose a reason for hiding this comment

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

}
}

@OptIn(PartiQLValueExperimental::class, FnExperimental::class)
Copy link
Member

Choose a reason for hiding this comment

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

nice that we can get rid of all of these other eq Fns

@johnedquinn johnedquinn merged commit ce2c689 into partiql:v1 Jul 17, 2024
7 checks passed
@johnedquinn johnedquinn deleted the v1-conformance-null-equality branch July 17, 2024 00:06
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