mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
Fix broken dedup and remove redundant db_spec logic (#5467)
* Fix broken dedup and remove redundant db_spec logic * Add test case
This commit is contained in:
committed by
Maxime Beauchemin
parent
971e9f0993
commit
a165aec822
@@ -70,12 +70,11 @@ class SupersetDataFrame(object):
|
||||
if cursor_description:
|
||||
column_names = [col[0] for col in cursor_description]
|
||||
|
||||
self.column_names = dedup(
|
||||
db_engine_spec.get_normalized_column_names(cursor_description))
|
||||
self.column_names = dedup(column_names)
|
||||
|
||||
data = data or []
|
||||
self.df = (
|
||||
pd.DataFrame(list(data), columns=column_names).infer_objects())
|
||||
pd.DataFrame(list(data), columns=self.column_names).infer_objects())
|
||||
|
||||
self._type_dict = {}
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user