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

Blink planner should parse char(n)/varchar(n)/decimal(p, s) inside a string to corresponding datatype

    XMLWordPrintableJSON

    Details

      Description

      could reproduce in  ScalarFunctionsTest:

      `testAllApis(
        'f31.cast(DataTypes.DECIMAL(38, 18)).truncate(2),
        "f31.cast(DECIMAL(38, 18)).truncate(2)",
        "truncate(cast(f31 as decimal(38, 18)), 2)",
        "-0.12")`

       

      A possible reason is LookupCallResolver treat decimal(38, 18) as a function call.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                docete Zhenghua Gao
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

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