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

Enable decoding nested structures #47

Merged
merged 11 commits into from
Jan 10, 2019
Merged

Enable decoding nested structures #47

merged 11 commits into from
Jan 10, 2019

Conversation

kvap
Copy link
Contributor

@kvap kvap commented Oct 4, 2018

In one of the projects I am working on we need to decode nested structures, like those that ClickHouse returns in response to this query: select [(('name','AT'),('requests',15),('bytes',36585)),(('name','CA'),('requests',515),('bytes',31180966))].

The PR adds support for that by replacing the current decoder with a parser implemented according to these and other docs on CH. Some types are still not supported (Nullable).

Also, using Split() to parse arrays and regexp to unescape will never work properly (e.g. ['hello\',','world']), so this PR fixes that problem too.

@bgaifullin
Copy link
Contributor

Thank you for your PR, I need some time to review this.

@bgaifullin
Copy link
Contributor

Thank you for PR, LGTM.

@bgaifullin bgaifullin merged commit f9c95d8 into mailru:master Jan 10, 2019
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.

None yet

2 participants