-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-8868] SqlSerializer2 can go into infinite loop when row consists only of NullType columns #7262
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
Conversation
|
Merged build triggered. |
|
Merged build started. |
|
Test build #36692 has started for PR 7262 at commit |
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.
Typo: schemata?
|
Test build #36692 has finished for PR 7262 at commit
|
|
Merged build finished. Test FAILed. |
|
Merged build triggered. |
|
Merged build started. |
|
Test build #36696 has started for PR 7262 at commit |
|
Test build #36696 has finished for PR 7262 at commit
|
|
Merged build finished. Test PASSed. |
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.
pretty minor, but this is the same as just setting allNullTypes = false
|
Merged build triggered. |
|
Merged build started. |
|
Test build #36712 has started for PR 7262 at commit |
|
Test build #36712 has finished for PR 7262 at commit
|
|
Merged build finished. Test PASSed. |
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.
For completeness, do we need a test to check that schemas that contain a NullType column and a column of some other supported type are supported?
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.
oh, we have that test. The table shuffle used in SparkSqlSerializer2Suite contains all supported types and NullType.
|
LGTM, so I'm going to merge this for master (1.5.0) and 1.4.2. Thanks @yhuai! |
…ts only of NullType columns https://issues.apache.org/jira/browse/SPARK-8868 Author: Yin Huai <[email protected]> Closes #7262 from yhuai/SPARK-8868 and squashes the following commits: cb58780 [Yin Huai] Andrew's comment. e456857 [Yin Huai] Josh's comments. 5122e65 [Yin Huai] If types of all columns are NullTypes, do not use serializer2. (cherry picked from commit 68a4a16) Signed-off-by: Josh Rosen <[email protected]>
https://issues.apache.org/jira/browse/SPARK-8868