Skip to content

can't add clickhouse database (allways connecting as default user) #7991

@janantos

Description

@janantos

Can't add ClickHouse database under databases. when pressing Test Connection button receiving error message that User default is not allowerd to connect. there is set another user in SQLAlchemy URI (user name containing dash "-")

Expected results

receive successful status

Actual results

receive error message

Screenshots

image

How to reproduce the bug

  1. Go to Sources -> Databases
  2. Click on '+' button
  3. fill Database and URI
  4. press Test Connection

Environment

(please complete the following information):

  • superset version: 0.28.14
  • python version: 3.6.8
  • sqlalchemy-clickhouse version: 0.1.5.post0

Checklist

Make sure these boxes are checked 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.

Additional context

also tested using clickhouse-sqlalchemy 0.0.10 it does not fails during check connection but after clicking save button, I receive error "Could not locate column in row for column 'name' "
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    !deprecated-label:bugDeprecated label - Use #bug insteadinactiveInactive for >= 30 days

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions