Skip to content
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

Support limit pushdown in Bigquery connector #24021

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

krvikash
Copy link
Contributor

@krvikash krvikash commented Nov 4, 2024

Description

Fixes #23937

Since BigQuery Storage API doesn't support limiting rows, but REST API supports LIMIT clause.
https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax#limit_and_offset_clause

So, We will be using REST API to read all kinds of table (view, MV, managed table, external table, snapshot table, ...) when limit is specified in the query.

Release notes

## BigQuery
* Add support for LIMIT pushdown. ({issue}`23937`)

@cla-bot cla-bot bot added the cla-signed label Nov 4, 2024
@krvikash krvikash changed the title Support limit pushdown in Bigquery connector [WIP] Support limit pushdown in Bigquery connector Nov 4, 2024
@github-actions github-actions bot added the bigquery BigQuery connector label Nov 4, 2024
@krvikash krvikash changed the title [WIP] Support limit pushdown in Bigquery connector Support limit pushdown in Bigquery connector Nov 5, 2024
@krvikash krvikash marked this pull request as ready for review November 5, 2024 17:20
@ebyhr
Copy link
Member

ebyhr commented Nov 6, 2024

/test-with-secrets sha=2061c56273afc55ffabb8bb4e139e3260bf7488b

Copy link

github-actions bot commented Nov 6, 2024

The CI workflow run with tests that require additional secrets has been started: https://github.com/trinodb/trino/actions/runs/11694897950

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bigquery BigQuery connector cla-signed
Development

Successfully merging this pull request may close these issues.

Add support for LIMIT pushdown in BigQuery connector
2 participants