Skip to content

Commit 765c3b9

Browse files
committed
Use LaTeX for relational algebra notation
1 parent 13b9652 commit 765c3b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/0000-closure-expression-optimization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ polars open large.parquet | polars into-nu | where { $in.status == "active" }
2525

2626
The entire parquet file is loaded into memory before filtering, rather than letting Polars apply the predicate during scan.
2727

28-
SQL optimizers have done predicate pushdown for decades because `σ(A B) ≡ σ(A) ⋈ σ(B)` when the predicate only touches A's columns. Nushell could benefit from the same optimization if closures were analyzable.
28+
SQL optimizers have done predicate pushdown for decades because $$\sigma(A \bowtie B) \equiv \sigma(A) \bowtie B$$ when the predicate only touches A's columns. Nushell could benefit from the same optimization if closures were analyzable.
2929

3030
The key insight is that nushell already parses closures into an AST—they aren't compiled to opaque bytecode like Python lambdas. The infrastructure exists; we just need to build the analysis pass.
3131

0 commit comments

Comments
 (0)