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

KYLIN-4980 Support prunning segments from complex filter co… #1642

Merged
merged 1 commit into from Apr 25, 2021

Conversation

zhengshengjun
Copy link
Member

@zhengshengjun zhengshengjun commented Apr 20, 2021

…nditions

Proposed changes

Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue.

Types of changes

What types of changes does your code introduce to Kylin?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have create an issue on Kylin's jira, and have described the bug/feature there in detail
  • Commit messages in my PR start with the related jira ID, like "KYLIN-0000 Make Kylin project open-source"
  • Compiling and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • If this change need a document change, I will prepare another pr against the document branch
  • Any dependent changes have been merged

Further comments

If this is a relatively large or complex change, kick off the discussion at user@kylin or dev@kylin by explaining why you chose the solution you did and what alternatives you considered, etc...

@hit-lacus hit-lacus added Kylin 4.X Patch to Parquet Storgae(kylin-on-parquet-v2 branch). Not 3.X Not applicable for HBase Storage labels Apr 21, 2021
@zhengshengjun zhengshengjun force-pushed the KYLIN-4980 branch 2 times, most recently from 71224b7 to 9b91ddb Compare April 22, 2021 13:28
@zhengshengjun zhengshengjun changed the title KYLIN-4980 Segment pruner can't prune segments from complex filter co… KYLIN-4980 Support prunning segments from complex filter co… Apr 22, 2021
@zhengshengjun
Copy link
Member Author

Added test case

}
case _ =>
//other unary filter like EqualTo, GreaterThan, GreaterThanOrEqual, etc.
if (filter.references.contains(col)) {
Copy link

Choose a reason for hiding this comment

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

better to use if (filter.references.subsetOf(AttributeSet(col))) {

Copy link
Member Author

Choose a reason for hiding this comment

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

good suggestion ~

@zzcclp
Copy link

zzcclp commented Apr 25, 2021

LGTM

@zzcclp zzcclp merged commit d16e7f0 into apache:kylin-on-parquet-v2 Apr 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Kylin 4.X Patch to Parquet Storgae(kylin-on-parquet-v2 branch). Not 3.X Not applicable for HBase Storage
Projects
None yet
3 participants