-
Notifications
You must be signed in to change notification settings - Fork 359
JdbcAggregateOperations does not use columns parameter of Query #1803
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
Labels
type: enhancement
A general enhancement
Milestone
Comments
I also encountered the same problem |
schauder
added a commit
that referenced
this issue
Jan 2, 2025
If no columns are given, all columns are selected by default. If columns are specified, only these are selected. Joins normally triggered by columns from 1:1 relationships are not implemented, and the corresponding columns don't get loaded and can't be specified in a query. Limiting columns is not supported for single query loading. Closes #1803
schauder
added a commit
that referenced
this issue
Jan 15, 2025
If no columns are given, all columns are selected by default. If columns are specified, only these are selected. Joins normally triggered by columns from 1:1 relationships are not implemented, and the corresponding columns don't get loaded and can't be specified in a query. Limiting columns is not supported for single query loading. Closes #1803
schauder
added a commit
that referenced
this issue
May 26, 2025
If no columns are given, all columns are selected by default. If columns are specified, only these are selected. Joins normally triggered by columns from 1:1 relationships are not implemented, and the corresponding columns don't get loaded and can't be specified in a query. Limiting columns is not supported for single query loading. Closes #1803
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
With Spring Data JDBC (Spring Boot 3.3.0), when using
JdbcAggregateOperations.findAll
API with aQuery
object, thecolumns
parameter of the query is not respected. When I specify some columns in the query, the returned object should have only theses properties populated. The logged query shows that Spring Data JDBC is using all columns in the select part.I have made a reproduction repo: https://github.com/Jul13nT/spring-data-jdbc-query-columns
You can run the
CustomerRepositoryTest
to see the problem.This works fine with Spring Data R2DBC with
R2dbcEntityTemplate.select
.The text was updated successfully, but these errors were encountered: