I am trying to select data from the latest partition in a date-partitioned BigQuery table, but the query still reads data from the whole table.
I\'ve tried (as far a
List all partitions with:
#standardSQL SELECT _PARTITIONTIME as pt FROM `[DATASET].[TABLE]` GROUP BY 1
And then choose the latest timestamp.
Good luck :)
https://cloud.google.com/bigquery/docs/querying-partitioned-tables