Created
April 20, 2021 18:58
-
-
Save rghv404/15b28d945878163ffca06a988133f116 to your computer and use it in GitHub Desktop.
Split dataset and process the parts before reducing to union
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
dfAggregated | |
.randomSplit(equallyWeightedParts(5)) | |
.map((dataset: Dataset[Models.AggregatedDataSet]) => methodName( | |
allMeasurementsOnAssets = assetAggregatedMeasurements, | |
allMeasurementsOnScorecards = dataset, | |
broadcastFactorWeights = broadcastFactorWeights, | |
broadcastInterpolationFunctions = broadcastInterpolationFunctions, | |
spark = spark | |
)) | |
.reduce(_ union _) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment