HappenLee opened a new pull request, #17152:
URL: https://github.com/apache/doris/pull/17152

   # Proposed changes
   bug: some chinese word not sort by pinyin in GBK coding
   
   ```
   CREATE TABLE `test_convert` (
                    `a` varchar(100) NULL
                ) ENGINE=OLAP
                  DUPLICATE KEY(`a`)
                  DISTRIBUTED BY HASH(`a`) BUCKETS 3
                  PROPERTIES (
                  "replication_allocation" = "tag.location.default: 1"
                  );
   insert into test_convert values("b"), ("a"), ("c"), ("睿"), ("多"), ("丝");
   Query OK, 6 rows affected (0.03 sec)
   {'label':'insert_ca73a6acc2194d5b_888218a3949355a6', 'status':'VISIBLE', 
'txnId':'18068'}
   mysql [test]>select * from test_convert;
   +------+
   | a    |
   +------+
   | a    |
   | c    |
   | 丝   |
   | b    |
   | 多   |
   | 睿   |
   +------+
   6 rows in set (0.01 sec)
   mysql [test]>select * from test_convert order by convert(a using gbk);       
   
   +------+
   | a    |
   +------+
   | a    |
   | b    |
   | c    |
   | 多   |
   | 丝   |
   | 睿   |
   +------+
   6 rows in set (0.01 sec)
   ```
   
   ## Problem summary
   
   Describe your changes.
   
   ## Checklist(Required)
   
   * [ ] Does it affect the original behavior
   * [ ] Has unit tests been added
   * [ ] Has document been added or modified
   * [ ] Does it need to update dependencies
   * [ ] Is this PR support rollback (If NO, please explain WHY)
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
[[email protected]](mailto:[email protected]) by explaining why you 
chose the solution you did and what alternatives you considered, etc...
   
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to