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

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: FUN - Functions
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: