I have a query that I run in the web console:
SELECT $prop1 FROM $bucket WHERE type = '$type' AND $bucket.$prop2 = '$value'
It returns one result. When I run this query from the command line, it returns no results:
curl -d "statement=SELECT $prop1 FROM $bucket WHERE type = '$type' AND $bucket.$prop2 = '$value'" -v http://$query_node_url:$port/query -u $user:$password | jq
The JSON I get back looks like this:
{ "requestID": "cbd3cc4c-e004-4b4c-956e-9e633a36c29a", "signature": { "userPk": "json" }, "results": [], "status": "success", "metrics": { "elapsedTime": "4.818299ms", "executionTime": "4.768587ms", "resultCount": 0, "resultSize": 0 }
No results!
Could this be a permissions issue? If not, what?
Thanks.