Google Cloud BigQuery Storage
The BigQuery Storage API offers fast access to BigQuery-managed storage using an rpc-based protocol. It is seen as an improvement over the REST API, and bulk data extract jobs for accessing BigQuery-managed table data, but doesn’t offer any functionality around managing BigQuery resources. Further information at the official Google Cloud documentation website.
This connector communicates to the BigQuery Storage API via the gRPC protocol. The integration between Apache Pekko Stream and gRPC is handled by the Apache Pekko gRPC library. Currently, this connector only supports returning each row as an Avro GenericRecord.
| Project Info: Apache Pekko Connectors Google Cloud BigQuery Storage | |
|---|---|
| Artifact | org.apache.pekko
pekko-connectors-google-cloud-bigquery-storage
2.0.0-RC1
|
| JDK versions | OpenJDK 17 OpenJDK 21 |
| Scala versions | 2.13.18, 3.3.9 |
| JPMS module name | pekko.stream.connectors.google.cloud.bigquery.storage |
| License | |
| Forums | |
| Release notes | GitHub releases |
| Issues | Github issues |
| Sources | https://github.com/apache/pekko-connectors |
Artifacts
Apache Pekko gRPC uses Apache Pekko Discovery internally. Make sure to add Apache Pekko Discovery with the same Apache Pekko version that the application uses.
- sbt
val PekkoVersion = "2.0.0" libraryDependencies ++= Seq( "org.apache.pekko" %% "pekko-connectors-google-cloud-bigquery-storage" % "2.0.0-RC1", "org.apache.pekko" %% "pekko-stream" % PekkoVersion, "org.apache.pekko" %% "pekko-discovery" % PekkoVersion )- Maven
<properties> <pekko.version>2.0.0</pekko.version> <scala.binary.version>2.13</scala.binary.version> </properties> <dependencies> <dependency> <groupId>org.apache.pekko</groupId> <artifactId>pekko-connectors-google-cloud-bigquery-storage_${scala.binary.version}</artifactId> <version>2.0.0-RC1</version> </dependency> <dependency> <groupId>org.apache.pekko</groupId> <artifactId>pekko-stream_${scala.binary.version}</artifactId> <version>${pekko.version}</version> </dependency> <dependency> <groupId>org.apache.pekko</groupId> <artifactId>pekko-discovery_${scala.binary.version}</artifactId> <version>${pekko.version}</version> </dependency> </dependencies>- Gradle
def versions = [ PekkoVersion: "2.0.0", ScalaBinary: "2.13" ] dependencies { implementation "org.apache.pekko:pekko-connectors-google-cloud-bigquery-storage_${versions.ScalaBinary}:2.0.0-RC1" implementation "org.apache.pekko:pekko-stream_${versions.ScalaBinary}:${versions.PekkoVersion}" implementation "org.apache.pekko:pekko-discovery_${versions.ScalaBinary}:${versions.PekkoVersion}" }
The table below shows direct dependencies of this module and the second tab shows all libraries it depends on transitively.
- Direct dependencies
Organization Artifact Version com.google.protobuf protobuf-java 4.36.2 com.thesamet.scalapb scalapb-runtime_2.13 1.0.0-alpha.6 io.grpc grpc-auth 1.85.1 io.grpc grpc-stub 1.85.1 org.apache.pekko pekko-connectors-google-common_2.13 2.0.0-RC1 org.apache.pekko pekko-discovery_2.13 2.0.0 org.apache.pekko pekko-grpc-runtime_2.13 2.0.0 org.apache.pekko pekko-http-core_2.13 2.0.1 org.apache.pekko pekko-http-spray-json_2.13 2.0.1 org.apache.pekko pekko-http_2.13 2.0.1 org.apache.pekko pekko-parsing_2.13 2.0.1 org.apache.pekko pekko-stream_2.13 2.0.0 org.scala-lang scala-library 2.13.18 - Dependency tree
com.google.protobuf protobuf-java 4.36.2 BSD-3-Clause com.thesamet.scalapb scalapb-runtime_2.13 1.0.0-alpha.6 Apache-2.0 com.google.protobuf protobuf-java 4.36.2 BSD-3-Clause com.thesamet.scalapb lenses_2.13 1.0.0-alpha.6 Apache-2.0 org.scala-lang.modules scala-collection-compat_2.13 2.13.0 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.scala-lang.modules scala-collection-compat_2.13 2.13.0 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 io.grpc grpc-auth 1.85.1 Apache 2.0 com.google.auth google-auth-library-credentials 1.58.0 BSD New license org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 com.google.guava guava 33.7.2-jre Apache License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava failureaccess 1.0.3 Apache License, Version 2.0 com.google.guava listenablefuture 9999.0-empty-to-avoid-conflict-with-guava The Apache Software License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 io.grpc grpc-api 1.85.1 Apache 2.0 com.google.code.findbugs jsr305 3.0.2 The Apache Software License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava guava 33.7.2-jre Apache License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava failureaccess 1.0.3 Apache License, Version 2.0 com.google.guava listenablefuture 9999.0-empty-to-avoid-conflict-with-guava The Apache Software License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 io.grpc grpc-stub 1.85.1 Apache 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava guava 33.7.2-jre Apache License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava failureaccess 1.0.3 Apache License, Version 2.0 com.google.guava listenablefuture 9999.0-empty-to-avoid-conflict-with-guava The Apache Software License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 io.grpc grpc-api 1.85.1 Apache 2.0 com.google.code.findbugs jsr305 3.0.2 The Apache Software License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava guava 33.7.2-jre Apache License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava failureaccess 1.0.3 Apache License, Version 2.0 com.google.guava listenablefuture 9999.0-empty-to-avoid-conflict-with-guava The Apache Software License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 org.codehaus.mojo animal-sniffer-annotations 1.27 MIT license org.apache.pekko pekko-connectors-google-common_2.13 2.0.0-RC1 com.github.jwt-scala jwt-json-common_2.13 12.0.0 Apache-2.0 com.github.jwt-scala jwt-core_2.13 12.0.0 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 com.google.auth google-auth-library-credentials 1.58.0 BSD New license org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 com.google.auth google-auth-library-oauth2-http 1.58.0 BSD New license com.google.api api-common 2.74.0 BSD-3-Clause com.google.auto.value auto-value-annotations 1.11.0 Apache 2.0 com.google.code.findbugs jsr305 3.0.2 The Apache Software License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava guava 33.7.2-jre Apache License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava failureaccess 1.0.3 Apache License, Version 2.0 com.google.guava listenablefuture 9999.0-empty-to-avoid-conflict-with-guava The Apache Software License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 com.google.auth google-auth-library-credentials 1.58.0 BSD New license org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 com.google.auto.value auto-value-annotations 1.11.0 Apache 2.0 com.google.code.findbugs jsr305 3.0.2 The Apache Software License, Version 2.0 com.google.code.gson gson 2.14.0 Apache-2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava guava 33.7.2-jre Apache License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava failureaccess 1.0.3 Apache License, Version 2.0 com.google.guava listenablefuture 9999.0-empty-to-avoid-conflict-with-guava The Apache Software License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 com.google.http-client google-http-client-gson 2.2.0 The Apache Software License, Version 2.0 com.google.code.gson gson 2.14.0 Apache-2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.http-client google-http-client 2.2.0 The Apache Software License, Version 2.0 com.google.code.findbugs jsr305 3.0.2 The Apache Software License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava guava 33.7.2-jre Apache License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava failureaccess 1.0.3 Apache License, Version 2.0 com.google.guava listenablefuture 9999.0-empty-to-avoid-conflict-with-guava The Apache Software License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 io.grpc grpc-context 1.85.1 Apache 2.0 io.grpc grpc-api 1.85.1 Apache 2.0 com.google.code.findbugs jsr305 3.0.2 The Apache Software License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava guava 33.7.2-jre Apache License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava failureaccess 1.0.3 Apache License, Version 2.0 com.google.guava listenablefuture 9999.0-empty-to-avoid-conflict-with-guava The Apache Software License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 io.opencensus opencensus-api 0.31.1 The Apache License, Version 2.0 io.grpc grpc-context 1.85.1 Apache 2.0 io.grpc grpc-api 1.85.1 Apache 2.0 com.google.code.findbugs jsr305 3.0.2 The Apache Software License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava guava 33.7.2-jre Apache License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava failureaccess 1.0.3 Apache License, Version 2.0 com.google.guava listenablefuture 9999.0-empty-to-avoid-conflict-with-guava The Apache Software License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 io.opencensus opencensus-contrib-http-util 0.31.1 The Apache License, Version 2.0 com.google.guava guava 33.7.2-jre Apache License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava failureaccess 1.0.3 Apache License, Version 2.0 com.google.guava listenablefuture 9999.0-empty-to-avoid-conflict-with-guava The Apache Software License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 io.opencensus opencensus-api 0.31.1 The Apache License, Version 2.0 io.grpc grpc-context 1.85.1 Apache 2.0 io.grpc grpc-api 1.85.1 Apache 2.0 com.google.code.findbugs jsr305 3.0.2 The Apache Software License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava guava 33.7.2-jre Apache License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava failureaccess 1.0.3 Apache License, Version 2.0 com.google.guava listenablefuture 9999.0-empty-to-avoid-conflict-with-guava The Apache Software License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 org.apache.httpcomponents httpclient 4.5.14 Apache License, Version 2.0 commons-codec commons-codec 1.11 Apache License, Version 2.0 org.apache.httpcomponents httpcore 4.4.16 Apache License, Version 2.0 org.apache.httpcomponents httpcore 4.4.16 Apache License, Version 2.0 com.google.http-client google-http-client 2.2.0 The Apache Software License, Version 2.0 com.google.code.findbugs jsr305 3.0.2 The Apache Software License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava guava 33.7.2-jre Apache License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava failureaccess 1.0.3 Apache License, Version 2.0 com.google.guava listenablefuture 9999.0-empty-to-avoid-conflict-with-guava The Apache Software License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 io.grpc grpc-context 1.85.1 Apache 2.0 io.grpc grpc-api 1.85.1 Apache 2.0 com.google.code.findbugs jsr305 3.0.2 The Apache Software License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava guava 33.7.2-jre Apache License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava failureaccess 1.0.3 Apache License, Version 2.0 com.google.guava listenablefuture 9999.0-empty-to-avoid-conflict-with-guava The Apache Software License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 io.opencensus opencensus-api 0.31.1 The Apache License, Version 2.0 io.grpc grpc-context 1.85.1 Apache 2.0 io.grpc grpc-api 1.85.1 Apache 2.0 com.google.code.findbugs jsr305 3.0.2 The Apache Software License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava guava 33.7.2-jre Apache License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava failureaccess 1.0.3 Apache License, Version 2.0 com.google.guava listenablefuture 9999.0-empty-to-avoid-conflict-with-guava The Apache Software License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 io.opencensus opencensus-contrib-http-util 0.31.1 The Apache License, Version 2.0 com.google.guava guava 33.7.2-jre Apache License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava failureaccess 1.0.3 Apache License, Version 2.0 com.google.guava listenablefuture 9999.0-empty-to-avoid-conflict-with-guava The Apache Software License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 io.opencensus opencensus-api 0.31.1 The Apache License, Version 2.0 io.grpc grpc-context 1.85.1 Apache 2.0 io.grpc grpc-api 1.85.1 Apache 2.0 com.google.code.findbugs jsr305 3.0.2 The Apache Software License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava guava 33.7.2-jre Apache License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava failureaccess 1.0.3 Apache License, Version 2.0 com.google.guava listenablefuture 9999.0-empty-to-avoid-conflict-with-guava The Apache Software License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 org.apache.httpcomponents httpclient 4.5.14 Apache License, Version 2.0 commons-codec commons-codec 1.11 Apache License, Version 2.0 org.apache.httpcomponents httpcore 4.4.16 Apache License, Version 2.0 org.apache.httpcomponents httpcore 4.4.16 Apache License, Version 2.0 org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 org.apache.pekko pekko-http-spray-json_2.13 2.0.1 Apache-2.0 io.spray spray-json_2.13 1.3.6 Apache 2 org.scala-lang scala-library 2.13.18 Apache-2.0 org.apache.pekko pekko-http_2.13 2.0.1 Apache-2.0 org.apache.pekko pekko-http-core_2.13 2.0.1 Apache-2.0 org.apache.pekko pekko-parsing_2.13 2.0.1 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.parboiled parboiled_2.13 2.5.1 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.apache.pekko pekko-http_2.13 2.0.1 Apache-2.0 org.apache.pekko pekko-http-core_2.13 2.0.1 Apache-2.0 org.apache.pekko pekko-parsing_2.13 2.0.1 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.parboiled parboiled_2.13 2.5.1 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.apache.pekko pekko-stream_2.13 2.0.0 Apache-2.0 org.apache.pekko pekko-actor_2.13 2.0.0 Apache-2.0 com.typesafe config 1.4.9 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.apache.pekko pekko-protobuf-v3_2.13 2.0.0 Apache-2.0 org.reactivestreams reactive-streams 1.0.4 MIT-0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.apache.pekko pekko-discovery_2.13 2.0.0 Apache-2.0 org.apache.pekko pekko-actor_2.13 2.0.0 Apache-2.0 com.typesafe config 1.4.9 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.apache.pekko pekko-grpc-runtime_2.13 2.0.0 Apache-2.0 com.google.protobuf protobuf-java 4.36.2 BSD-3-Clause com.thesamet.scalapb scalapb-runtime_2.13 1.0.0-alpha.6 Apache-2.0 com.google.protobuf protobuf-java 4.36.2 BSD-3-Clause com.thesamet.scalapb lenses_2.13 1.0.0-alpha.6 Apache-2.0 org.scala-lang.modules scala-collection-compat_2.13 2.13.0 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.scala-lang.modules scala-collection-compat_2.13 2.13.0 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 io.grpc grpc-core 1.85.1 Apache 2.0 com.google.android annotations 4.1.1.4 Apache 2.0 com.google.code.gson gson 2.14.0 Apache-2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava guava 33.7.2-jre Apache License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava failureaccess 1.0.3 Apache License, Version 2.0 com.google.guava listenablefuture 9999.0-empty-to-avoid-conflict-with-guava The Apache Software License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 io.grpc grpc-api 1.85.1 Apache 2.0 com.google.code.findbugs jsr305 3.0.2 The Apache Software License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava guava 33.7.2-jre Apache License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava failureaccess 1.0.3 Apache License, Version 2.0 com.google.guava listenablefuture 9999.0-empty-to-avoid-conflict-with-guava The Apache Software License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 io.grpc grpc-context 1.85.1 Apache 2.0 io.grpc grpc-api 1.85.1 Apache 2.0 com.google.code.findbugs jsr305 3.0.2 The Apache Software License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava guava 33.7.2-jre Apache License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava failureaccess 1.0.3 Apache License, Version 2.0 com.google.guava listenablefuture 9999.0-empty-to-avoid-conflict-with-guava The Apache Software License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 io.perfmark perfmark-api 0.27.0 Apache 2.0 org.codehaus.mojo animal-sniffer-annotations 1.27 MIT license io.grpc grpc-netty-shaded 1.85.1 Apache 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava guava 33.7.2-jre Apache License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava failureaccess 1.0.3 Apache License, Version 2.0 com.google.guava listenablefuture 9999.0-empty-to-avoid-conflict-with-guava The Apache Software License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 io.grpc grpc-api 1.85.1 Apache 2.0 com.google.code.findbugs jsr305 3.0.2 The Apache Software License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava guava 33.7.2-jre Apache License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava failureaccess 1.0.3 Apache License, Version 2.0 com.google.guava listenablefuture 9999.0-empty-to-avoid-conflict-with-guava The Apache Software License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 io.grpc grpc-core 1.85.1 Apache 2.0 com.google.android annotations 4.1.1.4 Apache 2.0 com.google.code.gson gson 2.14.0 Apache-2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava guava 33.7.2-jre Apache License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava failureaccess 1.0.3 Apache License, Version 2.0 com.google.guava listenablefuture 9999.0-empty-to-avoid-conflict-with-guava The Apache Software License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 io.grpc grpc-api 1.85.1 Apache 2.0 com.google.code.findbugs jsr305 3.0.2 The Apache Software License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava guava 33.7.2-jre Apache License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava failureaccess 1.0.3 Apache License, Version 2.0 com.google.guava listenablefuture 9999.0-empty-to-avoid-conflict-with-guava The Apache Software License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 io.grpc grpc-context 1.85.1 Apache 2.0 io.grpc grpc-api 1.85.1 Apache 2.0 com.google.code.findbugs jsr305 3.0.2 The Apache Software License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava guava 33.7.2-jre Apache License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava failureaccess 1.0.3 Apache License, Version 2.0 com.google.guava listenablefuture 9999.0-empty-to-avoid-conflict-with-guava The Apache Software License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 io.perfmark perfmark-api 0.27.0 Apache 2.0 org.codehaus.mojo animal-sniffer-annotations 1.27 MIT license io.grpc grpc-util 1.85.1 Apache 2.0 com.google.guava guava 33.7.2-jre Apache License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava failureaccess 1.0.3 Apache License, Version 2.0 com.google.guava listenablefuture 9999.0-empty-to-avoid-conflict-with-guava The Apache Software License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 io.grpc grpc-api 1.85.1 Apache 2.0 com.google.code.findbugs jsr305 3.0.2 The Apache Software License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava guava 33.7.2-jre Apache License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava failureaccess 1.0.3 Apache License, Version 2.0 com.google.guava listenablefuture 9999.0-empty-to-avoid-conflict-with-guava The Apache Software License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 io.grpc grpc-core 1.85.1 Apache 2.0 com.google.android annotations 4.1.1.4 Apache 2.0 com.google.code.gson gson 2.14.0 Apache-2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava guava 33.7.2-jre Apache License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava failureaccess 1.0.3 Apache License, Version 2.0 com.google.guava listenablefuture 9999.0-empty-to-avoid-conflict-with-guava The Apache Software License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 io.grpc grpc-api 1.85.1 Apache 2.0 com.google.code.findbugs jsr305 3.0.2 The Apache Software License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava guava 33.7.2-jre Apache License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava failureaccess 1.0.3 Apache License, Version 2.0 com.google.guava listenablefuture 9999.0-empty-to-avoid-conflict-with-guava The Apache Software License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 io.grpc grpc-context 1.85.1 Apache 2.0 io.grpc grpc-api 1.85.1 Apache 2.0 com.google.code.findbugs jsr305 3.0.2 The Apache Software License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava guava 33.7.2-jre Apache License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava failureaccess 1.0.3 Apache License, Version 2.0 com.google.guava listenablefuture 9999.0-empty-to-avoid-conflict-with-guava The Apache Software License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 io.perfmark perfmark-api 0.27.0 Apache 2.0 org.codehaus.mojo animal-sniffer-annotations 1.27 MIT license org.codehaus.mojo animal-sniffer-annotations 1.27 MIT license io.perfmark perfmark-api 0.27.0 Apache 2.0 org.codehaus.mojo animal-sniffer-annotations 1.27 MIT license io.grpc grpc-protobuf 1.85.1 Apache 2.0 com.google.api.grpc proto-google-common-protos 2.64.1 Apache-2.0 com.google.protobuf protobuf-java 4.36.2 BSD-3-Clause com.google.code.findbugs jsr305 3.0.2 The Apache Software License, Version 2.0 com.google.guava guava 33.7.2-jre Apache License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava failureaccess 1.0.3 Apache License, Version 2.0 com.google.guava listenablefuture 9999.0-empty-to-avoid-conflict-with-guava The Apache Software License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 com.google.protobuf protobuf-java 4.36.2 BSD-3-Clause io.grpc grpc-api 1.85.1 Apache 2.0 com.google.code.findbugs jsr305 3.0.2 The Apache Software License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava guava 33.7.2-jre Apache License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava failureaccess 1.0.3 Apache License, Version 2.0 com.google.guava listenablefuture 9999.0-empty-to-avoid-conflict-with-guava The Apache Software License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 io.grpc grpc-protobuf-lite 1.85.1 Apache 2.0 com.google.code.findbugs jsr305 3.0.2 The Apache Software License, Version 2.0 com.google.guava guava 33.7.2-jre Apache License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava failureaccess 1.0.3 Apache License, Version 2.0 com.google.guava listenablefuture 9999.0-empty-to-avoid-conflict-with-guava The Apache Software License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 io.grpc grpc-api 1.85.1 Apache 2.0 com.google.code.findbugs jsr305 3.0.2 The Apache Software License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava guava 33.7.2-jre Apache License, Version 2.0 com.google.errorprone error_prone_annotations 2.50.0 Apache 2.0 com.google.guava failureaccess 1.0.3 Apache License, Version 2.0 com.google.guava listenablefuture 9999.0-empty-to-avoid-conflict-with-guava The Apache Software License, Version 2.0 com.google.j2objc j2objc-annotations 3.1 Apache License, Version 2.0 org.jspecify jspecify 1.0.1 The Apache License, Version 2.0 org.apache.pekko pekko-discovery_2.13 2.0.0 Apache-2.0 org.apache.pekko pekko-actor_2.13 2.0.0 Apache-2.0 com.typesafe config 1.4.9 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.apache.pekko pekko-http-core_2.13 2.0.1 Apache-2.0 org.apache.pekko pekko-parsing_2.13 2.0.1 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.parboiled parboiled_2.13 2.5.1 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.apache.pekko pekko-http-cors_2.13 2.0.0 Apache-2.0 org.apache.pekko pekko-http-core_2.13 2.0.1 Apache-2.0 org.apache.pekko pekko-parsing_2.13 2.0.1 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.parboiled parboiled_2.13 2.5.1 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.apache.pekko pekko-http_2.13 2.0.1 Apache-2.0 org.apache.pekko pekko-http-core_2.13 2.0.1 Apache-2.0 org.apache.pekko pekko-parsing_2.13 2.0.1 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.parboiled parboiled_2.13 2.5.1 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.apache.pekko pekko-http_2.13 2.0.1 Apache-2.0 org.apache.pekko pekko-http-core_2.13 2.0.1 Apache-2.0 org.apache.pekko pekko-parsing_2.13 2.0.1 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.parboiled parboiled_2.13 2.5.1 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.apache.pekko pekko-stream_2.13 2.0.0 Apache-2.0 org.apache.pekko pekko-actor_2.13 2.0.0 Apache-2.0 com.typesafe config 1.4.9 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.apache.pekko pekko-protobuf-v3_2.13 2.0.0 Apache-2.0 org.reactivestreams reactive-streams 1.0.4 MIT-0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.apache.pekko pekko-http-core_2.13 2.0.1 Apache-2.0 org.apache.pekko pekko-parsing_2.13 2.0.1 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.parboiled parboiled_2.13 2.5.1 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.apache.pekko pekko-http-spray-json_2.13 2.0.1 Apache-2.0 io.spray spray-json_2.13 1.3.6 Apache 2 org.scala-lang scala-library 2.13.18 Apache-2.0 org.apache.pekko pekko-http_2.13 2.0.1 Apache-2.0 org.apache.pekko pekko-http-core_2.13 2.0.1 Apache-2.0 org.apache.pekko pekko-parsing_2.13 2.0.1 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.parboiled parboiled_2.13 2.5.1 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.apache.pekko pekko-http_2.13 2.0.1 Apache-2.0 org.apache.pekko pekko-http-core_2.13 2.0.1 Apache-2.0 org.apache.pekko pekko-parsing_2.13 2.0.1 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.parboiled parboiled_2.13 2.5.1 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.apache.pekko pekko-parsing_2.13 2.0.1 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.apache.pekko pekko-stream_2.13 2.0.0 Apache-2.0 org.apache.pekko pekko-actor_2.13 2.0.0 Apache-2.0 com.typesafe config 1.4.9 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.apache.pekko pekko-protobuf-v3_2.13 2.0.0 Apache-2.0 org.reactivestreams reactive-streams 1.0.4 MIT-0 org.scala-lang scala-library 2.13.18 Apache-2.0 org.scala-lang scala-library 2.13.18 Apache-2.0
Build setup
The Apache Pekko Connectors Google Cloud BigQuery Storage library contains the classes generated from Google’s protobuf specification.
HTTP/2 requires ALPN negotiation, which comes with the JDK starting with version 8u251.
For older versions of the JDK you will need to load the jetty-alpn-agent yourself, but we recommend upgrading.
Configuration
The BigQuery Storage connector shares its basic configuration with all the Google connectors in Apache Pekko Connectors.
Example Test Configuration
pekko.connectors.google.cloud.bigquery.grpc {
host = "localhost"
port = 21000
rootCa = "none"
}
pekko.connectors.google.credentials.provider = none
For more configuration details consider the underlying configuration for Apache Pekko gRPC.
A manually initialized org.apache.pekko.stream.connectors.googlecloud.bigquery.storage.scaladsl.GrpcBigQueryStorageReaderorg.apache.pekko.stream.connectors.googlecloud.bigquery.storage.javadsl.GrpcBigQueryStorageReader can be used by providing it as an attribute to the stream:
- Scala
-
source
val reader: GrpcBigQueryStorageReader = GrpcBigQueryStorageReader(BigQueryStorageSettings("localhost", 8000)) val sourceForReader: Source[(ReadSession.Schema, Seq[Source[ReadRowsResponse.Rows, NotUsed]]), Future[NotUsed]] = BigQueryStorage .create("projectId", "datasetId", "tableId", DataFormat.AVRO) .withAttributes( BigQueryStorageAttributes.reader(reader)) - Java
-
source
GrpcBigQueryStorageReader reader = GrpcBigQueryStorageReader.apply(BigQueryStorageSettings.apply("localhost", 8000), sys); Source< Pair< com.google.cloud.bigquery.storage.v1.stream.ReadSession.Schema, List<Source<ReadRowsResponse.Rows, NotUsed>>>, CompletionStage<NotUsed>> sourceForReader = BigQueryStorage.createAsPair( "projectId", "datasetId", "tableId", DataFormat.AVRO, readOptions, 1) .withAttributes(BigQueryStorageAttributes.reader(reader));
Reading
We can read in a number of ways. To read data from a table a read session needs to be created. On the session creation we can specify the number of streams to be used in order to transfer the data, this makes it feasible to achieve parallelism while ingesting the data, thus achieving better performance. To create a session the data format needs to be specified. The options provided are Avro and Arrow.
If no TableReadOptions are specified all the table’s columns shall be retrieved as a Source containing a Source for each stream, which will each deliver a section of the rows:
- Scala
-
source
import org.apache.pekko import pekko.NotUsed import com.google.cloud.bigquery.storage.v1.storage.ReadRowsResponse import com.google.cloud.bigquery.storage.v1.DataFormat import com.google.cloud.bigquery.storage.v1.stream.ReadSession import pekko.stream.connectors.googlecloud.bigquery.storage.scaladsl.BigQueryStorage import pekko.stream.scaladsl.Source import com.google.cloud.bigquery.storage.v1.stream.ReadSession.TableReadOptions import scala.concurrent.Future val sourceOfSources: Source[(ReadSession.Schema, Seq[Source[ReadRowsResponse.Rows, NotUsed]]), Future[NotUsed]] = BigQueryStorage.create("projectId", "datasetId", "tableId", DataFormat.AVRO) - Java
-
source
import org.apache.pekko.stream.connectors.googlecloud.bigquery.storage.BigQueryRecord; import org.apache.pekko.stream.connectors.googlecloud.bigquery.storage.BigQueryStorageSettings; import org.apache.pekko.stream.connectors.googlecloud.bigquery.storage.javadsl.BigQueryArrowStorage; import org.apache.pekko.stream.connectors.googlecloud.bigquery.storage.javadsl.BigQueryAvroStorage; import org.apache.pekko.stream.connectors.googlecloud.bigquery.storage.javadsl.BigQueryStorage; import org.apache.pekko.stream.connectors.googlecloud.bigquery.storage.scaladsl.BigQueryStorageAttributes; import org.apache.pekko.stream.connectors.googlecloud.bigquery.storage.scaladsl.GrpcBigQueryStorageReader; import org.apache.pekko.stream.javadsl.Source; import org.apache.pekko.util.ByteString; import com.google.cloud.bigquery.storage.v1.DataFormat; import com.google.cloud.bigquery.storage.v1.ReadSession; import com.google.cloud.bigquery.storage.v1.storage.ReadRowsResponse; import org.apache.pekko.http.javadsl.unmarshalling.Unmarshaller; Source< Pair< com.google.cloud.bigquery.storage.v1.stream.ReadSession.Schema, List<Source<ReadRowsResponse.Rows, NotUsed>>>, CompletionStage<NotUsed>> sourceOfSources = BigQueryStorage.createAsPair("projectId", "datasetId", "tableId", DataFormat.AVRO);
Secondly, by specifying TableReadOptions, we can narrow down the amount of data returned, filtering down the columns returned, and/or a row_restriction. This is defined as:
SQL text filtering statement, similar to a WHERE clause in a query. Currently, only a single predicate that is a comparison between a column and a constant value is supported. Aggregates are not supported.
- Scala
-
source
val readOptions = TableReadOptions(selectedFields = Seq("stringField", "intField"), rowRestriction = "intField >= 5") val sourceOfSourcesFiltered : Source[(ReadSession.Schema, Seq[Source[ReadRowsResponse.Rows, NotUsed]]), Future[NotUsed]] = BigQueryStorage.create("projectId", "datasetId", "tableId", DataFormat.AVRO, Some(readOptions)) - Java
-
source
ReadSession.TableReadOptions readOptions = ReadSession.TableReadOptions.newBuilder() .setSelectedFields(0, "stringField") .setSelectedFields(1, "intField") .setRowRestriction("intField >= 5") .build(); Source< Pair< com.google.cloud.bigquery.storage.v1.stream.ReadSession.Schema, List<Source<ReadRowsResponse.Rows, NotUsed>>>, CompletionStage<NotUsed>> sourceOfSourcesFiltered = BigQueryStorage.createAsPair( "projectId", "datasetId", "tableId", DataFormat.AVRO, readOptions, 1);
You can then choose to read and process these streams as is or merged. You can process the streams merged in rows. You need to provide a ByteString Unmarshaller based on the format requested.
- Scala
-
source
implicit val unmarshaller: FromByteStringUnmarshaller[List[BigQueryRecord]] = mock[FromByteStringUnmarshaller[List[BigQueryRecord]]] val sequentialSource: Source[List[BigQueryRecord], Future[NotUsed]] = BigQueryStorage.createMergedStreams("projectId", "datasetId", "tableId", DataFormat.AVRO) - Java
-
source
Unmarshaller<ByteString, List<BigQueryRecord>> unmarshaller = null; Source<List<BigQueryRecord>, CompletionStage<NotUsed>> sequentialSource = BigQueryStorage.<List<BigQueryRecord>>createMergedStreams( "projectId", "datasetId", "tableId", DataFormat.AVRO, unmarshaller);
Or process the stream of rows individually:
- Scala
-
source
import org.apache.pekko import pekko.NotUsed import com.google.cloud.bigquery.storage.v1.storage.ReadRowsResponse import com.google.cloud.bigquery.storage.v1.DataFormat import com.google.cloud.bigquery.storage.v1.stream.ReadSession import pekko.stream.connectors.googlecloud.bigquery.storage.scaladsl.BigQueryStorage import pekko.stream.scaladsl.Source import com.google.cloud.bigquery.storage.v1.stream.ReadSession.TableReadOptions import scala.concurrent.Future val sourceOfSources: Source[(ReadSession.Schema, Seq[Source[ReadRowsResponse.Rows, NotUsed]]), Future[NotUsed]] = BigQueryStorage.create("projectId", "datasetId", "tableId", DataFormat.AVRO) - Java
-
source
import org.apache.pekko.stream.connectors.googlecloud.bigquery.storage.BigQueryRecord; import org.apache.pekko.stream.connectors.googlecloud.bigquery.storage.BigQueryStorageSettings; import org.apache.pekko.stream.connectors.googlecloud.bigquery.storage.javadsl.BigQueryArrowStorage; import org.apache.pekko.stream.connectors.googlecloud.bigquery.storage.javadsl.BigQueryAvroStorage; import org.apache.pekko.stream.connectors.googlecloud.bigquery.storage.javadsl.BigQueryStorage; import org.apache.pekko.stream.connectors.googlecloud.bigquery.storage.scaladsl.BigQueryStorageAttributes; import org.apache.pekko.stream.connectors.googlecloud.bigquery.storage.scaladsl.GrpcBigQueryStorageReader; import org.apache.pekko.stream.javadsl.Source; import org.apache.pekko.util.ByteString; import com.google.cloud.bigquery.storage.v1.DataFormat; import com.google.cloud.bigquery.storage.v1.ReadSession; import com.google.cloud.bigquery.storage.v1.storage.ReadRowsResponse; import org.apache.pekko.http.javadsl.unmarshalling.Unmarshaller; Source< Pair< com.google.cloud.bigquery.storage.v1.stream.ReadSession.Schema, List<Source<ReadRowsResponse.Rows, NotUsed>>>, CompletionStage<NotUsed>> sourceOfSources = BigQueryStorage.createAsPair("projectId", "datasetId", "tableId", DataFormat.AVRO);
Since Avro and Arrow are the formats available, streams for those specific formats can be created.
You can read Arrow Record streams merged
- Scala
-
source
val arrowSequentialSource: Source[Seq[BigQueryRecord], Future[NotUsed]] = BigQueryArrowStorage.readRecordsMerged("projectId", "datasetId", "tableId") - Java
-
source
Source<List<BigQueryRecord>, CompletionStage<NotUsed>> arrowSequentialSource = BigQueryArrowStorage.readRecordsMerged("projectId", "datasetId", "tableId");
You can read Arrow Record streams individually
- Scala
-
source
val arrowParallelSource: Source[Seq[Source[BigQueryRecord, NotUsed]], Future[NotUsed]] = BigQueryArrowStorage.readRecords("projectId", "datasetId", "tableId") - Java
-
source
Source<List<Source<BigQueryRecord, NotUsed>>, CompletionStage<NotUsed>> arrowParallelSource = BigQueryArrowStorage.readRecords("projectId", "datasetId", "tableId");
You can read Avro Record streams merged
- Scala
-
source
val avroSequentialSource: Source[Seq[BigQueryRecord], Future[NotUsed]] = BigQueryAvroStorage.readRecordsMerged("projectId", "datasetId", "tableId") - Java
-
source
Source<List<BigQueryRecord>, CompletionStage<NotUsed>> avroSequentialSource = BigQueryAvroStorage.readRecordsMerged("projectId", "datasetId", "tableId");
You can read Avro Record streams individually
- Scala
-
source
val avroParallelSource: Source[Seq[Source[BigQueryRecord, NotUsed]], Future[NotUsed]] = BigQueryAvroStorage.readRecords("projectId", "datasetId", "tableId") - Java
-
source
Source<List<Source<BigQueryRecord, NotUsed>>, CompletionStage<NotUsed>> avroParallelSource = BigQueryAvroStorage.readRecords("projectId", "datasetId", "tableId");
Running the test code
The tests use a BigQueryMockServer that implements the server defined in the protobuf for the Storage API. It essentially provides a mock table on which to query. Tests can be started from sbt by running:
- sbt
-
> google-cloud-bigquery-storage/test