betodealmeida commented on issue #31022:
URL: https://github.com/apache/superset/issues/31022#issuecomment-3129257019

   One workaround I've used in the past (for the GSheets DB engine spec) was to 
simply have a dummy schema called "main". You can have your DB engine spec have:
   
   ```python
   class MyDBEngineSpec(BaseEngineSpec):
       @classmethod
       def get_schema_names(cls, inspector: Inspector) -> set[str]:
           return {"main"}
   ```
   
   Then just ignore the schemas as it's passed around. Of course ideally we 
wouldn't need this, and we would support `supports_schemas = False`. But from 
the start Superset was written assuming there is a schema and it's a string, so 
making it optional requires a lot of refactoring.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to