-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
builtins: add extract functionality for intervals
This adds the postgres-esque implementation of extract for intervals. Tested a variety of edge cases and compared against what postgres returns. Currently leaving the `extract_duration` function alone - we could thereoetically get rid of it after this PR. It does behave slightly differently as well. Release note (sql change): Added new ability to call extract on an interval, e.g. `extract(day from interval '254 days)`. This follows the postgres implementation.
- Loading branch information
Showing
4 changed files
with
184 additions
and
23 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