ExitColumnar Storage: formats for analytical access1 / 9
Explanation

Store together what a query reads together

How column-oriented layouts make Parquet and ORC efficient for analytical reads, and when to convert incoming CSV or JSON into these formats. · associate

Columnar storage groups values by field rather than keeping every record's fields together. In CSV, an order's identifier, region, amount, and description appear together on a row. JSON also commonly carries fields together in individual records. An analytical query that totals amounts by region needs only a few of those fields, but a text reader generally must scan and parse the records.

Apache Parquet and Apache ORC are binary, typed columnar file formats. Parquet divides records into row groups, with separate column chunks inside each group. ORC organizes data into stripes containing column data. Neither format puts an entire dataset's values into one giant column block.

A compatible reader can read the region and amount columns without reading unrelated description data. This makes columnar formats especially useful for analytical access: scanning many records while selecting relatively few fields. They are file formats, not databases or query engines.

PropertyCSV or JSONParquet or ORC
RepresentationText recordsTyped binary columns
Selected-field readsUsually scan recordsRead needed columns
Human inspectionDirectly readableRequires a reader
Common purposeExchange and ingestionRepeated analytical scans