Skip to content

Commit

Permalink
chore: make v3/model-substitute with dry-run
Browse files Browse the repository at this point in the history
  • Loading branch information
grieve54706 committed Dec 20, 2024
1 parent 303c6a1 commit 3a0120e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions ibis-server/app/routers/v3/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,11 @@ async def model_substitute(
dto: TranspileDTO,
) -> str:
sql = ModelSubstitute(data_source, dto.manifest_str).substitute(dto.sql)
await Rewriter(
dto.manifest_str,
data_source=data_source,
experiment=True,
).rewrite(sql)
Connector(data_source, dto.connection_info).dry_run(
await Rewriter(
dto.manifest_str,
data_source=data_source,
experiment=True,
).rewrite(sql)
)
return sql

0 comments on commit 3a0120e

Please sign in to comment.