An alignment strategy will accept an input Row and return an output Row that is compatible
with the target schema. This allows writing to sinks whereby the output schema is not the
same as the input schema.
For example, the input may come from a JDBC table, and an output Hive table only defines
a subset of the columns. Each row would need to be aligned so that it matches the subset schema.
Implementations are free to add values, drop values or throw an exception if they wish.
An alignment strategy will accept an input Row and return an output Row that is compatible with the target schema. This allows writing to sinks whereby the output schema is not the same as the input schema.
For example, the input may come from a JDBC table, and an output Hive table only defines a subset of the columns. Each row would need to be aligned so that it matches the subset schema.
Implementations are free to add values, drop values or throw an exception if they wish.