-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
zio/csvio: omit type decorator for union values
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.
- Loading branch information
Showing
2 changed files
with
18 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
zed: '*' | ||
|
||
input: | | ||
{a:1((int64,string))} | ||
{a:"one"((int64,string))} | ||
output-flags: -f csv | ||
|
||
output: | | ||
a | ||
1 | ||
one |