MasseGuillaume commented on PR #3231: URL: https://github.com/apache/calcite/pull/3231#issuecomment-1620784143
@julianhyde I implemented named_struct with a runtime of Array Object. https://github.com/apache/calcite/pull/3231/commits/d7eb559244ca3bbd9992b2d87eb3057e72a8482c#diff-2095e662d66d6c1b2851915fa0d73934c3a847550545396835e02d88a9f5e2daR2518 However, if you try to access a field with the `item` operator it fails since there is no field name information at runtime: https://github.com/apache/calcite/blob/d1a12bb6f4d4f617234dfbc32cb0813c473b0029/core/src/main/java/org/apache/calcite/runtime/SqlFunctions.java#L4482 Should I create a new runtime type that can keep both the field name and the value and add another case to the `structAccess` function? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
