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

How to read from array of low cardinality column? #25

Closed
kant777 opened this issue Jan 26, 2022 Discussed in #22 · 1 comment
Closed

How to read from array of low cardinality column? #25

kant777 opened this issue Jan 26, 2022 Discussed in #22 · 1 comment

Comments

@kant777
Copy link

kant777 commented Jan 26, 2022

Discussed in #22

Originally posted by kant777 January 25, 2022
How to read from array of low cardinality string column?

Below is the parts of the code I used to Read LowCardinality Column

tagsKey = proto.ColStr{}
tagsKeyLC = proto.ColLowCardinality{
	Index: &tagsKey,
}
tagsKeyArr = proto.ColArr{
	Data: &tagsKeyLC,
}

Result: proto.Results{
	{Name: "tags.key", Data: &tagsKeyArr},
},

I get the following error

panic: decode block: decode block: target: tags.key: decode data: got version 30, expected 1

any example?

@ernado
Copy link
Collaborator

ernado commented Jan 28, 2022

I will add more examples on weekend.

Also go1.18 will bring generics that will greatly improve ergonomics of such columns, that's why current implementation is kinda poor.

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

2 participants