Files
seaweedfs/weed
chrislu 179a7b446e feat: Add comprehensive string functions with extensive tests
Implemented String Functions:
- LENGTH: Get string length (supports all value types)
- UPPER/LOWER: Case conversion
- TRIM/LTRIM/RTRIM: Whitespace removal (space, tab, newline, carriage return)
- SUBSTRING: Extract substring with optional length (SQL 1-based indexing)
- CONCAT: Concatenate multiple values (supports mixed types, skips nulls)
- REPLACE: Replace all occurrences of substring
- POSITION: Find substring position (1-based, 0 if not found)
- LEFT/RIGHT: Extract leftmost/rightmost characters
- REVERSE: Reverse string with proper Unicode support

Key Features:
- Robust type conversion (string, int, float, bool, bytes)
- Unicode-safe operations (proper rune handling in REVERSE)
- SQL-compatible indexing (1-based for SUBSTRING, POSITION)
- Comprehensive error handling with descriptive messages
- Mixed-type support (e.g., CONCAT number with string)

Helper Functions:
- valueToString: Convert any schema_pb.Value to string
- valueToInt64: Convert numeric values to int64

Comprehensive test suite with 25+ test cases covering:
- All string functions with typical use cases
- Type conversion scenarios (numbers, booleans)
- Edge cases (empty strings, null values, Unicode)
- Error conditions and boundary testing

All tests passing 
2025-09-04 00:21:17 -07:00
..
2025-08-09 21:47:29 -07:00
2025-07-19 23:56:17 -07:00
fix
2025-09-04 00:07:06 -07:00
2025-08-30 11:15:48 -07:00
2025-08-31 23:31:28 -07:00
2025-08-30 11:15:48 -07:00
fix
2025-09-04 00:07:06 -07:00
2025-08-22 01:15:42 -07:00
2025-08-30 11:15:48 -07:00
2024-06-25 09:18:11 -07:00
fix
2025-09-03 22:57:47 -07:00
2025-08-30 11:15:48 -07:00
2025-09-03 17:42:30 -07:00
2024-02-14 08:26:38 -08:00
2025-09-03 21:55:32 -07:00
2025-07-19 21:43:34 -07:00
2025-03-17 23:13:27 -07:00