Skip to content
Advertisement

Tag: google-bigquery

Can you create multiple tables with one query in Google Big query?

New create table feature has been released and I was wondering if it’s possible to create 2 or more tables with one query. I tried, but it returns error Error: Syntax error: Unexpected keyword CREATE at [8:1] Any ideas? Is it even possible? Thanks! Answer As per the documentation link in your question: Only one CREATE statement is allowed. So,

Using ARRAY_AGG() with DISTINCT and ORDER BY with ORDINAL

I have some data that I am trying to aggregate (greatly simplified here). The raw data uses a schema similar to the following: There are many actual records due to the “MISC” column, but I’m only trying to focus on the first 5 columns shown above. A sample of the raw data is shown below (note that the values shown

Alternative to BigQuery for medium-sized data

This is a follow-up to the question Why doesn’t BigQuery perform as well on small data sets. Let’s suppose I have a data-set that is ~1M rows. In the current database that we’re using (mysql) aggregation queries would run quite slow, perhaps taking ~10s or so on complex aggregations. On BigQuery, the initialization time required might make this query take

Advertisement