-
Notifications
You must be signed in to change notification settings - Fork 986
DRILL-5137 - Optimize count(*) queries on MapR-DB Binary Tables #700
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -124,6 +124,11 @@ protected Collection<SchemaPath> transformColumns(Collection<SchemaPath> columns | |
| } else { | ||
| rowKeyOnly = false; | ||
| transformed.add(ROW_KEY_PATH); | ||
| /* DRILL-5137 - optimize count(*) queries on MapR-DB Binary tables */ | ||
| if (isSkipQuery()) { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Further optimization can be name by returning only a
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I thought of this, however I got stuck because there is no vectorContainerWriter in HBaseRecordReader class. If you can send a diff of how to do this, I can include that too. Thanks! |
||
| hbaseScan.setFilter( | ||
| HBaseUtils.andFilterAtIndex(hbaseScan.getFilter(), HBaseUtils.LAST_FILTER, new FirstKeyOnlyFilter())); | ||
| } | ||
| } | ||
|
|
||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This branches into the else part of
if (!isStarQuery()) {Can you verify if a query can be both Star and Skip query at the same time when count(*) has been requested?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I verified this in my testing.