-
My goal: Need help to execute a query in my workflow to get results
-
Issue: I have a query to get some results from retool database. The query is as below (column name changed):
SELECT col1, col2
FROM mapping_table
WHERE col1 = ANY({{some_ids.data.test_results}})
The value of test_results is:
{"data":{"test_results":["lp-2493983235","lb-8109721066","lb-9927104553","lb-7881503220","lp-531786892"],"package_results":}}
This works fine if I run on staging environment but fails when I switch the environment to production environment, with this error:
{"data":null,"error":{"error":true,"message":"syntax error at or near ","","position":115,"isRetoolSystemError":false,"queryExecutionMetadata":{"estimatedResponseSizeBytes":99,"resourceTimeTakenMs":38,"isPreview":false,"resourceType":"retoolDb","lastReceivedFromResourceAt":1754554245377}}}
- Steps I've taken to troubleshoot:
I have checked the schema, they are identical on my staging and production environment.
- Additional info: Using retool paid plan
