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 2017/10/17 07:55:02 UTC
[jira] [Created] (FLINK-7859) Allow field annotations to define
TypeInformation
Timo Walther created FLINK-7859:
-----------------------------------
Summary: Allow field annotations to define TypeInformation
Key: FLINK-7859
URL: https://issues.apache.org/jira/browse/FLINK-7859
Project: Flink
Issue Type: Improvement
Components: Type Serialization System
Reporter: Timo Walther
Assignee: Timo Walther
Right now it is impossible to define custom TypeInformation for specific fields. For example, we cannot provide information about a {{Row}} type that is a field of Scala case class. An option would be to allow fields to be annotated with {{@TypeInfo}} such that a type information can be provided.
{code}
case class Test(a: Int, b: String, @TypeInfo(classOf[MyRowFactory]) c: Row)
{code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)