echauchot commented on a change in pull request #18544:
URL: https://github.com/apache/flink/pull/18544#discussion_r808009701
##########
File path:
flink-connectors/flink-connector-cassandra/src/test/java/org/apache/flink/streaming/connectors/cassandra/CassandraConnectorITCase.java
##########
@@ -206,6 +209,79 @@ protected Cluster buildCluster(Cluster.Builder builder) {
}
}
+ private static String setTableNameInPojo(Class<?> claz, String testName)
throws Exception {
+ Table clazTableAnnotation = claz.getAnnotation(Table.class);
+ final String newName = clazTableAnnotation.name() + testName;
+ // BEWARE it is JDK 8 specific
+ final Method annotationDataMethod =
Class.class.getDeclaredMethod("annotationData", null);
Review comment:
@zentol I did the replacement of the native reflection code to
ByteBuddy. But it seems that ByteBuddy needs to subclass the Pojo class to be
able to manipulate its annotations. The problem with that is that the Cassandra
mapper downstream no longer sees the fields defined in the super-class (Pojo)
if we use ByteBuddy annotated sub-class. WDYT ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]