[flake8] Resolving W??? errors (#3784)

This commit is contained in:
John Bodley
2017-11-07 20:25:10 -08:00
committed by Maxime Beauchemin
parent e2bca47421
commit e822fb50d8
6 changed files with 12 additions and 18 deletions

View File

@@ -153,8 +153,8 @@ def execute_sql(
query.user_id, start_dttm.strftime('%Y_%m_%d_%H_%M_%S'))
executed_sql = superset_query.as_create_table(query.tmp_table_name)
query.select_as_cta_used = True
elif (query.limit and superset_query.is_select()
and db_engine_spec.limit_method == LimitMethod.WRAP_SQL):
elif (query.limit and superset_query.is_select() and
db_engine_spec.limit_method == LimitMethod.WRAP_SQL):
executed_sql = database.wrap_sql_limit(executed_sql, query.limit)
query.limit_used = True
try: