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
0
votes
0 answers

BigQuery query JSON TO column

I have Json data which is saved in bigquery, i want to seperate json to table Row jobStatistics JSON 1 { billingTier: 1 createTime:…
0
votes
0 answers

BigQuery - Question about retrieving previous value

I have one question about how to fill column looking for previous values. My problem is that the column "abandoned" need to follow some rules to be filled. The rules are: The column "abandoned" should be filled with "yes" or "no", choosing one…
0
votes
1 answer

How to get paginated data from BigQuery in Java?

I am confused in how to fetch the paginated data from bigquery in Java, I followed the docs from bigquery but it's not clear for me // Identify the table itself TableId tableId = TableId.of("dataset", "table"); // Page over 100…
0
votes
0 answers

Why is my Big Query Dataset connected to a G Sheet throwing an error when I'm trying to auto refresh it through an AppScript code?

I am trying to trigger another function after 2 of Big Query tables are refreshed hence I trying to refresh all my connected datasets in a google sheet by using an app script code. Both of my tables come from different datasets but the permission of…
0
votes
1 answer

SyntaxError when adding and subtracting with BigQuery

When executing this basic query I have this error: WITH CALCULO AS ( (SELECT SUM(UTILITY) FROM _coste_rv) - (SUM(UTILITY) + (SELECT SUM(UTILITY) FROM _tmp_coste))) Message of Error: Syntax error: Expected ")" but got "-" What I want it to…
0
votes
0 answers

standalone spark cluster read from gcp-bq

We have a local standalone spark cluster (2.3.1) trying to connect a read from GCP-BQ table. df.show() is throwing bunch of errors. ---error-- m/spark-2.3.1-bin-hadoop2.7/python/lib/py4j-0.10.7-src.zip/py4j/protocol.py", line 328, in…
0
votes
1 answer

How do I save a table from big query into colab as a pandas dataframe?

I am new to BQ I am trying to save my BQ tables as a pandas dataframe in my colab environment. This is the code I am using but I am getting a "Bad request Error". Any ideas how I can trouble shoot? I can't figure out what I am doing wrong. My code…
0
votes
1 answer

GCP - Bigquery with multiple conditions

I have a table called StockList which is used to keep track of available stock details I have inserted all the available stocks initially (inserted on 04-12-2022). My stockList table looks like this. After initial load, Everyday(12 AM) I will…
Sweety
  • 307
  • 1
  • 11
0
votes
1 answer

Change a dataset dynamically on BigQuery

I have a procedure saved in a dataset (project.dataset_x.sp_test) and this procedure have statments that create tables in the same dataset of the procedure (project.dataset_x.d_test). The goal is to change all the datasets dataset_x to dataset_y…
0
votes
1 answer

BigQuery performance impact with column data length

Problem statement - We are planning to store hexadecimal string data with length 64 in a BigQuery column. Will it affect the BigQuery query performance when queries are run with filter/join operations on these columns (with large string lengths)…
Arijeet Saha
  • 1,118
  • 11
  • 23
0
votes
1 answer

Spring boot BigQuery datasource connection

I am trying to connect BigQuery from Spring boot using Simba jdbc driver but I am getting below exception. Any input is appreciated. I am not sure why spring-boot is looking for a certifcate. I am able to connect with simple java main class, But I…
0
votes
1 answer

BigQuery - how to change the order of the schema with nested columns when creating a view?

I want to change the schema of the nested on my VIEW. But BigQuery won't do it because I'm calling the record "productPrice". Indeed, if I don't call this, I can't keep it nested in my view. Error Message when i use "productPrice" Column xx in…
Ziathes
  • 15
  • 5
0
votes
1 answer

Data streaming in Apache superset from BQ?

I am new to superset and wanted to know if there's any way to perform data streaming in big query using apache superset? Currently, I have set up the database in apache superset with big query but when I update the table data using SQL commands in…
0
votes
1 answer

spring-cloud-gcp-starter-bigquery ignores spring.cloud.gcp.credentials.location from property file

I am playing with spring gcp project. My first example with GCP bucket works properly and uses correct google account which I pointed in the property file: spring.cloud.gcp.credentials.location=file:secret.json On the next step I tried to repeat…
-1
votes
1 answer

How to join two tables that has one to many relationship in bigquery

Let say I have student Table like below in BigQuery: Mark Table looks like below in Big Query: I would like to join this two tables and create a new table like below :
Musa
  • 87
  • 8