Hi Tison,

Thanks for raising this.. In most places doing a HoodieTable<?> wildcard
should be totally acceptable, since much of the code actually does not
depend on the templatized type at all..

Def, worth taking another look holistically and see if we can address
this..

My 2c.
Vinoth


On Mon, Apr 20, 2020 at 11:32 PM tison <[email protected]> wrote:

> Hi developers,
>
> Recently when I went through Hudi codebase, I found some annoying warning
> 'raw use of
> parameterized class' and some other generic type related.
>
> It seems the root of this wide usage of raw type is HoodieRecordPayload
> where
>
>   HoodieRecordPayload<T extends HoodieRecordPayload>
>
> should have been
>
>   HoodieRecordPayload<T extends HoodieRecordPayload<T>>
>
> I'm not sure what community think of this wide usage of raw type and given
> it affect most of our
> code I'd like to start this thread for advice. Personally explicit type
> signature benefits from strong
> type system but it might cause some signature breaking changes as well as
> require a huge
> engineering effort.
>
> Shall Hudi live with these raw types? Or we will have a plan migrate to
> explicit generic type?
>
> Best,
> tison.
>

Reply via email to