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:SELECT expand([1,2,3,4]) AS testresults in:
{"result":[{"value":1},{"value":2},{"value":3},{"value":4}]}Interface
No new interfaces are introduced.
- Assistant
I’ll trace how SQL projection aliases are carried through
expand, patch the implementation, and add a regression test for the stated query. - Assistant
The alias is dropped when the planner unwraps
expand(...), and scalar expansion then hardcodesvalue. I’m fixing both handoff points so document/map expansion remains unchanged while scalar rows use the explicit projection alias. - Assistant
The focused regression tests are compiling now. I’ve also kept the legacy no-
ASbehavior (value) covered, so the change is limited to explicit aliases. - Assistant
The query now returns
testfor all four scalar rows in a direct local execution, and an unaliasedexpand([1])still returnsvalue. The Java sources and tests compile; the normal JUnit runner is unavailable offline because its Surefire provider is not cached, so I validated the exact regression through the compiled engine directly.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.