mirror of
https://github.com/apache/superset.git
synced 2026-06-07 08:39:25 +00:00
chore: Update pylint to 2.17.4 (#24700)
Co-authored-by: John Bodley <john.bodley@gmail.com>
This commit is contained in:
@@ -127,7 +127,7 @@ def get_query_backoff_handler(details: dict[Any, Any]) -> None:
|
||||
logger.error(
|
||||
"Query with id `%s` could not be retrieved", str(query_id), exc_info=True
|
||||
)
|
||||
stats_logger.incr("error_attempting_orm_query_{}".format(details["tries"] - 1))
|
||||
stats_logger.incr(f"error_attempting_orm_query_{details['tries'] - 1}")
|
||||
logger.error(
|
||||
"Query %s: Sleeping for a sec before retrying...", str(query_id), exc_info=True
|
||||
)
|
||||
@@ -233,8 +233,8 @@ def execute_sql_statement( # pylint: disable=too-many-arguments,too-many-statem
|
||||
if apply_ctas:
|
||||
if not query.tmp_table_name:
|
||||
start_dttm = datetime.fromtimestamp(query.start_time)
|
||||
query.tmp_table_name = "tmp_{}_table_{}".format(
|
||||
query.user_id, start_dttm.strftime("%Y_%m_%d_%H_%M_%S")
|
||||
query.tmp_table_name = (
|
||||
f'tmp_{query.user_id}_table_{start_dttm.strftime("%Y_%m_%d_%H_%M_%S")}'
|
||||
)
|
||||
sql = parsed_query.as_create_table(
|
||||
query.tmp_table_name,
|
||||
@@ -391,7 +391,7 @@ def execute_sql_statements(
|
||||
stats_logger.timing("sqllab.query.time_pending", now_as_float() - start_time)
|
||||
|
||||
query = get_query(query_id, session)
|
||||
payload: dict[str, Any] = dict(query_id=query_id)
|
||||
payload: dict[str, Any] = {"query_id": query_id}
|
||||
database = query.database
|
||||
db_engine_spec = database.db_engine_spec
|
||||
db_engine_spec.patch()
|
||||
|
||||
Reference in New Issue
Block a user