There's a lack of information for the caller about the actual implementation of the trait ErrorHandling. The information might be useful for whatever reason - call optimization etc.
Feature
Add methods to the trait ErrorHandling that will return the DataType of the returned ErrorColumn and of the aggregation (that should be probably Option[DataType] in case the aggregation actually does not add a column.
Advanced:
Try to find a solution that class ErrorColumn would be able to return the attached Column type too (while keeping it still a value-class).
Background
There's a lack of information for the caller about the actual implementation of the
trait ErrorHandling
. The information might be useful for whatever reason - call optimization etc.Feature
Add methods to the
trait ErrorHandling
that will return theDataType
of the returnedErrorColumn
and of the aggregation (that should be probablyOption[DataType]
in case the aggregation actually does not add a column.Advanced: Try to find a solution that
class ErrorColumn
would be able to return the attached Column type too (while keeping it still a value-class).