Skip to content

[CALCITE-4114] Remove method CalciteAssert.forceDecorrelate (Jiatao Tao) #2073

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

Closed
wants to merge 1 commit into from

Conversation

Aaaaaaron
Copy link
Member

@Aaaaaaron Aaaaaaron commented Jul 18, 2020

The origin method name is "forceDecorrelate", but what it does actually is not decorrelate, so change it.

@Aaaaaaron Aaaaaaron force-pushed the CALCITE-4114 branch 2 times, most recently from 51441bd to d6f3646 Compare July 22, 2020 03:25
@Aaaaaaron Aaaaaaron changed the title [CALCITE-4114] Minor, change the method name from "forceDecorrelate" to "withDecorrelate". [CALCITE-4114] Minor, change the method name from "forceDecorrelate" to "withDecorrelate" (Jiatao Tao) Jul 22, 2020
final RelBuilder b = RelBuilder.create(config);
pair.right.set(CalcitePrepare.Query.of(relFn.apply(b)));
});
}

/** Creates a {@link FrameworkConfig} that does not decorrelate. */
private FrameworkConfig forceDecorrelate(FrameworkConfig config) {
private FrameworkConfig withDecorrelate(FrameworkConfig config, boolean needDecorrelate) {
return Frameworks.newConfigBuilder(config)
Copy link
Contributor

Choose a reason for hiding this comment

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

How about just remove the method and inline the code, the method name is mis-leading.

Copy link
Member Author

@Aaaaaaron Aaaaaaron Jul 23, 2020

Choose a reason for hiding this comment

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

How about just remove the method and inline the code, the method name is mis-leading.

👌 agree

Copy link
Member Author

Choose a reason for hiding this comment

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

How about just remove the method and inline the code, the method name is mis-leading.

Revised

@danny0405 danny0405 changed the title [CALCITE-4114] Minor, change the method name from "forceDecorrelate" to "withDecorrelate" (Jiatao Tao) [CALCITE-4114] Remove method CalciteAssert.forceDecorrelate (Jiatao Tao) Jul 27, 2020
@danny0405
Copy link
Contributor

Please also change the commit message.

@Aaaaaaron
Copy link
Member Author

Please also change the commit message.

Thanks, revised.

@danny0405 danny0405 added the LGTM-will-merge-soon Overall PR looks OK. Only minor things left. label Jul 27, 2020
@danny0405 danny0405 closed this in a412ac1 Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LGTM-will-merge-soon Overall PR looks OK. Only minor things left.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants