-
Notifications
You must be signed in to change notification settings - Fork 92
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
Support GEOGRAPHY and GEOMETRY datatypes along with TDS Sender Support #1819
Support GEOGRAPHY and GEOMETRY datatypes along with TDS Sender Support #1819
Conversation
Signed-off-by: Anikait Agrawal <[email protected]>
Geography Types Signed-off-by: Anikait Agrawal <[email protected]>
Signed-off-by: Anikait Agrawal <[email protected]>
Signed-off-by: Anikait Agrawal <[email protected]>
Signed-off-by: Anikait Agrawal <[email protected]>
…to jira-BABEL-4323 Signed-off-by: Anikait Agrawal <[email protected]>
Signed-off-by: Anikait Agrawal <[email protected]>
Signed-off-by: Anikait Agrawal <[email protected]>
Signed-off-by: Anikait Agrawal <[email protected]>
Signed-off-by: Anikait Agrawal <[email protected]>
Signed-off-by: Anikait Agrawal <[email protected]>
Signed-off-by: Anikait Agrawal <[email protected]>
Signed-off-by: Anikait Agrawal <[email protected]>
Signed-off-by: Anikait Agrawal <[email protected]>
27d55f2
to
ec87607
Compare
Signed-off-by: Anikait Agrawal <[email protected]>
Signed-off-by: Anikait Agrawal <[email protected]>
Signed-off-by: Anikait Agrawal <[email protected]>
Signed-off-by: Anikait Agrawal <[email protected]>
Signed-off-by: Anikait Agrawal <[email protected]>
Signed-off-by: Anikait Agrawal <[email protected]>
Signed-off-by: Anikait Agrawal <[email protected]>
Signed-off-by: Anikait Agrawal <[email protected]>
Signed-off-by: Anikait Agrawal <[email protected]>
Do we have a way of testing that the build works when postgis fails or is not installed? |
test/python/expected/upgrade_validation/expected_dependency.out
Outdated
Show resolved
Hide resolved
Signed-off-by: Anikait Agrawal <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Anikait Agrawal <[email protected]>
contrib/babelfishpg_common/sql/upgrades/other_types--3.2.0--3.3.0.sql
Outdated
Show resolved
Hide resolved
contrib/babelfishpg_common/sql/upgrades/babelfishpg_upgrades.in
Outdated
Show resolved
Hide resolved
Signed-off-by: Anikait Agrawal <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved, but let's remember to address the upgrade questions brought up in the slack room
00c87ad
into
babelfish-for-postgresql:BABEL_3_X_DEV
…r Support (babelfish-for-postgresql#1819)" This reverts commit 00c87ad. THIS IS A TEMPORARY REVERT TO ALLOW THE GITHUB ACTIONS TO RUN TESTS. THIS NEEDS TO BE UN-REVERTED AFTER BABEL_main IS BROUGHT UP TO DATE
…r Support (babelfish-for-postgresql#1819)" This reverts commit 00c87ad.
…r Support (babelfish-for-postgresql#1819)" This reverts commit 00c87ad.
…r Support (babelfish-for-postgresql#1819)" This reverts commit 00c87ad.
…r Support (babelfish-for-postgresql#1819)" This reverts commit 00c87ad.
…r Support (babelfish-for-postgresql#1819)" This reverts commit 00c87ad.
Description
AS Babel User
I WANT support to be added for GEOGRAPHY and GEOMETRY data types
SO I can use this special data type to store and manipulate geospatial data
This PR contains Support for GEOGRAPHY and GEOGRAPHY datatype for Point Type and also TDS sender Support for
these Spatial DataTypes so that we can send result of queries with GEOGRAPHY and GEOMETRY columns to TDS clients.
Added SQL files which contains the following definitions and functionalities:
[Geography variable]
[Geography column]
[Geometry variable]
[Geometry column]
Spatial type modifier [Point]
Spatial method [.Lat]
Spatial method [.Long]
Spatial support method [STGeomFromText]
Spatial support method [STPointFromText]
Spatial support method [.STDistance]
Spatial support method .STAsText
Spatial support method .STAsBinary
as well as modifications to the antlr parser in order to support the scope parameter (::)
Added new tests TestSpatialPoint-vu-* to test these implemented functionalities.
Added build scripts for PostGIS extension in the Github Actions.
Added Spatial Type Enable Switch so that user can freely use these types after building PostGIS Extension
Created a new version dump - 3.3.0 (babelfishpg_common--3.2.0--3.3.0.sql) to support the sql files for spatialtypes
Created automated creation for upgrade files
Task: BABEL- 4323
Authored-by: Anikait Agrawal [email protected]
Signed-off-by: Anikait Agrawal [email protected]
Test Scenarios Covered
Use case based - TestSpatialPoint-vu-*
Boundary conditions -
Arbitrary inputs -
Negative test cases - TestSpatialPoint-vu-*
Minor version upgrade tests - added PostGIS installation scripts to Github Actions and upgrade file babelfishpg_common--3.2.0--3.3.0.sql
Major version upgrade tests - added PostGIS installation scripts to Github Actions and upgrade file babelfishpg_common--3.2.0--3.3.0.sql
Performance tests -
Tooling impact -
Client tests -
Check List
By submitting this pull request, I confirm that my contribution is under the terms of the Apache 2.0 and PostgreSQL licenses, 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.