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

[FEATURE REQUEST]: Introduce Partial Indexes to index subset of data based on a filter condition #305

Open
samdvr opened this issue Jan 3, 2021 · 3 comments
Labels
enhancement New feature or request untriaged This is the default tag for a newly created issue

Comments

@samdvr
Copy link

samdvr commented Jan 3, 2021

Introduce Partial Indexes to index subset of data based on a filter condition

As a user I want to create index on a filtered dataframe with a condition
This filter can be used on read query as a more selective index for access patterns.

example:

hs.createIndex(df,IndexConfig("index1", indexedColumns = Seq("id"), condition: "id > 10")
@samdvr samdvr added enhancement New feature or request untriaged This is the default tag for a newly created issue labels Jan 3, 2021
@clee704
Copy link
Contributor

clee704 commented Apr 6, 2021

@rapoth I think it would be an interesting feature to implement. WDYT?

@rapoth
Copy link
Contributor

rapoth commented Apr 6, 2021

@clee704 I agree this is an interesting feature. I was thinking we could do this as part of #186 since the latter is much more general. What do you think?

@clee704
Copy link
Contributor

clee704 commented Apr 6, 2021

I think a partial index or filtered index is a different thing, because materialization is not required for them. But as we only have covering indexes for now, there is little difference indeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request untriaged This is the default tag for a newly created issue
Projects
None yet
Development

No branches or pull requests

3 participants