mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
remove DISTINCT ON statement (#4869)
unbreaks for redshift tables and output is identical
This commit is contained in:
committed by
Maxime Beauchemin
parent
2cd016f11c
commit
7193a4719d
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user