-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added statistics tracking to DH parquet table writing. (#4339)
* Added statistics tracking to DH parquet table writing. * Added verification against pyarrow gen'd stats. * Verify pyarrow statistics match DHC statistics.
- Loading branch information
Showing
15 changed files
with
1,760 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
extensions/parquet/base/src/main/java/io/deephaven/parquet/base/NullStatistics.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package io.deephaven.parquet.base; | ||
|
||
import org.apache.parquet.column.statistics.IntStatistics; | ||
import org.apache.parquet.io.api.Binary; | ||
|
||
/** | ||
* A lightweight statistics object that does nothing. This should be passed to BulkWriters when we don't want to track | ||
* statistics. | ||
*/ | ||
public class NullStatistics extends IntStatistics { | ||
public static final NullStatistics INSTANCE = new NullStatistics(); | ||
|
||
public void updateStats(int value) {} | ||
|
||
public void updateStats(long value) {} | ||
|
||
public void updateStats(float value) {} | ||
|
||
public void updateStats(double value) {} | ||
|
||
public void updateStats(boolean value) {} | ||
|
||
public void updateStats(Binary value) {} | ||
|
||
@Override | ||
public void incrementNumNulls() {} | ||
|
||
@Override | ||
public void incrementNumNulls(long increment) {} | ||
|
||
@Override | ||
public String toString() { | ||
return "NullStatistic"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.