I would like to query data from BigQuery which is in the most recent partition, but also in the streaming buffer.
Ideally I would like to stream data into a more granular partition than a day, maybe using a decorator:
mydataset.table$2017030112
Following this, I would query the table for the partition & the buffer.
SELECT * FROM `mydataset.table`
WHERE _PARTITIONTIME IS NULL
AND _PARTITIONTIME IS 2017030112
The result should return just the partition data, regardless if it is in the buffer or not.
The issues / questions:
- Is it possible to partition more granular than by DAY?
- Would a query accessing the buffer and a partition charge just for the partition?
- Is there a better approach?