Skip to content

Commit

Permalink
Merge pull request #1475 from yershalom/master
Browse files Browse the repository at this point in the history
[Cassnadra] Added set_keyspace for easier query cassandra
  • Loading branch information
arikfr authored Dec 20, 2016
2 parents 94519d1 + c423832 commit 9d579dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions redash/query_runner/cass.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def run_query(self, query, user):
connection = Cluster([self.configuration.get('host', '')])

session = connection.connect()
session.set_keyspace(self.configuration['keyspace'])
logger.debug("Cassandra running query: %s", query)
result = session.execute(query)

Expand Down

0 comments on commit 9d579dc

Please sign in to comment.