iercan edited a comment on issue #10032:
URL: 
https://github.com/apache/incubator-superset/issues/10032#issuecomment-747384400


   @cgivre I'm getting similar error but it is not related with BIT. It comes 
from VARCHAR as you can see below. I'm using python 3.8 and latest versions of 
sqlalchemy-drill and drill itself. Do you have any idea how to solve it? 
   
   > superset_1  | DEBUG:root:Mapping column TABLE_NAME of Drill type VARCHAR 
to dtype string
   > superset_1  | ERROR:root:module 'sqlalchemy_drill.drilldbapi' has no 
attribute 'Error'
   > superset_1  | Traceback (most recent call last):
   > superset_1  |   File 
"/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1276, 
in _execute_context
   > superset_1  |     self.dialect.do_execute(
   > superset_1  |   File 
"/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 
593, in do_execute
   > superset_1  |     cursor.execute(statement, parameters)
   > superset_1  |   File 
"/usr/local/lib/python3.8/site-packages/sqlalchemy_drill/drilldbapi/_drilldbapi.py",
 line 65, in func_wrapper
   > superset_1  |     return func(self, *args, **kwargs)
   > superset_1  |   File 
"/usr/local/lib/python3.8/site-packages/sqlalchemy_drill/drilldbapi/_drilldbapi.py",
 line 164, in execute
   > superset_1  |     elif str(df[col_name].iloc[0]).startswith("[") and 
str(df[col_name].iloc[0]).endswith("]"):
   > superset_1  |   File 
"/usr/local/lib/python3.8/site-packages/pandas/core/indexing.py", line 879, in 
__getitem__
   > superset_1  |     return self._getitem_axis(maybe_callable, axis=axis)
   > superset_1  |   File 
"/usr/local/lib/python3.8/site-packages/pandas/core/indexing.py", line 1496, in 
_getitem_axis
   > superset_1  |     self._validate_integer(key, axis)
   > superset_1  |   File 
"/usr/local/lib/python3.8/site-packages/pandas/core/indexing.py", line 1437, in 
_validate_integer
   > superset_1  |     raise IndexError("single positional indexer is 
out-of-bounds")
   > superset_1  | IndexError: single positional indexer is out-of-bounds
   


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

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