-
Notifications
You must be signed in to change notification settings - Fork 15
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
gitbase tables don't get types information in SuperSet #306
Comments
I just tried updating to v0.24.0-beta3 and the problem persists, I will dig a bit deeper. |
It seems that the issue is that Gitbase returns the column types as uppercase, while MariaDB returns them as lowercase. If I hack Superset, adding a , types are properly recognized: However, edit: I think this is because the hack only applies to certain parts of the UI- if I edit the datasource I still get an unknown type. Changing this in Gitbase should work, I think. |
I've investigated this and I can confirm what @alexpdp7 said about lowercase. Here's the list of matchable types: https://github.com/sqlalchemy/sqlalchemy/blob/master/lib/sqlalchemy/dialects/mysql/base.py#L1146 It's also confirmed in this comment in an issue that was opened by @kuba--. |
@ajnavarro WDYT about this? Can the types be lowercased from |
If this is not urgent, maybe this could wait for the migration to |
Yeah, it's not a big deal for me- I'm using Postgres now :-p So I don't mind this being closed (but it's not my decision- perhaps the issue should be moved to the gitbase repo). |
Let's keep it open so people can find it easily and we can track the progress on it. Issue in gitbase: src-d/gitbase#962 |
it was fixed in gitbase master |
The fix landed in gitbase v0.24.0-rc2. |
I tried that in my dockerless branch and now I get:
on the logs, perhaps this should be looked into further. |
@alexpdp7 thanks a lot for retesting this! |
the issues should be blocked by the new release of gitbase and this issue: src-d/go-mysql-server#844 |
The fix landed |
When I explore a gitbase table in SuperSet's SQL Lab, columns are reported as
NullType
:I guess this makes the Chart explorer confused, so it cannot detect "time" columns:
, whereas if I do the same on a PostgreSQL metadata table, it works:
The text was updated successfully, but these errors were encountered: