Github user ctamisier commented on the issue:
https://github.com/apache/flink/pull/5964
Ok great!, I'd like to mention that `CassandraPojoSinkExample.main()`
doesn't seem to work:
`source.getType()` is computed as a `GenericType` in the
`env.fromCollection(messages);`.
So when `CassandraSink.addSink(source)` is called the
`java.lang.IllegalArgumentException: No support for the type of the given
DataStream:
GenericType<org.apache.flink.streaming.connectors.cassandra.example.Message>`
is thrown because it doesn't match `PojoTypeInfo` (`typeInfo instanceof
PojoTypeInfo`, and neither the other candidates) as we would like to have I
guess according to the `CassandraPojoSinkExample` javadocs.
Maybe we can fix this as well for this PR ? (because
CassandraPojoSinkExample.main() seems to be a concrete running example of the
`CassandraPojoSinkBuilder` that this PR is modifying)
---