kylin-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Na Zhai <na.z...@kyligence.io>
Subject 答复: Should I remove this check about compare the last and fetched
Date Mon, 08 Apr 2019 11:06:22 GMT
Hi, yuzhang.

What’s the encoding of the column that you query? The original intention of the code that
you mentioned is to find out the columns with inconsistent sequence before and after encoding.

发送自 Windows 10 版邮件<https://go.microsoft.com/fwlink/?LinkId=550986>应用

________________________________
发件人: yuzhang <shifengdefannao@163.com>
发送时间: Tuesday, March 26, 2019 11:27:14 PM
收件人: dev@kylin.apache.org
抄送: dev@kylin.apache.org
主题: Re: Should I remove this check about compare the last and fetched

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;
}

```
<https://maas.mail.163.com/dashi-web-extend/html/proSignature.html?ftlId=1&name=yuzhang&uid=shifengdefannao%40163.com&iconUrl=http%3A%2F%2Fmail-online.nosdn.127.net%2Fsm1c0446ade9371d208d1e209c8bc0827f.jpg&items=%5B%22shifengdefannao%40163.com%22%5D>
[http://mail-online.nosdn.127.net/sm1c0446ade9371d208d1e209c8bc0827f.jpg]
yuzhang

shifengdefannao@163.com

签名由 网易邮箱大师<https://mail.163.com/dashi/dlpro.html?from=mail81> 定制
On 3/26/2019 23:08,elkan1788<elkan1788@gmail.com><mailto:elkan1788@gmail.com>
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/
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message