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 3558] Fixing indexing variable for the column reordering loop #1624

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

LastSmile732
Copy link
Contributor

Just simply put i++ in the loop to make the loop work properly.

Copy link
Contributor

@chunweilei chunweilei left a comment

Choose a reason for hiding this comment

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

Please modify the commit message. You can refer to this doc[1].

[1] https://calcite.apache.org/develop/#contributing

@@ -243,6 +243,7 @@ protected RelNode appendSearchString(
field = topFields.get(i);
}
newFields.add(field);
i++;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please add a test?

Copy link
Contributor

Choose a reason for hiding this comment

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

And change the commit message to the problem being fixed, not the code change you made to fix it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will update test cases and commit message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
returned-with-feedback There are review comments (in JIRA and/or in GitHub) to be implemented before merging the PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants