OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

Metadata Ingestion issue when Superset using a mariadb backend database

Open matthewsullivan44 opened this issue 1 year ago • 1 comments
trafficstars

Feature Add support for Superset with mariadb database backend

Describe the task When running metadata ingestion the query submitted uses double quoted table names which isn't supported by mariadb. Mariadb quotes identfiers with the backtick character. Also have option to SET SQL_MODE=ANSI_QUOTES; when connecting to mariadb if want to keep sql standard. Here is sample Metadata SQL that fails to run on Mariadb when using superset metadata ingestion.

select s.id from slices s left join "tables" t on s.datasource_id = t.id and s.datasource_type = 'table' left join "dbs" db on db.id = t.database_id LIMIT 1;

matthewsullivan44 avatar Mar 11 '24 20:03 matthewsullivan44

I'll be working on this

SumanMaharana avatar May 02 '24 07:05 SumanMaharana

@matthewsullivan44 how did you connect superset with mariadb i looked into the superset docs and i didnt see mariadb in the list of connectors there.

SumanMaharana avatar Jul 18 '24 06:07 SumanMaharana

hi @matthewsullivan44, according to the superset docs there is no support for MariaDB. Our superset ingestion is based on the supported dbs (MySQL & Postgres) or via API. Thanks

pmbrull avatar Jul 18 '24 14:07 pmbrull