You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug][Transform-V2][DataValidator] ClassCastException still occurs for BIGINT/FLOAT/DOUBLE fields and non-finite values (follow-up of #11804/#11855) #11919
I had searched in the issues and found no similar issues.
What happened
Description
Issue #11804 reported a ClassCastException when the RANGE rule of the DataValidator
transform validates a DECIMAL field. It was fixed by PR #11855, but that fix only
covers DECIMAL fields with numeric bounds.
The same ClassCastException still occurs in these normal scenarios:
BIGINT field (Long value) + integer bounds -> java.lang.Integer cannot be cast to java.lang.Long
DOUBLE/FLOAT field + integer bounds -> java.lang.Integer cannot be cast to java.lang.Double
Field value is NaN / +/-Infinity + integer bounds -> same crash
bin/seatunnel.sh --config config/job.conf -e local
Error Exception
java.lang.ClassCastException: class java.lang.Integer cannot be cast to class java.lang.Long
at java.lang.Long.compareTo(Long.java:...)
at org.apache.seatunnel.transform.validator.rule.RangeValidationRule.validate(...)
Activity