Open msestak opened 1 year ago
any solution? We faced the same issue. May be any temporary solution for make it work?
The problem is that SAS (or another tool) does SELECT * FROM table
, which crashes the server. If there's no way to change this logic in SAS, you can work it around by setting max_query_size. but you need to be aware that SAS won't have all the data retrieved from DB.
@bkuspayev, what driver version do you use? The latest version generates a random session id for connections https://github.com/ClickHouse/clickhouse-odbc/releases/tag/v1.2.1.20220905
@mshustov thank you for quick response, I'm using the exact same version as you mentioned: v1.2.1.20220905
@bkuspayev do you specify a session name manually? https://github.com/ClickHouse/clickhouse-odbc/pull/398/files#diff-bf39b744552791b8ebec2bcfdab832d997df90796ebf432e5c5fb13ce903df1bR118
I'm not familiar with the internal workings of SAS and its session naming conventions. I haven't made any manual modifications on my end. Here are the parameters from the ODBC ini file:
[Clickhouse] Driver: /sas/clickhouse-odbc-1.2.1-Linux/lib64/libclickhouseodbc.so Url: http://user@server:8123/query?database=db&buffer_size=30000&wait_ens_of_query=0&session_timeout=1 DriverUnicodeType: 1 DriverLog: on Timeout: 5000 Connection: Unique
Let me know if you need further information.
SAS: 9.4 M7 Clickhouse: 22.3.9.19 Clickhouse ODBC driver: 1.2.1.20220905 running on RedHat 8
We are trying to connect SAS to Clickhouse database to explore data in SAS. We noticed that for every query we run in SAS there are two queries coming to ClickHouse database: 1) SELECT * FROM table 2) real SQL query (count() here)
Example for small table (5 rows) from clickhouse-server.log:
How to disable this first query (SELECT * FROM table) because it breaks on bigger tables:
Driver error log:
and it slows everything down even if it succeeds.