Sin descripción

Joe Crobak 65f7fc9f5c Merge pull request #3 from jaguarx/master hace 12 años
parquet 33def86801 remove commented out code, update doc hace 12 años
test 2e12b2823c Initial implementation of BIT_PACK. hace 13 años
test-data 80cbd47aed Integration tests for parquet. hace 13 años
.gitignore ae430fa9ea test updates. hace 13 años
LICENSE b4bd14b6a3 add license hace 13 años
README.md df6cb0e665 README updates. hace 13 años
setup.py ae430fa9ea test updates. hace 13 años

README.md

parquet-python

parquet-python is a pure-python implementation (currently with only read-support) of the parquet format. It comes with a script for reading parquet files and outputting the data to stdout as JSON or TSV (without the overhead of JVM startup). Performance has not yet been optimized, but it's useful for debugging and quick viewing of data in files.

Not all parts of the parquet-format have been implemented yet or tested e.g. nested data and the deprecated bit-packing encoding -- see Todos below for a full list. With that said, parquet-python is capable of reading all the data files from the parquet-compatability project.

requirements

parquet-python has been tested on python 2.7. It depends on thrift (0.9) and python-snappy (for snappy compressed files).

getting started

parquet-python is not yet uploaded to PyPi as the code has a lot of bugs. To get started, clone the project, change into the parquet-python directory, and run python -m parquet.

You may need to install the thrift and python-snappy projects with easy_install or pip. To install parquet-python system-wide, run python setup.py install.

Todos

  • Support the deprecated bitpacking
  • Support for bitwidths > 8
  • Fix handling of repetition-levels and definition-levels
  • Tests for nested schemas, null data
  • Support reading of data from HDFS via snakebite and/or webhdfs.
  • Implement writing
  • performance evaluation and optimization (i.e. how does it compare to the c++, java implementations)

Contributing

Is done via Pull Requests. Please include tests with your changes and follow pep8.