-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Hotfix][Transform][Sql] function concat_ws handle array type, avoid write [Ljava.lang.String. #8369
Conversation
…write [Ljava.lang.String.
public class ConcatWsFunctionTest { | ||
|
||
@Test | ||
public void testConcatWs() { |
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.
Thanks @sohurdc ! Could you add some null value in array to test?
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.
ok
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.
LGTM. Thanks @sohurdc !
add license header to file ConcatWsFunctionTest
Please re-try failed ci. |
Purpose of this pull request
When transform from Hive to MySQL, if there are columns of array type, using the concat_ws function for transformation will result in writing [Ljava.lang.String. This is because the array type does not implement the toString method, so special handling is required. Loop through and process the array type one by one.
Does this PR introduce any user-facing change?
No
How was this patch tested?
I added unit tests, but did not add e2e tests.
Check list
New License Guide
release-note
.