-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add coercion test coverage for Sequence file #18921
Add coercion test coverage for Sequence file #18921
Conversation
Is it extension to some PR? |
It is actually an independent PR but it helps for #18832. |
@@ -231,7 +231,7 @@ protected Map<String, List<Object>> expectedValuesForEngineProvider(Engine engin | |||
{ | |||
String hiveValueForCaseChangeField; | |||
Predicate<String> isFormat = formatName -> tableName.toLowerCase(ENGLISH).contains(formatName); | |||
if (isFormat.test("rctext") || isFormat.test("textfile")) { | |||
if (isFormat.test("rctext") || isFormat.test("textfile") || isFormat.test("sequencefile")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (isFormat.test("rctext") || isFormat.test("textfile") || isFormat.test("sequencefile")) { | |
if (Arrays.asList("rctext", "textfile", "sequencefile").contains(isFormat)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Easier to read than 3+ conditions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we need to match for the tableName pattern I have modified to use Stream
here
fc296c3
to
50a04a3
Compare
Description
Additional coercion test coverage for Sequence file
Additional context and related issues
Release notes
(x) This is not user-visible or is docs only, and no release notes are required.