mirror of
https://github.com/apache/superset.git
synced 2026-04-18 07:35:09 +00:00
feat: Use DuckDB for examples data in Docker development environment (#34831)
Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
This commit is contained in:
committed by
GitHub
parent
9c9588cce6
commit
47414e18d4
@@ -58,9 +58,14 @@ CSV_FILE_WITH_NULLS = [
|
||||
|
||||
|
||||
def _setup_csv_upload(allowed_schemas: list[str] | None = None):
|
||||
upload_db = get_or_create_db(
|
||||
CSV_UPLOAD_DATABASE, app.config["SQLALCHEMY_EXAMPLES_URI"]
|
||||
)
|
||||
# Use main database URI for schema-related tests (PostgreSQL-specific)
|
||||
# Use examples URI for general upload tests
|
||||
if allowed_schemas:
|
||||
db_uri = app.config["SQLALCHEMY_DATABASE_URI"]
|
||||
else:
|
||||
db_uri = app.config["SQLALCHEMY_EXAMPLES_URI"]
|
||||
|
||||
upload_db = get_or_create_db(CSV_UPLOAD_DATABASE, db_uri)
|
||||
upload_db.allow_file_upload = True
|
||||
extra = upload_db.get_extra()
|
||||
allowed_schemas = allowed_schemas or []
|
||||
|
||||
Reference in New Issue
Block a user