You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
OS: centos07
Behavior
References to deleted or renamed functions do not throw errors
previously the function I am trying to call worked. However after editing and deleting unrelated functions, now any custom function will throw an error
Stack trace shows functions that have been deleted
I'm not sure I can reproduce this reliably b/c I am unsure how I got here since the functions causing the issues have been deleted and no longer exist
com.orientechnologies.orient.core.command.script.OCommandScriptException: ScriptManager: error <eval>:220:7 Expected ; but found displayRecord select displayRecord(*) from (select expand(out('ImpliedBy')) from 83:2775) ^ in <eval> at line number 220 at column number 7. Function previewStatement(ridParam):
215: return 'name';
216: }
217:
218: function previewStatement(ridParam) {
219: // format the conditions
220: >>> select displayRecord(*) from (select expand(out('ImpliedBy')) from 83:2775)
221: SELECT [] as conditions,
222: previewOntology(relevance.sourceId, relevance.name)[0].preview as relevance,
223: previewOntology(appliesTo.sourceId, appliesTo.name)[0].preview as object,
224: previewEvidenceList(:ridParam)[0].evidence as evidence
225: FROM (SELECT expand(:ridParam)) DB name="development"
I tried renaming the functions instead of editing the old ones to test if it just wasn't updating the functions. but it appears no matter what I do, the invalid function is called instead of the current one. despite the fact that it has been deleted
Steps to Reproduce Related? Problem
But I can reproduce what I think might be related to the problem?
createfunctioncalledByOtherFunction'return 1;' IDEMPOTENT TRUE LANGUAGE JavaScript
createfunctioncallsOtherFunction'return calledByOtherFunction();' IDEMPOTENT TRUE LANGUAGE JavaScript
select callsOtherFunction() // works
// go to the function editor page /studio/index.html#/database/<DBNAME>/browse// rename calledByOtherFunction to calledByOtherFunctionRenamed
select callsOtherFunction() // still works....
the code does not update the reference so I am unsure as to why this doesn't cause a reference error to be thrown
Thank you very much for reporting, I'll check it asap.
The only thing I can suggest for now is to stop and restart the server.
You can also check SELECT FROM OFunction and see if the functions are correct
OrientDB Version: 3.0.20
Java Version:
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
OS: centos07
Behavior
I'm not sure I can reproduce this reliably b/c I am unsure how I got here since the functions causing the issues have been deleted and no longer exist
I tried renaming the functions instead of editing the old ones to test if it just wasn't updating the functions. but it appears no matter what I do, the invalid function is called instead of the current one. despite the fact that it has been deleted
Steps to Reproduce Related? Problem
But I can reproduce what I think might be related to the problem?
the code does not update the reference so I am unsure as to why this doesn't cause a reference error to be thrown
Note that I couldn't figure out how to rename the function with SQL only and not using the function editor page
The text was updated successfully, but these errors were encountered: