apache / apache/datafusion

Implement `preimage` for `ceil` and `round` functions

Aperta
#20,197 5 commenti 0 reazioni 1 assegnatario Rivendicata da @0xPoe Vedi su GitHub
Lingua principale
Rust
Stelle
9.3k
Fork
2.4k
Merge medio
3g 11h
PR unite (30g)
360

Descrizione

> @devanshu0987 it seems like a similar technique could be used for `ceil` -- if you agree I will file a ticket to track

Hi @alamb , I would like to attempt this technique for the following functions

- `ceil` and `round`
- `ceil(x) = 5` -> `(4, 5]`
- `round(x) = 5` -> `[4.5, 5.5)`
- String Prefix Functions
- `left(s, 2) = 'AB'` -> Lexicographically `['AB', 'AC')`
- Not sure if this is already implemented.
- Not sure how complex this will be for Non latin strings etc.

_Originally posted by @devanshu0987 in https://github.com/apache/datafusion/issues/20099#issuecomment-3845736417_

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.