Skip to content

[Vectorized][Function] support function stddev/variance/stddev_samp/variance_samp - #7734

Merged
HappenLee merged 3 commits into
apache:vectorizedfrom
zhangstar333:stddev_vec
Jan 13, 2022
Merged

HappenLee merged 3 commits into
apache:vectorizedfrom
zhangstar333:stddev_vec

Conversation

@zhangstar333

Copy link
Copy Markdown
Contributor

Proposed changes

Issue Number: close #7733

Problem Summary:

Describe the overview of changes.

Checklist(Requried)

  1. Does it affect the original behavior: (Yes/No/I Don't know)
  2. Has unit tests been added: (Yes/No/No Need)
  3. Has document been added or modified: (Yes/No/No Need)
  4. Does it need to update dependencies: (Yes/No)
  5. Are there any changes that cannot be rolled back: (Yes/No)

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

@zhangstar333 zhangstar333 changed the title [Function][Vec] support function stddev/variance/stddev_samp/variance_samp [Vectorized][Function] support function stddev/variance/stddev_samp/variance_samp Jan 13, 2022
}

void register_alias(const std::string& name, const std::string& alias, bool nullable = false) {
if(nullable) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

change to like alias function


template <typename T, bool is_stddev>
struct BaseData {
using ColVecType = std::conditional_t<IsDecimalNumber<T>, ColumnDecimal<Decimal128>, ColumnVector<T>>;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

remove the unless code

@HappenLee
HappenLee merged commit 24787ed into apache:vectorized Jan 13, 2022
HappenLee pushed a commit that referenced this pull request Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants