Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-12184

Java UDF increment on an empty string is inconsistent

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 4.3.0
    • Impala 4.3.0
    • None
    • None
    • ghx-label-3

    Description

      Java 8 and Java 11 seem to match different signatures forĀ select increment("");, and one is implemented to return null for empty string while the other ends up returning empty string.

      When passed a string, which signature of BufferAlteringUdf matches it appears to be arbitrary: in Java 8, Class.getMethods() returns the BytesWritable signature first (and the Thrift STRING type fits that signature) while in Java 11 it returns the Text signature first (which Thrift STRING type also matches).

      This causes failures in query_test.test_udfs.TestUdfExecution.test_java_udfs (e.g. https://jenkins.impala.io/job/ubuntu-20.04-from-scratch-java11/11/).

      Attachments

        Issue Links

          Activity

            People

              prozsa Peter Rozsa
              MikaelSmith Michael Smith
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: