[BugFix] Return all columns (struct and nested fields) listed when using head#5518
[BugFix] Return all columns (struct and nested fields) listed when using head#5518quangdutran wants to merge 1 commit into
Conversation
…when using head Signed-off-by: Du Tran <quangdutran809@gmail.com>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|

Description
When both a struct parent and the nested ones are projected in the query, appending
| headmust not drop the nested.Explanation
Query with head has a Project wrapper like
Project(Head (Project([agent.id, agent.name, agent])))Seems like outer Project hits
tryToRemoveNestedFieldsso nested fields are removed. Withouthead, there is no wrapper, hence nested fields stay.tryToRemoveMetaFieldshas one run condition:There is no other project ever visited in the main querySo I try to apply the same with
tryToRemoveNestedFieldsRelated Issues
Resolves #5507
Check List
--signoffor-s.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.