Closed bbkane closed 2 weeks ago
Hi, Would you kindly provide a sample file to replicate the error?
Here is the file as a zipfile: grabbit_log.zip.
It's a log from a little CLI tool I wrote called grabbit. I've verified it's valid JSONL by reading each line as a JSON object in Python with no issues.
I had to save it as a zip file so GitHub would let me attach it.
Here it is pasted in:
The error message I get is:
$ tw ~/.config/grabbit.jsonl
thread 'main' panicked at src/main.rs:37:39:
found more fields than defined in 'Schema'
Consider setting 'truncate_ragged_lines=true'.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
zsh: abort tw ~/.config/grabbit.jsonl
And my version of tabiew is:
$ tw --version
tabiew 0.7.0
Thanks for looking into this, I think tabiew could really help my experience looking at logs haha!
I opened the file successfully using the following command:
tw grabbit.jsonl --format jsonl
Hmm I thought it would infer that from the file name. I'll start passing it explicitly, thank you!
Hello! I'm trying to open a JSONL log file, where some fields are in every object, but some fields are only in some objects.
This panics with
found more fields than defined in 'Schema'
atsrc/main.rs:37:39
I played with
--no-header
and--infer-schema
, but couldn't make it work.Would it be possible to support this format?