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

[Data Sources] Add: MemSQL query runner #1746

Merged
merged 7 commits into from
May 18, 2017
Merged

Conversation

alexanderlz
Copy link
Member

https://github.com/memsql/memsql-python/

meanwhile the column types aren't available.
pending on memsql/memsql-python#8

Copy link
Member

@arikfr arikfr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Please check my comments.

}

},
"required": ["host", "port"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a secret field too (look at other data sources for example).


schema[table_name] = {'name': table_name, 'columns': columns}
except Exception, e:
raise sys.exc_info()[1], None, sys.exc_info()[2]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unnecessary.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the Exception handling?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

columns.append({
'name': column,
'friendly_name': column,
'type': None
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to use TYPE_STRING instead of None.

requirements.txt Outdated
@@ -42,4 +42,6 @@ xlsxwriter==0.9.3
pystache==0.5.4
parsedatetime==2.1
cryptography==1.4
oauthlib==2.0.0
WTForms==2.1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two aren't needed.

@arikfr arikfr merged commit 749171b into getredash:master May 18, 2017
@arikfr
Copy link
Member

arikfr commented May 18, 2017

Thanks. :)

dairyo pushed a commit to KiiCorp/redash that referenced this pull request Mar 1, 2019
[Data Sources] Add: MemSQL query runner
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

Successfully merging this pull request may close these issues.

2 participants