Skip to content

fix(proto): return error for unsupported custom serialization - #1186

Open
fallintoplace wants to merge 1 commit into
ClickHouse:mainfrom
fallintoplace:fix/custom-serialization-error
Open

fix(proto): return error for unsupported custom serialization#1186
fallintoplace wants to merge 1 commit into
ClickHouse:mainfrom
fallintoplace:fix/custom-serialization-error

Conversation

@fallintoplace

Copy link
Copy Markdown

What does this change?

Return an actual error when a result column uses custom serialization.

ColInfoInput.DecodeResult already checks the flag, but the error branch wrapped the previous err value. After a successful Bool read, that value is nil, so the branch returned nil and decoding continued.

Custom serialization is not supported, so decoding should stop instead of accepting the column metadata.

Tests

  • go test ./...

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.

1 participant