Skip to content

Commit 8383a76

Browse files
author
Dave Bartolomeo
committed
Merge branch 'dbartol/join-order' of https://github.com/github/vscode-codeql into dbartol/join-order
2 parents c6d792f + 277192e commit 8383a76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/ql-vscode/src/log-insights/join-order.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function getMainHash(event: InLayer | ComputeRecursive): string {
7474
}
7575

7676
/**
77-
* Sum arrays a and b element-wise, and pad with 0s if the arrays are not the same length.
77+
* Sum arrays a and b element-wise. The shorter array is padded with 0s if the arrays are not the same length.
7878
*/
7979
function pointwiseSum(a: Int32Array, b: Int32Array): Int32Array {
8080
function reportIfInconsistent(ai: number, bi: number) {
@@ -248,7 +248,7 @@ class JoinOrderScanner implements EvaluationLogScanner {
248248
const key = makeKey(
249249
event.queryCausingWork,
250250
predicate,
251-
'(' + raReference + ')'
251+
`(${raReference})`
252252
);
253253
const maxTupleCount = Math.max(...bucket.tupleCounts);
254254
const resultSize = bucket.resultSize;

0 commit comments

Comments
 (0)