Skip to content

Commit 6717af3

Browse files
committed
Also disable star bucket hook
1 parent 9513ce7 commit 6717af3

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

anonymizer/OpenDiffix.Service/Program.fs

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -104,22 +104,7 @@ let handlePreview
104104
GROUP BY %s{String.join ", " [ 4 .. buckets.Length + 3 ]}
105105
"""
106106

107-
// We get a hold of the star bucket reference via side effects.
108-
let mutable starBucket: Bucket option = None
109-
let starBucketHook = AggregationHooks.StarBucket.hook (fun bucket -> starBucket <- Some bucket)
110-
111-
let result = runQuery [ (* ledHook; *) starBucketHook ] query inputPath anonParams
112-
113-
// Should be set once the query completes.
114-
let starBucket = starBucket |> unwrapOption "Star bucket should be evaluated at this point."
115-
116-
// Pull stats from star bucket
117-
let starBucketValues =
118-
starBucket.Aggregators
119-
|> Array.map (fun aggregator -> aggregator.Final(starBucket.ExecutionContext))
120-
121-
// Add star buckets stats to JSON output
122-
// TODO
107+
let result = runQuery [ (* ledHook; starBucketHook *) ] query inputPath anonParams
123108

124109
let mutable totalBuckets = 0
125110
let mutable suppressedBuckets = 0

0 commit comments

Comments
 (0)