ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Valentin Kulichenko <valentin.kuliche...@gmail.com>
Subject Re: Ignite 3.0 Tuple API: how to check if value is null?
Date Mon, 05 Jul 2021 21:43:31 GMT

That's a good point, but I don't think there is a significantly better way
of doing this in Java.

There should be a way to check if a field is nullable or not though. Schema
already provides this information, doesn't it?


On Mon, Jul 5, 2021 at 11:03 AM Pavel Tupitsyn <ptupitsyn@apache.org> wrote:

> Igniters,
> Looks like Tuple API has no efficient way to tell if a value for a nullable
> column of primitive type is null.
> - Tuple#intValue() will return 0 when the actual value is null => not clear
> if 0 is 0 or null.
> - Tuple#value() works, but is more expensive due to boxing and type lookup.
> Any ideas on how to improve this?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message