Skip to content

Conversation

@mbwhite
Copy link
Contributor

@mbwhite mbwhite commented Dec 17, 2025

No description provided.

Comment on lines +49 to 52
* @return the number of outer scopes between the access and its correlation source, or {@code
* null} if not tracked
*/
public int getStepsOut(RexFieldAccess fieldAccess) {
Copy link
Member

Choose a reason for hiding this comment

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

that makes me wonder if we would need to change the method return type given that it's declared as a primitive int and not an Integer meaning it can not be null

Copy link
Member

Choose a reason for hiding this comment

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

looks like this method is not called anywhere in the current code base

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes that's a good point... it does seem redundant

Copy link
Member

Choose a reason for hiding this comment

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


// For example, if a grouping is defined as (0, 2, 1) in Substrait, Calcite will output it as
// (0, 1, 2), which means that the Calcite output will no longer line up with the expectations
// of the Substrait plan.
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure how I feel about removing this much information. I'm wondering whether we should better preserve this somehow.

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