Skip to content

gogen: WHERE compares in int8 when either side is (abapiti 043) - #700

Merged
oisee merged 1 commit into
mainfrom
fix/where-int8
Oct 9, 2026
Merged

oisee merged 1 commit into
mainfrom
fix/where-int8

Conversation

@oisee

@oisee oisee commented Oct 9, 2026

Copy link
Copy Markdown
Owner

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.

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

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
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Preview: open the launchpad - the OData gateway, the demo and Zork run in your browser, no server.

Screenshots - built from 29299db

@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

PR tests: 🟢 pass

Commit: b4e9ded5 · Full test log

Job Result Time
build 🟢 pass 327 s
e2e 🟢 pass 147 s
osgo-host 🟢 pass 230 s
packaging 🟢 pass 295 s
kernel-conformance 🟢 pass 232 s
adt-lifecycle 🟢 pass 1032 s
suites (4) 🟢 pass 1475 s
suites (5) 🟢 pass 1048 s
suites (2) 🟢 pass 963 s
suites (1) 🟢 pass 1176 s
suites (3) 🟢 pass 619 s
suites (6) 🟢 pass 605 s

ADT lifecycle: PASS

Commit: 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: QUIET

Client 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.

Client/type/operation Median ms Samples ms main ms (raw median) Current/reference main normalized median Ratio Main runs Timing
ABAP-FS/CLAS/edit 59 83, 59, 45 148 1.553 3.083 0.504x 5 quiet
ABAP-FS/CLAS/check 1953 1545, 1953, 1978 2008 51.395 46.234 1.112x 5 quiet
ABAP-FS/CLAS/activate-edit 3037 2380, 3037, 3052 3226 79.921 73.838 1.082x 5 quiet
ABAP-FS/CLAS/readback-active 20 23, 14, 20 22 0.526 0.537 0.981x 5 quiet
ABAP-FS/INTF/edit 56 56, 45, 58 68 1.474 1.514 0.974x 5 quiet
ABAP-FS/INTF/check 1951 1951, 2076, 1777 2049 51.342 49.135 1.045x 5 quiet
ABAP-FS/INTF/activate-edit 2893 2568, 3202, 2893 3378 76.132 70.694 1.077x 5 quiet
ABAP-FS/INTF/readback-active 13 13, 14, 13 21 0.342 0.421 0.813x 5 quiet
ABAP-FS/PROG/edit 61 61, 69, 59 103 1.605 2.102 0.764x 5 quiet
ABAP-FS/PROG/check 2945 3739, 2945, 2799 4618 77.500 95.755 0.809x 5 quiet
ABAP-FS/PROG/activate-edit 28417 32086, 28417, 27765 47334 747.816 986.125 0.758x 5 quiet
ABAP-FS/PROG/readback-active 50 51, 46, 50 76 1.316 1.583 0.831x 5 quiet
ABAP-FS/INCL/edit 62 62, 61, 109 88 1.632 1.816 0.898x 5 quiet
ABAP-FS/INCL/check 1916 1557, 1916, 2053 2142 50.421 48.144 1.047x 5 quiet
ABAP-FS/INCL/activate-edit 3003 2398, 3003, 3013 3354 79.026 75.532 1.046x 5 quiet
ABAP-FS/INCL/readback-active 18 18, 33, 17 23 0.474 0.561 0.844x 5 quiet
ABAP-FS/DDLS/edit 60 43, 62, 60 104 1.579 2.122 0.744x 5 quiet
ABAP-FS/DDLS/check 4281 4418, 3775, 4281 6828 112.658 142.250 0.792x 5 quiet
ABAP-FS/DDLS/activate-edit 32911 40264, 31000, 32911 47376 866.079 987.000 0.877x 5 quiet
ABAP-FS/DDLS/readback-active 55 55, 49, 160 82 1.447 1.708 0.847x 5 quiet
VSP/CLAS/edit+check+activate 4960 4068, 4960, 5130 5332 130.526 132.685 0.984x 5 quiet
VSP/INTF/edit+check+activate 4742 4069, 4808, 4742 5617 124.789 123.459 1.011x 5 quiet
VSP/PROG/edit+check+activate 30080 29964, 30080, 33845 46830 791.579 975.625 0.811x 5 quiet
VSP/INCL/edit+check+activate 5410 4832, 5983, 5410 5129 142.368 120.756 1.179x 5 quiet
VSP/DDLS/edit+check+activate 35375 35375, 37139, 34621 56635 930.921 1176.757 0.791x 5 quiet
Client Type Operation Result ms Note
ABAP-FS DEVC validate PASS 15
ABAP-FS DEVC create PASS 73
ABAP-FS DEVC edit N/A Package metadata update has no SDK/VSP source operation
ABAP-FS DEVC activate N/A Package is created active; no source activation
ABAP-FS CLAS validate PASS 11
ABAP-FS CLAS create PASS 42
ABAP-FS CLAS write-initial PASS 56
ABAP-FS INTF validate PASS 10
ABAP-FS INTF create PASS 28
ABAP-FS INTF write-initial PASS 41
ABAP-FS PROG validate MISSING 8 /sap/bc/adt/programs/validation is not served by OSD
ABAP-FS PROG create PASS 30
ABAP-FS PROG write-initial PASS 47
ABAP-FS INCL validate MISSING 5 /sap/bc/adt/includes/validation is not served by OSD
ABAP-FS INCL create PASS 4608
ABAP-FS INCL write-initial PASS 493
ABAP-FS DDLS validate MISSING 7 /sap/bc/adt/ddic/ddl/validation is not served by OSD
ABAP-FS DDLS create PASS 280
ABAP-FS DDLS write-initial PASS 303
ABAP-FS ALL5 activate-initial PASS 27337
ABAP-FS CLAS edit #1 PASS 83
ABAP-FS CLAS check #1 PASS 1545
ABAP-FS CLAS activate-edit #1 PASS 2380
ABAP-FS CLAS readback-active #1 PASS 23
ABAP-FS CLAS edit #2 PASS 59
ABAP-FS CLAS check #2 PASS 1953
ABAP-FS CLAS activate-edit #2 PASS 3037
ABAP-FS CLAS readback-active #2 PASS 14
ABAP-FS CLAS edit #3 PASS 45
ABAP-FS CLAS check #3 PASS 1978
ABAP-FS CLAS activate-edit #3 PASS 3052
ABAP-FS CLAS readback-active #3 PASS 20
ABAP-FS INTF edit #1 PASS 56
ABAP-FS INTF check #1 PASS 1951
ABAP-FS INTF activate-edit #1 PASS 2568
ABAP-FS INTF readback-active #1 PASS 13
ABAP-FS INTF edit #2 PASS 45
ABAP-FS INTF check #2 PASS 2076
ABAP-FS INTF activate-edit #2 PASS 3202
ABAP-FS INTF readback-active #2 PASS 14
ABAP-FS INTF prepare-baseline PASS 21559
ABAP-FS INTF edit #3 PASS 58
ABAP-FS INTF check #3 PASS 1777
ABAP-FS INTF activate-edit #3 PASS 2893
ABAP-FS INTF readback-active #3 PASS 13
ABAP-FS PROG edit #1 PASS 61
ABAP-FS PROG check #1 PASS 3739
ABAP-FS PROG activate-edit #1 PASS 32086
ABAP-FS PROG readback-active #1 PASS 51
ABAP-FS PROG edit #2 PASS 69
ABAP-FS PROG check #2 PASS 2945
ABAP-FS PROG activate-edit #2 PASS 28417
ABAP-FS PROG readback-active #2 PASS 46
ABAP-FS PROG edit #3 PASS 59
ABAP-FS PROG check #3 PASS 2799
ABAP-FS PROG activate-edit #3 PASS 27765
ABAP-FS PROG readback-active #3 PASS 50
ABAP-FS INCL edit #1 PASS 62
ABAP-FS INCL check #1 PASS 1557
ABAP-FS INCL activate-edit #1 PASS 2398
ABAP-FS INCL readback-active #1 PASS 18
ABAP-FS INCL edit #2 PASS 61
ABAP-FS INCL check #2 PASS 1916
ABAP-FS INCL activate-edit #2 PASS 3003
ABAP-FS INCL readback-active #2 PASS 33
ABAP-FS INCL edit #3 PASS 109
ABAP-FS INCL check #3 PASS 2053
ABAP-FS INCL activate-edit #3 PASS 3013
ABAP-FS INCL readback-active #3 PASS 17
ABAP-FS DDLS edit #1 PASS 43
ABAP-FS DDLS check #1 PASS 4418
ABAP-FS DDLS activate-edit #1 PASS 40264
ABAP-FS DDLS readback-active #1 PASS 55
ABAP-FS DDLS edit #2 PASS 62
ABAP-FS DDLS check #2 PASS 3775
ABAP-FS DDLS activate-edit #2 PASS 31000
ABAP-FS DDLS readback-active #2 PASS 49
ABAP-FS DDLS edit #3 PASS 60
ABAP-FS DDLS check #3 PASS 4281
ABAP-FS DDLS activate-edit #3 PASS 32911
ABAP-FS DDLS readback-active #3 PASS 160
VSP DEVC create PASS 74
VSP DEVC edit N/A VSP has CreatePackage; no package metadata update tool
VSP DEVC activate N/A Created active
VSP CLAS create+write+activate PASS 26309
VSP CLAS edit+check+activate #1 PASS 4068
VSP CLAS edit+check+activate #2 PASS 4960
VSP CLAS edit+check+activate #3 PASS 5130
VSP CLAS check-explicit PASS 1958
VSP CLAS activate-explicit PASS 2115
VSP CLAS readback-vsp PASS 86
VSP INTF create+write+activate PASS 38552
VSP INTF edit+check+activate #1 PASS 4069
VSP INTF edit+check+activate #2 PASS 4808
VSP INTF edit+check+activate #3 PASS 4742
VSP INTF check-explicit PASS 1744
VSP INTF activate-explicit PASS 2021
VSP INTF readback-vsp PASS 14
VSP PROG create+write+activate PASS 36647
VSP PROG edit+check+activate #1 PASS 29964
VSP PROG edit+check+activate #2 PASS 30080
VSP PROG edit+check+activate #3 PASS 33845
VSP PROG check-explicit PASS 1212
VSP PROG activate-explicit PASS 14948
VSP PROG readback-vsp PASS 83
VSP INCL create+write+activate PASS 32841
VSP INCL edit+check+activate #1 PASS 4832
VSP INCL edit+check+activate #2 PASS 5983
VSP INCL edit+check+activate #3 PASS 5410
VSP INCL check-explicit PASS 2086
VSP INCL activate-explicit PASS 2591
VSP INCL readback-vsp PASS 14
VSP DDLS create+write+activate PASS 40316
VSP DDLS edit+check+activate #1 PASS 35375
VSP DDLS edit+check+activate #2 PASS 37139
VSP DDLS edit+check+activate #3 PASS 34621
VSP DDLS check-explicit PASS 2688
VSP DDLS activate-explicit PASS 15531
VSP DDLS readback-vsp PASS 16
VSP DDLS delete+confirmed-404 PASS 55
VSP INCL delete+confirmed-404 PASS 1411
VSP PROG delete+confirmed-404 PASS 38
VSP INTF delete+confirmed-404 PASS 38
VSP CLAS delete+confirmed-404 PASS 37
VSP DEVC delete+confirmed-404 PASS 40
ABAP-FS DDLS delete+confirmed-404 PASS 37
ABAP-FS INCL delete+confirmed-404 PASS 1199
ABAP-FS PROG delete+confirmed-404 PASS 34
ABAP-FS INTF delete+confirmed-404 PASS 34
ABAP-FS CLAS delete+confirmed-404 PASS 31
ABAP-FS DEVC delete+confirmed-404 PASS 36

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).

@oisee
oisee merged commit f4f8728 into main Oct 9, 2026
28 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant