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

zio/csvio: omit type decorator for union values #4338

Merged
merged 1 commit into from
Jan 27, 2023
Merged

zio/csvio: omit type decorator for union values #4338

merged 1 commit into from
Jan 27, 2023

Conversation

nwt
Copy link
Member

@nwt nwt commented Jan 26, 2023

To format a Zed union, zio/csvio.Writer.Write calls through formatValue to zson.String, producing a string that includes an unwanted ZSON union type decorator. Remove that type decorator by calling zed.Value.Under in Write.

Closes #4207.

To format a Zed union, zio/csvio.Writer.Write calls through formatValue
to zson.String, producing a string that includes an unwanted ZSON union
type decorator.  Remove that type decorator by calling zed.Value.Under
in Write.

Closes #4207.
@nwt nwt requested a review from a team January 26, 2023 21:56
@nwt nwt merged commit b39b4bd into main Jan 27, 2023
@nwt nwt deleted the zio-csvio-union branch January 27, 2023 19:59
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.

Union type decorator leaking into CSV output
2 participants