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

Support decimals inside Map types. #297

Closed
wants to merge 1 commit into from
Closed

Conversation

zaius
Copy link
Contributor

@zaius zaius commented Mar 22, 2022

The current implementation for Map columns splits on a comma to determine which types are inside the map. This works fine for basic types, but breaks when using Decimals since the type definition of a Decimal includes a comma.

This patch uses a regex to parse commas from inside the type definition only if they're not inside parentheses.

@zaius zaius force-pushed the master branch 2 times, most recently from 07c75c9 to 45e4a27 Compare March 22, 2022 07:43
@xzkostyan
Copy link
Member

Thanks. Your PR was merged: b51d036.

@xzkostyan xzkostyan closed this Jun 18, 2022
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.

2 participants