Skip to content

Commit

Permalink
PARQUET-267: Detach thirdparty code from build configuration.
Browse files Browse the repository at this point in the history
This is based off of pull request apache/parquet-cpp#14.

Author: Kalon Mills <kmills@adobe.com>

Closes apache#16 from kalaxy/libparquet-library-update-build and squashes the following commits:

0ce51db [Kalon Mills] Add script for automating build env setup.
82a198c [Kalon Mills] Make thrift build on mac only a warning when not specified explicitly.
d096c64 [Kalon Mills] Update build instructions.
6709182 [Kalon Mills] Support thrift dependency in thirdparty scripts for linux.
bedd0d4 [Kalon Mills] Remove thirdparty code lz4 from repo.
30c2b7e [Kalon Mills] Support build environment configuration of LZ4 library.
73e7785 [Kalon Mills] Support build environment configuration of Snappy library.
  • Loading branch information
kalaxy authored and wesm committed Sep 2, 2018
1 parent b2223fc commit 0701b4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/parquet/compression/lz4-codec.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace parquet_cpp {

void Lz4Codec::Decompress(int input_len, const uint8_t* input,
int output_len, uint8_t* output_buffer) {
int n = LZ4_uncompress(reinterpret_cast<const char*>(input),
int n = LZ4_decompress_fast(reinterpret_cast<const char*>(input),
reinterpret_cast<char*>(output_buffer), output_len);
if (n != input_len) {
throw parquet_cpp::ParquetException("Corrupt lz4 compressed data.");
Expand Down

0 comments on commit 0701b4d

Please sign in to comment.