You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Timo Walther (Jira)" <ji...@apache.org> on 2021/12/16 08:54:00 UTC
[jira] [Created] (FLINK-25341) Improve casting structured type to STRING
Timo Walther created FLINK-25341:
------------------------------------
Summary: 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
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, use the string representation of maps.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)