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

Invalid queries returning some results

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: *DB - AsterixDB
    • Labels:
      None

      Description

      I was investigating a sporadic failure in the test case aggregate/avg_mixed which does nothing but executes the below query and makes sure that an exception with the message "Unexpected type STRING in aggregation input stream. Expected type FLOAT. [AlgebricksException]" is thrown:

      avg(
      for $x in [float("2.0"), "hello world", 93847382783847382, date("2013-01-01")]
      return $x
      )

      However, if you execute the query few times, sometimes it will return the error message as well as some results!!
      The output looks something like this:
      Error:
      Results:
      2.0d

      Message:
      Unexpected type STRING in aggregation input stream. Expected type FLOAT. [AlgebricksException]

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mhubail Murtadha Makki Al Hubail
                Reporter:
                mhubail Murtadha Makki Al Hubail
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: