AbsaOSS / spline

Data Lineage Tracking And Visualization Solution
https://absaoss.github.io/spline/
Apache License 2.0
603 stars 155 forks source link

Error: 1551 - AQL: no value specified for declared bind parameter 'b' #1346

Closed wajda closed 4 months ago

wajda commented 4 months ago

Executing database migration via Admin CLI results in the following error:

$ java -jar admin/target/admin-1.0.0-SNAPSHOT.jar db-upgrade arangodb://localhost/spline

[2024-07-05 00:45:50.837] DEBUG [scala-execution-context-global-16] z.c.a.s.p.tx.JSTxBuilder       -
function (_params) {
  const _db = require('internal').db;
  _db._query(`
    WITH dbVersion
    FOR a IN dbVersion
        FILTER a.status == 'current'
        UPDATE a._key WITH @b IN dbVersion
  `, {"b": _params[0]});
  _db._query(`
    WITH dbVersion
    FOR a IN dbVersion
        FILTER a.status == 'preparing'
        UPDATE a._key WITH @b IN dbVersion
  `, {"b": _params[1]});
}

[2024-07-05 00:45:50.839] DEBUG [pool-3-thread-1] c.a.a.i.v.VstCommunicationAsync - Send Message (id=14, head=[1,1,"spline",2,"/_api/transaction",{},{"x-arango-driver":"JavaDriver/6.25.0 (JVM/11)","content-type":"application/x-velocypack","accept":"application/x-velocypack"}], body={"action":"\nfunction (_params) {\n  const _db = require('internal').db;\n  _db._query(`\n    WITH dbVersion\n    FOR a IN dbVersion\n        FILTER a.status == 'current'\n        UPDATE a._key WITH @b IN dbVersion\n  `, {\"b\": _params[0]});\n  _db._query(`\n    WITH dbVersion\n    FOR a IN dbVersion\n        FILTER a.status == 'preparing'\n        UPDATE a._key WITH @b IN dbVersion\n  `, {\"b\": _params[1]});\n}\n","collections":{"allowImplicit":false,"write":["dbVersion"]},"params":{"prefix1":[{"status":"upgraded"},{"status":"current"}],"_class":"scala.collection.immutable.Vector1"}})