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

Structures globals within plan to lie within catalogs #1308

Merged
merged 8 commits into from
Dec 15, 2023

Conversation

johnedquinn
Copy link
Member

@johnedquinn johnedquinn commented Dec 14, 2023

Relevant Issues

  • None

Description

  • Structures globals within plan to lie within catalogs

Other Information

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 14, 2023

Conformance comparison report

Base (0a75bd3) d248d1d +/-
% 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 (0a75bd3) but now fail: 0

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

@codecov-commenter
Copy link

codecov-commenter commented Dec 14, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0a75bd3) 72.16% compared to head (22d3c33) 72.16%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #1308   +/-   ##
=========================================
  Coverage     72.16%   72.16%           
  Complexity     2097     2097           
=========================================
  Files           221      221           
  Lines         15974    15974           
  Branches       2892     2892           
=========================================
  Hits          11528    11528           
  Misses         3640     3640           
  Partials        806      806           
Flag Coverage Δ
CLI 11.86% <ø> (ø)
EXAMPLES 80.28% <ø> (ø)
LANG 80.80% <ø> (ø)

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.

@johnedquinn johnedquinn marked this pull request as ready for review December 14, 2023 22:51
Comment on lines 18 to 26
catalog::{
name: string,
values: list::[value],
_: [
value::{
path: list::[string], // This should NOT be empty.
type: static_type
}
]
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
catalog::{
name: string,
values: list::[value],
_: [
value::{
path: list::[string], // This should NOT be empty.
type: static_type
}
]
catalog::{
name: string,
symbols: list::[symbol],
}
symbol::[
value::{
path: list::[string], // This should NOT be empty.
type: static_type
}
// TODO fn
_::[
ref::{
catalog: int,
symbol: int,
}
]
]

This structure also aligns with https://en.wikipedia.org/wiki/Symbol_table

The minimum information contained in a symbol table used by a translator and intermediate representation (IR) includes the symbol's name and its location or address.

Copy link
Member Author

Choose a reason for hiding this comment

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

I like the use of ref a lot. Modified slightly for the nesting, but just pushed.

partiql-plan/src/main/resources/partiql_plan.ion Outdated Show resolved Hide resolved
rchowell
rchowell previously approved these changes Dec 15, 2023
@johnedquinn johnedquinn requested a review from rchowell December 15, 2023 20:34
CHANGELOG.md Outdated
@@ -48,6 +48,7 @@ Thank you to all who have contributed!
- The new plan is fully resolved and typed.
- Operators will be converted to function call.
- Changes the return type of `filter_distinct` to a list if input collection is list
- **BREAKING**: Globals within the logical plan are now represented in a structured manner to reflect the existence of catalogs. Each value is now mandated to be case-sensitive (we have moved from Identifiers to string literals).
Copy link
Contributor

Choose a reason for hiding this comment

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

These were unreleased AFAIK

@johnedquinn johnedquinn merged commit c7c7972 into main Dec 15, 2023
10 checks passed
@johnedquinn johnedquinn deleted the remodel-globals branch December 15, 2023 21:47
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