-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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
[SPARK-28158][SQL][FOLLOWUP] HiveUserDefinedTypeSuite: don't use RandomDataGenerator to create row for UDT backed by ArrayType #26287
Conversation
…mplePoint' in input row be nullable
I've also found other kind of intermittent test failure locally as well after submitting the patch. Looking into it.
|
Looks like RandomDataGenerator is not appropriate for creating input row, as sqlType of ExamplePointUDT is ArrayType which cannot denote how many elements are needed. It requires at least two elements. I saw the case where RandomDataGenerator created Nil for serialized data of ExamplePointUDT. |
I've run test for 1000 times (via adding a loop) with latest commit and it ran well. Please let me know if the patch misses intentional randomness. Thanks! |
sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveUserDefinedTypeSuite.scala
Outdated
Show resolved
Hide resolved
sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveUserDefinedTypeSuite.scala
Outdated
Show resolved
Hide resolved
sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveUserDefinedTypeSuite.scala
Outdated
Show resolved
Hide resolved
Test build #112807 has finished for PR 26287 at commit
|
Test build #112810 has finished for PR 26287 at commit
|
Test build #112811 has finished for PR 26287 at commit
|
thanks, merging to master! |
Thanks all for reviewing and merging! |
Late LGTM! Thank you, @HeartSaVioR and all! |
What changes were proposed in this pull request?
There're some issues observed in
HiveUserDefinedTypeSuite."Support UDT in Hive UDF"
:This patch fixes
HiveUserDefinedTypeSuite."Support UDT in Hive UDF"
to change the type of "point" column to be non-nullable, as well as not use RandomDataGenerator to create row for UDT backed by ArrayType.Why are the changes needed?
CI builds are failing in high occurrences.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Manually tested by running tests locally multiple times.