Skip to content
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

No columns imported from table from MSSQL-DB #4501

Closed
3 tasks done
sebastianwindeck opened this issue Feb 28, 2018 · 6 comments
Closed
3 tasks done

No columns imported from table from MSSQL-DB #4501

sebastianwindeck opened this issue Feb 28, 2018 · 6 comments

Comments

@sebastianwindeck
Copy link

sebastianwindeck commented Feb 28, 2018

Make sure these boxes are checked before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if any
  • I have reproduced the issue with at least the latest released version of superset
  • I have checked the issue tracker for the same issue and I haven't found one similar

Superset version

Superset 0.22.1

Expected results

Import of Table with Column, Column_types, Metrics from Database (MSSQL)

Actual results

For some tables of the database the import works properly and all columns are recognized, for others it doesn't work.
Even though the table got recognized and the table is shown as imported, but does not contain any columns/metrics.

image

Steps to reproduce

Python 2.7
MSSQL Database
Import of table with different column_types

@jcoelho-pt
Copy link

jcoelho-pt commented Feb 28, 2018

Same problem here, with MySQL Percona database. We had no such problems with standard MySQL database, with the same tables/datasources... some tables work, others don't, and I fail to understand the cause.

@mistercrunch
Copy link
Member

That's a SQLAlchemy dialect issue, not a Superset issue. We just call the dialect's get_columns method.

@sebastianwindeck
Copy link
Author

Thanks for the reply. I checked SQLAlchemy and and the driver 'pymssql' separately and it works.
Rather I checked the same query in the SQLLab and there I got an Error for the tables I could not import properly for the others there is no issues.

grafik
And the following error msg:

UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 14: ordinal not in range(128)

I've checked the issues tagged "unicode"
Is there a fix?
Would you recommend to switch from Py2 to Py3 like mentioned in #2554 ?

@jcoelho-pt
Copy link

jcoelho-pt commented Apr 3, 2018

Hello @sebastianwindeck. Were you hable to fix it?

@sebastianwindeck
Copy link
Author

Hey @jcoelho-pt, the fix for me to solve the Unicode issue was the shipping to superset from Py2 to Py3.

@jcoelho-pt
Copy link

Thanks @sebastianwindeck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants