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

coprocessor: Support all data types for AVG() #4777

Merged
merged 8 commits into from May 29, 2019

Conversation

breezewish
Copy link
Member

Signed-off-by: Breezewish breezewish@pingcap.com

What have you changed? (mandatory)

This PR adds supports of using all data types in AVG(), by half-implementing CAST functions necessary for these data types.

Note: These implementations are not fully TiDB compatible. It is only ensured that the behaviour is not worse than existing cast behaviour in non-batch aggregation functions.

What are the type of the changes? (mandatory)

  • New feature (change which adds functionality)

How has this PR been tested? (mandatory)

New unit tests.

@breezewish breezewish changed the title Support all data types for AVG() coprocessor: Support all data types for AVG() May 28, 2019
@breezewish breezewish mentioned this pull request May 28, 2019
1 task
@breezewish
Copy link
Member Author

/run-integration-tests

Signed-off-by: Breezewish <breezewish@pingcap.com>
Copy link
Contributor

@sticnarf sticnarf left a comment

Choose a reason for hiding this comment

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

LGTM (except for there are some FIXMEs)

@breezewish
Copy link
Member Author

/run-integration-tests

@breezewish breezewish merged commit 2bfdbe5 into tikv:master May 29, 2019
@breezewish breezewish deleted the ___batch_extract/t8/1_avg branch May 29, 2019 08:02
breezewish added a commit to breezewish/tikv that referenced this pull request Jun 12, 2019
Signed-off-by: Breezewish <breezewish@pingcap.com>
breezewish added a commit to breezewish/tikv that referenced this pull request Jun 12, 2019
Signed-off-by: Breezewish <breezewish@pingcap.com>
breezewish added a commit to breezewish/tikv that referenced this pull request Jun 12, 2019
Signed-off-by: Breezewish <breezewish@pingcap.com>
sticnarf pushed a commit to sticnarf/tikv that referenced this pull request Oct 27, 2019
Signed-off-by: Breezewish <breezewish@pingcap.com>
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.

None yet

3 participants