Untitled conversation
- User
[SQL] "expand" projection is always named "value" ignoring "AS"
ArcadeDB Server v26.5.1 (build b6d08fee549dd5930303b362223869901aab0fac/1778533954349/main)Running on Linux 6.17.0-29-generic - OpenJDK 64-Bit Server VM 25.0.3-eaUsing
expandin a projection, the result-set contains an property namedvalueinspite an alias of the formAS x:sqlSELECT expand([1,2,3,4]) AS testresults in:
json{"result":[{"value":1},{"value":2},{"value":3},{"value":4}]}Interface
No new interfaces are introduced.
- Assistant
I’ll trace the SQL projection/expand execution path, add a focused regression test for alias propagation, then implement and run the narrowest relevant test suite.
- Assistant
The failure has two parts: planning strips the explicit alias from the inner expand projection, and the expansion step hardcodes scalar rows to
value. I’m preserving legacyvaluebehavior when no alias is supplied while carrying only an explicit alias into scalar expansion. - Assistant
The targeted regression test is compiling now. I also added a compatibility assertion confirming unaliased scalar expansion still produces
value; record/map expansion remains unchanged. - Assistant
Compilation, including the new tests, succeeds. The test runner itself is unavailable offline because its JUnit provider is missing from the local Maven cache, so I’m switching to a direct local execution check against the compiled engine classes.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.