Skip to content

Commit b94f2ce

Browse files
authored
Merge pull request #283 from diffix/edon/disable-led
Temporarily disable LED hook
2 parents cb8572b + 6717af3 commit b94f2ce

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

anonymizer/OpenDiffix.Service/Program.fs

Lines changed: 2 additions & 17 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
@@ -189,7 +174,7 @@ let handleExport
189174
HAVING NOT diffix_low_count(%s{aidColumn})
190175
"""
191176

192-
let output = anonParams |> runQuery [ ledHook ] query inputPath |> csvFormatter
177+
let output = anonParams |> runQuery [ (* ledHook; *) ] query inputPath |> csvFormatter
193178

194179
File.WriteAllText(outputPath, output)
195180

0 commit comments

Comments
 (0)