String Types
Singdata Lakehouse supports the following string types: CHAR, VARCHAR(n), and STRING.
Type Comparison
| Type | Length | Description |
|---|---|---|
| CHAR(n) | Fixed length n | Lakehouse does not pad with spaces; strings exceeding the length are silently truncated; max 255 characters |
| VARCHAR(n) | Variable, max n | No space padding; max 1,048,576 characters |
| STRING | Variable, no limit | Recommended for large text; no length restriction |
Selection Guide
- Fixed-length codes (e.g., country codes, status codes): use
CHAR - Fields with a length cap (e.g., usernames, email addresses): use
VARCHAR(n) - Long text, JSON strings, fields with no length constraint: use
STRING
