googleapis / googleapis/google-cloud-cpp-bigquery

Support Query RPC for fast first page results

未关闭
#49 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
priority: p3 type: feature request
主要语言
C++
星标
3
派生
6
PR 合并指标
30 天内没有已合并 PR

描述

BigQuery supports both the InsertJob RPC (with type QueryJob) as well as a Query RPC (https://github.com/googleapis/googleapis/blob/8798ceff3f6fbcdce3186b67ce9339df337569d5/google/cloud/bigquery/v2/job.proto#L117). InsertJob is an asynchronous RPC stores the query results in a BigQuery table, while Query is a synchronous RPC that returns the first page of results immediately while executing a QueryJob asynchronous for the rest of the results.

Add a Query method that returns the first page of results as a collection of std::tuples and a JobReference that can be used to poll for the remainder of the results.

贡献指南

打开贡献指南

调研方向

Start by reviewing the existing InsertJob and QueryJob handling, then read the linked BigQuery job.proto Query RPC definition. Add a Query method that returns the first page as std::tuples and a JobReference for polling the remaining results; completion should be demonstrated by tests covering both returned values.

由索引模型根据 Issue 内容生成。

评估

技术栈
cpp
领域
databases
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。