Skip to content

Commit

Permalink
handle count(*) in dynamo db
Browse files Browse the repository at this point in the history
  • Loading branch information
okada-bcgdv committed Feb 21, 2017
1 parent 2e751b3 commit 18a157a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions redash/query_runner/dynamodb_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ def run_query(self, query, user):

columns = []
rows = []
if isinstance(result, basestring):
result = [{"value": result}]
for item in res_dict:

if not columns:
Expand Down

0 comments on commit 18a157a

Please sign in to comment.