Skip to content

Comments

[Data Sources] Add: MemSQL query runner#1746

Merged
arikfr merged 7 commits intogetredash:masterfrom
alexanderlz:master
May 18, 2017
Merged

[Data Sources] Add: MemSQL query runner#1746
arikfr merged 7 commits intogetredash:masterfrom
alexanderlz:master

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
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