Does anyone have an idea why I'm getting errors around trying to query on the column "primary" in the following data set?
Example data set from allServers:
[
{
"id": 313,
"hostname": "hostname1",
"serverType": "AS",
"primary": true,
"environmentType": "PROD"
},
{
"id": 785,
"hostname": "hostname2",
"serverType": "XSP",
"primary": false,
"environmentType": "PROD"
}
]
Query of the Resource "Query JSON with SQL":
SELECT * FROM {{allServers.data}} as stuff
WHERE stuff.serverType = 'AS'
AND stuff.primary = 'true'
The error shown when the query is run with "Preview":
message:"Parse error on line 3:
...= 'AS' AND stuff.primary = 'true'
----------------------^
Expecting 'LITERAL', 'BRALITERAL', 'VALUE', 'STAR', got 'PRIMARY'"
Many thanks!