Skip to content

Use 'select by specific attributes' by default #5311

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 18, 2024
Merged

Use 'select by specific attributes' by default #5311

merged 6 commits into from
Apr 18, 2024

Conversation

lutter
Copy link
Collaborator

@lutter lutter commented Mar 29, 2024

With these small fixes, a test run with the setting on and off did not produce any material differences in the query results. The only differences were in a few error messages that contained a debug dump of the query (where we now have a list of column names instead of *)

@lutter lutter force-pushed the lutter/select branch 2 times, most recently from a43796b to 5910956 Compare March 29, 2024 18:32
@fordN fordN added optimization read interface The read interface defines how query engine and index node interact labels Apr 9, 2024
@fordN fordN requested a review from mangas April 11, 2024 16:00
lutter added 6 commits April 17, 2024 13:35
We make sure that the entity type for which we build the query is the
entity type of the field(s) that get used. It's not possible to construct a
query from GraphQL for which that is not true.
These tests now pass both with GRAPH_ENABLE_SELECT_BY_SPECIFIC_ATTRIBUTES
set to true and to false
If a query has an orderBy clause that mentions a field, we need to add it
to the list of attributes we need to select. If it is a child attribute
though, we do not, as that would try to access a column on the parent that
doesn't exist.
@lutter lutter merged commit 9ad7f27 into master Apr 18, 2024
@lutter lutter deleted the lutter/select branch April 18, 2024 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optimization read interface The read interface defines how query engine and index node interact
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants