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 alias preservation, then implement and run the relevant test suite.
- Assistant
rgisn’t installed in this checkout, so I’m switching to targetedfind/grepsearches and keeping the scope to SQL execution and tests. - Assistant
The alias is dropped when the planner unwraps
expand(), and the expansion step then hard-codesvaluefor scalar elements. I’m preserving the explicit alias through that rewrite while retainingvalueas the no-alias default. - Assistant
The focused regression test is compiling now. After it passes, I’ll run the adjacent expand/parser tests to catch behavior changes for maps, nested projections, and the default
valuename. - Assistant
The test runner tried to resolve a missing Surefire component from Maven Central, so I stopped it to honor the no-internet constraint. Compilation succeeded; I’m rerunning Maven in offline mode to use only the local cache.
- Assistant
The direct SQL smoke test now returns
testfor all four scalar rows, while unaliased expansion still returnsvalue; map expansion also remains unchanged. I’m doing the final diff and repository-state checks now.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.