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

Confusing type mismatch error message for internal field access and collection functions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • FUN - Functions
    • None

    Description

      Type mismatch error for internal functions can be confusing for users because it includes the internal function name which is not present in the query.
      For example, 

      Error: function field-access-by-name expects its 1st input parameter to be type object but the actual input type is string

      The proposal is to eliminate function name and parameter number from the error message for the following internal functions: any-collection-member(), scan-collection(), field-access-by-index(), field-access-by-name(), field-access-nested()

      The source location information should be sufficient for user to identify the problem.

       

      Attachments

        Activity

          People

            dlychagin-cb Dmitry Lychagin
            dlychagin-cb Dmitry Lychagin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: