I am using avro-tools tojson file.avro
to inspect a large Avro file. I am only interested in seeing a few examples, just to get a feeling for the data.
Is there an option for avro-tools tojson
that limits the number of rows read?
I am using avro-tools tojson file.avro
to inspect a large Avro file. I am only interested in seeing a few examples, just to get a feeling for the data.
Is there an option for avro-tools tojson
that limits the number of rows read?
No. That's not possible. See source code here.
But it should be easy enough to just add a limit to the code.
Or just use head
to fake it
Yes, there is an option for avro-tools tojson that limits the number of rows read: