-
Notifications
You must be signed in to change notification settings - Fork 29k
[SQL][HIVE] Correct an assert message in function makeRDDForTable #21836
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
according to the context, "makeRDDForTablePartitions" in assert message should be "makeRDDForPartitionedTable"
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
|
ok to test |
|
test this please |
|
retest this please |
|
Test build #93427 has finished for PR 21836 at commit
|
the line modified exceeds 100 characters, it leads to Scala style checks failure, cut it into two line to solve it.
|
|
||
| assert(!hiveTable.isPartitioned, """makeRDDForTable() cannot be called on a partitioned table, | ||
| since input formats may differ across partitions. Use makeRDDForTablePartitions() instead.""") | ||
| since input formats may differ across partitions. Use makeRDDForPartitionedTable() |
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 it's gonna keep the white spaces as is. Mind if I ask change this as below?
assert(
!hiveTable.isPartitioned,
"makeRDDForTable() cannot be called on a partitioned table, since input formats may differ " +
"across partitions. Use makeRDDForTablePartitions() instead."
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.
That's Good. I will modify it, thanks.
|
test this please |
|
Test build #93432 has finished for PR 21836 at commit
|
|
I'm sorry for the scala style checks failure, i will read scala style guide doc again. |
|
retest this please |
|
Test build #93434 has finished for PR 21836 at commit
|
|
Merged to master and branch-2.3. |
## What changes were proposed in this pull request? according to the context, "makeRDDForTablePartitions" in assert message should be "makeRDDForPartitionedTable", because "makeRDDForTablePartitions" does't exist in spark code. ## How was this patch tested? unit tests Please review http://spark.apache.org/contributing.html before opening a pull request. Author: SongYadong <song.yadong1@zte.com.cn> Closes #21836 from SongYadong/assert_info_modify. (cherry picked from commit ab18b02) Signed-off-by: hyukjinkwon <gurwls223@apache.org>
What changes were proposed in this pull request?
according to the context, "makeRDDForTablePartitions" in assert message should be "makeRDDForPartitionedTable", because "makeRDDForTablePartitions" does't exist in spark code.
How was this patch tested?
unit tests
Please review http://spark.apache.org/contributing.html before opening a pull request.