SELECT cast(row('he', 1) as json);
SELECT cast([1,2,3] as json);
SELECT cast(map(1,2) as json);
Guide contributeur
Stack technique
javasql
Domaine
database
Type d'issue
feature
DifficultéDifficulté estimée pour un nouveau contributeur, de 1 pour un très petit changement à 5 pour un travail expert.
3
Temps estiméFourchette de temps approximative pour investiguer, implémenter, tester et préparer une pull request.
1-2 days
Statut d'activitéDisponibilité apparente de l'issue : fraîche, active, ancienne, bloquée ou en attente d'un mainteneur.
blocked
ClartéClarté avec laquelle l'issue explique le changement attendu, les critères d'acceptation et la prochaine étape.
clear
Prérequis
SQL knowledgeStarRocks type system
Accessibilité débutantScore de 1 à 100 estimant l'accessibilité de cette issue pour un premier contributeur.
40
Direction de recherche
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.