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

Incorrect null/missing handling in string/binary concat functions and concat operator

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: FUN - Functions
    • Labels:
      None

      Description

      There a couple of issue with null/missing handling in string_concat() and binary_concat().

      1) The return type should always beĀ inferred as unknownable string. Currently the return type is inferred as string if input cannot be null/missing. This is incorrect because these functions return null/missing not only if the input argument is null/missing, but also if an item in the input list is null/missing

      2) These functions should return 'missing' in input list is [ null, missingĀ ]. Currently they both return 'null' in this case

      String concatenation operator (||) is also affected by these issues because it's rewritten into string_concat()

        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: