You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "xiaotiao (via GitHub)" <gi...@apache.org> on 2023/04/28 09:05:54 UTC

[GitHub] [superset] xiaotiao commented on issue #22206: spark sql connection has query issue

xiaotiao commented on issue #22206:
URL: https://github.com/apache/superset/issues/22206#issuecomment-1527233913

   it seems the json.dumps method error becase of wrong driver type when using Apache Spark. I modified the code as below and the response is right when click edit databse button
   
   `
   # method: models.core.Database.driver
       def driver(self) -> str:
           if isinstance(self.url_object.get_driver_name(),bytes):
               return bytes(self.url_object.get_driver_name()).decode("utf-8")
           return self.url_object.get_driver_name()
   `


-- 
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