Skip to content

Temporary table support #122

@gabrielmcg44

Description

@gabrielmcg44

Hey all!

I am trying to create and use temporary tables using aiochclient, but I can't find anywhere a way of passing session_id (https://clickhouse.com/docs/en/sql-reference/statements/create/table#temporary-tables)

And therefore whenever I try to query the temporary table in a new query I get:

Unknown table expression identifier 'table_name'

I also tried doing it in a single statement such as

CREATE TEMPORARY TABLE temp_table_name AS
SELECT * FROM table_name;
SELECT * FROM temp_table_name;

but I got

DB::Exception: Syntax error (Multi-statements are not allowed):

Is there a current way of doing this with aiochclient?

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