Github user twalthr commented on a diff in the pull request:
    --- Diff: 
    @@ -79,14 +83,27 @@ class FlinkTypeFactory(typeSystem: RelDataTypeSystem) 
extends JavaTypeFactoryImp
       private def createAdvancedType(typeInfo: TypeInformation[_]): 
RelDataType = typeInfo match {
    -    // TODO add specific RelDataTypes
    -    // for PrimitiveArrayTypeInfo, ObjectArrayTypeInfo, CompositeType
    +    case ct: CompositeType[_] =>
    +      new CompositeRelDataType(ct, this)
    +    // TODO add specific RelDataTypes for PrimitiveArrayTypeInfo, 
         case ti: TypeInformation[_] =>
           new GenericRelDataType(typeInfo, 
         case ti@_ =>
           throw TableException(s"Unsupported type information: $ti")
    +  override def createTypeWithNullability(
    +      relDataType: RelDataType,
    +      nullable: Boolean)
    +    : RelDataType = relDataType match {
    +    case composite: CompositeRelDataType =>
    +      // at the moment we do not care about nullability
    --- End diff --
    `CompositeRelDataType` is the first custom type and thus not supported by 
the superclass (`JavaTypeFactory`) that's why I had to override this method. 
The super method does some copying logic and sets the nullability of every 
field of the record. At the moment every field in the Table API can be null 
anyway, so I skipped this logic here until we provide full nullabilty support 
through the entire API.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

Reply via email to