apache / apache/datafusion

Keep the original SQL for CreateExternalTable::definition

Aperta
#12,652 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Rust
Stelle
9.3k
Fork
2.4k
Merge medio
3g 11h
PR unite (30g)
360

Descrizione

### Is your feature request related to a problem or challenge?

Currently, the CreateExternalTable definition is just a stringified version of the statement, rather than the original SQL that was parsed.

### Describe the solution you'd like

I'd like to propose capturing the original SQL as provided and storing that instead so that when a definition is displayed, it matches what a user originally provided.

### Describe alternatives you've considered

Nothing comes to mind. Its a fairly small change.

### Additional context

_No response_

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start by locating CreateExternalTable::definition and follow how the statement is parsed and its definition is stored. Check the existing tests around CreateExternalTable display or parsing, then verify that the displayed definition preserves the SQL originally provided rather than a stringified statement.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
rust, sql
Ambito
databases
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.