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

[Draft] Update cardinality to container size #14049

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public BlockDocIdIterator iterator() {

// evaluate the bitmaps in the order of the lowest matching num docIds comes first, so that we minimize the number
// of containers (range) for comparison from the beginning, as will minimize the effort of bitmap AND application
bitmapBasedDocIdIterators.sort(Comparator.comparing(x -> x.getDocIds().getCardinality()));
bitmapBasedDocIdIterators.sort(Comparator.comparing(x -> x.getDocIds().getContainerCount()));

// Evaluate the scan based operator with the highest cardinality coming first, this potentially reduce the range of
// scanning from the beginning. Automatically place N/A cardinality column (negative infinity) to the back as we
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@
<dependency>
<groupId>org.roaringbitmap</groupId>
<artifactId>RoaringBitmap</artifactId>
<version>1.2.1</version>
<version>1.3.0</version>
</dependency>
<dependency>
<groupId>com.101tec</groupId>
Expand Down
Loading