Skip to content

Commit 79608b0

Browse files
authored
docs(bigquery): mark createQueryArrowStream as beta
The ARROW query results format of the BigQuery API isn't generally available yet; the API reference still describes it as not yet available. Label createQueryArrowStream and ArrowRecordBatchStream as [Beta] with @beta, as the Java and Python clients label their Arrow query APIs, so callers know the method may change.
1 parent 5bb7654 commit 79608b0

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

‎handwritten/bigquery/src/arrow.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@ import type bigquery from './types';
2222
type ArrowModule = typeof import('apache-arrow');
2323

2424
/**
25-
* A stream of Apache Arrow `RecordBatch` objects returned by
25+
* [Beta] A stream of Apache Arrow `RecordBatch` objects returned by
2626
* {@link BigQuery#createQueryArrowStream}.
2727
*
2828
* `queryId` and `jobReference` are set once BigQuery responds to the query,
2929
* before the first batch is emitted.
30+
*
31+
* @beta
3032
*/
3133
export type ArrowRecordBatchStream = ResourceStream<RecordBatch> & {
3234
/** The query ID, when the query runs through `jobs.query`. */

‎handwritten/bigquery/src/bigquery.ts‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,12 @@ export class BigQuery extends Service {
377377
}
378378

379379
/**
380-
* Run a query scoped to your project and stream results as Apache Arrow
381-
* `RecordBatch` objects.
380+
* [Beta] Run a query scoped to your project and stream results as Apache
381+
* Arrow `RecordBatch` objects.
382+
*
383+
* This method uses the `ARROW` query results format of the BigQuery API,
384+
* which isn't generally available yet, so it may change in ways that aren't
385+
* backward compatible.
382386
*
383387
* Requires the optional `@google-cloud/bigquery-storage` (>= 6.1.0) package
384388
* to be installed.
@@ -411,6 +415,8 @@ export class BigQuery extends Service {
411415
* //-
412416
* const batches = await bigquery.createQueryArrowStream(query).toArray();
413417
* ```
418+
*
419+
* @beta
414420
*/
415421
createQueryArrowStream(options?: Query | string): ArrowRecordBatchStream {
416422
return createQueryArrowStream_(this, options);

0 commit comments

Comments
 (0)