f97e1765d8
Within our query tests and our CLI, we've used to print out empty query responses as: ```text ++ ++ ``` This is pretty misleading. Why are there no columns?! The reason is that while Flight provides us with schema information, we often have zero record batches (because why would the querier send an empty batch). Now lets fix this by creating an empty batch on the client side based on the schema data we've received. This way, people know that there are columns but no rows: ```text +-------+--------+------+------+ | count | system | time | town | +-------+--------+------+------+ +-------+--------+------+------+ ``` An alternative fix would be to pass the schema in addition to `Vec<RecordBatch>` to the formatting code, but that seemed to be more effort. Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |