From a0664bc09ec4757edeb894c28ca2cc3d55da1818 Mon Sep 17 00:00:00 2001 From: Geoffrey Yu Date: Thu, 9 May 2024 23:17:06 -0400 Subject: [PATCH] Fix formatting --- src/brad/front_end/front_end.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/brad/front_end/front_end.py b/src/brad/front_end/front_end.py index 736f123f..560ba211 100644 --- a/src/brad/front_end/front_end.py +++ b/src/brad/front_end/front_end.py @@ -456,8 +456,13 @@ async def _run_query_impl( # HACK: To work around dialect differences between # Athena/Aurora/Redshift for now. This should be replaced by # a more robust translation layer. - if engine_to_use == Engine.Athena and "ascii" in query_rep.raw_query: - translated_query = query_rep.raw_query.replace("ascii", "codepoint") + if ( + engine_to_use == Engine.Athena + and "ascii" in query_rep.raw_query + ): + translated_query = query_rep.raw_query.replace( + "ascii", "codepoint" + ) else: translated_query = query_rep.raw_query start = universal_now()