platform
platform copied to clipboard
Cockroach adapter uses wrong type for dueDate
Steps to reproduce:
- Add dueDate filter with TODAY value
- Change dueDate filter to exact date
When dueDate filter is changed, the app shows error unsupported comparison operator: <string> = ANY <jsonb[]>
This is the dueDate condition in the query (task.data#>>'{dueDate}' = ANY(ARRAY[]::jsonb[])
The root cause of this is the fact, that the adapter does take into account type of the field. Filter provides [undefined, null]as filter value which is converted to ANY(ARRAY[]::jsonb[])
Connected to Huly®: UBERF-13121