use of org.apache.flink.table.api.Schema.UnresolvedPhysicalColumn in project flink by apache.
the class SchemaTranslator method patchDataTypeFromDeclaredSchema.
private static DataType patchDataTypeFromDeclaredSchema(DataTypeFactory dataTypeFactory, DataType inputDataType, List<UnresolvedColumn> declaredColumns) {
final List<UnresolvedPhysicalColumn> physicalColumns = declaredColumns.stream().filter(SchemaTranslator::isPhysical).map(UnresolvedPhysicalColumn.class::cast).collect(Collectors.toList());
DataType patchedDataType = inputDataType;
for (UnresolvedPhysicalColumn physicalColumn : physicalColumns) {
patchedDataType = patchDataTypeFromColumn(dataTypeFactory, patchedDataType, physicalColumn);
}
return patchedDataType;
}
Aggregations