Anurag-S1ngh opened a new pull request, #4482:
URL: https://github.com/apache/iceberg-python/pull/4482

   # Rationale for this change
   
   `GeometryType` and `GeographyType` serialize non-default parameters with 
quotes, for example `geometry('EPSG:4326')`. The Iceberg type serialization 
table defines the canonical form without quotes, for example 
`geometry(srid:4326)` and `geography(srid:4326, spherical)`.
   
   Parsing the unquoted form already landed in #4422. This completes that item 
by emitting the spec form, while keeping the quoted forms readable for metadata 
written by older versions.
   
   Part of #4079.
   
   ## Are these changes tested?
   
   Yes. Updated the geometry and geography serialization tests and added JSON 
round-trip assertions for the new output. The existing quoted-input parsing 
tests remain in place.
   
   - `pytest tests/test_types.py`: 291 passed
   - `pytest tests/ -m unit --ignore=tests/integration`: 4882 passed, 6 skipped
   - `ruff check` and `ruff format --check` pass
   
   ## Are there any user-facing changes?
   
   Yes. Type strings written to table metadata now use the canonical unquoted 
form. Older quoted metadata remains readable.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to