AbsaOSS/cobrix

Add support for `_` for key generation

Closed this issue · 0 comments

Background

When data has multiple levels of hierarchy and Cobrix is used to generate corresponding keys, sometimes the list of segments can be long for the leaf level of the hierarchy:

.option("segment_id_level0", "SEG001")
.option("segment_id_level1", "SEG002,SEG003")
.option("segment_id_level2", "SEG004,SEG005,SEG006,SEG007,SEG008,SEG009")

Feature

Add support for * and _ for key generation.

Proposed Solution

It could be nice to add _ meaning "the rest of segments.

Example

.option("segment_id_level0", "SEG001")
.option("segment_id_level1", "SEG002,SEG003")
.option("segment_id_level2", "_")