getTargetColumnSchema

open fun getTargetColumnSchema(tableColumnMetadata: TableColumnMetadata, expectedValueType: KType): ColumnSchema?

Returns the target schema of the given column which buildDataColumn will adhere to. This schema corresponds to type P, in the sense that it will describe the schema of DataColumn<P>.

If null is returned, the schema cannot be determined before looking at the actual data.

Return

the target schema of the given column, or null if it cannot be determined from the types alone.

Parameters

tableColumnMetadata

all information we have about the column

expectedValueType

the type of the values after preprocessing, D