Nick Mosin
07/21/2025, 6:18 PM[
{...},
{...}
]
I now got
dataStream
.map(List::of)
.sinkTo(calcSink);
It work well without map but with map(List::of) I got error
Generic types have been disabled in the ExecutionConfig and type java.util.List is treated as a generic type.
And I don't understand how to manage that
Additional returns() not change anything
dataStream
.map(List::of)
.returns(TypeInformation.of(new TypeHint<>() {
}))
.sinkTo(calcSink);
Solution found:
dataStream
.map(List::of)
.returns(Types.LIST(TypeInformation.of(Data.class)))
.sinkTo(calcSink);