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

[branch-2.1](auto-partition) pick auto partition and some more prs #33523

Merged
merged 8 commits into from
Apr 11, 2024

Conversation

zclllyybb
Copy link
Contributor

@zclllyybb zclllyybb commented Apr 11, 2024

Proposed changes

Issue Number: close #xxx

picked:

  1. [Feature](partition) Support insert overwrite auto detect partition #32156
  2. [Feature](partition) Support OLAP table null partition #31827
  3. [test](insert-overwrite) Add insert overwrite auto detect concurrency cases #32935
  4. [Enhancement](partition) Refine some auto partition behaviours #32737 (it was already in. I reverted it and pick again)
  5. [Fix](grace-exit) Fix threadpool hang on grace exit #33132
  6. [Enhancement](auto-partition) support all intervals for date_trunc in auto partition #33439

and:
remove some cloud-relative code in above prs

Further comments

If this is a relatively large or complex change, kick off the discussion at [email protected] by explaining why you chose the solution you did and what alternatives you considered, etc...

@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.

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

@@ -544,16 +505,80 @@ Status VOlapTablePartitionParam::_create_partition_key(const TExprNode& t_expr,
part_key->second = column->size() - 1;
return Status::OK();
}
// NOLINTEND(readability-function-size)

Status VOlapTablePartitionParam::_create_partition_keys(const std::vector<TExprNode>& t_exprs,
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: method '_create_partition_keys' can be made static [readability-convert-member-functions-to-static]

Suggested change
Status VOlapTablePartitionParam::_create_partition_keys(const std::vector<TExprNode>& t_exprs,
static Status VOlapTablePartitionParam::_create_partition_keys(const std::vector<TExprNode>& t_exprs,

@@ -21,11 +21,10 @@
#pragma once

#include <glog/logging.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: 'glog/logging.h' file not found [clang-diagnostic-error]

#include <glog/logging.h>
         ^

@@ -18,23 +18,21 @@
#pragma once

// IWYU pragma: no_include <bits/chrono.h>
#include <fmt/format.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: 'fmt/format.h' file not found [clang-diagnostic-error]

#include <fmt/format.h>
         ^

    for auto partition, support nullable partition column.
    for auto list partition, support create real null partition for null values.
    for auto range partition, null value will raise a error now. but maybe we can improve this in the future
…e#32737)

fix legacy planner grammer
fix nereids planner parsing
fix cases
forbid auto range partition with null column
fix CreateTableStmt with auto partition and some partition items.
1 and 2 are about apache#31585
doc pr: apache/doris-website#488
… auto partition (apache#33439)

support all intervals for date_trunc in auto partition
@HappenLee HappenLee merged commit 3d66723 into apache:branch-2.1 Apr 11, 2024
6 checks passed
@zclllyybb zclllyybb deleted the pick21 branch April 11, 2024 09:12
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