Closed aarmandas closed 1 year ago
You need to include a session id. See the related test: https://github.com/ClickHouse/clickhouse-js/blob/b38613832b70e7b8744d15b9a0914e264cc7e747/packages/client-common/__tests__/integration/exec.test.ts#L75-L95
Thank you, I didn't find any mention of this in the docs so I was a bit confused
@ArmyDev, no worries, I've added an example now: https://github.com/ClickHouse/clickhouse-js/blob/main/examples/session_id_and_temporary_tables.ts
To trigger the error:
ClickHouseError: Table data.test doesn't exist
You have to initialise a client, create a temporary table and then try getting any data out of it.The following is the code I used to trigger the error