You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem or challenge?
Asked about in Discord
DataFusion doesn't have any time formatting functions, right? i.e. something like date_time.format("%d/%m/%Y")
The idea is to be able to format timestamps / dates back to different formats of strings
Describe the solution you'd like
Implement some sort of date/time/timestamp -> string formatting function that takes a user defined formatting string (probably chrono format) and returns a string
Activity
Omega359 commentedon Feb 7, 2024
I'll work on this next if no one minds
Omega359 commentedon Feb 7, 2024
Spark api has a different name (date_format) but otherwise is very similar. I plan on having both names and have the spark one be an alias.
The pg to_char function also handles numbers which I think should be something we can either handle in this ticket or as a future improvement.
alamb commentedon Feb 8, 2024
Thank you @Omega359
initial to_char impl apache#9147
Add `to_char` function implementation using chrono formats (#9181)