I'm trying to get entity from Google DataStore using Admin Console.
I use SELECT * FROM User where __key__ = KEY('ag9wYWdhbGd1eS1zdGF0aWNyHAsSBUNhY2hlIhEvYnV0dG9ucy9lZGl0LmdpZgw')
.
In accordance with GQL docs it should work
KEY('encoded key')
OR
KEY('kind','name'/ID [, 'kind', 'name'/ID...])
but I'm getting
GQL query error ... Encountered "\'ag9wYWdhbGd1eS1zdGF0aWNyHAsSBUNhY2hlIhEvYnV0dG9ucy9lZGl0LmdpZgw\'" at line 1, column 40.
Was expecting one of: <UNQUOTED_NAME> ... <QUOTED_NAME> ...
But the request SELECT * FROM User where __key__ = KEY(User, 5126463837700096)
works fine.
How can I get the entity using string-encoded key?