Closed henridf closed 4 years ago
Verified in zq
commit a14daef
. The original repro now generate output rather than an error.
$ zq -f zjson alias.tzng
{"id":23,"type":[{"name":"host","type":"ip"}],"values":["127.0.0.2"]}
{"id":25,"type":[{"name":"foo","type":"myrec"}],"aliases":[{"name":"myrec","type":"record[host:ip]"}],"values":[["127.0.0.2"]]}
Thanks @henridf!
The zjson writer handles aliases to primitive types ok, but not aliases to container types. (The zjson reader likely has a similar issue).