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

Tables from MSSQL not showing on Table View #7870

Closed
2 of 3 tasks
syazshafei opened this issue Jul 15, 2019 · 12 comments · Fixed by #7963
Closed
2 of 3 tasks

Tables from MSSQL not showing on Table View #7870

syazshafei opened this issue Jul 15, 2019 · 12 comments · Fixed by #7963
Labels
!deprecated-label:bug Deprecated label - Use #bug instead

Comments

@syazshafei
Copy link

syazshafei commented Jul 15, 2019

Expected results

MSSQL database tables showing on Table View

Actual results

No MSSQL tables showed

Screenshots

  1. Database configuration
    Screenshot from 2019-07-15 10-55-24
  2. Tables detected
    Screenshot from 2019-07-15 10-55-41
  3. Table view
    Screenshot from 2019-07-15 10-56-36

Environment

  • superset version: 0.28.1
  • python version: 3.6
  • node.js version: 10.16.0
  • npm version: 6.9.0

Checklist

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 there are 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.
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.99. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@issue-label-bot issue-label-bot bot added the !deprecated-label:bug Deprecated label - Use #bug instead label Jul 15, 2019
@villebro
Copy link
Member

You need to add each table, they are not automatically added (click the button on the upper right hand corner on the tables page). There has been a few important fixes for MSSQL after version 0.28, so you might want to try one of the more recent versions if you run into trouble.

@syazshafei
Copy link
Author

I tried with more recent version which is 0.33.0rc1, but still got the same output.

@villebro
Copy link
Member

villebro commented Jul 16, 2019

Every table has to be manually added in Superset; on the tables page, click the plus sign on the right hand corner of the tables page to create a datasource referencing the table in your database.

@villebro
Copy link
Member

@syazwan0913 was there still something that required help/fixing, or can this issue be closed?

@syazshafei
Copy link
Author

I already add manually the table from MSSQL database
Schema: dbo
Table: Main
Screenshot from 2019-07-18 08-09-26

But when I tried to refresh metadata, this error appeared,
Screenshot from 2019-07-18 08-10-17

@syazshafei
Copy link
Author

@villebro @mistercrunch So any way to fix that?

@vitorbellini
Copy link

Same error here

@vitorbellini
Copy link

Solution here #4271 thanks to @googlerobot

Run query below at the Superset Metabase

ALTER TABLE public.table_columns
ALTER COLUMN "type" TYPE varchar(128);

@syazshafei syazshafei reopened this Aug 1, 2019
@syazshafei
Copy link
Author

@vitorbellini Thanks. I already can add sql server table. Btw, is there any way to fix this bug by changing the source code?

@villebro
Copy link
Member

villebro commented Aug 1, 2019

@syazwan0913 are you able to test #7963 which should fix this problem?

@syazshafei
Copy link
Author

syazshafei commented Aug 3, 2019

@villebro I already tested it with master branch and it is okay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
!deprecated-label:bug Deprecated label - Use #bug instead
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants