hyperspace icon indicating copy to clipboard operation
hyperspace copied to clipboard

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

Open samdvr opened this issue 4 years ago • 3 comments

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 avatar Jan 03 '21 18:01 samdvr

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

clee704 avatar Apr 06 '21 03:04 clee704

@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?

rapoth avatar Apr 06 '21 05:04 rapoth

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.

clee704 avatar Apr 06 '21 06:04 clee704