Skip to content
This repository was archived by the owner on May 10, 2024. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion example/example_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ bool GetFileMetadata(const string& path, FileMetaData* metadata) {
}

uint32_t metadata_len = *reinterpret_cast<uint32_t*>(footer_buffer);
size_t metadata_start = file_len - FOOTER_SIZE - metadata_len;
int64_t metadata_start = file_len - FOOTER_SIZE - metadata_len;
if (metadata_start < 0) {
cerr << "Invalid parquet file. File is less than file metadata size." << endl;
return false;
Expand Down
2 changes: 1 addition & 1 deletion example/parquet_reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ void* read_parquet(char* filename) {
printf("%-"COL_WIDTH"d",((int32_t *)(((int32_t **)column_ptr)[j]))[k]);
break;
case Type::INT64:
printf("%-"COL_WIDTH"ld",((int64_t *)(((int64_t **)column_ptr)[j]))[k]);
printf("%-"COL_WIDTH"lld",((int64_t *)(((int64_t **)column_ptr)[j]))[k]);
break;
case Type::FLOAT:
printf("%-"COL_WIDTH"f",((float*)(((float**)column_ptr)[j]))[k]);
Expand Down
2 changes: 1 addition & 1 deletion src/parquet.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ ColumnReader::ColumnReader(const ColumnMetaData* metadata,
num_buffered_values_(0),
num_decoded_values_(0),
buffered_values_offset_(0) {
int value_byte_size;
int value_byte_size = 0;
switch (metadata->type) {
case parquet::Type::BOOLEAN:
value_byte_size = 1;
Expand Down