Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To use Parquet with Hive 0.10-0.12 you must download the Parquet Hive package from the Parquet project. You want the parquet-hive-bundle jar in  in Maven Central.

Hive 0.13

Native Parquet support is pending for 0.13 via HIVE-5783.

Introduction to Parquet

Parquet is an ecosystem wide columnar format for Hadoop. At the time of this writing it supports:

Engines

  • Apache Hive
  • Apache Drill
  • Cloudera Impala
  • Apache Crunch
  • Apache Pig
  • Cascading

Data description

  • Apache Avro
  • Apache Thrift
  • Google Protocol Buffers

For the latest information on Parquet formats and data description, please visit the Parquet-MR projects feature matrix.TODO

File Format

TODOThe parquet project has an in-depth description of the format including motivations and diagrams.

Hive QL Syntax

TODO

...

Hive 0.10 - 0.12

CREATE TABLE parquet_test (
id int,
str string,
mp MAP<STRING,STRING>,
lst ARRAY<STRING>,
strct STRUCT<A:STRING,B:STRING>) 
PARTITIONED BY (part string)
ROW FORMAT SERDE 'parquet.hive.serde.ParquetHiveSerDe'
STORED AS
INPUTFORMAT 'parquet.hive.DeprecatedParquetInputFormat'
OUTPUTFORMAT 'parquet.hive.DeprecatedParquetOutputFormat';

Hive 0.13

CREATE TABLE parquet_test (
id int,
str string,
mp MAP<STRING,STRING>,
lst ARRAY<STRING>,
strct STRUCT<A:STRING,B:STRING>)
PARTITIONED BY (part string)
STORED AS PARQUET;