Skip to content

Add "timezone_region" and "timezone_abbr" support for EXTRACT (and DATE_PART) - #1090

Merged
alamb merged 1 commit into
apache:mainfrom
alexander-beedie:extract-timezone-region
Jan 16, 2024
Merged

alamb merged 1 commit into
apache:mainfrom
alexander-beedie:extract-timezone-region

Conversation

@alexander-beedie

@alexander-beedie alexander-beedie commented Jan 12, 2024 •

Copy link
Copy Markdown
Contributor

Adds "timezone_region" and "timezone_abbr"1 as recognised DateTimeField values.

EXTRACT(timezone_abbr FROM "dt")
EXTRACT(timezone_region FROM "dt")

Footnotes

  1. Oracle: EXTRACT docs ↩

@coveralls

coveralls commented Jan 12, 2024 •

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 7527965721

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.003%) to 87.858%

Totals Coverage Status
Change from base Build 7527748620: 0.003%
Covered Lines: 18849
Relevant Lines: 21454

💛 - Coveralls

@alexander-beedie alexander-beedie changed the title Support "timezone_region" for EXTRACT and DATE_PART Add "timezone_region" support for EXTRACT and DATE_PART Jan 12, 2024
@alexander-beedie alexander-beedie changed the title Add "timezone_region" support for EXTRACT and DATE_PART Add "timezone_region" and "timezone_abbr" support for EXTRACT (and DATE_PART) Jan 15, 2024

@alamb alamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution @alexander-beedie - the code and tests look good in this PR . I am not sure about the commented out test however.

Comment thread tests/sqlparser_common.rs Outdated
@alexander-beedie

Copy link
Copy Markdown
Contributor Author

Thank you for the contribution @alexander-beedie - the code and tests look good in this PR . I am not sure about the commented out test however.

Fixed; sorry about that one ;)

@alamb alamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM -- thanks again @alexander-beedie

@alamb
alamb merged commit 3ec337e into apache:main Jan 16, 2024
@alexander-beedie
alexander-beedie deleted the extract-timezone-region branch January 16, 2024 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants