Vorrei rendere opzionale una fase di filtraggio, ma se lascio il campo query vuoto, ricevo un errore:
---[params]
--- string :query = '%'
select uh.details
from user_histories uh
where uh.details like case
when :query is not null then '%' || :query || '%'
else '%'
end
limit 5
Errore: DataExplorer::ValidationError: Parametro query mancante di tipo stringa