Repository navigation
Closed
2 / 32 of 3 issues completedLabels
enhancementNew feature or request
Description
Today the only archive TriasDev.Tabular reads is zip. A gzip, tar, tar.gz or 7z file is not recognised: it is not a zip, so TabularFile.Open hands it to the csv cursor, which refuses it as binary. These formats are common in data deliveries, and Windows 11 now extracts and creates 7z and tar from File Explorer, so they will arrive from Windows users too.
Parts (in this order)
- Read gzip-compressed files (.csv.gz, .xlsx.gz) #68 gzip —
.csv.gz,.xlsx.gz: decompress, then detect and read the inner file. BCLGZipStream, no dependency. - Read tar and tar.gz archives #69 tar and tar.gz — read like a zip. BCL
System.Formats.Tar+GZipStream. Needs Read gzip-compressed files (.csv.gz, .xlsx.gz) #68. - Read 7z archives #75 7z — own LZMA reader in the core, or a separate package on SharpCompress (to decide). Needs Read tar and tar.gz archives #69.
Shared design question
tar has no central directory, and 7z compresses solid by default, so neither gives the cheap random access to entries that ArchiveCursor relies on for zip. #69 settles how such archives are read, and #75 reuses it: one sequential pass, table entries kept in a spool — in memory by default (ChunkedBuffer, bounded), on disk only when the caller opts in.
Rules that apply to every part
- Detected by bytes, never by extension.
- Same model as zip: every csv, xlsx and ods entry's sheets in path order,
Source= the entry's path, unreadable entries inSkippedEntries; nested archives skipped. - Bounded: decompressed bytes, entry count, embedded workbook size, and anything a format lets a file make the reader allocate.
- Measured: the large fixtures, including the 5M-row csv, against the same data as a zip — time and peak memory.
Out of scope
- RAR: proprietary format, non-OSI unRAR licence.
- bzip2, xz, Zstandard as standalone compression formats (no BCL decoder on net8/net10;
ZstandardStreamarrives in .NET 11). - Multi-volume archives (
.7z.001, split zips).
Sub-issues
Collapse Sub-issuesSub-issues
Loading 3 sub-issues
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
vaceslav commentedon Oct 4, 2026
gzip (#80) and tar / tar.gz (#82) are done and merged. 7z continues in #75.