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 the SQL projection/expand execution path, add a focused regression test for aliases, implement the smallest compatible fix, and run the relevant test suite.
- Assistant
The alias is currently discarded when
expand(...)is rewritten, and scalar expansion then hard-codesvalue. I’m checking the projection model’s copy semantics so the fix preserves legacyvalueoutput when no explicitASis supplied. - Assistant
The implementation now preserves an explicit projection alias through planning and uses it only for scalar expanded values; unaliased queries retain the existing
valuefield. The focused engine test is compiling/running now. - Assistant
Compilation succeeded. The test runner itself is unavailable in the local Maven cache and attempted to fetch its provider, so I stopped it to honor the no-internet constraint. I’m doing an offline verification and a direct local execution check next.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.