Commit 7591919
authored
test: add prepare alias slt test (#18522)
## Which issue does this PR close?
This did not work
(#18102 (comment)):
```sql
DataFusion CLI v50.3.0
> prepare myplan as select $1 as one, $2 as two;
Schema error: No field named one.
```
But now it does
(#18102 (comment)):
```sql
DataFusion CLI v50.3.0
> PREPARE my_plan(INT, INT) AS SELECT $1 AS one, $2 AS two;
0 row(s) fetched.
Elapsed 0.004 seconds.
>
```
## Rationale for this change
This PR add a testcase for placeholder aliases.
## What changes are included in this PR?
Add test case in `prepare.slt`
## Are these changes tested?
Yes
## Are there any user-facing changes?
No1 parent a5eb912 commit 7591919
1 file changed
+32
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
0 commit comments