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

[CALCITE-6744] Returns null when the column origin contains the corre… #4145

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

suibianwanwank
Copy link
Contributor

…lation variable

if (inputSet != null) {
set.addAll(inputSet);
if (inputSet == null) {
return null;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The logic here doesn't seem to fit the documentation.
set of origin columns, or null if this information cannot be determined (whereas empty set indicates definitely no origin columns at all)

Copy link
Contributor

Choose a reason for hiding this comment

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

where is the documentation you are mentioning?

if (inputSet != null) {
set.addAll(inputSet);
if (inputSet == null) {
return null;
Copy link
Contributor

Choose a reason for hiding this comment

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

where is the documentation you are mentioning?

@@ -303,8 +306,16 @@ private static Set<RelColumnOrigin> getMultipleColumns(RexNode rexNode, RelNode
}
return null;
}

@Override public Void visitFieldAccess(RexFieldAccess fieldAccess) {
Copy link
Contributor

Choose a reason for hiding this comment

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

why does this indicate an access in a correlated variable?
could this be an access into a field with type ROW?

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