From 9b1584e88913b802608a9a4992fdab645a45c5d3 Mon Sep 17 00:00:00 2001 From: Sarah Laplante Date: Tue, 6 Jun 2023 12:20:19 +0000 Subject: [PATCH] bump up domain clustering --- table/queries/derived_satellite_scans.sql | 2 +- table/queries/merged_reduced_scans.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/table/queries/derived_satellite_scans.sql b/table/queries/derived_satellite_scans.sql index c7096844..0098547b 100644 --- a/table/queries/derived_satellite_scans.sql +++ b/table/queries/derived_satellite_scans.sql @@ -177,7 +177,7 @@ CREATE OR REPLACE TABLE `PROJECT_NAME.DERIVED_DATASET.reduced_satellite_scans_v1 PARTITION BY date # Column `country_name` is always used for filtering and must come first. # `network`, `subnetwork`, and `domain` are useful for filtering and grouping. -CLUSTER BY country_name, network, subnetwork, domain +CLUSTER BY country_name, domain, network, subnetwork OPTIONS ( friendly_name="Reduced Satellite Scans", description="Filtered and pre-aggregated table of Satellite scans to use with the Censored Planed Dashboard" diff --git a/table/queries/merged_reduced_scans.sql b/table/queries/merged_reduced_scans.sql index 96779bad..14e69f5e 100644 --- a/table/queries/merged_reduced_scans.sql +++ b/table/queries/merged_reduced_scans.sql @@ -38,7 +38,7 @@ CREATE OR REPLACE TABLE `PROJECT_NAME.DERIVED_DATASET.merged_reduced_scans_v2` PARTITION BY date # Columns `source` and `country_name` are always used for filtering and must come first. # `network` and `domain` are useful for filtering and grouping. -CLUSTER BY source, country_name, network, domain +CLUSTER BY source, country_name, domain, network OPTIONS ( friendly_name="Reduced Scans", description="Filtered and pre-aggregated table of scans to use with the Censored Planed Dashboard"