Skip to content

Commit

Permalink
update engine configs
Browse files Browse the repository at this point in the history
  • Loading branch information
cyyeh committed Jul 15, 2024
1 parent b2633fc commit f8f16c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wren-ai-service/src/providers/engine/wren.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async def dry_run_sql(
"source": os.getenv("WREN_IBIS_SOURCE"),
"manifest": os.getenv("WREN_IBIS_MANIFEST"),
"connection_info": orjson.loads(
base64.b64decode(os.getenv("WREN_IBIS_CONNECTION_INFO")).decode()
base64.b64decode(os.getenv("WREN_IBIS_CONNECTION_INFO"))
)
if os.getenv("WREN_IBIS_CONNECTION_INFO")
else {},
Expand Down Expand Up @@ -92,9 +92,9 @@ async def dry_run_sql(
async with session.get(
f"{self._endpoint}/v1/mdl/dry-run",
json={
"manifest": orjson.loads(
base64.b64decode(properties.get("manifest", ""))
),
"manifest": orjson.loads(base64.b64decode(properties.get("manifest")))
if properties.get("manifest")
else {},
"sql": remove_limit_statement(add_quotes(sql)),
},
) as response:
Expand Down

0 comments on commit f8f16c1

Please sign in to comment.