-
Notifications
You must be signed in to change notification settings - Fork 14.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MSSQL Error: list index out of range #29494
Comments
To work around the Here is the relevant code snippet with the necessary modification: @classmethod
def fetch_data(
cls, cursor: Any, limit: Optional[int] = None
) -> list[tuple[Any, ...]]:
if not cursor.description:
return []
data = super().fetch_data(cursor, limit)
# Lists of `pyodbc.Row` need to be unpacked further
return cls.pyodbc_rows_to_tuples(data) Ensure that the |
@dosu I am sure that |
If the
By following these steps, you should be able to gather more information about the root cause of the |
++ Traceback @dosu
|
The traceback indicates that the Given the traceback, here are some steps to further diagnose and resolve the issue:
By following these steps, you should be able to gather more information about the root cause of the |
Bug description
I received the following error message:
list index out of range
This occurred when upgrading from
version 2.1.3
, which supports Python 3.8, to Supersetversion 4.0.2
, which supports Python 3.11, using the MSSQL engine withpyodbc version 5.0.1
.How to reproduce the bug
I think the problem lies with the pyodbc version, as it works fine when using pymssql. However, all databases are currently configured with pyodbc. Do you have any recommendations to work around this issue?
Screenshots/recordings
Superset version
4.0.1
Python version
3.11
Node version
I don't know
Browser
Chrome
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: