Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
03-12-2020 05:26 AM
Hello team ,
Need your help in correcting the query:
MATCH(n:FTTX_PATH) where split(n.PATH_NAME,'_')[2] contains 'AAR' AS EDU RETURN n.EDU
ERROR:
Neo.ClientError.Statement.SyntaxError: Invalid input 'S': expected 'n/N' (line 1, column 69 (offset: 68))
"MATCH(n:FTTX_PATH) where split(n.PATH_NAME,'_')[2] contains 'AAR' AS EDU RETURN n.EDU"
Regards
Akshat
03-12-2020 05:57 AM
It isn't expressed this way. Rather do this:
=~ '.*AAR.*'
03-12-2020 06:25 AM
Hello David,
Still getting the error:
MATCH(n:FTTX_PATH) where split(n.PATH_NAME,'_')[2] =~ '.AAR.' AS EDU RETURN n.EDU
Neo.ClientError.Statement.SyntaxError: Invalid input 'S': expected 'n/N' (line 1, column 66 (offset: 65))
"MATCH(n:FTTX_PATH) where split(n.PATH_NAME,'_')[2] =~ '.AAR.' AS EDU RETURN n.EDU"
^
I believe it is having issue with alias name ( AS ).
Best Regards
Akshat
All the sessions of the conference are now available online