-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
evalengine: Support built-in MySQL function for string functions and …
…operations (#11185) * add the support for LOWER function Signed-off-by: Weijun-H <[email protected]> * add the support for LCASE Signed-off-by: Weijun-H <[email protected]> * update tests for LCASE Signed-off-by: Weijun-H <[email protected]> * used DefaultCollation instead of CollationUtf8mb4ID Signed-off-by: Weijun-H <[email protected]> * add the support for Char_Length and CHARACTER_LENGTH Signed-off-by: Weijun-H <[email protected]> * add the support forLENGTH andOCTET_R_LENGTH Signed-off-by: Weijun-H <[email protected]> * add the support for UPPER and UCASE Signed-off-by: Weijun-H <[email protected]> * simple try for lower function Signed-off-by: Weijun-H <[email protected]> * upate tolower function, but met the output problem Signed-off-by: Weijun-H <[email protected]> * update tests for different collations Signed-off-by: Weijun-H <[email protected]> * update support for LCASE, UPPER and UCASE Signed-off-by: Weijun-H <[email protected]> * Hide the ToLower and ToUpper implementation in Collation Signed-off-by: Weijun-H <[email protected]> * refactor lower and upper functions Signed-off-by: Weijun-H <[email protected]> * naive implementation of CHAR_LENGTH in 8bit collation Signed-off-by: Weijun-H <[email protected]> * implement char_length for uca and unicode, but met panic problem Signed-off-by: Weijun-H <[email protected]> * complete CharLen for different Charset Signed-off-by: Weijun-H <[email protected]> * update CharLen support for utf16 and utf32 Signed-off-by: Weijun-H <[email protected]> * update support for CHARACTER_LENGTH Signed-off-by: Weijun-H <[email protected]> * refactor the code to avoid vague duplication Signed-off-by: Weijun-H <[email protected]> * add support for BIT_LENGTH Signed-off-by: Weijun-H <[email protected]> * add support for ASCII Signed-off-by: Weijun-H <[email protected]> * add the support for REPEAT but met strange MYSQL result Signed-off-by: Weijun-H <[email protected]> * update REPEAT test case Signed-off-by: Weijun-H <[email protected]> * evalengine: cleanup logic in string functions Signed-off-by: Vicent Marti <[email protected]> Signed-off-by: Weijun-H <[email protected]> Signed-off-by: Vicent Marti <[email protected]> Co-authored-by: Vicent Marti <[email protected]>
- Loading branch information
Showing
17 changed files
with
2,156 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.