Skip to content

streaming in QueryResult lost column infos when the target table is empty #222

@framlog

Description

@framlog

Clickhouse returns only the a single block with num_rows == 0 when do SELECT over an empty table.

In such case, QueryResult::stream_blocks skips the first block, which's the only block containing infos.

The test passes because that fetch_all doesn't skip the first block.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions