diff --git a/superset/db_engine_specs/presto.py b/superset/db_engine_specs/presto.py index 66be83a18fcd9..bb8461311f690 100644 --- a/superset/db_engine_specs/presto.py +++ b/superset/db_engine_specs/presto.py @@ -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])) @@ -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)