apache / apache/datafusion-sqlparser-rs
Question on: `visit_expressions_mut` for alias expr
- Lingua principale
- Rust
- Stelle
- 3.5k
- Fork
- 772
- Merge medio
- 4g 9h
- PR unite (30g)
- 17
Descrizione
When I run `visit_expressions_mut` it works very well. However, I have no way to get to an alias expr, such as:
```sql
SELECT a.x, b.y AS myby, myfn(c.z) AS myfncall {
FROM t1
...
```
I pass the `projection` to `visit_expressions_mut` and I see the `CompoundIdentifier` and the `Function` expressions, but the alias rename does not come through. It seems like this is excluded, even though `ExprWithAlias` has a derive for `VisitorMut`. Is this intentional or a bug?
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia da visit_expressions_mut sulla proiezione e verifica come il derive VisitorMut di ExprWithAlias gestisce le espressioni alias. Riproduci l’esempio SQL, quindi determina se i rinominamenti degli alias vengono visitati come previsto e aggiungi o aggiorna la coverage se il comportamento è un bug; il payload non indica alcun file o test.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- rust, sql
- Ambito
- databases
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100