-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
helper methods - delta partition file size and numRecords distribution (
#73) * helper methods - delta partition size and numRecords distribution * delta partition size : added percentiles * delta partition size : fix build * delta partition size : added unit tests + fixed failing tests * delta partition size : added unit tests for filesizesInMB and updated README.md * delta partition size : reducing record size and updated README.md
- Loading branch information
1 parent
798c647
commit e51fb12
Showing
4 changed files
with
297 additions
and
139 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package mrpowers.jodie.delta | ||
|
||
object DeltaConstants { | ||
val sizeColumn = "size" | ||
val numRecordsColumn = "stats.numRecords" | ||
val statsPartitionColumn = "partitionValues" | ||
private val percentileCol = "Percentile[10th, 25th, Median, 75th, 90th, 95th]" | ||
private val num_of_parquet_files = "num_of_parquet_files" | ||
val numRecordsDFColumns = | ||
Array( | ||
statsPartitionColumn, | ||
num_of_parquet_files, | ||
"mean_num_records_in_files", | ||
"stddev", | ||
"min_num_records", | ||
"max_num_records", | ||
percentileCol | ||
) | ||
|
||
val sizeDFColumns = | ||
Array( | ||
statsPartitionColumn, | ||
num_of_parquet_files, | ||
"mean_size_of_files", | ||
"stddev", | ||
"min_file_size", | ||
"max_file_size", | ||
percentileCol | ||
) | ||
} |
Oops, something went wrong.