Skip to content

Commit

Permalink
Fix: make fetch_data check for rows properly (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexclavel-ocient authored Mar 13, 2023
1 parent 4d88c78 commit c01ccda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion superset/db_engine_specs/ocient.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,8 @@ def fetch_data(
]
raise exception

if len(rows) > 0 and type(rows[0]).__name__ == rows:
# TODO: Unsure if we need to verify that we are receiving rows:
if len(rows) > 0 and type(rows[0]).__name__ == 'Row':
# Peek at the schema to determine which column values, if any,
# require sanitization.
columns_to_sanitize: List[PlacedSanitizeFunc] = _find_columns_to_sanitize(
Expand Down

0 comments on commit c01ccda

Please sign in to comment.