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

Selector for array fields #202

Open
timka-s opened this issue Sep 20, 2024 · 0 comments
Open

Selector for array fields #202

timka-s opened this issue Sep 20, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@timka-s
Copy link

timka-s commented Sep 20, 2024

Add the ability to create selectors for arrays (like from function - SPLIT(Tags, ', ')), or fix unnest array filtration)
Show unnest([array_field]) in selector values, but filter any([array_field]) in (%selected values%)

Details:
If we have string field like Tags
image

We can create selector with Tags
image
Or with UNNEST(SPLIT([Tags], ', '))
image

But, if we choice unnest value, we will receive error - "set-returning functions are not allowed in WHERE"
SQL: ... unnest(string_to_array(t4.Tags, ', ')) = 'owner' ...

On the other side, filtration for SPLIT(Tags, ', ') works fine:
image
SQL: ... 'owner' = ANY(string_to_array(t4.Tags, ', ')) ...

@resure resure added the enhancement New feature or request label Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants