-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix(bqjdbc): pass rowsInPage with TableResult #13238
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
Changes from 4 commits
355331b
9c142bf
1351b4b
f1099a2
daee960
71a8e32
0353439
b46004b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -86,3 +86,7 @@ monorepo | |
| *.tfstate.lock.info | ||
|
|
||
| .jqwik-database | ||
|
|
||
| # Agent configuration and local skills | ||
| .agent/ | ||
| .agents/ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1685,6 +1685,7 @@ && getOptions().getOpenTelemetryTracer() != null) { | |
| .setSchema(schema) | ||
| .setTotalRows(data.y()) | ||
| .setPageNoSchema(data.x()) | ||
| .setRowsInPage(data.x() != null ? (long) Iterables.size(data.x().getValues()) : 0L) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we guarantee somehow that it would be using
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can guarantee But if we want we can add an explicit instanceof check here. Should I add it?
Neenu1995 marked this conversation as resolved.
Outdated
|
||
| .build(); | ||
| } finally { | ||
| if (tableDataList != null) { | ||
|
|
@@ -2016,6 +2017,7 @@ public com.google.api.services.bigquery.model.QueryResponse call() | |
| .setJobId(jobId) | ||
| .setQueryId(results.getQueryId()) | ||
| .setJobCreationReason(JobCreationReason.fromPb(results.getJobCreationReason())) | ||
| .setRowsInPage(results.getRows() != null ? (long) results.getRows().size() : 0L) | ||
| .build(); | ||
| } | ||
| // only 1 page of result | ||
|
|
@@ -2035,6 +2037,7 @@ public com.google.api.services.bigquery.model.QueryResponse call() | |
| results.getJobReference() != null ? JobId.fromPb(results.getJobReference()) : null) | ||
| .setQueryId(results.getQueryId()) | ||
| .setJobCreationReason(JobCreationReason.fromPb(results.getJobCreationReason())) | ||
| .setRowsInPage(results.getRows() != null ? (long) results.getRows().size() : 0L) | ||
| .build(); | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.