It’s WIP. There is a concept of applying functions during ingestion.
m
Mayank
03/08/2020, 5:42 PM
We should probably allow a custom field extractor that extracts a target schema from a source schema
k
Kishore G
03/08/2020, 5:56 PM
can you give me an example
m
Mayank
03/08/2020, 6:00 PM
For example, users can provide a custom class that extracts a field say f1.f2.f3 from input schema, applies a transform to their value and puts it in field f of output schema
Mayank
03/08/2020, 6:02 PM
That custom class takes an input record in input schema and translates to a record in output schema , and has the necessary logic to do so
Mayank
03/08/2020, 6:04 PM
And there can be inbuilt extractors/transformers for common requirements
k
Kishore G
03/08/2020, 6:30 PM
so the extractors will be specific to each format?
m
Mayank
03/08/2020, 6:35 PM
No, we can have a format -> genericRow converter in front. And the extractor can be genericRow -> genericRow