Skip to content
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-25508][SQL][TEST] Refactor OrcReadBenchmark to use main method #22580

Closed
wants to merge 4 commits into from

Conversation

yucai
Copy link
Contributor

@yucai yucai commented Sep 28, 2018

What changes were proposed in this pull request?

Refactor OrcReadBenchmark to use main method.
Generate benchmark result:

SPARK_GENERATE_BENCHMARK_FILES=1 build/sbt "hive/test:runMain org.apache.spark.sql.hive.orc.OrcReadBenchmark"

How was this patch tested?

manual tests

@SparkQA
Copy link

SparkQA commented Sep 28, 2018

Test build #96743 has finished for PR 22580 at commit 4b6ea87.

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

Seq(ByteType, ShortType, IntegerType, LongType, FloatType, DoubleType).foreach { dataType =>
numericScanBenchmark(1024 * 1024 * 15, dataType)
override def benchmark(): Unit = {
runBenchmark("SQL Single Column Scan") {
Copy link
Member

Choose a reason for hiding this comment

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

nit SQL Single Column Scan -> SQL Single Numeric Column Scan?

Copy link
Member

Choose a reason for hiding this comment

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

Also, please add [TEST] into the title.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

@yucai . Could you review and merge yucai#5 ?

@yucai yucai changed the title [SPARK-25508][SQL] Refactor OrcReadBenchmark to use main method [SPARK-25508][SQL][TEST] Refactor OrcReadBenchmark to use main method Sep 29, 2018
Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM.

@SparkQA
Copy link

SparkQA commented Sep 29, 2018

Test build #96782 has finished for PR 22580 at commit 391d06a.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@wangyum
Copy link
Member

wangyum commented Sep 29, 2018

retest this please

@SparkQA
Copy link

SparkQA commented Sep 29, 2018

Test build #96788 has finished for PR 22580 at commit 391d06a.

  • This patch fails due to an unknown error code, -9.
  • This patch merges cleanly.
  • This patch adds no public classes.

@wangyum
Copy link
Member

wangyum commented Sep 29, 2018

retest this please

@SparkQA
Copy link

SparkQA commented Sep 29, 2018

Test build #96790 has finished for PR 22580 at commit 391d06a.

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

@dongjoon-hyun
Copy link
Member

Merged to master.

@asfgit asfgit closed this in f246813 Sep 29, 2018
jackylee-ch pushed a commit to jackylee-ch/spark that referenced this pull request Feb 18, 2019
## What changes were proposed in this pull request?

Refactor OrcReadBenchmark to use main method.
Generate benchmark result:
```
SPARK_GENERATE_BENCHMARK_FILES=1 build/sbt "hive/test:runMain org.apache.spark.sql.hive.orc.OrcReadBenchmark"
```
## How was this patch tested?

manual tests

Closes apache#22580 from yucai/SPARK-25508.

Lead-authored-by: yucai <yyu1@ebay.com>
Co-authored-by: Yucai Yu <yucai.yu@foxmail.com>
Co-authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
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.

4 participants