-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Error Fetching Data: Shape of passed values is (1, 100), indices imply (2, 100) #4210
Comments
something weird for sure is going on in sql_lab.py:226 i had a bit of my code snippet in here: and sure enough the problem is now with mydata. for whatever reason pandas DataFrame seems to be having a problem with the data. Surprisingly, when I use hard coded data everything works magically: Not sure what really is going in. |
interestingly, if i do this import numpy as np and then in line 230 this works just fine. so instead of list i am using np.array and issue seems to be resolved |
@arpa007 - Are you able to explore MSSQL tables (via Tables/Slices)? I'm on a fresh install of 0.22.1, and I'm able to add a MSSQL table, but zero columns appear on the "List Columns" tab while editing the table. I am able to verify connectivity to the SQL Server via sqlcmd on the Superset host (and fetch data from the table I'm using), and when I add the SQL Server as a datasource and click the "Test Connection" button, it correctly enumerates the tables. I am also able to interact with MySQL/PostgreSQL tables without issue. I was thinking that issue might have to do with a general problem detecting MSSQL columns. On the other hand, in SQL Lab, when I select a table, the table definition appears correctly in the left-hand column, but the query fails with the "Shape of passed values..." error that is the subject of this issue. Incidentally, it appears that this issue might be related to #3934 My config: numpy==1.14.0 SQL Server 2008 R2 Running on a Docker image based on Ubuntu 16.04 |
yes my workaround fixed the problem. |
@arpa007 If you need to change the code the issue is not fixed |
I am also experiencing this issue, but the other symptom I mentioned above had a different cause. I opened issue #4271 with details. |
Not sure what I did .. but now I get this error trying to preview or run a query in SQL Lab. It was working ...
[UPDATE] Grabbing the latest version of sql_lab.py gets around this issue. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue |
I am connecting to a SQL Server Table from Linux box. For the set of queries I have tried thus far, the meta information shows up just fine but queries always have this error:
I am using superset 0.22.1 and pandas 0.20.3 came bundled with the distribution.
The text was updated successfully, but these errors were encountered: