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

Support enum type in mpp mode. #1534

Merged
merged 10 commits into from
Mar 13, 2021
Merged

Support enum type in mpp mode. #1534

merged 10 commits into from
Mar 13, 2021

Conversation

windtalker
Copy link
Contributor

@windtalker windtalker commented Mar 11, 2021

What problem does this PR solve?

Issue Number: close #1489

Problem Summary:
As the issue desribed.

What is changed and how it works?

Proposal: xxx

What's Changed:

How it Works:

The root cause is the tipb::FieldType does not contains elems which stores some meta data for Enum or Set type, without this meta data, TiFlash could not construct the Enum type in ExchangeReceiver, so it wil throw Exception when there are Enum type data in MPP query. In pingcap/tipb#217, it adds elems field to tipb::FieldType, which make it possible to support Enum type in MPP, a tidb pr is already in flight, and this pr is to support Enum type in MPP in TiFlash side.

Related changes

  • PR to update pingcap/docs/pingcap/docs-cn:
  • Need to cherry-pick to the release branch

Check List

Tests

  • Unit test
  • Manual test (add detailed scripts or steps below)

Side effects

  • Performance regression
    • Consumes more CPU
    • Consumes more MEM
  • Breaking backward compatibility

Release note

  • Support enum type in mpp mode.

@leiysky leiysky added the type/bugfix This PR fixes a bug. label Mar 11, 2021
Copy link
Member

@hanfei1991 hanfei1991 left a comment

Choose a reason for hiding this comment

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

/lgtm

@ti-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label Mar 12, 2021
@windtalker
Copy link
Contributor Author

/run-all-tests

3 similar comments
@windtalker
Copy link
Contributor Author

/run-all-tests

@windtalker
Copy link
Contributor Author

/run-all-tests

@windtalker
Copy link
Contributor Author

/run-all-tests

@hanfei1991
Copy link
Member

/merge

@ti-srebot ti-srebot added the status/can-merge Indicates a PR has been approved by a committer. label Mar 13, 2021
@ti-srebot
Copy link
Collaborator

/run-all-tests

@ti-srebot
Copy link
Collaborator

@windtalker merge failed.

@windtalker
Copy link
Contributor Author

/run-all-tests

@windtalker windtalker merged commit 4bbd300 into pingcap:master Mar 13, 2021
@windtalker windtalker deleted the enum_mpp branch May 11, 2021 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/can-merge Indicates a PR has been approved by a committer. status/LGT1 Indicates that a PR has LGTM 1. type/bugfix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MPP query failed if the return column has Enum type
4 participants