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: migrate password function from TiDB #7777

Merged
merged 5 commits into from May 14, 2020

Conversation

psinghal20
Copy link
Contributor

Signed-off-by: psinghal20 psinghal20@gmail.com

What problem does this PR solve?

Issue Number: closes #6776

Problem Summary:

What is changed and how it works?

Migrates the scalar function password from TiDB.

I am not sure of the correct way to report deprecation warning, let me know if any changes are required. @andylokandy PTAL

Check List

Tests

  • Unit test
  • Integration test

@sre-bot sre-bot added the contribution Type: PR - From contributors label May 9, 2020
Signed-off-by: psinghal20 <psinghal20@gmail.com>
Signed-off-by: psinghal20 <psinghal20@gmail.com>
@TennyZhuang
Copy link
Contributor

LGTM

@TennyZhuang
Copy link
Contributor

@Fullstop000 PTAL

let op = Expression::build(&mut ctx, op).unwrap();
let got = op.eval(&mut ctx, &[]).unwrap();
let exp = Datum::Bytes(exp_str.as_bytes().to_vec());
assert_eq!(got, exp, "password('{:?}')", input_str);
Copy link
Member

Choose a reason for hiding this comment

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

It could be better to add testing for empty input and the warning I think :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Fullstop000 I have added a Null case test, similar to the above tests. PTAL.

@Fullstop000
Copy link
Member

@sre-bot /approve

@TennyZhuang
Copy link
Contributor

/merge

@TennyZhuang
Copy link
Contributor

/approve

Copy link
Contributor

@sre-bot sre-bot left a comment

Choose a reason for hiding this comment

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

LGTM

@HunDunDM
Copy link
Member

/merge

@sre-bot sre-bot added the status/can-merge Status: Can merge to base branch label May 14, 2020
@sre-bot
Copy link
Contributor

sre-bot commented May 14, 2020

/run-all-tests

@sre-bot sre-bot merged commit 2be1685 into tikv:master May 14, 2020
@psinghal20 psinghal20 deleted the migrate-password branch May 14, 2020 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution Type: PR - From contributors status/can-merge Status: Can merge to base branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UCP: Migrate scalar function Password from TiDB
5 participants