Add support for geometry type in mysql connector#24996
Conversation
|
|
a6417e3 to
0900b91
Compare
0b60212 to
bbba4ee
Compare
|
Do the Type Mapping tables in https://github.com/prestodb/presto/blob/master/presto-docs/src/main/sphinx/connector/mysql.rst#type-mapping need to be updated with this added type? |
infvg
left a comment
There was a problem hiding this comment.
Nice work LGTM logic is great just some minor code style suggestions
|
@ethanyzhang imported this issue as lakehouse/tracker #24996 |
bbba4ee to
72ae512
Compare
72ae512 to
4c7408d
Compare
Yes, I added the required change. The MySQL to PrestoDB type mapping table is updated to include GEOMETRY as VARBINARY |
steveburnett
left a comment
There was a problem hiding this comment.
LGTM! (docs)
Pull branch, local doc build, looks good.
This updates the table in MySQL to PrestoDB type mapping, but should a similar line be added to the table in PrestoDB to MySQL type mapping?
yes I only updated the MySQL to PrestoDB type mapping table. the change only adds read support for GEOMETRY. Since we’re reading it as VARBINARY, it’s not supported for writing |
Thanks for the explanation! Makes sense. |
18012ef to
bb674b0
Compare
37a1d69 to
58f2c78
Compare
58f2c78 to
1d14a73
Compare
ZacBlanco
left a comment
There was a problem hiding this comment.
I also just realized you are using assertion functions from the assertj library. We use the assertion functions from org.testng. Please replace your usages of assertj with our standard assertion functions.
1d14a73 to
2fcbfa3
Compare
Thanks for pointing that out. Done Ihave updated the assertions functions to use |
9877f90 to
d8ae77b
Compare
184a22f to
a17e98c
Compare
Co-authored-by: pratyakshsharma <pratyaksh13@gmail.com>3@gmail.com> Co-authored-by: agrawalreetika <agrawal.reetika786@gmail.com>
a17e98c to
62e6371
Compare
Description
Added support for the GEOMETRY type in the MySQL connector.
Motivation and Context
To enable reading geometry data from MySQL tables using Presto.
Impact
Queries with GEOMETRY columns in MySQL will now be supported.
Test Plan
Covered in TestMySqlIntegrationSmokeTest with POINT, LINESTRING, and POLYGON.
Contributor checklist
Release Notes
Please follow release notes guidelines and fill in the release notes below.