Merge branch 'dbartol/join-order' of https://github.com/github/vscode-codeql into dbartol/join-order

This commit is contained in:
Dave Bartolomeo
2022-08-12 15:41:52 -04:00

View File

@@ -74,7 +74,7 @@ function getMainHash(event: InLayer | ComputeRecursive): string {
}
/**
* Sum arrays a and b element-wise, and pad with 0s if the arrays are not the same length.
* Sum arrays a and b element-wise. The shorter array is padded with 0s if the arrays are not the same length.
*/
function pointwiseSum(a: Int32Array, b: Int32Array): Int32Array {
function reportIfInconsistent(ai: number, bi: number) {
@@ -248,7 +248,7 @@ class JoinOrderScanner implements EvaluationLogScanner {
const key = makeKey(
event.queryCausingWork,
predicate,
'(' + raReference + ')'
`(${raReference})`
);
const maxTupleCount = Math.max(...bucket.tupleCounts);
const resultSize = bucket.resultSize;