Open azat opened 3 months ago
@AdityaHegde as I think you are looking at ClickHouse search?
@azat Thanks for the report! Would you expect that to be the default behaviour or would you like to be able to toggle between search behaviour with a property on the dimension?
Some psuedo
dimensions:
- column: country
label: Country
name: my_dim_id
search: full_wild / start_wild / end_wild / exact
as I think you are looking at ClickHouse search?
Yes, but I think it is a general thing, since all backends should support this (see the referenced commit, that is a hack that I used now, AFAIR only changes in web-common/src/features/dashboards/selectors/index.ts
was needed, but other two files I left just in case)
Would you expect that to be the default behaviour or would you like to be able to toggle between search behaviour with a property on the dimension?
It maybe useful to switch indeed, so you suggestion looks good
Right now all completion is implemented with
LIKE '%x%'
(well,ILIKE
to be precise), but this does not allows to use indexes (I'm talking in context of ClickHouse) so it will be good to have an option to switch to startsWith filter, so that the comletion will works way more faster.