You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/09/01 12:00:46 UTC

[GitHub] [superset] ApfelPresse edited a comment on issue #16541: Cannot create a Dataset of an Exasol Database View

ApfelPresse edited a comment on issue #16541:
URL: https://github.com/apache/superset/issues/16541#issuecomment-910214825


   I found a workaround, but that's not how it meant to be
   
   added some lines
   
   ```
   superset/connectors/sqla/models.py:667
   
   def external_metadata(self) -> List[Dict[str, str]]:
     table_name = str(self.table_name)
     schema = str(self.schema)
     self.sql = f"SELECT * FROM {schema}.{table_name}"
     print(self.sql)
     if self.sql:
        return get_virtual_table_metadata(dataset=self)
     return get_physical_table_metadata(database=self.database, table_name=self.table_name, schema_name=self.schema,)
   ```
   
   


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org