Skip to content

add geometry type support#7

Merged
alex-clickhouse merged 2 commits intomainfrom
geometry-types
Mar 18, 2026
Merged

add geometry type support#7
alex-clickhouse merged 2 commits intomainfrom
geometry-types

Conversation

@alex-clickhouse
Copy link
Copy Markdown
Collaborator

No description provided.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds ClickHouse geo (geographic) store-type support to the EFCore.ClickHouse provider by wiring geo aliases to existing structural Tuple/Array/Variant mappings, plus adding a dedicated integration/unit test suite and documenting the new capability.

Changes:

  • Add geo store type mappings (Point, Ring, LineString, Polygon, MultiLineString, MultiPolygon, Geometry) to ClickHouseTypeMappingSource.
  • Add unit + integration tests covering geo type mapping resolution, SQL literal generation, and basic round-trips.
  • Update README to document geo support and remove “Geo types” from the unsupported list.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
test/EFCore.ClickHouse.Tests/GeoTypeMappingTests.cs New unit/integration tests for geo type mappings and round-trip behavior.
src/EFCore.ClickHouse/Storage/Internal/ClickHouseTypeMappingSource.cs Registers geo store types as structural aliases using existing Tuple/Array/Variant mappings.
README.md Documents geo support and updates the “unsupported” section accordingly.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@alex-clickhouse alex-clickhouse merged commit 2dad731 into main Mar 18, 2026
3 checks passed
@alex-clickhouse alex-clickhouse deleted the geometry-types branch March 18, 2026 11:48
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.

2 participants