Skip to content

[CALCITE-3576] Remove enumerable convention check in FilterIntoJoinRule#1639

Merged
hsyuan merged 1 commit into
apache:masterfrom
hsyuan:CALCITE-3576
Dec 10, 2019
Merged

[CALCITE-3576] Remove enumerable convention check in FilterIntoJoinRule#1639
hsyuan merged 1 commit into
apache:masterfrom
hsyuan:CALCITE-3576

Conversation

@hsyuan

@hsyuan hsyuan commented Dec 7, 2019

Copy link
Copy Markdown
Member

No description provided.

join.getConvention() != EnumerableConvention.INSTANCE;

/** Rule that pushes predicates from a Filter into the Join below them. */
public static final FilterJoinRule FILTER_ON_JOIN =

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We can remove the predicate member if it always returns true.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1
I guess the intention here is for backward compatibility, since the constructor of FilterIntoJoinRule is public

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I don't mind removing it if you think the backward compatibility is not a concern.

@hsyuan
hsyuan merged commit abb4fef into apache:master Dec 10, 2019
@hsyuan
hsyuan deleted the CALCITE-3576 branch December 10, 2019 04:44
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.

3 participants