We have a partitioned BigQuery table that's partitioned on a custom field (event_timestamp
). This was due to needing to import historical data while still keeping things partitioned and query costs under control.
This means the table doesn't have a _PARTITIONTIME
field, and we can't do queries WHERE _PARTITIONTIME IS NULL
to view recently sent records sitting in the streaming buffer.
So is there a trick to being able to query the streaming buffer even if you're using a custom field for partitioning?
Edit We're using Standard SQL, not Legacy SQL, sorry for not being explicit about that previously.