Skip to content

Conversation

@yiguolei
Copy link
Contributor

…0063)"

This reverts commit c6df7c2.

Proposed changes

Issue Number: close #xxx

@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@yiguolei
Copy link
Contributor Author

run buildall

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

bool BlockCompressionCodec::exceed_max_compress_len(size_t uncompressed_size) {
return uncompressed_size > std::numeric_limits<int32_t>::max();
if (uncompressed_size > std::numeric_limits<int32_t>::max()) {
return true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: redundant boolean literal in conditional return statement [readability-simplify-boolean-expr]

be/src/util/block_compression.cpp:89:

-     if (uncompressed_size > std::numeric_limits<int32_t>::max()) {
-         return true;
-     }
-     return false;
+     return uncompressed_size > std::numeric_limits<int32_t>::max();

return &s_instance;
}
~SnappyBlockCompression() override = default;
~SnappyBlockCompression() override {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: use '= default' to define a trivial destructor [modernize-use-equals-default]

Suggested change
~SnappyBlockCompression() override {}
~SnappyBlockCompression() override = default;

return &s_instance;
}
~ZlibBlockCompression() override = default;
~ZlibBlockCompression() {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: use '= default' to define a trivial destructor [modernize-use-equals-default]

Suggested change
~ZlibBlockCompression() {}
~ZlibBlockCompression() = default;

return &s_instance;
}
~ZlibBlockCompression() override = default;
~ZlibBlockCompression() {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: annotate this function with 'override' or (rarely) 'final' [modernize-use-override]

Suggested change
~ZlibBlockCompression() {}
~ZlibBlockCompression() override {}

#pragma once

#include <gen_cpp/PlanNodes_types.h>
#include <gen_cpp/parquet_types.h>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: 'gen_cpp/parquet_types.h' file not found [clang-diagnostic-error]

#include <gen_cpp/parquet_types.h>
         ^


private:
// disable copy constructor and copy assignment
OwnedSlice(const OwnedSlice&) = delete;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: deleted member function should be public [modernize-use-equals-delete]

    OwnedSlice(const OwnedSlice&) = delete;
    ^

private:
// disable copy constructor and copy assignment
OwnedSlice(const OwnedSlice&) = delete;
void operator=(const OwnedSlice&) = delete;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: deleted member function should be public [modernize-use-equals-delete]

    void operator=(const OwnedSlice&) = delete;
         ^

#include "vec/runtime/vcsv_transformer.h"

#include <glog/logging.h>
#include <stdlib.h>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: inclusion of deprecated C++ header 'stdlib.h'; consider using 'cstdlib' instead [modernize-deprecated-headers]

Suggested change
#include <stdlib.h>
#include <cstdlib>


#include <glog/logging.h>
#include <stdlib.h>
#include <string.h>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: inclusion of deprecated C++ header 'string.h'; consider using 'cstring' instead [modernize-deprecated-headers]

Suggested change
#include <string.h>
#include <cstring>

#include <parquet/file_writer.h>
#include <parquet/properties.h>
#include <parquet/types.h>
#include <stdint.h>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: inclusion of deprecated C++ header 'stdint.h'; consider using 'cstdint' instead [modernize-deprecated-headers]

Suggested change
#include <stdint.h>
#include <cstdint>

@yiguolei yiguolei merged commit ca07a00 into apache:branch-2.1 Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants