Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "[branch-2.1](hive) support hive write text table (#38549) (#4… #40157

Merged
merged 1 commit into from
Aug 30, 2024

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

@@ -88,7 +87,10 @@ Status BlockCompressionCodec::compress(const std::vector<Slice>& inputs, size_t
}

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

@@ -705,7 +661,7 @@
static SnappyBlockCompression s_instance;
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;

class ZlibBlockCompression : public BlockCompressionCodec {
public:
static ZlibBlockCompression* instance() {
static ZlibBlockCompression s_instance;
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;

class ZlibBlockCompression : public BlockCompressionCodec {
public:
static ZlibBlockCompression* instance() {
static ZlibBlockCompression s_instance;
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 {}

@@ -17,7 +17,6 @@

#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>
         ^

@@ -373,6 +369,11 @@
OwnedSlice(uint8_t* _data, size_t size, size_t capacity)
: _slice(_data, size), _capacity(capacity) {}

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;
         ^

@@ -18,22 +18,39 @@
#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>

@@ -18,22 +18,39 @@
#include "vec/runtime/vcsv_transformer.h"

#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
19 of 22 checks passed
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