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

Fix cast decimal as string #1256

Merged
merged 27 commits into from
Dec 11, 2020
Merged

Fix cast decimal as string #1256

merged 27 commits into from
Dec 11, 2020

Conversation

leiysky
Copy link
Contributor

@leiysky leiysky commented Dec 1, 2020

What problem does this PR solve?

Issue Number: close #1255

Problem Summary:

What is changed and how it works?

Proposal: xxx

What's Changed:

How it Works:

Related changes

  • Need to cherry-pick to the release branch

Check List

Tests

  • Integration test

Release note

  • Fix wrong result of cast decimal as string

@leiysky leiysky requested a review from windtalker December 1, 2020 08:51
@leiysky leiysky added needs-cherry-pick-release-4.0 PR which needs to be cherry-picked to release-4.0 type/bugfix This PR fixes a bug. labels Dec 1, 2020
@leiysky
Copy link
Contributor Author

leiysky commented Dec 3, 2020

@windtalker PTAL

@leiysky
Copy link
Contributor Author

leiysky commented Dec 3, 2020

/run-all-tests

@leiysky
Copy link
Contributor Author

leiysky commented Dec 4, 2020

/run-all-tests

@leiysky
Copy link
Contributor Author

leiysky commented Dec 4, 2020

/run-all-tests

@leiysky
Copy link
Contributor Author

leiysky commented Dec 4, 2020

@windtalker PTAL, again

@leiysky
Copy link
Contributor Author

leiysky commented Dec 8, 2020

/run-all-tests

@leiysky
Copy link
Contributor Author

leiysky commented Dec 8, 2020

/run-all-tests

dbms/src/Common/MyTime.cpp Outdated Show resolved Hide resolved
dbms/src/Flash/Coprocessor/DAGUtils.cpp Outdated Show resolved Hide resolved
dbms/src/Functions/FunctionsTiDBConversion.h Outdated Show resolved Hide resolved
@leiysky
Copy link
Contributor Author

leiysky commented Dec 8, 2020

/run-all-tests

@leiysky
Copy link
Contributor Author

leiysky commented Dec 9, 2020

/run-all-tests

@leiysky
Copy link
Contributor Author

leiysky commented Dec 10, 2020

/run-all-tests

@leiysky
Copy link
Contributor Author

leiysky commented Dec 10, 2020

/run-all-tests

@leiysky
Copy link
Contributor Author

leiysky commented Dec 10, 2020

/run-all-tests

dbms/src/Common/MyTime.cpp Outdated Show resolved Hide resolved
dbms/src/Common/MyTime.cpp Outdated Show resolved Hide resolved
dbms/src/Common/MyTime.cpp Outdated Show resolved Hide resolved
dbms/src/Functions/FunctionsTiDBConversion.h Outdated Show resolved Hide resolved
dbms/src/Common/tests/gtest_mytime.cpp Show resolved Hide resolved
@leiysky
Copy link
Contributor Author

leiysky commented Dec 11, 2020

/run-all-tests

Copy link
Contributor

@windtalker windtalker 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 Dec 11, 2020
@leiysky
Copy link
Contributor Author

leiysky commented Dec 11, 2020

/merge

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

/run-all-tests

@ti-srebot ti-srebot merged commit 37a7575 into pingcap:master Dec 11, 2020
@ti-srebot
Copy link
Collaborator

cherry pick to release-4.0 failed

@leiysky leiysky deleted the fix/cast-decimal-as-string branch December 11, 2020 15:44
leiysky added a commit that referenced this pull request Dec 13, 2020
@@ -101,7 +101,6 @@ struct TiDBConvertToString
auto col_to = ColumnString::create();
ColumnString::Chars_t & data_to = col_to->getChars();
ColumnString::Offsets & offsets_to = col_to->getOffsets();
WriteBufferFromVector<ColumnString::Chars_t> write_buffer(data_to);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@LittleFall This part is related to #1998

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-cherry-pick-release-4.0 PR which needs to be cherry-picked to release-4.0 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.

Wrong result of cast decimal as string
3 participants