Support complete `distinct` usage for aggregate expressions
- 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? Please describe what you are trying to do.**
Here are multiple aggregate expressions have not support `distinct` usage yet.
Though optimizer `SingleDistinctToGroupBy` (#1315) supports single distinct usage, there are more SQL scenes have not been covered, like
```
SELECT AVG(c1), SUM(DISTINCT c2) FROM test
```
I would like to take effort to work on the following tickets to complete `distinct` usage for aggregate expressions
- [x] #2405
- [x] #2407
- [x] #2408
- [x] #2409
- [x] #2410
- [x] #2411
(more to be added later)
**Describe the solution you'd like**
Adds specific aggregate expression support, like `expressions::DistinctSum` for `sum(distinct)`
**Describe alternatives you've considered**
No.
**Additional context**
No.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia leggendo il lavoro sull’ottimizzatore SingleDistinctToGroupBy a cui si fa riferimento in #1315 e i ticket sulle espressioni aggregate #2405 e #2407–#2411. Usa la query mista AVG(c1), SUM(DISTINCT c2) come caso iniziale; il lavoro è completo quando sono supportati gli scenari elencati delle espressioni aggregate DISTINCT.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- rust, sql
- Ambito
- data-engineering, databases
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100