-
Notifications
You must be signed in to change notification settings - Fork 91
Open
Labels
Milestone
Description
We should have a statically-imported wrapper for toIntExact() so that you can safely truncate longs to ints, with support for nulls.
Regular long-to-int cast are handled by io.deephaven.engine.table.impl.lang.QueryLanguageFunctionUtils#intCast(long), but we don't handle values that overflow int. And if you call java.lang.Math#toIntExact directly, NULL_LONG isn't handled.
Reactions are currently unavailable