Issues Creating a Dataset with a Firebird Database (No Schemas) #31328
Replies: 4 comments 8 replies
-
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.
-
I just got the same error. @Physicalpixel Were you able to solve your issue? |
Beta Was this translation helpful? Give feedback.
-
Hope this helps Firebird → MySQL ETL Automation1. OverviewThis AWS Systems Manager Automation executes on EC2 instances tagged
Logs for all steps stream to CloudWatch Logs group 2. Prerequisites
3. Configuration3.1. Directory LayoutAll scripts live under a single folder, parameterized as get_latest_phdb_backup.sh
restore_phdb_firebird.sh
convert_firebird_to_mysql.py
export_tables_ec2.py
create_schema.sh
import_tables_ec2_csv.sh
get_latest_db_backup.sh
restore_latest_mysql_backup.sh
create_views.sql
tables.txt ← generated by restore_phdb_firebird.sh
db_ddl.sql ← extracted DDL
converted_schema.sql ← output of converter
phdb.fbk ← downloaded FB backup
phdb_csv_tables/ ← CSV exports
logs/ ← step logs
latest_backup.zip ← downloaded MySQL dump
db-dumps/ ← unzipped SQL file(s) The reason to have some scripts in Python is that Firebird3.0 is running in ARM64 architecture and FBExport is compiled for AMD64. It is possible to run it with emulation but it is extremely slow. 3.2. MySQL Client (
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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