Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffxy committed May 10, 2024
1 parent 377f11a commit a0664bc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/brad/front_end/front_end.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit a0664bc

Please sign in to comment.