Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-2130

hdfs-parquet-scanner's verification of file version is not correct

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Impala 2.2
    • Fix Version/s: Impala 2.3.0, Impala 2.2.8
    • Component/s: None
    • Labels:

      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))));
        }
      }
      

        Attachments

          Activity

            People

            • Assignee:
              ippokratis Ippokratis Pandis
              Reporter:
              nong_impala_60e1 Nong Li
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: