@@ -40,7 +40,7 @@ const gm = require('@arangodb/general-graph');
40
40
const vn = 'UnitTestVertexCollection' ;
41
41
const en = 'UnitTestEdgeCollection' ;
42
42
const isCluster = require ( '@arangodb/cluster' ) . isCluster ( ) ;
43
- const roundCost = require ( '@arangodb/aql-helper' ) . roundCost ;
43
+ const removeCost = require ( '@arangodb/aql-helper' ) . removeCost ;
44
44
45
45
var _ = require ( 'lodash' ) ;
46
46
var vertex = { } ;
@@ -2218,13 +2218,19 @@ function optimizeInSuite() {
2218
2218
var noOptPlans = AQL_EXPLAIN ( vertexQuery , bindVars , noOpt ) . plan ;
2219
2219
assertEqual ( optPlans . rules , [ ] ) ;
2220
2220
// This query cannot be optimized by traversal rule
2221
- assertEqual ( roundCost ( optPlans ) , roundCost ( noOptPlans ) ) ;
2221
+ // we do not want to test estimatedCost or selectivityEstimate here
2222
+ // 1.) subject to rounding errors and other fluctuations
2223
+ // 2.) absolute numbers for estimatedCost and selectivityEstimate are an implementation detail and meaningless for this test.
2224
+ assertEqual ( removeCost ( optPlans ) , removeCost ( noOptPlans ) ) ;
2222
2225
2223
2226
optPlans = AQL_EXPLAIN ( edgeQuery , bindVars , opt ) . plan ;
2224
2227
noOptPlans = AQL_EXPLAIN ( edgeQuery , bindVars , noOpt ) . plan ;
2225
2228
assertEqual ( optPlans . rules , [ ] ) ;
2226
2229
// This query cannot be optimized by traversal rule
2227
- assertEqual ( roundCost ( optPlans ) , roundCost ( noOptPlans ) ) ;
2230
+ // we do not want to test estimatedCost or selectivityEstimate here
2231
+ // 1.) subject to rounding errors and other fluctuations
2232
+ // 2.) absolute numbers for estimatedCost and selectivityEstimate are an implementation detail and meaningless for this test.
2233
+ assertEqual ( removeCost ( optPlans ) , removeCost ( noOptPlans ) ) ;
2228
2234
}
2229
2235
} ;
2230
2236
}
0 commit comments