You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "buptljy (JIRA)" <ji...@apache.org> on 2018/08/10 07:02:00 UTC

[jira] [Created] (FLINK-10120) Support string representation for types like array

buptljy created FLINK-10120:
-------------------------------

             Summary: Support string representation for types like array
                 Key: FLINK-10120
                 URL: https://issues.apache.org/jira/browse/FLINK-10120
             Project: Flink
          Issue Type: Improvement
          Components: Type Serialization System
            Reporter: buptljy


Now we have to use row type to replace array type when we want to create a table schema or format schema with nested types. For example, we have to use

{code:java}
Types.ROW(
		new String[]{"a", "b", "c"},
		new TypeInformation[]{Types.STRING(), Types.INT(), Types.ROW(
				new String[]{"a", "b", "c"},
				new TypeInformation[]{Types.STRING(), Types.STRING(),Types.STRING()})}
{code}
instead of 

{code:java}
Types.ROW(
		new String[]{"a", "b", "c"},
		new TypeInformation[]{Types.STRING(), Types.INT(), BasicArrayTypeInfo.STRING_TYPE_INFO})
{code}
because the program will fail in TypeStringUtils.readTypeInfo.




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)