streamshub / flink-sql-examples

Apache License 2.0
1 stars 6 forks source link

Make better use of schema classes in data-generator app #2

Closed katheris closed 2 months ago

katheris commented 2 months ago

From PR #1:

I wonder it would be better if the contract for Data was SpecificRecord generate() then in each Data implementation you'd be working with the typesafe, generated class, instead of a Map.

Currently we only use the generated schema classes to grab the String representation of the schema. We could make better use of them and actually return the typesafe class when generating data, rather than a Map.