Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hi, does BigQuery support materialized views?

Does BigQuery support materialized views? The documentation suggests to materialize the query output. does this mean materialized views are supported or is this as good as creating a new table with the query output?

like image 296
user9939254 Avatar asked Jun 14 '18 03:06

user9939254


People also ask

Can we create materialized view on a view in BigQuery?

You can create BigQuery materialized views through the Google Cloud console, the bq command-line tool, or the BigQuery API. Also assume that you want a materialized view that summarizes the number of clicks per product_id .

What databases support materialized?

Materialized views were implemented first by the Oracle Database: the Query rewrite feature was added from version 8i.


1 Answers

Materialized views are not (yet) supported in BigQuery at the time of this writing. You can follow along with the relevant feature request, however. In the meantime, you need to create a table explicitly from a view, e.g.:

CREATE TABLE dataset.materialized_view AS
SELECT *
FROM dataset.view;
like image 116
Elliott Brossard Avatar answered Oct 13 '22 12:10

Elliott Brossard