-
Notifications
You must be signed in to change notification settings - Fork 63
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
Remove redundancy by using ANY parameter for IS TYPE operators #1321
Conversation
Conformance comparison report
Number passing in both: 5384 Number failing in both: 434 Number passing in Base (c73efbf) but now fail: 0 Number failing in Base (c73efbf) but now pass: 0 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1321 +/- ##
=========================================
Coverage 72.17% 72.17%
Complexity 2097 2097
=========================================
Files 221 221
Lines 15973 15973
Branches 2892 2892
=========================================
Hits 11528 11528
Misses 3639 3639
Partials 806 806
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
One thing that may cause us trouble is In other functions, for example With this change, This is more of a inconsistence than a problem, but it is worth to consider as change of errors may affect our customers. |
I wonder if this handles it though? partiql-lang-kotlin/partiql-planner/src/main/kotlin/org/partiql/planner/internal/typer/PlanTyper.kt Lines 654 to 660 in c73efbf
I feel the only issue here will be |
The code snippet you show raised a I tried to point out that for other functions, the issue raised is going to be a partiql-lang-kotlin/partiql-planner/src/main/kotlin/org/partiql/planner/internal/typer/PlanTyper.kt Lines 619 to 640 in c73efbf
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving this PR based on offline discussion. We are going to further investigate on MISSING.
Relevant Issues
N/A
Description
Reduces redundancy of the IS TYPE operators as they do not need to be defined for each individual type.
Other Information
Updated Unreleased Section in CHANGELOG: [YES/NO]
No
Any backward-incompatible changes? [YES/NO]
errors for users that are using our public APIs or the entities that have
public
visibility in our code-base. >No, internal typer concern for 0.14
Any new external dependencies? [YES/NO]
No
Do your changes comply with the Contributing Guidelines
and Code Style Guidelines? [YES/NO]
Yes
License Information
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.