Skip to content

Return column structure in case of empty resultset #257

Description

@zerafachris

Describe the bug

Return column structure in case of empty resultset

Steps to reproduce

  1. Use the following query "SELECT 1 as 'column1' LIMIT 0"

Expected behaviour

Have a new setting, which will change behaviour in case of an empty result set being returned.

In case of pandas, driver.query_df(ch_query) should return pd.DataFrame({'column1' : [] })

This was resolved in the previous driver here ClickHouse/ClickHouse#33522

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions