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

Inserting a Map results in an error about expecting Map but got Array #226

Open
that-guy-iain opened this issue Aug 20, 2024 · 0 comments
Open

Comments

@that-guy-iain
Copy link

I need to have a Map column. When I try to insert using this library I get

ClickHouseDB\Exception\DatabaseException:
Type mismatch in IN or VALUES section. Expected: Map(String, String). Got: Array: While executing ValuesBlockInputFormat. (TYPE_MISMATCH)
IN:INSERT INTO `events` (`event_id`,`customer_id`,`subscription_id`,`code`,`properties`,`value`,`created_at`)  VALUES  ('00f82d0485739c2ba49efbc4189a42bb','be7424e9-91d5-4ffc-82ec-a0be550462bf','18726c78-be3e-4d06-9ac6-071a9d4c9122',NULL,['value'],1,1724186847)
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

No branches or pull requests

1 participant