crunch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabriel Reid (JIRA)" <>
Subject [jira] [Commented] (CRUNCH-632) Add compression support for CSVFileSource
Date Thu, 12 Jan 2017 07:31:52 GMT


Gabriel Reid commented on CRUNCH-632:

Yep, you're right.

Looking into things a bit more in detail, it appears that there is only one compression codec
(BZip2Codec) which does allow splits and reading from an arbitrary point in a file, but looking
at the extra effort that is required to make this work (CompressedSplitLineReader), and particularly
considering that bzip2 doesn't seem to be used all that much, it doesn't seem worth the extra

> Add compression support for CSVFileSource
> -----------------------------------------
>                 Key: CRUNCH-632
>                 URL:
>             Project: Crunch
>          Issue Type: Improvement
>            Reporter: Jim McStanton
>            Assignee: Micah Whitacre
>            Priority: Minor
>         Attachments: CRUNCH-632.patch, CRUNCH-632b.patch
> Currently CSVFileSource does not support decompressing files before reading them, and
simply opens the file and starts reading the contents:

> This source would more closely match TextFileSource if this support was added. The {{LineRecordReader}}
supports this behavior [here|].

This message was sent by Atlassian JIRA

View raw message