mirror of https://github.com/apache/superset.git
remove DISTINCT ON statement (#4869)
unbreaks for redshift tables and output is identical
This commit is contained in:
parent
2cd016f11c
commit
7193a4719d
|
@ -394,7 +394,7 @@ class SqlaTable(Model, BaseDatasource):
|
||||||
qry = (
|
qry = (
|
||||||
select([target_col.sqla_col])
|
select([target_col.sqla_col])
|
||||||
.select_from(self.get_from_clause(tp, db_engine_spec))
|
.select_from(self.get_from_clause(tp, db_engine_spec))
|
||||||
.distinct(column_name)
|
.distinct()
|
||||||
)
|
)
|
||||||
if limit:
|
if limit:
|
||||||
qry = qry.limit(limit)
|
qry = qry.limit(limit)
|
||||||
|
|
Loading…
Reference in New Issue