4paradigm / 4paradigm/OpenMLDB
casting to map data type
- Langage dominant
- C++
- Étoiles
- 1.7k
- Forks
- 331
- Merge moyen
- 12 j 12 h
- PR mergées (30 j)
- 1
Description
1. `cast (null as map )` -> `NULL of type map `
2. `cast ( map () as map )` -> `{} of type map `
3. `cast ( map (key1, val1, ...) as map )` -> `map (cast (key1 as KEY), cast (val1 as VALUE), ...)`, as long as `typeof (key1) convertible to KEY, typeof (val1) convertible to VALUE`
`KEY` and `VALUE` can be any valid type
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Look for map casting logic in the SQL type system and expression evaluation code. The issue describes three specific casting behaviors for map types. Find existing cast implementations for other types to understand the pattern. Test with map constructors and type conversions to verify the new behavior.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- sql
- Domaine
- backend, databases
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100