dhiaayachi / temporal

Temporal service
https://docs.temporal.io
MIT License
0 stars 0 forks source link

Limitation in custom search attribute names #171

Open dhiaayachi opened 2 months ago

dhiaayachi commented 2 months ago

To repro:

tctl adm cl asa -n A.B.C -t Text tctl adm cl asa -n A.B.C.D -t Text

(can also add with cli :) )

temporal workflow list -q "A.B.C='abc'" runs fine

temporal workflow list -q "A.B.C.D='abcd'" gives error:

Error: unable to list workflow executions: invalid query: malformed SQL query: syntax error at position 34 ('export TEMPORAL_CLI_SHOW_STACKS=1' to see stack traces)

seems in names with dots you cannot specify more than 2

dhiaayachi commented 1 month ago

Thanks for reporting this issue. The Temporal CLI currently has a limitation that doesn't allow specifying more than two levels in workflow names containing dots during filtering. You can work around this issue by using a different search attribute for filtering. We are aware of this issue and are working on resolving it in the future.

dhiaayachi commented 1 month ago

Thanks for reporting this issue. It seems like the issue is related to the way the Temporal CLI handles queries with workflow names that have multiple dots. Currently, the CLI might not support filtering by names with more than two dots.

You can work around this by using a different query filter. For example, you could filter by the Workflow Type, the Task Queue, or a custom Search Attribute.

Let me know if you have any more questions or would like to suggest a feature request!