CREATE QUERY test_demo(/* Parameters here */) FOR GRAPH traffic {
/* Write query logic here */
STRING d = datetime_format(now(),"%Y-%m-%d%");
PRINT d;
}
In GSQL, it is required to clearly separate the definition of data structure and running logics.
Please split that line into two lines.
string d;
d = datetime_format…
print…
Thanks.