Skip to content

Commit f3d9ed9

Browse files
authored
Merge pull request #295 from mwvgroup/u/ch/bq/partition
Create a daily partition for the LSST alerts table
2 parents a7680d3 + dbbb2a4 commit f3d9ed9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

broker/setup_broker/lsst/setup_broker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ manage_resources() {
8686
else
8787
echo "${bq_dataset} already exists."
8888
fi
89-
(cd templates && bq mk --table "${PROJECT_ID}:${bq_dataset}.${bq_table_alerts}" "bq_${survey}_${bq_table_alerts}_schema.json") || exit 5
89+
(cd templates && bq mk --table --time_partitioning_type=DAY "${PROJECT_ID}:${bq_dataset}.${bq_table_alerts}" "bq_${survey}_${bq_table_alerts}_schema.json") || exit 5
9090
(cd templates && bq mk --table "${PROJECT_ID}:${bq_dataset}.${bq_table_supernnova}" "bq_${survey}_${bq_table_supernnova}_schema.json") || exit 5
9191
(cd templates && bq mk --table "${PROJECT_ID}:${bq_dataset}.${bq_table_variability}" "bq_${survey}_${bq_table_variability}_schema.json") || exit 5
9292
(cd templates && bq mk --table "${PROJECT_ID}:${bq_dataset}.${bq_table_upsilon}" "bq_${survey}_${bq_table_upsilon}_schema.json") || exit 5

0 commit comments

Comments
 (0)