Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic/Variant errors on insert (Code: 117. DB::Exception:) #441

Closed
EugeneIstomin opened this issue Dec 18, 2024 · 2 comments · Fixed by #443
Closed

Dynamic/Variant errors on insert (Code: 117. DB::Exception:) #441

EugeneIstomin opened this issue Dec 18, 2024 · 2 comments · Fixed by #443
Labels
bug Something isn't working

Comments

@EugeneIstomin
Copy link

Describe the bug

Some internal structures are incorrect when insert in Dynamic/Variant.

Steps to reproduce

  1. insert into datatypes like:
  • "Map(String, Variant(String, UInt128, Bool))",
  • "Map(String, Dynamic)",

Expected behaviour

Insert successfully done.

clickhouse-connect and/or ClickHouse server logs

Variant: Code: 117. DB::Exception: Invalid version for SerializationVariant discriminators column.: While executing Native. (INCORRECT_DATA) (version 25.1.1.1751)
Dynamic: Code: 117. DB::Exception: Invalid version for Dynamic structure serialization: 4: While executing Native. (INCORRECT_DATA) (version 25.1.1.1751)

Configuration

Environment

  • clickhouse-connect version: 0.8.10
  • Python version: 3.11/3.12
  • Operating system: linux

ClickHouse server

  • ClickHouse Server version: 24.11, 25.1.1 (from git repo)
@EugeneIstomin EugeneIstomin added the bug Something isn't working label Dec 18, 2024
@genzgd
Copy link
Collaborator

genzgd commented Dec 18, 2024

Thanks for the report -- it looks like you have the problem on both 24.11 and 25.1 -- I assume the behavior is the same on both?

@EugeneIstomin
Copy link
Author

Yes, tested on both:

  • 24.11.1.2557
  • 25.1.1.1751

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants