You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Timo Walther (Jira)" <ji...@apache.org> on 2022/01/13 17:26:00 UTC
[jira] [Closed] (FLINK-25341) Improve casting STRUCTURED type to STRING
[ https://issues.apache.org/jira/browse/FLINK-25341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Timo Walther closed FLINK-25341.
--------------------------------
Fix Version/s: 1.15.0
Resolution: Fixed
Fixed in master: 0157aa3bf9cd7bce32cd4abb6fa7b6fdd1de2677
> Improve casting STRUCTURED type to STRING
> -----------------------------------------
>
> Key: FLINK-25341
> URL: https://issues.apache.org/jira/browse/FLINK-25341
> Project: Flink
> Issue Type: Sub-task
> Components: Table SQL / Planner
> Reporter: Timo Walther
> Assignee: Francesco Guardiani
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.15.0
>
>
> Structured types currently use ROW to STRING logic. However, this is not very useful for users as the field order might be determined by Flink. Also, structured types has the nice property of defining a custom {{toString}} and attribute names.
> I would suggest the following:
> If the structured type has a {{StructuredType.getImplementationClass}} convert to external class and call {{toString}}.
> If no implementation class is present or the toString is not possible, use the string representation of maps.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)