apache / apache/datafusion

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

Offen
#20,197 5 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @0xPoe Auf GitHub ansehen
Vorherrschende Sprache
Rust
Sterne
9.3k
Forks
2.4k
Ø Merge
3 T. 11 Std.
Gemergte PRs (30 T.)
360

Beschreibung

> @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_

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.