Skip to content

Commit

Permalink
Trying to fix a unicode bug with presto
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Feb 16, 2016
1 parent 6f4397c commit 7e60b14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion panoramix/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,8 @@ def query(
qry = qry.select_from(from_clause)

engine = self.database.get_sqla_engine()
sql = str(qry.compile(engine, compile_kwargs={"literal_binds": True}))
sql = "{}".format(
qry.compile(engine, compile_kwargs={"literal_binds": True}))
df = read_sql_query(
sql=sql,
con=engine
Expand Down

0 comments on commit 7e60b14

Please sign in to comment.