Open zhuangdaz opened 8 months ago
Wonder if we can add support of text searching on the dimension in star-tree index.
Use case: We have a table that has cols: dateInt, url, impressions. And we are looking to create a star-tree index like:
"tableIndexConfig": { "starTreeIndexConfigs": [{ "dimensionsSplitOrder": [ "url", "dateInt" ], "skipStarNodeCreationForDimensions": [ ], "functionColumnPairs": [ "SUM__impressions" ], "maxLeafRecords": 10000 }], ... }
And we'd want to filter on the url to get the aggregation results, for example, only returning the sum(impressions) for urls that contain pinot.
url
sum(impressions)
pinot
Query would be like:
select url, sum(impressions) from table where text_match('url', 'pinot'), dateInt = 20240104 group by url
related to: https://github.com/apache/pinot/issues/8863
text_match requires text index, which doesn't work with star-tree index. Can you try LIKE or RegexpLike instead and see if it works?
text_match
LIKE
RegexpLike
Wonder if we can add support of text searching on the dimension in star-tree index.
Use case: We have a table that has cols: dateInt, url, impressions. And we are looking to create a star-tree index like:
And we'd want to filter on the
url
to get the aggregation results, for example, only returning thesum(impressions)
for urls that containpinot
.Query would be like: