You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/04/26 02:44:27 UTC
[GitHub] [incubator-doris] steadyBoy opened a new issue, #9225: [Bug] 开窗函数 lag/lead 返回乱码
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 取的数据会出现乱码。

## 小数据量测试没有复现
创建测试表,插入较小数据无法复现。
表字段类型如下:
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-unsubscribe@doris.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] steadyBoy commented on issue #9225: [Bug] 开窗函数 lag/lead 返回乱码
Posted by GitBox <gi...@apache.org>.
steadyBoy commented on issue #9225:
URL: https://github.com/apache/incubator-doris/issues/9225#issuecomment-1110489669
> maybe is same as issue #9033
maybe. but issue #9033 is like this in Doris version 0.15.1-rc09-d53cbef36

--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] Toms1999 commented on issue #9225: [Bug] 开窗函数 lag/lead 返回乱码
Posted by GitBox <gi...@apache.org>.
Toms1999 commented on issue #9225:
URL: https://github.com/apache/incubator-doris/issues/9225#issuecomment-1118274167
let me seesee
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] zhangstar333 commented on issue #9225: [Bug] 开窗函数 lag/lead 返回乱码
Posted by GitBox <gi...@apache.org>.
zhangstar333 commented on issue #9225:
URL: https://github.com/apache/incubator-doris/issues/9225#issuecomment-1110479941
maybe is same as issue #9033
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [I] [Bug] 开窗函数 lag/lead 返回乱码 [doris]
Posted by "morningman (via GitHub)" <gi...@apache.org>.
morningman closed issue #9225: [Bug] 开窗函数 lag/lead 返回乱码
URL: https://github.com/apache/doris/issues/9225
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org