Sure, here is the code at SortedIteratorMergerWithLimit.java:130. And the "Not
sorted! last: XXXXXX fetched: XXXXXXX" exception may happen when query some
table contain Chinese value(or messy code).
```
@Override
public E next() {
if (!nextFetched) {
throw new IllegalStateException("Should hasNext() before next()");
}
//TODO: remove this check when validated
if (last != null) {
if (comparator.compare(last, fetched) > 0)
throw new IllegalStateException("Not sorted! last: " + last + " fetched: " +
fetched);
}
last = fetched;
nextFetched = false;
return fetched;
}
```
| |
yuzhang
|
|
[email protected]
|
签名由网易邮箱大师定制
On 3/26/2019 23:08,elkan1788<[email protected]> wrote:
I not sure can understand your question cleanly. Can you give more
information about it, just like with a good sample. Also you can forward
the code what you found and think that is happened!
--
Sent from: http://apache-kylin.74782.x6.nabble.com/