Skip to content

Test and fix cast from bigint to varchar#17152

Merged
highker merged 1 commit intoprestodb:masterfrom
v-jizhang:cast-to-varchar
Feb 7, 2022
Merged

Test and fix cast from bigint to varchar#17152
highker merged 1 commit intoprestodb:masterfrom
v-jizhang:cast-to-varchar

Conversation

@v-jizhang
Copy link
Copy Markdown
Contributor

Cherry-pick of trinodb/trino#10090

Co-authored-by: kasiafi 30203062+kasiafi@users.noreply.github.com

Test plan - Added tests

== RELEASE NOTES ==

General Changes
* Test and fix cast from bigint to varchar

Copy link
Copy Markdown
Contributor

@prithvip prithvip left a comment

Choose a reason for hiding this comment

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

Just some style nits

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: Could this testing logic be put into a private static "assertThrows" (or something like that) helper method so as to match the style of the rest of this class? It could be helpful in the future too to test exceptions being thrown properly, and would be less awkward than catching an exception thrown by an assertion.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I will refactor it in PR #17232

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same here as above

@prithvip prithvip requested a review from highker January 27, 2022 03:04
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

not used?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It will be used in other similar PRs, like #17232

@highker highker self-assigned this Jan 27, 2022
@v-jizhang
Copy link
Copy Markdown
Contributor Author

I've run locally the failed tests and they pass.

@highker
Copy link
Copy Markdown

highker commented Feb 3, 2022

@v-jizhang can we rebase and force push?

@linux-foundation-easycla
Copy link
Copy Markdown

CLA Not Signed

Cherry-pick of trinodb/trino#10090

Co-authored-by: kasiafi <30203062+kasiafi@users.noreply.github.com>
@v-jizhang
Copy link
Copy Markdown
Contributor Author

@highker Done.

@highker highker merged commit 003ecf9 into prestodb:master Feb 7, 2022
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.

3 participants