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