uranuswch opened a new issue, #24372:
URL: https://github.com/apache/superset/issues/24372

   I use docker-compose to deploy locally, want to connect ClickHouse with a 
database named `dev-db`.
   
   But its can not scan the schema, I think it because there has a dash `-` in 
the database name.
   
   
   Console error log: 
   ```
   ERROR:clickhouse_connect.driver.httpclient:Code: 62. DB::Exception: Syntax 
error: failed at position 21 ('-') (line 1, col 21): -db
   FORMAT Native. Expected one of: NOT, ILIKE, LIKE, WHERE, LIMIT, INTO 
OUTFILE, FORMAT, SETTINGS, end of query. (SYNTAX_ERROR) (version 23.3.2.37 
(official build))
   ```
   
   #### How to reproduce the bug
   
   1. Go to 'Create Dataset' and select ClickHouse Database contains a dash.
   
   #### Screenshots
   
   <img width="303" alt="CleanShot 2023-06-13 at 13 23 47@2x" 
src="https://github.com/apache/superset/assets/9143888/b9e7b4a6-8dbf-4320-acba-fffe8ef5577d";>
   
   
   <img width="390" alt="CleanShot 2023-06-13 at 13 36 21@2x" 
src="https://github.com/apache/superset/assets/9143888/103a1987-7d2f-40e9-9e9a-719e1f3579f7";>
   
   
   
   ### Environment
   
   - browser type and version: Safari 16.5 and Chrome 114.0.5735.106
   - superset version: `lastest-dev`
   - python version: 3.11.3
   - node.js version: 20.2.0
   - any feature flags active: clickhouse-connect v0.6.2
   
   ### Checklist
   
   Make sure to follow these steps before submitting your issue - thank you!
   
   - [x] I have checked the superset logs for python stacktraces and included 
it here as text if there are any.
   - [x] I have reproduced the issue with at least the latest released version 
of superset.
   - [x] I have checked the issue tracker for the same issue and I haven't 
found one similar.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to