Skip to content

Commit

Permalink
remove DISTINCT ON statement (apache#4869)
Browse files Browse the repository at this point in the history
unbreaks for redshift tables and output is identical
  • Loading branch information
stillmatic authored and mistercrunch committed Apr 24, 2018
1 parent 8f75cc1 commit 9f9eb9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/connectors/sqla/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ def values_for_column(self, column_name, limit=10000):
qry = (
select([target_col.sqla_col])
.select_from(self.get_from_clause(tp, db_engine_spec))
.distinct(column_name)
.distinct()
)
if limit:
qry = qry.limit(limit)
Expand Down

0 comments on commit 9f9eb9b

Please sign in to comment.