FYI, I have posted the same question (a bit more polished) in https://stackoverflow.com/questions/61193662/dataset-datastream-of-type-class-interface
Also, you can find the code in this repo: https://github.com/salvalcantara/flink-events-and-polymorphism -- Sent from: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/