You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Michael J. Carey (Jira)" <ji...@apache.org> on 2020/02/19 16:50:00 UTC
[jira] [Created] (ASTERIXDB-2701) Usability fix for error messages
about keywords!
Michael J. Carey created ASTERIXDB-2701:
-------------------------------------------
Summary: Usability fix for error messages about keywords!
Key: ASTERIXDB-2701
URL: https://issues.apache.org/jira/browse/ASTERIXDB-2701
Project: Apache AsterixDB
Issue Type: Bug
Components: COMP - Compiler, SQL - Translator SQL++
Affects Versions: 0.9.4.1, 0.9.5
Reporter: Michael J. Carey
Assignee: Dmitry Lychagin
Fix For: 0.9.5
HERE IS AN ERRONEOUS QUERY:
{{LET stop = ["is", "a", "and", "the", "of"]
FROM Messages AS msg, word_tokens(msg.message) AS word
WHERE NOT word IN ignore
GROUP BY word
SELECT word, COUNT(1) AS wordcnt
ORDER BY wordcnt DESC;}}
AND HERE IS ITS ERROR MESSAGE:
ASX1001: Syntax error: In line 3 >>LET stop = ["is", "a", "and", "the", "of"]<< Encountered "stop" at column 5. [CompilationException]
AND HERE IS WHAT I WISH ITS ERROR MESSAGE WAS:
ASX1001: Syntax error: In line 3 >>LET stop = ["is", "a", "and", "the", "of"]<< Encountered keyword "stop" at column 5. [CompilationException]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)