Apache Doris 中文技术论坛
Questions Tags Users Badges

length函数返回不是字节数

Asked Feb 7 Modified Feb 8
Viewed 79
2.1 functions

中国的utf8编码,字节数不应该是6吗?文档中说是返回字节数,例子中返回了字符数
image.png

edited Feb 8
jason3
asked Feb 7
3 Answers

https://github.com/apache/doris/pull/46523
已修复,请更新到2.1.8再测试

edited Jan 1, 1970
zclllyybb551
answered Feb 7

version:2.0.9
image.png

edited Jan 1, 1970
xxxl20
answered Feb 7

这个是之前搞的常量折叠有问题,导致文档写错了

https://github.com/apache/doris/pull/40947

mysql> select length("中国");
+------------------+
| length('中国')   |
+------------------+
|                6 |
+------------------+
edited Jan 1, 1970
1
answered Feb 7
Related Questions
spark读取Doris时的并发度问题
没有完成下线前删除be目录
DorisManager添加BE节点显示异常,如何规避掉透明大页面检查?
1 answers
2.1.9,Streamload 导入数据 RPC call is timed out
1 answers
使用Arrow Fight SQL调取时,超过查询大小限制,如何调整
1 answers
dbeaver里配置Arrow Flight SQL JDBC,测试连接成功,但是点击列表返回GetFlightInfoTables not implemented

Terms of service Privacy policy

Powered by Answer - the open-source software that powers Q&A communities.
Made with love © 2025 Apache Doris 中文技术论坛.