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-5259] Add getParameterRowType method to Planner interface #2890

Merged
merged 1 commit into from
Nov 29, 2022

Conversation

dssysolyatin
Copy link
Contributor

No description provided.

@dssysolyatin dssysolyatin force-pushed the CALCITE-5259 branch 2 times, most recently from 0aea0cd to 531b017 Compare September 1, 2022 10:23
Comment on lines +241 to +243
if (state.ordinal() < State.STATE_4_VALIDATED.ordinal()) {
throw new RuntimeException("Need to call #validate() first");
}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if (state.ordinal() < State.STATE_4_VALIDATED.ordinal()) {
throw new RuntimeException("Need to call #validate() first");
}
ensure(State.STATE_4_VALIDATED);```

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jbalint
ensure works differently. ensure checks if planner can move to next state. if ensure is used and user calls getParameterRowType from STATE_5_CONVERTED state, the getParameterRowType will throw exception

Copy link
Member

Choose a reason for hiding this comment

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

yes - you're right. the javadoc is wrong... :(

@jbalint jbalint self-assigned this Nov 29, 2022
@jbalint jbalint merged commit 531dc3d into apache:main Nov 29, 2022
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