Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix] makeDateTrunc calculating rolling_month wrong (#52579)
Also fixed the function returning a string without a timezone, when it always returns times in UTC. This is done by explicitly casting to timestamptz by using `TIMEZONE('UTC', ...)` function. Added unit tests as well, to make sure everything works as expected. ## Test plan Unit tests
- Loading branch information
Showing
2 changed files
with
84 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters