Skip to content

Conversation

@SongYadong
Copy link
Contributor

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.

according to the context, "makeRDDForTablePartitions" in assert message should be "makeRDDForPartitionedTable"
Copy link
Member

@HyukjinKwon HyukjinKwon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@HyukjinKwon
Copy link
Member

ok to test

@HyukjinKwon
Copy link
Member

test this please

@HyukjinKwon
Copy link
Member

retest this please

@SparkQA
Copy link

SparkQA commented Jul 23, 2018

Test build #93427 has finished for PR 21836 at commit 6a0f729.

  • This patch fails Scala style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

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()
Copy link
Member

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."

Copy link
Contributor Author

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.

@HyukjinKwon
Copy link
Member

test this please

@SparkQA
Copy link

SparkQA commented Jul 23, 2018

Test build #93432 has finished for PR 21836 at commit 085ffdb.

  • This patch fails Scala style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SongYadong
Copy link
Contributor Author

I'm sorry for the scala style checks failure, i will read scala style guide doc again.

@HyukjinKwon
Copy link
Member

retest this please

@SparkQA
Copy link

SparkQA commented Jul 23, 2018

Test build #93434 has finished for PR 21836 at commit 7dc889b.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@HyukjinKwon
Copy link
Member

Merged to master and branch-2.3.

asfgit pushed a commit that referenced this pull request Jul 23, 2018
## 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>
@asfgit asfgit closed this in ab18b02 Jul 23, 2018
@SongYadong SongYadong deleted the assert_info_modify branch July 23, 2018 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants