在公司平台用starrocks hive 使用length()做筛选条件, 和使用spark 返回的结果一致,然而在公司另一个查询平台上却筛选不出结果,最终发现是starrocks hive 中length() 一个中文字符算3个字符长度
官方文档链接length | StarRocks
MySQL > select length("abc");
+---------------+
| length('abc') |
+---------------+
| 3 |
+---------------+
MySQL > select length("中国");
+------------------+
| length('中国') |
+------------------+
| 6 |
+------------------+