Questions tagged [spring-cloud-gcp-bigquery]

Spring Cloud GCP provides: A convenience starter which provides autoconfiguration for the BigQuery client objects with credentials needed to interface with BigQuery. A Spring Integration message handler for loading data into BigQuery tables in your Spring integration pipelines.

For more information:

https://cloud.spring.io/spring-cloud-gcp/reference/html/#google-cloud-bigquery

https://cloud.google.com/bigquery/?utm_source=google&utm_medium=cpc&utm_campaign=emea-gb-all-en-dr-skws-all-solutions-trial-e-gcp-1008073&utm_content=text-ad-none-any-DEV_c-CRE_335630919807-ADGP_Hybrid+%7C+AW+SEM+%7C+SKWS+~+EXA_1:1_GB_EN_Data+Warehousing_bigquery-KWID_43700041731167731-kwd-47616965283-userloc_9047064&utm_term=KW_bigqueryg&ds_rl=1242850&ds_rl=1245734&ds_rl=1245734&gclid=CjwKCAiAnfjyBRBxEiwA-EECLLinbvFMM5__SdDjusbOZmcX4mV5Boaq-JWeqtaTnC0qe4Xfw4O1aBoCGpIQAvD_BwE#overview

33 questions
3
votes
1 answer

googleapis.com: connection throws com.google.cloud.bigquery.BigQueryException: sun.security.validator.ValidatorException PKIX path building failed

I have connected BigQuery from Java client but am getting the below exception BigQuery com.google.cloud.bigquery.BigQueryException: sun.security.validator.ValidatorException: PKIX path building failed:…
Neela
  • 107
  • 2
  • 10
2
votes
2 answers

How to insert 38000 records in BigQuery using streaming insertAll?

I am trying to insert 38000 records in BigQuery using Streaming insertAll method. But first I am getting error as: Insert operation not performed com.google.cloud.bigquery.BigQueryException: Read timed out Then after increasing the timeout time…
1
vote
1 answer

How to extract all (including int and float) numerical values in a string column in Google BigQuery?

I have a table Table_1 on Google BigQuery which includes a string column str_column. I would like to write a SQL query (compatible with Google BigQuery) to extract all numerical values in str_column and append them as new numerical columns to…
khemedi
  • 774
  • 3
  • 9
  • 19
1
vote
1 answer

How to get failed insert record for file load insertion in BigQuery

I'm using Apache Beam (Java SDK) to insert record in BigQuery using Batch load method (File loads). I want to retrieve those records which failed during insertion. Is it possible to have a retry policy on failed records? Below is my code: public…
1
vote
1 answer

Support UNION ALL function in BigQuery SQL Issue

How can i make this query run on GCP big query without error: 'Correlated subqueries that reference other tables are not supported unless they can be de-correlated, such as by transforming them into an efficient JOIN.' Do you guys have any ideia…
0
votes
0 answers

Problem importing google-cloud-bigquerystorage maven dependency

I'm trying to build service to store data in BigQuery. One of imported dependencies is: com.google.cloud google-cloud-bigquerystorage **2.41.0**
0
votes
1 answer

Trouble connecting to BigQuery using Google Cloud Client Library in a Spring Boot Application

I'm working on a Spring Boot application and I'm trying to connect to Google BigQuery using the Google Cloud Client Library. I have a service account JSON credentials file located at src/main/resources/my-todo/vm-dev-393108-80d765f9af09.json in my…
0
votes
1 answer

which is the best way to query GCP usage cost from BigQuery in java?

while researching on bigquery, pricing depends on amount of data processed so that have to query cost data in a efficient manner. // Aim is to get cost usage for June month, values may update after June month also as a adjustment. // so I am…
0
votes
1 answer

Array_agg not allowed within UNNEST in bigquery | Google Bigquery

I am trying converting Hive QL to Bigquery SQL Hive Query create table d_bu as select itapp_id, it_acronym, concat_ws(',',sort_array(split(concat_ws(":", collect_set(it_unit)),':'))) as merged_BU, case when lower(domain) in ('csms','ucmdb') then…
0
votes
0 answers

Value of type ARRAY>> cannot be assigned to M.preferences_testing, which has type STRING

getting the below error Value of type ARRAY> cannot be assigned to M.preferences_testing, which has type STRING MERGE table1 M USING ( select  _id,ARRAY(SELECT AS STRUCT value from unnest(preferences) as p where…
0
votes
0 answers

Pagination for multiple concurrent users using google bigquery

We have an existing reporting application which is migrating to Google Bigquery and for detail page we have to implement the pagination concept. Currently we are creating a temp table to store the queried data and query the temp-table for…
0
votes
0 answers

Is it possible to query multiple datasets in a single query BigQuery DBMS?

In our product, one user has multiple accounts. Each account data is stored in different dataset in Big Query. Because there was no dependency or communication between two accounts, this approach was taken. But now we have a requirement where we…
Akash
  • 1
0
votes
0 answers

BigQuery - How to instantiate BigQueryTemplate without env variables? getting The Application Default Credentials are not available

I'm trying to instantiate BigQueryTemplate without the environment variable GOOGLE_APPLICATION_CREDENTIALS. Steps tried: Implemented CredentialsSupplier by instantiating Credentials and setting location to service account json file. Instantiated…
0
votes
1 answer

BigQuery : Bulk update Table using DML queries

I'm using query API from com.google.cloud.bigquery.BigQuery to perform update operations Ref. Is there a way to perform bulk update to BigQuery Table similar to insertAll or writeJsonStream.
user2135533
  • 181
  • 1
  • 2
  • 11
0
votes
0 answers

BigQueryException Connection Reset

I am getting the below exception when my REST API tries to connect to a Google BigQuery account on UAT environment. 2023-01-30 02:12:59.823 ERROR 8 --- [nio-8080-exec-9] o.a.c.c.C.[.[.[.[dispatcherServlet] : Servlet.service() for servlet…
1
2 3