Commit e3f5b22
Type SQLExpression and spark expr() as LiteralString
Encourages static detection of SQL injection: passing a dynamically
built string to SQLExpression() or the spark expr() function now fails
typechecking unless explicitly suppressed.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 5829acc commit e3f5b22
3 files changed
Lines changed: 10 additions & 5 deletions
File tree
- _duckdb-stubs
- duckdb/experimental/spark/sql
- tests/fast
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
863 | 863 | | |
864 | 864 | | |
865 | 865 | | |
866 | | - | |
| 866 | + | |
867 | 867 | | |
868 | 868 | | |
869 | 869 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
6176 | 6176 | | |
6177 | 6177 | | |
6178 | 6178 | | |
6179 | | - | |
| 6179 | + | |
6180 | 6180 | | |
6181 | 6181 | | |
6182 | 6182 | | |
| |||
6186 | 6186 | | |
6187 | 6187 | | |
6188 | 6188 | | |
6189 | | - | |
| 6189 | + | |
6190 | 6190 | | |
6191 | 6191 | | |
6192 | 6192 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
52 | 57 | | |
53 | 58 | | |
54 | 59 | | |
| |||
0 commit comments