[bigquery-jdbc] Expose dry-run / query cost estimation API
Mantenedores costumam responder em até 1 dia
@logachev já está trabalhando nisso.
Desde 10/9/2026.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
Problem
BigQuery clients often need to estimate the amount of data a query will process before executing it, because BigQuery billing depends on bytes processed.
The BigQuery API supports this through dry runs and returns totalBytesProcessed. The Java BigQuery client also exposes this capability, including Connection.dryRun(String) / BigQueryDryRunResult.
However, google-cloud-bigquery-jdbc does not currently expose an equivalent public API through BigQueryConnection or BigQueryStatement.
This prevents JDBC-based database tools such as DataGrip from providing the same pre-execution cost information that the BigQuery Console provides.
Requested API
It would be useful to expose dry-run/query estimation as a BigQuery-specific JDBC extension, for example through an unwrapped BigQueryConnection or BigQueryStatement:
BigQueryStatement statement =
jdbcStatement.unwrap(BigQueryStatement.class);
BigQueryDryRunResult result = statement.dryRun(sql);
long bytes = result.getTotalBytesProcessed();
The exact API shape is not important; the main requirement is to perform the dry run using the existing JDBC connection configuration and authentication.
Ideally it should preserve:
- authentication/credentials
- project
- location
- default dataset
- session configuration
- prepared-statement parameters, where applicable
Motivation
For database IDEs and other JDBC tools, this would allow:
This query will process approximately 1.8 TB.
to be shown before execution, optionally allowing clients to warn users about unexpectedly expensive queries.
MaximumBytesBilled is useful as a hard safety limit, but it does not expose the estimated number of bytes to the JDBC client before execution.
The underlying BigQuery APIs already provide dry-run estimation, so this request is specifically about making that capability accessible through the JDBC driver.
- Linguagem predominante
- Java
- Estrelas
- 2.1k
- Forks
- 1.2k
- Merge médio
- 2d 14h
- PRs com merge (30d)
- 192
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de googleapis/google-cloud-java
-
[java-core] Timestamp.of(java.sql.Timestamp) is one second late for a time less than a second before the epochTalvez já em andamento @Vcode2407 assumiu há 4 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
googleapis/google-cloud-java#14636 ·
Mantenedores costumam responder em até 1 dia
-
[java-firestore] UserDataConverter encodes a pre-epoch Date with negative nanos, so the write is refusedTalvez já em andamento @wu-hui assumiu há 23 dias. Abertapriority: p2 type: bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
googleapis/google-cloud-java#14635 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
[java-firestore] UserDataConverter throws IndexOutOfBoundsException on an empty __binary__ valueTalvez já em andamento @wu-hui assumiu há 23 dias. Abertapriority: p2 type: bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
googleapis/google-cloud-java#14634 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
[java-firestore] CustomClassMapper.convertBigDecimal calls .abs() on Double, unintentionally flipping negative values to positiveTalvez livre de novo @wu-hui assumiu há 45 dias e não há nenhum pull request aberto. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
googleapis/google-cloud-java#14533 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Github CI failing when trying to install xmllintTalvez já em andamento @blakeli0 assumiu há 81 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
googleapis/google-cloud-java#14132 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
Todas as issues de googleapis/google-cloud-java
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 80/100
finos/fluxnova-bpm-platform#387 ·
Mantenedores costumam responder em até 4 dias
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
-
Dificuldade 2/5 Menos de uma hora Facilidade para iniciantes 84/100
cpp-best-practices/project_validator#251 ·
Mantenedores costumam responder em até 1 dia
-
backend enhancement
Dificuldade 2/5 Meio dia Facilidade para iniciantes 70/100
damodharg6/payledger#16 ·
-
[Bug]: An initiative list with no current entry logs an error on every changeTalvez já em andamento @dwizard0 assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
Mantenedores costumam responder em até 1 dia