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

feat(query): decimal support agg func min, max #10061

Closed
wants to merge 1 commit into from

Conversation

TCeason
Copy link
Collaborator

@TCeason TCeason commented Feb 15, 2023

I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/

Summary

Summary about this PR

Closes #10005

@vercel
Copy link

vercel bot commented Feb 15, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated
databend ⬜️ Ignored (Inspect) Feb 15, 2023 at 9:48AM (UTC)

@TCeason TCeason marked this pull request as draft February 15, 2023 09:43
@mergify mergify bot added the pr-feature this PR introduces a new feature to the codebase label Feb 15, 2023

impl<Num: Decimal> ArgType for DecimalType<Num> {
fn data_type() -> DataType {
DataType::Decimal(Num::data_type())
Copy link
Member

Choose a reason for hiding this comment

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

You did not know the precision and scale here

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Can ignore this, will delete these code.


fn data_type() -> DecimalDataType {
DecimalDataType::Decimal128(DecimalSize {
precision: 0,
Copy link
Member

Choose a reason for hiding this comment

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

It's wrong!

@TCeason TCeason closed this Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-feature this PR introduces a new feature to the codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add min/max aggregate function on Decimal, support order by Decimal datatypes @TCeason
2 participants