[
https://issues.apache.org/jira/browse/FLINK-36241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dawid Wysakowicz closed FLINK-36241.
------------------------------------
Resolution: Implemented
Implemented in 48a25afda8fc3e0b5737b8bb223689bcc8eb86dd
> Table API .plus should support string concatenation
> ---------------------------------------------------
>
> Key: FLINK-36241
> URL: https://issues.apache.org/jira/browse/FLINK-36241
> Project: Flink
> Issue Type: Improvement
> Components: Table SQL / API
> Reporter: Dawid Wysakowicz
> Assignee: Dawid Wysakowicz
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.0.0
>
>
> 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.
> {code}
> TestSetSpec.forFunction(BuiltInFunctionDefinitions.PLUS)
> .onFieldsWithData("Beginning", " Ending")
> .andDataTypes(DataTypes.STRING(), DataTypes.STRING())
> .testResult($("f0").plus($("f1")), "concat(f0, f1)",
> "Beginning Ending" ,
> DataTypes.STRING())
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)