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
I had searched in the issues and found no similar issues.
What happened
NumericFunction in the Zeta SQL transform routes values through double and narrows CEIL/FLOOR results to int. No exception is raised — the job succeeds and writes wrong numbers to
the sink.
Root causes: ceil()/floor() return int and ZetaSQLType declares INT_TYPE/DOUBLE_TYPE for them; round()'s BIGDECIMAL branch goes through BigDecimal.valueOf(v1.doubleValue()); mod()
converts both operands with doubleValue() (which also makes its divide-by-zero guard miss divisors that underflow to 0.0).
SeaTunnel Version
dev (2.3.13-SNAPSHOT)
SeaTunnel Config
hocon
transform {
Sql {
source_table_name = "fake"result_table_name = "out"query = "select CEIL(long_v) as c, FLOOR(double_v) as f, ROUND(decimal_v, 2) as r, MOD(long_v, 2) as m from fake"
}
}
Running Command
./bin/seatunnel.sh --config ./config/repro.conf -e local
Error Exception
None — this is silent data corruption; the job reports success.
Zeta or Flink or Spark Version
Zeta (engine-independent — the bug is in the transform)
I traced through the numeric-function path here. This is a real bug because these functions silently narrow through double / int conversions and can produce successful jobs with wrong sink values.
Since you already opened PR #11697 on August 7, 2026, the next step is to continue review there rather than splitting the technical discussion across two threads. Keeping the fix, tests, and incompatible-change notes together in that PR is the right path. Thanks for driving it end to end.
I re-checked the issue state here. There are now multiple PRs linked to the same numeric-function corruption bug: #11697 and #11712.
Because this is a silent-wrong-result problem, we should avoid splitting the fix discussion and regression coverage across parallel PRs. Please converge on one canonical PR for this issue and continue the detailed review there, including:
exact numeric semantics for BIGINT / DECIMAL across CEIL / FLOOR / ROUND / TRUNC / MOD;
regression tests that prove values are not narrowed through double / int on the affected execution path;
and any incompatible-change note if the previous wrong results were already observable behavior for existing users.
Once one PR is chosen as the primary fix path, closing or superseding the overlapping PR will make review much easier and avoid ending up with partial fixes for the same bug.
Activity
DanielLeens commentedon Aug 8, 2026
I traced through the numeric-function path here. This is a real bug because these functions silently narrow through
double/intconversions and can produce successful jobs with wrong sink values.Since you already opened PR #11697 on August 7, 2026, the next step is to continue review there rather than splitting the technical discussion across two threads. Keeping the fix, tests, and incompatible-change notes together in that PR is the right path. Thanks for driving it end to end.
DanielLeens commentedon Aug 8, 2026
I re-checked the issue state here. There are now multiple PRs linked to the same numeric-function corruption bug: #11697 and #11712.
Because this is a silent-wrong-result problem, we should avoid splitting the fix discussion and regression coverage across parallel PRs. Please converge on one canonical PR for this issue and continue the detailed review there, including:
CEIL/FLOOR/ROUND/TRUNC/MOD;double/inton the affected execution path;Once one PR is chosen as the primary fix path, closing or superseding the overlapping PR will make review much easier and avoid ending up with partial fixes for the same bug.
[Bug][Transform-V2] Fix CEIL/FLOOR/ROUND/MOD/TRUNC silently corruptin…
[Bug][Transform-V2] Fix CEIL/FLOOR/ROUND/MOD/TRUNC silently corruptin…