SELECT cast(row('he', 1) as json);
SELECT cast([1,2,3] as json);
SELECT cast(map(1,2) as json);
Contributor guide
Tech stack
javasql
Domain
database
Issue type
feature
DifficultyEstimated implementation difficulty for a new contributor, from 1 for very small changes to 5 for expert-level work.
3
Estimated timeA rough time range for an experienced contributor to investigate, implement, test, and prepare a pull request.
1-2 days
Activity statusHow available the issue appears right now: fresh, active, stale, blocked, or waiting on maintainer input.
blocked
ClarityHow clearly the issue explains the expected change, acceptance criteria, and next step.
clear
Prerequisites
SQL knowledgeStarRocks type system
Newbie friendlinessA 1-100 score estimating how approachable this issue is for first-time contributors.
40
Research direction
Investigate the current implementation of CAST in StarRocks, likely in fe/fe core/src/main/java/com/starrocks/sql/ast/ or similar. Examine how other data types (e.g., to json) are handled. Check discussions in the issue comments for any design decisions. Implement the cast logic for struct, array, and map types to JSON.