Questions tagged [google-bigquery]

Google BigQuery, a product within the Google Cloud Platform suite, offers a unique and efficient solution for analyzing massive data sets using SQL queries in a serverless environment. With its robust read-write pipelines, BigQuery revolutionizes traditional data analytics processes by allowing businesses to gain valuable insights from their data in groundbreaking ways.

Increasing the time limit for BigQuery method calls.Tips for extending the default time out period

Is there a way to change the default timeout value in BigQuery? I know that the default is 1 minute, but I would like to override it either when calling an Operation method or while setting up the BigQuery client. The documentation mentions a timeout optio ...

Is there a secure way to prevent user input from causing issues in a BigQuery node insert? Can the BigQuery.insert node library support parameterized queries for added security

I am seeking advice on how to securely insert user form data into BigQuery using the Google Cloud BigQuery library. Specifically, I am curious about the most effective methods for sanitizing, escaping, and cleaning the input data. Is it feasible to implem ...

Using Node JS to insert a complete request object into a record data type in Big Query

I have received a JSON object from the client side that I need to insert into a BigQuery table without specifying individual fields. However, I am struggling to write an insert query for this purpose. The JSON object in question is as follows: var reqBody ...

Is it possible to use an external table in Node.js to query cloud storage?

Is it possible to query cloud storage using the external table concept in Node.js? I found some code in Python that achieves this functionality, but I would prefer to implement the same logic in Node.js. Is there a way to do this? ...

Using BigQuery with NodeJS: Explore deleting rows and DML operations

Is it feasible to delete rows using the NodeJS library for BigQuery (https://github.com/googleapis/nodejs-bigquery)? I have searched through the documentation () but couldn't find any information on this. It seems possible to execute a DELETE statement vi ...

What is the proper approach for populating custom fields in a bigquery table using NodeJS?

I'm currently utilizing the npm BigQuery module to handle data insertion into bigquery. In my case, I have a personalized field called params which is categorized as a RECORD and has the ability to accept any numerical (integer or floating-point) or textua ...

How can I retrieve JSON data correctly from Java and BigQuery instead of receiving a list of FieldValues?

As a novice in the realm of BigQuery, I am currently working on extracting values from a test table. The table comprises three columns: ID, DateTime, and String. To populate some rows, I used the current time in milliseconds for the ID, the current UTC tim ...

Exploring BigQuery Audit Logs - identifying JSON metadata keys containing the '@' sign

When crafting queries in Log Explorer, we have the option to utilize the following syntax: protoPayload.metadata."@type"="type.googleapis.com/google.cloud.audit.BigQueryAuditMetadata" After successfully setting up a sink to store all l ...

The schema definition created through an online Schema-Generator tool cannot be used with the Load Table API in BigQuery

Any assistance in this matter would be greatly appreciated. I am currently facing an issue with inserting various JSON documents into BigQuery. To avoid manual schema generation, I have been using online tools for Json Schema Generation. However, the sche ...

Querying a JSON field in BigQuery yields empty results

Once more, I am struggling with my SQL query on a JSON field in bigquery. This JSON data can be found at this link - The specific record I am working with has an id of 1675816490 Here is the SQL statement I am using: SELECT ##JSON_EXTRACT(jso ...

Encountering Error: ImportError when working with Google App Engine locally: Module google.cloud.bigquery not found

Just like the title suggests. I have included the following code in appengine_config.py, but it doesn't seem to be working: # appengine_config.py from google.appengine.ext import vendor # Add any libraries installed in the "lib" folder. vendor.add('lib' ...

Most efficient method for processing minibatches in a vast BigQuery dataset?

I need to extract mini-batches from a BigQuery table with over 200 million rows to train a machine learning model. Since the dataset is too large to be loaded into memory all at once, I am looking for a way to read it in smaller chunks while ensuring tha ...

Retrieving Data for Specific Key in JSON Object using BigQuery

I am facing a challenge with a string object stored in a table column, having the following structure: [{"__food": "true"},{"item": "1"},{"toppings": "true"},{"__discount_amount": " ...

Error related to environment / authentication - BigQuery Admin: {invalid_grant, Invalid JWT Signature}

Recently, I embarked on my first journey to utilize the BigQuery API by following a Python tutorial guide available here. My primary objective is to create datasets, however, I'm encountering challenges with basic public data access. To address this, ...

Data fields in BigQuery are automatically converted for ease of use

Insight When uploading JSON data to a BigQuery table with autodetect enabled, I encountered an issue where the field "a" could not be converted to an integer. Upon further investigation and modification of the JSON data, changing values in the "a" field ...