Hello, I’m trying to retrieve everyone where firstName starts with “TEST_”. Please note ‘_’ is part of the string and not to match any single character. I’m using following query but I’m having error installing this query, did I got the syntax wrong?
Reference: https://docs.tigergraph.com/dev/gsql-ref/querying/operators-functions-and-expressions#escape-escape_char
CREATE OR REPLACE DISTRIBUTED QUERY temp() FOR GRAPH social {
ALL = {Person.*};
OTHER = SELECT s FROM ALL:s WHERE s.firstName LIKE “TEST\_%” ESCAPE “\”;
PRINT OTHER.size();
}
Error: Lexical error at line 1, column 148. Encountered: “\” (92), after : “”