Welcome to Knowage Q&A, where you can ask questions and receive answers from other members of the community.
0 votes
1 view

Query:

select if(eval("DWFLSRCN = 'QMSKY'"), "Total Flows", DWFLSRCN) from DWFlow;

The error is:

ErrorError parsing query: select if(, "Total Flows", DWFLSRCN) from DWFlow; ^ Encountered " "(" "( "" at line 1, column 10. Was expecting one of: ... ... ... ... ... ... ... ... ... ... ... ";" ... "," ... ... "," ... DB name="dw" DB name="dw"

The goal is to to remap a value in another, for user needs.

Example:

select if(eval("XXX= 'YYY'"), "pippo", XXX)  as test from ZZZ;

The function "isnull " works correctly.

Is there another solution?

Environment Version: 6.1.1 Logged User: Knowage Administrator Tenant: DEFAULT_TENANT , Windows 10, tomcat , chrome
in Data Set by (140 points)
Which version of OrientDB are you using?
The version is orientdb-2.2.22

Please log in or register to answer this question.

...