[
https://issues.apache.org/jira/browse/FLINK-24473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17425607#comment-17425607
]
Spongebob commented on FLINK-24473:
-----------------------------------
Hi Jark, I am dealing with the RowData objects in RichSinkFunction and need to
extract values from them, but I can not extract the values correctly as they
were not string type. Maybe you can view the codes below
{code:java}
@Override
public void invoke(RowData value, Context context) {
String v = value.getString(0).toString;
}{code}
> getString value from any datatype columns
> -----------------------------------------
>
> Key: FLINK-24473
> URL: https://issues.apache.org/jira/browse/FLINK-24473
> Project: Flink
> Issue Type: Improvement
> Components: Table SQL / API
> Affects Versions: 1.12.4
> Reporter: Spongebob
> Priority: Minor
> Attachments: image-2021-10-07-21-17-20-192.png
>
>
> Hope flink would support getting string value from any other datatype column,
> such as from int、decimal column. At current flink would throw cast exception
> when we do that.
>
> !image-2021-10-07-21-17-20-192.png!
--
This message was sent by Atlassian Jira
(v8.3.4#803005)