Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.

Deterministic index selection for filter rule with no hybrid scan - #428

Merged
Terry Kim (imback82) merged 4 commits into
microsoft:masterfrom
apoorvedave1:filterrank
Apr 22, 2021
Merged

Deterministic index selection for filter rule with no hybrid scan#428
Terry Kim (imback82) merged 4 commits into
microsoft:masterfrom
apoorvedave1:filterrank

Conversation

@apoorvedave1

@apoorvedave1 Apoorve Dave (apoorvedave1) commented Apr 21, 2021

Copy link
Copy Markdown
Contributor

What is the context for this pull request?

Deterministic index selection for FilterIndexRule with hybrid scan disabled.

What changes were proposed in this pull request?

This PR changes the filter index rule selection from picking the head of the eligible indexes to picking the index which has

  • the minimum size in terms of index file sizes
  • lexicographically smallest index name (if there are multiple indexes with minimum size)

Does this PR introduce any user-facing change?

no

How was this patch tested?

unit tests

Comment thread src/main/scala/com/microsoft/hyperspace/index/rankers/FilterIndexRanker.scala Outdated
Comment thread src/main/scala/com/microsoft/hyperspace/index/rules/RuleUtils.scala Outdated
Comment thread src/main/scala/com/microsoft/hyperspace/index/rankers/FilterIndexRanker.scala Outdated
Comment thread src/test/scala/com/microsoft/hyperspace/index/HyperspaceSuite.scala Outdated
Comment thread src/test/scala/com/microsoft/hyperspace/index/HyperspaceSuite.scala Outdated
Comment thread src/test/scala/com/microsoft/hyperspace/index/rankers/FilterIndexRankerTest.scala Outdated

@imback82 Terry Kim (imback82) left a comment

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.

LGTM (pending EJ Song (@sezruby)'s approval), thanks Apoorve Dave (@apoorvedave1)!

@sezruby

Copy link
Copy Markdown
Contributor

LGTM Thanks!

@imback82
Terry Kim (imback82) merged commit a373eef into microsoft:master Apr 22, 2021
@clee704 Chungmin Lee (clee704) added this to the v0.5.0 milestone Jun 15, 2021
@clee704 Chungmin Lee (clee704) added the enhancement New feature or request label Jun 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants