I've really enjoyed using fst — the read/write and compression are wonderful. Sometimes I create problems for myself when I try to read a column that doesn't exist in a dataset. For example:
*** caught bus error ***
address 0x0, cause 'invalid alignment'
Traceback:
1: fstretrieve(file_name, columns, from, to)
2: read_fst("test.fst", columns = "b")
Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
I'm running fst version 0.9.8 and fstcore version 0.9.18.
I'm proposing a fix that checks the requested columns against those found by metadata_fst(), and throws an error if the user requests a column not present in the file.
Apologies if this is already in the works! I did a quick scan of open issues but didn't see something like this.
I've really enjoyed using
fst
— the read/write and compression are wonderful. Sometimes I create problems for myself when I try to read a column that doesn't exist in a dataset. For example:produces the error:
I'm running
fst
version 0.9.8 andfstcore
version 0.9.18.I'm proposing a fix that checks the requested
columns
against those found bymetadata_fst()
, and throws an error if the user requests a column not present in the file.Apologies if this is already in the works! I did a quick scan of open issues but didn't see something like this.