Commit 71ccfcc
fix(integration-tests-kotlin): the AllTypes oracle was missing intEnumVal
`persistence-conformance` has no skip valve — every port runs every fixture — so
adding `intEnumVal` to the shared corpus obliged all five ports to carry it. Four
did: Java and Python drive their columns from metadata, and C# regenerates its
AppDbContext. Kotlin's oracle is a HAND-WRITTEN Exposed table, and nobody added
the column, so QueryScenarioConformanceTest[20] and [27] died with
IllegalStateException: No column 'intEnumVal' on table 'all_types'
The lane that catches this runs on release tags and manual dispatch only, so the
branch would have merged with a standing red nothing on a PR would have shown.
Fixed by supplying the missing piece, not by narrowing the corpus. The new
IntBackedEnumColumnType is the harness analogue of the customEnumeration the
Kotlin generator emits: a Column<String> carrying the member SYMBOL over an
INTEGER column, translating through @intValueMap in both directions, and THROWING
on a stored int that maps to no member — the same ruling every port now
implements. It is String-typed rather than enum-typed for the reason already
documented for the jsonb columns beside it: this generic runner moves plain YAML
scalars and has no generated enum class to bind.
Both coercion paths need an explicit guard ahead of the sqlType dispatch, whose
`int` branch would otherwise try "PUBLISHED".toInt() — the column is physically
INTEGER while its authoring value is a symbol, which is the one shape that
dispatch cannot infer.
QueryScenarioConformanceTest: 27/27.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 0508e45 commit 71ccfcc
3 files changed
Lines changed: 76 additions & 0 deletions
File tree
- server/java/integration-tests-kotlin/src/test/kotlin/com/metaobjects/integration/kotlin
- tables
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
418 | 419 | | |
419 | 420 | | |
420 | 421 | | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
421 | 425 | | |
422 | 426 | | |
423 | 427 | | |
| |||
607 | 611 | | |
608 | 612 | | |
609 | 613 | | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
610 | 618 | | |
611 | 619 | | |
612 | 620 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
67 | 75 | | |
68 | 76 | | |
69 | 77 | | |
| |||
Lines changed: 60 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
0 commit comments