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 2022/06/09 22:42:13 UTC

[GitHub] [superset] betodealmeida commented on issue #20137: redshift_connector Driver throws error while running SELECT 1 (or any query)

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

   @Brooke-white the cursor description returned by the`redshift_connector` has the column name as bytes, and we expect it to be a string. For example:
   
   ```python
   [
       (b"date", 1043, None, None, None, None, None),
       (b"open", 701, None, None, None, None, None),
       (b"high", 701, None, None, None, None, None),
       (b"low", 701, None, None, None, None, None),
       (b"close", 701, None, None, None, None, None),
       (b"adj close", 701, None, None, None, None, None),
       (b"volume", 20, None, None, None, None, None),
   ]
   ```
   
   There's no standard type for the column name (https://peps.python.org/pep-0249/#cursor-attributes), but in all DB engine specs I've seen it's returned as a string, so you might want to change that. I'll also update Superset so that it works with bytes, just in case.


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