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

Add Catalog to NameResolver #425

Merged
merged 1 commit into from
Aug 16, 2023
Merged

Add Catalog to NameResolver #425

merged 1 commit into from
Aug 16, 2023

Conversation

am357
Copy link
Contributor

@am357 am357 commented Aug 16, 2023

Description of changes:

During the work for adding a steel thread for PartiQL Typing (Recent PR #389) and after merging #410 to feat-type-plan-poc it is realized that we need to refactor the code to remove DynamicLocalup VarExpr with the assumption that we work based off of Typing and Value Environment from the Catalog. We have a Typing Environment in the Catalog at the moment and we are going to add the Variable Environment as well. In preparation for such task, we need to make the NameResolver Catalog aware. In that regard this commit adds the Catalog to NameResolver

Expecting subsequent PR(s) for the name resolving using the Catalog.

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

During the work for adding a steel thread for PartiQL Typing (Recent PR #389)
and after merging #410 to `feat-type-plan-poc` it is realized that we need to
refactor the code to remove `DynamicLocalup` `VarExpr` with the assumption that
we work based off of Typing and Value Environment from the Catalog. We have a
Typing Environment in the Catalog at the moment and we are going to add the
Variable Environment as well. In preparation for such task, we need to make
the `NameResolver` Catalog aware. In that regard this commit adds the `Catalog`
to `NameResolver`

Expecting subsequent PR(s) for the name resolving using the Catalog.
@am357 am357 force-pushed the feat-catalog-name-resolver branch from ea4d964 to 99ff05d Compare August 16, 2023 19:22
@am357 am357 marked this pull request as ready for review August 16, 2023 19:22
@am357 am357 requested review from jpschorr and alancai98 August 16, 2023 19:26
@github-actions
Copy link

github-actions bot commented Aug 16, 2023

Conformance comparison report

Base (154bd59) 2f23d20 +/-
% Passing 89.31% 89.31% 0.00%
✅ Passing 5665 5665 0
❌ Failing 678 678 0
🔶 Ignored 0 0 0
Total Tests 6343 6343 0

Number passing in both: 5665

Number failing in both: 678

Number passing in Base (154bd59) but now fail: 0

Number failing in Base (154bd59) but now pass: 0

@codecov
Copy link

codecov bot commented Aug 16, 2023

Codecov Report

Patch coverage: 95.65% and project coverage change: +0.02% 🎉

Comparison is base (154bd59) 81.84% compared to head (99ff05d) 81.87%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #425      +/-   ##
==========================================
+ Coverage   81.84%   81.87%   +0.02%     
==========================================
  Files          62       62              
  Lines       15862    15883      +21     
  Branches    15862    15883      +21     
==========================================
+ Hits        12983    13004      +21     
- Misses       2361     2362       +1     
+ Partials      518      517       -1     
Files Changed Coverage Δ
partiql-ast-passes/src/name_resolver.rs 83.63% <95.23%> (+1.05%) ⬆️
partiql-logical-planner/src/lib.rs 94.31% <100.00%> (+0.06%) ⬆️

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

@am357 am357 merged commit de1ac1b into main Aug 16, 2023
@am357 am357 deleted the feat-catalog-name-resolver branch August 16, 2023 20:34
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.

3 participants