Skip to content

Add support for json#6

Merged
alex-clickhouse merged 1 commit intomainfrom
json-type-support
Mar 18, 2026
Merged

Add support for json#6
alex-clickhouse merged 1 commit intomainfrom
json-type-support

Conversation

@alex-clickhouse
Copy link
Copy Markdown
Collaborator

No description provided.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 18, 2026

Codecov Report

❌ Patch coverage is 87.27273% with 7 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...rage/Internal/Mapping/ClickHouseJsonTypeMapping.cs 83.72% 6 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@alex-clickhouse alex-clickhouse merged commit 746b06a into main Mar 18, 2026
3 checks passed
@alex-clickhouse alex-clickhouse deleted the json-type-support branch March 18, 2026 11:07
@alex-clickhouse alex-clickhouse requested a review from Copilot March 18, 2026 11:36
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 first-class support for ClickHouse’s Json column type in the EFCore.ClickHouse provider, including a new relational type mapping and accompanying docs/tests.

Changes:

  • Introduces ClickHouseJsonTypeMapping to map ClickHouse Json to JsonNode (and optionally string on read).
  • Registers Json in ClickHouseTypeMappingSource, including handling for Json(...) type-hint syntax.
  • Adds integration/unit tests and updates README to document JSON usage and limitations.

Reviewed changes

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

File Description
test/EFCore.ClickHouse.Tests/JsonTypeMappingTests.cs New integration + unit tests for JSON read/write and mapping behaviors
src/EFCore.ClickHouse/Storage/Internal/Mapping/ClickHouseJsonTypeMapping.cs New RelationalTypeMapping implementation for ClickHouse Json
src/EFCore.ClickHouse/Storage/Internal/ClickHouseTypeMappingSource.cs Wires JSON mapping into CLR/store-type resolution and parsing
README.md Documents JSON support, examples, and limitations

💡 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.

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