remove DISTINCT ON statement (#4869)

unbreaks for redshift tables and output is identical
This commit is contained in:
Chris Hua 2018-04-23 17:04:36 -07:00 committed by Maxime Beauchemin
parent 2cd016f11c
commit 7193a4719d
1 changed files with 1 additions and 1 deletions

View File

@ -394,7 +394,7 @@ class SqlaTable(Model, BaseDatasource):
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)