LenBytes / String Layer
Calculate the length of strings in bytes (not characters). Similar to Python's len(str.encode()). Note that for UTF-8 text, byte count may differ from character count. Useful for:
- Storage capacity planning
- Data transmission size estimation
- Working with binary protocols
- Validating fixed-width byte constraints
Table
0
0
Table
Select
columnThe string column to measure. Note that UTF-8 characters may use 1-4 bytes each (e.g., ASCII uses 1 byte, many emojis use 4 bytes).
AsColumn
nameName for the new column. If not provided, the system generates a unique name. If AsColumn
matches an existing column, the existing column is replaced. The name should follow valid column naming conventions.