Skip to content

Inferencer removal #1302

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

Merged
merged 4 commits into from
Dec 14, 2023
Merged

Inferencer removal #1302

merged 4 commits into from
Dec 14, 2023

Conversation

yliuuuu
Copy link
Contributor

@yliuuuu yliuuuu commented Dec 12, 2023

Relevant Issues

  • [Closes/Related To] Issue N/A

Description

  • Remove Inferencer
  • Ported the existing inferencer test case to Planner Project.
  • TODO: There are some duplicated tests needs to be cleaned up, this PR intensionally chooses to not address them to reduce the size of the diff.

Other Information

  • Updated Unreleased Section in CHANGELOG: [YES/NO]

    • Yes.
  • Any backward-incompatible changes? [YES/NO]

    • Yes. A public API is removed. In order to use the same functionality, one would need to user the Planner API.
  • 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.

Copy link

github-actions bot commented Dec 12, 2023

Conformance comparison report

Base (ebfc93f) 9221b14 +/-
% Passing 92.54% 92.54% 0.00%
✅ Passing 5384 5384 0
❌ Failing 434 434 0
🔶 Ignored 0 0 0
Total Tests 5818 5818 0

Number passing in both: 5384

Number failing in both: 434

Number passing in Base (ebfc93f) but now fail: 0

Number failing in Base (ebfc93f) but now pass: 0

@codecov-commenter
Copy link

codecov-commenter commented Dec 12, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ebfc93f) 72.21% compared to head (4a95789) 72.37%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1302      +/-   ##
============================================
+ Coverage     72.21%   72.37%   +0.15%     
+ Complexity     2100     2099       -1     
============================================
  Files           222      221       -1     
  Lines         16021    15971      -50     
  Branches       2892     2889       -3     
============================================
- Hits          11570    11559      -11     
+ Misses         3635     3597      -38     
+ Partials        816      815       -1     
Flag Coverage Δ
CLI 13.43% <ø> (ø)
EXAMPLES 80.28% <ø> (ø)
LANG 80.80% <ø> (+0.21%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -59,6 +59,7 @@ Thank you to all who have contributed!
- **Breaking** Removed IR factory in favor of static top-level functions. Change `Ast.foo()`
to `foo()`
- **Breaking** Removed `org.partiql.lang.planner.transforms.AstToPlan`. Use `org.partiql.planner.PartiQLPlanner`.
- **Breaking** Removed `org.partiql.lang.planner.transforms.PartiQLSchemaInferencer`. In order to achieve the same functionality, one would need to use the `org.partiql.planner.PartiQLPlanner`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe add an example? For "same functionality" it's really just getting the query return type.

Copy link
Member

@johnedquinn johnedquinn left a comment

Choose a reason for hiding this comment

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

LGTM. Just echoing Robert's comment about an example.

@yliuuuu yliuuuu requested a review from rchowell December 14, 2023 19:23
@rchowell rchowell merged commit 8076e6c into main Dec 14, 2023
@rchowell rchowell deleted the inferencer-removal branch December 14, 2023 19:35
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.

4 participants