feat: add 'date.to_start_of_interval' function for truncating values to interval boundaries#5741
feat: add 'date.to_start_of_interval' function for truncating values to interval boundaries#5741sunyeongchoi wants to merge 3 commits intoPRQL:mainfrom
Conversation
|
how about using some form of either literally or at least using the term as part of the name? |
|
@max-sixty |
yes, something like this! @prql-bot maybe you could do a survey of what is supported by other languages, around "rounding" to regular intervals |
|
Here's a survey of how other systems name their datetime truncation/rounding-to-interval functions: SQL Databases
Programming Languages / Data Tools
Key takeaways
Possible PRQL names
|
|
What do you think of |
Closes #5734
Adds a
to_start_of_intervalfunction to provide native truncating values to interval boundaries capabilities in PRQL.