bug(expr): to_char
prints wrong BC years
#19944
Labels
component/func-expr
Support a SQL function or operator
priority/low
type/bug
Something isn't working
Describe the bug
ISO 8601 year 0 is display in PostgreSQL as
0001 BC
instead of0000
. RisingWave fails to consider this into_char
.Error message/log
To Reproduce
Expected behavior
Same as PostgreSQL:
How did you deploy RisingWave?
No response
The version of RisingWave
No response
Additional context
When using the
chrono
crate, although we can obtain the correct value withDateLike::year_ce
instead ofyear
, there is no corresponding specifier in itsstrftime
module.#11241 #15053
The text was updated successfully, but these errors were encountered: