Skip to content

Commit 3597e45

Browse files
committed
link
1 parent ec3eef2 commit 3597e45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

posts/python_sql_engine.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ Joins multiple tables together.
190190
The logical plan is quite simple and contains the information required to convert it into a physical plan (execution).
191191
192192
## Executing
193-
Finally, we can actually execute the SQL query. The [Python engine](https://github.com/tobymao/sqlglot/blob/toby/post/sqlglot/executor/python.py) is not fast, but it's very small (~400 LOC)! It iterates the DAG with a queue and runs each step, passing each intermediary table to the next step.
193+
Finally, we can actually execute the SQL query. The [Python engine](https://github.com/tobymao/sqlglot/blob/main/sqlglot/executor/python.py) is not fast, but it's very small (~400 LOC)! It iterates the DAG with a queue and runs each step, passing each intermediary table to the next step.
194194

195195
In order to keep things simple, it evaluates expressions with `eval`. Because SQLGlot was built primarily to be a transpiler, it was simple to create a "Python SQL" dialect. So a SQL expression `x + 1` can just be converted into `scope['x'] + 1`.
196196

0 commit comments

Comments
 (0)