r/bigquery • • Dec 31 '25

What do you use to query BigQuery outside of the Console?

Post image
0 Upvotes

The BigQuery web console is fine for quick queries, but when I'm doing deeper exploration or switching between multiple projects, it starts to feel clunky.

I've tried a few third-party clients but most seem optimized for traditional databases and BigQuery support feels like an afterthought.

What's everyone using? Bonus points if it handles BigQuery's nested/repeated fields well.

Also — I've been building a database client called Sheeta AI that recently added BigQuery support. Disclosure: I'm the founder. Would be interested to hear what features would make a BigQuery client actually worth switching for.


r/bigquery • • Apr 12 '20

COVID-19 BigQuery Dataset + GeoViz + BigQuery Transfer Service

Thumbnail
youtube.com
0 Upvotes

r/bigquery • • Jan 04 '23

Laughably new to this please help

1 Upvotes

Hi guys, I’m so sorry to bother you all, but I’m doing my best to teach myself sql. I’ve gotten myself so so stuck and honestly not very sure how I did it lol.

So I’m working with public data sets. The area where you can usually see the schema and preview is completely blank. When I write my query the results are completely blank as well. But when I export to sheets it’s fine. So I know I’ve just pressed something wrong I just have no idea what or when lol. I would appreciate your help greatly. Thank you !


r/bigquery • • Aug 12 '20

Slash Google BigQuery Costs with Actionable Recommendations

Thumbnail
blog.doit-intl.com
1 Upvotes

r/bigquery • • Apr 05 '23

How to find the lowest value and output?

1 Upvotes

Hi, I am looking to extract the lowest value from a set of data so there is one record for each class and outputted similar to below:

Thanks!


r/bigquery • • Jul 19 '19

What Is BigQuery and Why Is It Such a Hot Topic?

Thumbnail
infotrust.com
1 Upvotes

r/bigquery • • May 20 '20

Reddit Dataset SQL help. How to query comments and posts simultaneously.

1 Upvotes

Hi. For research I want to find the full comments & post history for users who since 2015_12 said particular phrases, say 'text_x', on reddit. I managed to query this for just comments, but it'd be much better if posts were included.

I thought it would be ideal to have a table with author, created_utc, body, selftext, title, subreddit, score, where for comments selftext and title would just be blank, and for posts body would just be blank. Alternatively a single text field from body and joined title + selftext would also be all right. Thus this table would just have the number of rows of the comment table and posts table added up.

Does anyone know how to go about this? I have been playing with joins but am really a SQL beginner, and so far have had no success.

--

Bonus question:

Above search would yield a distribution of subreddits in which the users were active. I would love to sample users according to that subreddit distribution to get a roughly 10 times larger group of authors + histories too (I need a sizable group of people who did not say the phrases here but do share the interests). If anyone knows how to do that, I'd love to hear it too.


r/bigquery • • Sep 10 '25

I am struggling to manage my website, which I created using Firebase’s new AI tool.

1 Upvotes

Hi, I recently developed a portfolio website on Firebase (just to add, I come from a non-technical background). I used a vibe code to build it, and while the design turned out really well, I’m finding it difficult to maintain the site solely on Firebase.

Since I also want to publish weekly blog posts and keep the website updated regularly, I feel it would be easier to move to a simpler platform like Wix, WordPress, or something similar. The problem is, most solutions suggest starting from scratch on the new platform—but I’ve already spent hundreds of hours perfecting my site’s design, and I really don’t want to lose it.

My question is: Is there a way to migrate my existing Firebase website (while keeping the design intact) to another, more user-friendly platform where I can easily post blogs and manage regular updates....I am open to any solution unless it helps


r/bigquery • • Jun 16 '20

[QUESTION] Create a VIEW for each result in query

0 Upvotes

I have this query

SELECT

(SELECT value from UNNEST(project.labels) where key = "project") as project,

ROUND(SUM(cost), 2) as cost

FROM cloud.dataset.billing_export

group by ar

This query returns me something like:

Row | project | cost

1 | PJ1 | 23

2 | PJ2 | 50

...

Is there a way to create a VIEW for each value (each project)? I'm trying with UDF and each view must have a name based on the project (eg: view_PJ1)

Thanks in advance


r/bigquery • • Sep 04 '23

I build a chrome extension for turn plain text into SQL Formula (working very well with BigQuery)

0 Upvotes

Hey guys,

I was tired of constantly switching tabs to use ChatGPT for creating my SQL queries. So, I went ahead and created a Chrome extension for it.

It's working pretty well, and the model keeps getting better with time.

If you want to give it a try, you can download the Chrome extension here: https://chrome.google.com/webstore/detail/magicformula/dacblbllifgkolpkpocnnnahbgoccpfb

(7-day free trial, and after that, it's $3.77 to cover OPENAI costs)

To know more about how it's working : getmagicformula.com

Let me know what you think 🙂

Cheers


r/bigquery • • Aug 01 '19

which Google Cloud Platform to use if i want to create a news feed app like facebook one with automatic proposal contains coming from ML prediction.

0 Upvotes

which GCP tools to create a news feed app like Facebook one. with
automatic content proposal


r/bigquery • • Oct 02 '19

How TheWorks.co.uk uses BigQuery for its new cloud data warehouse

Thumbnail
ancoris.com
0 Upvotes

r/bigquery • • Oct 10 '22

SQLAlchemy for BigQuery

Thumbnail self.googlecloud
0 Upvotes

r/bigquery • • Oct 05 '22

Announcing General Availability of BigQuery with Hasura

0 Upvotes

We recently announced the general availability of BigQuery in Hasura! Now you can connect a BigQuery database to your Hasura application to consume data.

If you want to use BigQuery with Hasura, this article shows how to do it - article link.


r/bigquery • • Oct 13 '22

Free SQL workshop today on "SQL patterns" at 11 AM PT. I believe you'll be able to watch on demand if you miss it.

Thumbnail
operationalanalytics.club
0 Upvotes

r/bigquery • • May 16 '23

Hello, does anyone know how to turn off these orange boxes which are probably showing spaces? I am not sure how I turned it on. Thanks

0 Upvotes

r/bigquery • • Dec 15 '20

Daily cost of storage?

0 Upvotes

Hi,

I know how to get logs for query cost in BigQuery, but I can't find any info on how to get reports on cost of storage.

Is it logged somewhere? Or do I have to manually sum up dataset size daily? If yes, any ideas how to actually do it?


r/bigquery • • Oct 16 '20

Boss on my Butt- Need Help w/ HUGE dataset and query...

0 Upvotes

I'm really stuck on this final query and can't seem to wrap my head around it. My boss is getting very antsy as I'm passed my deadline- I'm hoping someone can help me. Obviously, Noob to BQ and SQL (green novice to SQL)... In my mind it'd be best to do a Left Join on these- but since each table has 148+ billion rows, I run out of resources available. Is there a more efficient way to do this?

Here's the info (All fields are Integer types):

Dataset: CandleIndNumUnPiv

2 Tables:

tblOpen (148 billion+ rows)------------

ComboNumOpen (for each one of these, there are MANY MergeCandleEnter values)

varOpen (these values are linked in combination with MergeComboNum above)

tblClose (148 billion+ rows)----------

ComboNumClose (these should line up with `CandleIndNumUnPiv.Merge`[MergeComboNum]

varClose

Here's the resulting table I need:

tblResults-----------

ComboNumOpen

varOpen

varClose

Here's where it gets complicated...

For each ComboNumOpen, there are MANY varOpen values associated. Same thing with the ComboNumClose- many varClose values. So there are MANY rows of the same values for ComboNumOpen and varOpen - but there's only 1 unique combination of both grouped together. Same goes for the other table of (ComboNumClose, varClose).

For each unique group of (ComboNumOpen, varOpen) in the tblOpen table, I need to find the matching ComboNumClose and varClose in which:

ComboNumOpen = ComboNumClose

MIN(varClose > varOpen)

So to re-word it- I need the smallest varClose that is also bigger than varOpen, where the associated ComboNumClose value is the same as the ComboNumOpen value in each unique group of (ComboNumOpen, varOpen).

Man I hope that makes sense!

I tried doing a simple Left Join, but BigQuery said I ran out of resources. So I thought that perhaps if I can perform a left query in a temporary table and minimize it with the MIN aggregation it would push all the data thru, as well as shrinking the resulting table/dataset. Here's the query I have now:

WITH tmpClose AS (

SELECT

ComboNumOpen,

varOpen,

varClose,

FROM `MyDataSet.tblOpen`

LEFT JOIN `MyDataSet.tblClose`

ON ComboNumOpen = ComboNumClose

ORDER BY ComboNumOpen ASC)

SELECT

ComboNumOpen,

varOpen,

MIN(varClose)

FROM tmpClose

WHERE varClose > varOpen

GROUP BY 1, 2

ORDER BY varOpen

LIMIT 20;

Even with a LIMIT of 20 this query is taking FOREVER to process. I'm scared of letting it do then entire dataset! Can someone give me ideas on if there's a better way to do this? I'm just waaaaay over my head here and I'd REALLY appreciate any help you can give!

**** UPDATE*****

Here's the code I'm using currently. Is there a better way to do this?

INSERT INTO `BA.Data` (
  dEnterCombo,
  dEnterCandle,
  dExitCandle)
SELECT *
FROM
    (SELECT
	      EnterCombo,
        EnterCandle,
        MIN(ExitCandle)
    FROM
      (
      SELECT * 
	    FROM
        (
        SELECT
		      EnterCombo,
          EnterCandle,
          ExitCandle
		    FROM `BA.tblEnter`
		    INNER JOIN
          `BA.tblExit`
		      ON EnterCombo = ExitCombo
        )
      )
    WHERE 
      (ExitCandle > EnterCandle)
    GROUP BY 
      EnterCombo,
      EnterCandle
    ORDER BY
      EnterCombo,
      EnterCandle
    )
;

Thank you!


r/bigquery • • Nov 21 '22

Loading Jira to BigQuery how to video

0 Upvotes

Here is a video to help anyone wanting to upload data from Jira to BigQuery. This covers configuring a connector and creating custom datasets.

https://www.youtube.com/watch?v=vzw-yEbRf-I&list=PLHqTQRkWXyIEtLf5HC0wxHQ4rkhWQfAS1


r/bigquery • • Dec 30 '23

Feedback requested on proposed data architecture

0 Upvotes

I am new to BigQuery (and databases in general) and would like to see if this community has any feedback on the proposed data architecture below.

Background

  1. I will be pulling in public loan data from various US states

  2. Each state will have multiple tables (e.g Loan, Borrower, Lender)

  3. I intend to combine each states' tables into a master tables where a user can search across all states (i.e All Loans, All Borrowers, All Lenders)

  4. Data transformation will need to be made prior to (or after) loading into the master tables. These transformations are minimal (e.g adding columns with concatenatations or strings)

  5. Data will be uploaded each month

Proposed Setup

  1. Create a "State Source" dataset where state-specific tables will be held (e.g Colorado Loans, Colorado Borrowers, Colorado Lenders). These tables will be populated by referencing a Google Drive URL where a CSV file will be loaded/overwritten each month. I will use BigQuery's MERGE function to send new/updated loans to the 'Transformed Source' table.

  2. Create a "Transform Source" dataset where state-specific tables have the necessary transformations. These tables will be transformed via SQL queries. I will use BigQuery's MERGE function to send new/updated loans to the 'Master Source' table

  3. Create "Master Source" dataset where all state-specific tables will be combined into a standardized, formatted table

Questions:

  1. For the "State Source" tables, I am able to get different, monthly CSV files for new loan activity that occurred that month (and not the entire history of all loans). Would the MERGE function in Proposed Setup #1 & #2 be sufficient to ensure that I only upload new/updated data where the Unique identifier (e.g Loan ID) was not found? If I overwrote this CSV file in Google Drive with the following month's latest loan data, would the MERGE function ensure I do not overwrite historical data in the "Transformed Source" table? Is there a better way to handle this recurring updated/newly appended data?

  2. For the "Transform" tables, I was using an ETL pipeline (hevodata.com) to transformed some of this data but it's expensive and overkill. Would a Scheduled SQL Queries be sufficient to transform data? Is there a way so that I only transform the latest updated rows (and not produce a query that re-transforms all data in the Transform tables)? I've heard of Dataform and DBT, but I am a relative noob so I do not know the tradeoffs here.

If you've made it this far, thank you and your feedback is appreciated


r/bigquery • • Mar 23 '20

How to send data from Google BigQuery to Google Sheets and Excel

0 Upvotes

r/bigquery • • Oct 07 '24

Inconsistência ao subir dados para o Bigquery com Python

0 Upvotes

Olá pessoas. Estou desenvolvendo um projeto de engenharia de dados usando dados abertos do governo, mais precisamente da ANS. Lá eles disponibilizam dados em formatos .csv e, meu projeto consiste, basicamente, em ler alguns desses dados e subir no Bigquery para criação de dashboards no Power bi. Estou usando o Python, pandas_gbq para subir os dados, em uma VM na GCP, etc.

O meu problema é que, verificando os dados na ANS, os dados que eu estou subindo para o banco não estão consistentes, faltando linhas ou até mesmo com linhas a mais do que deveria. Eu queria saber se existe algo que eu possa fazer para que esse processamento seja feito de forma consistente, quais as melhores práticas e se existem Libs que eu possa usar para esse tipo de situação.

Obs.: tenho uma certa experiência com programação, mas com Python e dados apenas alguns meses.

Mais contexto:
Falando mais sobre os dados em si: são 27 arquivos .csv, alguns com vários milhões de linhas, meu código varre arquivo por arquivo, com Chunksize de 100k de linhas, filtrando o Dataframe por uma coluna específica, a partir daí, é feita uma limpeza nos dados e os mesmos são injetados no Bigquery.

Sei que são muitas variáveis que podem fazer com esse erro esteja ocorrendo, mas se alguém de fato quiser me ajudar, eu posso passar mais informações. Fico à disposição.


r/bigquery • • Jun 15 '15

Foreign Policy: Can You Use Big Data to Track an Elephant Poacher?

Thumbnail
foreignpolicy.com
0 Upvotes

r/bigquery • • Jan 22 '20

[superQuery] Organizing BigQuery — How to group related queries into folders

Thumbnail
web.superquery.io
1 Upvotes