AbsaOSS / spark-commons

Apache License 2.0
7 stars 0 forks source link

Add implicits for easier usage of the `trait` #89

Closed benedeki closed 1 year ago

benedeki commented 1 year ago

Background

The functions and classes created as part of error handling provide the functionality but might lack comfort of use.

Feature

Create some implicits to make the work with error handling (on the calling side not the implementator) fluider.

Proposed Solution [Optional]

Solution Ideas:

  1. Implicit class on DataFrame adding ErrorHandling's functions aggregateErrorColumns, putError and putErrorsWithGrouping, with ErrorHandling as an implicit parameter to these functions.
  2. Implicit conversion from ErrorColumn to Column
  3. Use the new implicits in the existing code so far