Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-16181

IfCallGen will throw NPE for primitive types in blink

    XMLWordPrintableJSON

Details

    Description

      It can be reproduced by a simple test case:

      Add below to ScalarOperatorsTest

      testSqlApi("IF(true, CAST('non-numeric' AS BIGINT), 0)", "null")
      

       

      IMO, it's IfCallGen's bug, which should judge the nullTerm of operands first before assignment.

      cc lzljs3620320 jark

      Attachments

        Issue Links

          Activity

            People

              libenchao Benchao Li
              libenchao Benchao Li
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m