[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 2 commits into
Conversation
…when using head Signed-off-by: Du Tran <quangdutran809@gmail.com>
PR Reviewer Guide 🔍(Review updated until commit 117e7cc)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 117e7cc
Previous suggestionsSuggestions up to commit fcfa34a
|
|
from doctest and integ test failures it looks like this is also causing structs to be expanded in the case of Unit test action is failing due to spotless |
…when using head Signed-off-by: Du Tran <quangdutran809@gmail.com>
|
Persistent review updated to latest commit 117e7cc |
|
Yes @Swiddis I have refactored the tests |

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.