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?
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 .
Materialized views were implemented first by the Oracle Database: the Query rewrite feature was added from version 8i.
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;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With