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

Table API .plus should support string concatenation

    XMLWordPrintableJSON

Details

    Description

      It should be possible to concatenate strings using `plus`. Moreover, since plus is not very SQL-native for concatenating strings we should also have a fluent `.concat` function.

                TestSetSpec.forFunction(BuiltInFunctionDefinitions.PLUS)
                        .onFieldsWithData("Beginning", " Ending")
                        .andDataTypes(DataTypes.STRING(), DataTypes.STRING())
                        .testResult($("f0").plus($("f1")), "concat(f0, f1)", "Beginning Ending" ,
                                DataTypes.STRING())
      

      Attachments

        Issue Links

          Activity

            People

              dwysakowicz Dawid Wysakowicz
              dwysakowicz Dawid Wysakowicz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: