Repository navigation
gogen: WHERE compares in int8 when either side is (abapiti 043) - #700
Conversation
A WHERE condition of DELETE or LOOP over a table compared two numbers in i whenever neither was f, so an int8 component against an int8 value lowered to `r.k == abap.I8ToI(v)`: a Go build error (mismatched types int64 and int32), and an overflow at run time for values past the range of i had it compiled. abapiti's native zabaplint hit it through osabap (DELETE entries WHERE k = p0, both int8). The calculation type is now f when either side is f, else int8 when both sides are i or int8 and one is int8, else i as before; an i or int8 component of the other type is converted to it (the table_line form too). A packed side keeps its old lowering. LOOP ... USING KEY with such a WHERE, or one on a nested component, is refused: its key loop compares the plain component (critic round; ZCL_GOGEN_T_RF_WHEREI8). ZCL_GOGEN_T_WHEREI8 pins int8 = int8, int8 = i, i = int8 and int8 > int8 with a value past the range of i, in both emitters (unmeasured, from the ABAP documentation of comparison types). Red before: the Go build fails with abapiti's error. semantics.mjs: 390 ok, 0 FAIL. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01VUy1x5QYimNEytFZpg7t7S
|
Preview: open the launchpad - the OData gateway, the demo and Zork run in your browser, no server. Screenshots - built from |
PR tests: 🟢 passCommit:
ADT lifecycle: PASSCommit: 29299db · SDK 8.4.3 · VSP baac6f4c97fb3ea1dee9b7772e24d52855af2985 124 PASS, 4 N/A, 3 MISSING Functional operations, active readback, cleanup and warm-swap checks determine the required gate. Timing advisory: QUIETClient wall time in ms. VSP update includes Check and Activate. Cold REPORT/DDLS are measured too. Parallel CI job; operations within each server are sequential. Reference: median of ABAP-FS/CLAS/edit, ABAP-FS/CLAS/readback-active, ABAP-FS/INTF/edit, ABAP-FS/INTF/readback-active; current 38 ms. History: 5/5 compatible green main runs (newest first; fewer when unavailable). Each run is normalized by its own reference before taking the main median.
Warn when at least 2 operations exceed 1.3x, or any operation reaches 2x. Timing never fails the CI gate.
Required merge checks: test + scan. ADT lifecycle timing, Docker, gogen, preview, size and queue are advisory on PRs; lifecycle functional checks remain required (Alice, 2026-10-07). |
A WHERE condition of DELETE or LOOP over a table compared two numbers in
i whenever neither was f, so an int8 component against an int8 value
lowered to
r.k == abap.I8ToI(v): a Go build error (mismatched typesint64 and int32), and an overflow at run time for values past the range
of i had it compiled.
abapiti's native zabaplint hit it through osabap (DELETE entries WHERE
k = p0, both int8).
The calculation type is now f when either side is f, else int8 when
both sides are i or int8 and one is int8, else i as before; an i or int8
component of the other type is converted to it (the table_line form too).
A packed side keeps its old lowering. LOOP ... USING KEY with such a WHERE,
or one on a nested component, is refused: its key loop compares the
plain component (critic round; ZCL_GOGEN_T_RF_WHEREI8).
ZCL_GOGEN_T_WHEREI8 pins int8 = int8, int8 = i, i = int8 and int8 > int8
with a value past the range of i, in both emitters (unmeasured, from the
ABAP documentation of comparison types). Red before: the Go build fails
with abapiti's error. semantics.mjs: 390 ok, 0 FAIL.
codex critic, one round: FIX (USING KEY loops ignored the converted component, a packed side changed, an inaccurate truncation claim); all three fixed.
🤖 Generated with Claude Code
https://claude.ai/code/session_01VUy1x5QYimNEytFZpg7t7S