forked from babelfish-for-postgresql/babelfish_extensions
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix behaviour of DATEDIFF() and DATEDIFF_BIG() functions for week and…
… quarter dateparts (babelfish-for-postgresql#3357) 1. Issues DATEDIFF() and DATEDIFF_BIG() functions return incorrect results when using 'week' and 'quarter' as datepart unit. DATEDIFF_BIG() function gives wrong error message in case of overflow. 2. Changes made to fix the issues Fix calculation logic for considering a week if a Saturday-Sunday boundaries crossed. Fix calculation logic for considering a quarter if a quarter boundary crossed. Fix error message for DATEDIFF_BIG() function in case of overflow. Added Test Cases for these issues Task: BABEL- 5461, BABEL-5503 Authored-by: Anikait Agrawal [email protected] Signed-off-by: Anikait Agrawal [email protected]
- Loading branch information
1 parent
81c5ef1
commit 2639702
Showing
11 changed files
with
2,669 additions
and
39 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
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
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
Oops, something went wrong.