Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro committed Sep 22, 2020
1 parent 7b050f9 commit 53d5ad2
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions superset/db_engine_specs/presto.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,9 @@ def _parse_structural_column( # pylint: disable=too-many-locals,too-many-branch
if column_type is None:
column_type = types.String()
logger.info(
"Did not recognize type {} of column {}".format(
# pylint: disable=logging-format-interpolation
field_info[1],
field_info[0],
)
"Did not recognize type %s of column %s",
field_info[1],
field_info[0],
)
if field_info[1] == "array" or field_info[1] == "row":
stack.append((field_info[0], field_info[1]))
Expand Down Expand Up @@ -390,11 +388,9 @@ def get_columns(
if column_type is None:
column_type = types.String()
logger.info(
"Did not recognize type {} of column {}".format(
# pylint: disable=logging-format-interpolation
column.Type,
column.Column,
)
"Did not recognize type %s of column %s",
str(column.Type),
str(column.Column),
)
column_info = cls._create_column_info(column.Column, column_type)
column_info["nullable"] = getattr(column, "Null", True)
Expand Down

0 comments on commit 53d5ad2

Please sign in to comment.