Issues Creating a Dataset with a Firebird Database (No Schemas) #31328
Replies: 2 comments
-
Hey @saulfrr! I'm here to help you with any bugs, questions, or contributions you have in mind. Let's tackle this issue together! To address the issue of creating a dataset in Superset with a Firebird database that does not use schemas, here are some suggestions and insights:
If these steps do not resolve the issue, further investigation into the Superset codebase or community discussions might be necessary to identify any additional customizations or patches required. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Beta Was this translation helpful? Give feedback.
-
@saulfrr Facing the same exact issue, did you find a solution to this? Thank you in advance for any information you can provide. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
I’ve been running into problems when trying to create a dataset using a Firebird 2.5 database as the data source in Superset. According to the documentation, Firebird should be supported, and I’ve successfully connected my Firebird database. I can run SQL queries against it in Superset’s SQL Lab interface without any issue. However, when I attempt to create a new dataset, I’m stuck.
I'm currently just testing with Docker containers but following a Python installation, not using the Docker images.
The workflow to create a dataset in Superset requires selecting a schema before choosing a table. The problem is that Firebird databases don’t use schemas. As a result, the schema dropdown is empty and mandatory, which blocks me from proceeding.
What I’ve Tried:
1. Custom DB Engine Spec:
I created a custom
FirebirdEngineSpec
class that overridesget_schema_names
andget_table_names
to return an empty schema list and fetch tables without a schema. I followed the general advice from other discussions and the documentation on how to register a custom engine spec usingCUSTOM_ENGINE_SPECS
insuperset_config.py
.2. Adjusting PYTHONPATH & Config:
I ensured that my custom engine spec file (
firebird_engine_spec.py
) andsuperset_config.py
are both inside the Docker image and thatPYTHONPATH
is set to include/app
. I can confirm that the file is present and the config is loaded since other changes insuperset_config.py
are reflected in the running instance.3. Checking Superset & SQLAlchemy Versions:
I’m running a recent version of Superset (installed via
pip install apache-superset
) and have verified that the Firebird driver (fdb
) is installed and functional.Despite these attempts, the UI still insists on selecting a schema before listing tables. This makes it impossible to proceed with dataset creation for Firebird databases.
SQL Queries:
I can actually run queries on the Firebird DB
If I try to save this query as a Dataset then I get this error
The Dataset gets created (with errors)
Then when opening the Dataset it is broken
Questions:
Any guidance or insights would be greatly appreciated.
Thank you! 🫡
Beta Was this translation helpful? Give feedback.
All reactions