Skip to content

Commit ae04914

Browse files
committed
tighten constraints
1 parent 089f20a commit ae04914

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

packages/zql-integration-tests/src/chinook/planner-exec.pg.test.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ describe('Chinook planner execution cost validation', () => {
9494
.where('milliseconds', '>', 200000)
9595
.limit(10),
9696
validations: [
97-
['correlation', 0.8],
97+
['correlation', 0.4],
9898
['within-optimal', 1],
9999
['within-baseline', 1],
100100
],
101101
extraIndexValidations: [
102-
['correlation', 0.8],
102+
['correlation', 0.4],
103103
['within-optimal', 1],
104104
['within-baseline', 1],
105105
],
@@ -224,13 +224,13 @@ describe('Chinook planner execution cost validation', () => {
224224
.limit(15),
225225
validations: [
226226
['correlation', 0],
227-
['within-optimal', 1.7],
228-
['within-baseline', 1.7],
227+
['within-optimal', 1.75],
228+
['within-baseline', 1.75],
229229
],
230230
extraIndexValidations: [
231231
['correlation', 0],
232-
['within-optimal', 1.7],
233-
['within-baseline', 1.7],
232+
['within-optimal', 1.75],
233+
['within-baseline', 1.75],
234234
],
235235
},
236236

@@ -306,7 +306,7 @@ describe('Chinook planner execution cost validation', () => {
306306
],
307307
extraIndexValidations: [
308308
['correlation', -1.0],
309-
['within-optimal', 87],
309+
['within-optimal', 92],
310310
['within-baseline', 1],
311311
],
312312
},
@@ -343,12 +343,12 @@ describe('Chinook planner execution cost validation', () => {
343343
),
344344
validations: [
345345
['correlation', 0.4],
346-
['within-optimal', 1.22],
346+
['within-optimal', 1.25],
347347
['within-baseline', 0.106],
348348
],
349349
extraIndexValidations: [
350350
['correlation', 0.35],
351-
['within-optimal', 1.22],
351+
['within-optimal', 1.25],
352352
['within-baseline', 0.106],
353353
],
354354
},
@@ -425,12 +425,12 @@ describe('Chinook planner execution cost validation', () => {
425425
.where('name', 'LIKE', 'Music%')
426426
.whereExists('tracks', t => t.where('name', 'LIKE', 'A%')),
427427
validations: [
428-
['correlation', 0.8],
428+
['correlation', 0.4],
429429
['within-optimal', 1],
430430
['within-baseline', 1],
431431
],
432432
extraIndexValidations: [
433-
['correlation', 0.8],
433+
['correlation', 0.4],
434434
['within-optimal', 1],
435435
['within-baseline', 1],
436436
],
@@ -444,7 +444,7 @@ describe('Chinook planner execution cost validation', () => {
444444
i.whereExists('customer', c => c.whereExists('supportRep', e => e)),
445445
),
446446
validations: [
447-
['correlation', -0.5],
447+
['correlation', -0.55],
448448
['within-optimal', 1.5],
449449
['within-baseline', 1.43],
450450
],
@@ -476,12 +476,12 @@ describe('Chinook planner execution cost validation', () => {
476476
name: 'dense junction - popular playlist with many tracks',
477477
query: queries.playlist.where('id', 1).whereExists('tracks'),
478478
validations: [
479-
['correlation', 1.0],
479+
['correlation', 0.8],
480480
['within-optimal', 1],
481481
['within-baseline', 1],
482482
],
483483
extraIndexValidations: [
484-
['correlation', 1.0],
484+
['correlation', 0.8],
485485
['within-optimal', 1],
486486
['within-baseline', 1],
487487
],
@@ -519,7 +519,7 @@ describe('Chinook planner execution cost validation', () => {
519519
.limit(50),
520520
validations: [
521521
['correlation', 0.4],
522-
['within-optimal', 2.1],
522+
['within-optimal', 2.2],
523523
['within-baseline', 1],
524524
],
525525
extraIndexValidations: [
@@ -540,7 +540,7 @@ describe('Chinook planner execution cost validation', () => {
540540
.limit(100),
541541
validations: [
542542
['correlation', 0.4],
543-
['within-optimal', 2.4],
543+
['within-optimal', 2.5],
544544
['within-baseline', 1],
545545
],
546546
extraIndexValidations: [

0 commit comments

Comments
 (0)