steadyBoy opened a new issue, #9225:
URL: https://github.com/apache/incubator-doris/issues/9225

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### Version
   
   5.1.0 Doris version 0.15.1-rc09-d53cbef36
   
   ### What's Wrong?
   
   ## 使用开窗函数 lead 过程中,返回乱码。
   如下示例,窗口中 over( order by account_id ) 使用 lead 取 next_account_id , 
若返回字段包含其他列(比如 customer_id ) 则 lead 取的数据会出现乱码。 
   
   
![image](https://user-images.githubusercontent.com/35027788/165086473-b9c6968c-ceb6-4c36-938b-edb08b0d32cc.png)
   
   ## 小数据量测试没有复现
   创建测试表,插入较小数据无法复现。
   表字段类型如下:
   create table test_lag_lead(
     `user_id` varchar(64) NOT NULL DEFAULT "EMPTY" COMMENT "用户id",
     `cid` varchar(255) NOT NULL DEFAULT "EMPTY" COMMENT "cid"
   ) ENGINE=OLAP
   AGGREGATE KEY(`user_id`, `cid`)
   COMMENT "测试开窗函数:lead/lag"
   DISTRIBUTED BY HASH(`user_id`) BUCKETS 2
   ;
   
   ## 其他版本参考
   同样的数据,同样的语句。 在 0.12 版本的 Doris 中, lead 函数返回正常, lag 函数出先乱码情况
   ** version = 5.1.0 Doris version 0.12.22-release** 
   ![Uploading image.png…]()
   
   
   ### What You Expected?
   
   使用开窗函数 lead 可以返回正常数据
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to