Re: [orientdb] OSQLFunctionMax.java or OSQLFunctionMin.java

2016-12-19 Thread Luigi Dell'Aquila
Hi, It's very similar, but not actually the same ;-) One has else if (context.compareTo(value) < 0) The other one has else if (context.compareTo(value) > 0) (see the greater-than vs. less-than) The //BIGGER comment in one case is wrong of course. I'm looking at the source code in 2.2.x

[orientdb] OSQLFunctionMax.java or OSQLFunctionMin.java

2016-12-18 Thread jeongeun . lee5
Hi, I attached image for code. I have a question about mergeDistributedResult() method in OSQLFunctionMax.java or OSQLFunctionMin.java. if (context == null) // FIRST TIME *context = value;* else if (context.compareTo(value) < 0)