Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding parser support for AT TIME ZONE #215

Conversation

hash-16
Copy link
Contributor

@hash-16 hash-16 commented Sep 11, 2023

Description

Added a sql_dialect to engine grammer in order to hit sys catalog instead of pg_catalog function.

Extension PR :- Link

Issues Resolved

[List any issues this PR will resolve]

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is under the terms of the PostgreSQL license, and grant any person obtaining a copy of the contribution permission to relicense all or a portion of my contribution to the PostgreSQL License solely to contribute all or a portion of my contribution to the PostgreSQL open source project.

For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@KushaalShroff
Copy link
Contributor

Please add an appropriate description to your PRs

forestkeeper
forestkeeper previously approved these changes Sep 15, 2023
rishabhtanwar29 and others added 2 commits September 21, 2023 19:57
…mp utils (babelfish-for-postgresql#218)

* Add RPM spec file and Makefile logic

Task: BABEL-4412
Signed-off-by: Rishabh Tanwar <[email protected]>

* Fix spec file

Signed-off-by: Rishabh Tanwar <[email protected]>

* Add github action to test RPM

Signed-off-by: Rishabh Tanwar <[email protected]>

---------

Signed-off-by: Rishabh Tanwar <[email protected]>
Co-authored-by: Rishabh Tanwar <[email protected]>
@jsudrik jsudrik dismissed stale reviews from surendravishnoi and forestkeeper September 22, 2023 08:49

The merge-base changed after approval.

@jsudrik jsudrik force-pushed the BABEL_3_X_DEV__PG_15_X branch from 6e167ed to 3f3dc68 Compare September 22, 2023 08:49
@hash-16 hash-16 requested review from surendravishnoi and forestkeeper and removed request for KushaalShroff September 26, 2023 11:21
@forestkeeper forestkeeper merged commit 1f0851f into babelfish-for-postgresql:BABEL_3_X_DEV__PG_15_X Sep 26, 2023
2 checks passed
shardgupta pushed a commit to babelfish-for-postgresql/babelfish_extensions that referenced this pull request Sep 27, 2023
It converts an inputdate (datetime,smalldatetime,datetime2,datetimeoffset) to the corresponding datetimeoffset value in the target time zone.

```
Select convert(datetime,'2022-03-27T01:01:00') AT TIME ZONE 'Atlantic Standard Time'

2022-03-27 01:01:00.000 -03:00 

Here it considers that the given time is currently in the target time zone so no change in the time is observed
it just adds the offset.
```
Engine PR :- [Link](babelfish-for-postgresql/postgresql_modified_for_babelfish#215)

Issues Resolved: BABEL-986

Signed-off-by: Ashish Prasad <[email protected]>
@rishabhtanwar29 rishabhtanwar29 deleted the ATTIMEZONE branch October 3, 2023 07:47
Sairakan pushed a commit to amazon-aurora/postgresql_modified_for_babelfish that referenced this pull request Nov 16, 2023
* Adding parser support for AT TIME ZONE

Signed-off-by: Rishabh Tanwar <[email protected]>
Co-authored-by: Ashish Prasad <[email protected]>
Co-authored-by: Sai Rohan Basa <[email protected]>
Task: BABEL-4412
priyansx pushed a commit to amazon-aurora/postgresql_modified_for_babelfish that referenced this pull request Nov 22, 2023
* Adding parser support for AT TIME ZONE

Signed-off-by: Rishabh Tanwar <[email protected]>
Co-authored-by: Ashish Prasad <[email protected]>
Co-authored-by: Sai Rohan Basa <[email protected]>
Task: BABEL-4412
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.

6 participants