pluto icon indicating copy to clipboard operation
pluto copied to clipboard

API: Support strong type checking for union operator

Open sanha opened this issue 9 years ago • 1 comments

For union operator, two streams to be unified must have same type. The problem is, they contains their output data type as a Java generic.

At now, we provide a weak level of dynamic type checking using Java reflection system. However, it is very weak because it can only distinguish between shallow type like Integer and String. If the generics that these streams have are like Tuple2<String, Integer> and Tuple2<String, String>, our weak type checker will pass them.

Therefore, we need to implement strong type checking code for union operator.

This issue is related with #63

sanha avatar Jul 15 '16 06:07 sanha

~~TypeToken of Google guava might be helpfull~~ No, it doesn't work.

sanha avatar Jul 19 '16 07:07 sanha