Skip to content

Commit

Permalink
[benchmark] Fix the problem that parquet-related benchmark test cases…
Browse files Browse the repository at this point in the history
… call the wrong method in `TableReadBenchmark` class (apache#3728)
  • Loading branch information
wayneguow authored Jul 11, 2024
1 parent 4f4cdf9 commit d441457
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,27 +110,28 @@ public void testOrcReadProjection1() throws Exception {
@Test
public void testParquetReadProjection() throws Exception {
innerTestProjection(
Collections.singletonMap("parquet", prepareData(orc(), "parquet")),
Collections.singletonMap("parquet", prepareData(parquet(), "parquet")),
new int[] {0, 5, 10, 14});
/*
* OpenJDK 64-Bit Server VM 1.8.0_292-b10 on Mac OS X 10.16
* Apple M1 Pro
* read: Best/Avg Time(ms) Row Rate(K/s) Per Row(ns) Relative
* ------------------------------------------------------------------------------------------------
* OPERATORTEST_read_read-orc 716 / 728 4187.4 238.8 1.0X
* OPERATORTEST_read_read-parquet 716 / 728 4187.4 238.8 1.0X
*/
}

@Test
public void testParquetReadProjection1() throws Exception {
innerTestProjection(
Collections.singletonMap("parquet", prepareData(orc(), "parquet")), new int[] {10});
Collections.singletonMap("parquet", prepareData(parquet(), "parquet")),
new int[] {10});
/*
* OpenJDK 64-Bit Server VM 1.8.0_292-b10 on Mac OS X 10.16
* Apple M1 Pro
* read: Best/Avg Time(ms) Row Rate(K/s) Per Row(ns) Relative
* ------------------------------------------------------------------------------------------------
* OPERATORTEST_read_read-orc 716 / 728 4187.4 238.8 1.0X
* OPERATORTEST_read_read-parquet 716 / 728 4187.4 238.8 1.0X
*/
}

Expand All @@ -142,7 +143,7 @@ private Options orc() {

private Options parquet() {
Options options = new Options();
options.set(CoreOptions.FILE_FORMAT, CoreOptions.FILE_FORMAT_ORC);
options.set(CoreOptions.FILE_FORMAT, CoreOptions.FILE_FORMAT_PARQUET);
return options;
}

Expand Down

0 comments on commit d441457

Please sign in to comment.