-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-17827][SQL]maxColLength type should be Int for String and Binary #15464
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
srowen
left a comment
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 by me if @wzhfy is OK with it
| values.count(_.isEmpty).toLong, | ||
| nonNullValues.map(_.length).sum / nonNullValues.length.toDouble, | ||
| nonNullValues.map(_.length).max.toLong, | ||
| nonNullValues.map(_.length).max.toInt, |
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.
Does it even need toInt? I would presume it's already an int, but not sure.
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.
Good question, but at least it documents the type
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.
I think we can keep toInt, it explicitly shows the type.
|
LGTM |
|
This PR contains a change to o.a.s.sql.hive.StatisticsSuite which I believe should fix that issue (awaiting big-endian build to complete) |
|
Tests all pass on big-endian with this PR |
|
Test build #66892 has finished for PR 15464 at commit
|
|
Merging to master. Thanks! |
## What changes were proposed in this pull request? correct the expected type from Length function to be Int ## How was this patch tested? Test runs on little endian and big endian platforms Author: Pete Robbins <[email protected]> Closes apache#15464 from robbinspg/SPARK-17827.
## What changes were proposed in this pull request? correct the expected type from Length function to be Int ## How was this patch tested? Test runs on little endian and big endian platforms Author: Pete Robbins <[email protected]> Closes apache#15464 from robbinspg/SPARK-17827.
What changes were proposed in this pull request?
correct the expected type from Length function to be Int
How was this patch tested?
Test runs on little endian and big endian platforms