Title: bigquery: read large unordered ARROW results with more than one stream · Issue #18804 · googleapis/google-cloud-python · GitHub
Open Graph Title: bigquery: read large unordered ARROW results with more than one stream · Issue #18804 · googleapis/google-cloud-python
X Title: bigquery: read large unordered ARROW results with more than one stream · Issue #18804 · googleapis/google-cloud-python
Description: Before ARROW, to_arrow() and to_dataframe() read query results with as many streams as BigQuery allows unless _contains_order_by() matched the query (_download_table_bqstorage() requests 0 streams, which means unlimited). ARROW query res...
Open Graph Description: Before ARROW, to_arrow() and to_dataframe() read query results with as many streams as BigQuery allows unless _contains_order_by() matched the query (_download_table_bqstorage() requests 0 streams,...
X Description: Before ARROW, to_arrow() and to_dataframe() read query results with as many streams as BigQuery allows unless _contains_order_by() matched the query (_download_table_bqstorage() requests 0 streams,...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/18804
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bigquery: read large unordered ARROW results with more than one stream","articleBody":"Before ARROW, `to_arrow()` and `to_dataframe()` read query results with as many streams as BigQuery allows unless `_contains_order_by()` matched the query (`_download_table_bqstorage()` requests 0 streams, which means unlimited). ARROW query results always read with one stream, so very large unordered results may be slower than on the old path. Raised by @tswast in https://github.com/googleapis/google-cloud-python/pull/18654#discussion_r4340945206.\n\n- **Explicit destination tables** (#18654): `CreateReadSession` uses `max_stream_count=1`. Do the same `_contains_order_by()` check and allow more streams when the query has no `ORDER BY`, reading them in parallel.\n- **Job `_default` stream** (`jobs.query`, or `jobs.insert` with an anonymous destination): read directly with no read session, so there's no stream count. Check whether `SplitReadStream` works on job default streams, or whether there's another way to parallelize.\n- Compare throughput against the non-ARROW path for large unordered results.\n\nStill confirming whether very large results are in scope for the ARROW work. The Node.js client (`createQueryArrowStream()`) has the same design.\n","author":{"url":"https://github.com/ohmayr","@type":"Person","name":"ohmayr"},"datePublished":"2026-10-21T22:38:54Z","url":"https://github.com/googleapis/google-cloud-python/issues/18804"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8297bb35-a55b-4815-285f-2e3d2a5b00c4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ADC2:8691D:260B7C:33511F:6AFE19DB |
| html-safe-nonce | 522be2c99ae05751a21f468ab17b1997e88314745dc74ae8f33709512ffeea80 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREMyOjg2OTFEOjI2MEI3QzozMzUxMUY6NkFGRTE5REIiLCJ2aXNpdG9yX2lkIjoiNTgwMzQxMzQ4NjM1NjUzNTc3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9e941281241b0f4618128ea11fcc931883c7f5fa26a10e6891d15fb67e2ff0cd |
| hovercard-subject-tag | issue:5969671090 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-python/18804/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5e56d495baefd981516961a4a5dce2ffb0fa6a8188b50540cfa95bdffd3bbe1e/googleapis/google-cloud-python/issues/18804 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5e56d495baefd981516961a4a5dce2ffb0fa6a8188b50540cfa95bdffd3bbe1e/googleapis/google-cloud-python/issues/18804 |
| og:image:alt | Before ARROW, to_arrow() and to_dataframe() read query results with as many streams as BigQuery allows unless _contains_order_by() matched the query (_download_table_bqstorage() requests 0 streams,... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ohmayr |
| hostname | github.com |
| expected-hostname | github.com |
| None | d0525ab1464526bf4532a5551aa348cf100dff75ef808a96fc67a08b1d946aa9 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 16316451 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16316451 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fef3993a71fa20f7be8e167132fbf9619bc66e12 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width