Uploaded image for project: 'Apache AsterixDB'
  1. Apache AsterixDB
  2. ASTERIXDB-2701

Usability fix for error messages about keywords!

    XMLWordPrintableJSON

Details

    Description

      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]
      

      Attachments

        Activity

          People

            dlychagin-cb Dmitry Lychagin
            dtabass Michael J. Carey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: