To check if a table has a stream buffer, check the tables.get response for a section called streamingBuffer or, when streaming to a partitioned table, the data in the stream buffer is NULL for the _PARTITIONTIME pseudo- _PARTITIONTIME , so you can check even with a simple WHERE query.
Stream data is available for analysis in real time within a few seconds after the first stream insertion into the table, but it may take up to 90 minutes to become available for copying / exporting and other operations. You may have to wait up to 90 minutes for the entire buffer to be stored in the cluster. You can use queries to check if the stream buffer is empty or not, as you mentioned.
If you use loading to create a table, you will not have a stream buffer, but you may have redirected some values ββto it.
Check out the answer below to work with tables that have current stream buffers. Just use WHERE to filter the last minutes of the data and your queries will work. - fh
source share