Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
Impala 2.2
-
None
Description
The latest version of clang found this as a warning.
HdfsParquetScanner::ProcessFooter() { ... if (memcmp(magic_number_ptr, PARQUET_VERSION_NUMBER, sizeof(PARQUET_VERSION_NUMBER) != 0)) { <-- paren in wrong place, not comparing the right number of bytes. return Status(Substitute("File $0 is invalid. Invalid file footer: $1", stream_->filename(), string((char*)magic_number_ptr, sizeof(PARQUET_VERSION_NUMBER)))); } }