4paradigm / 4paradigm/OpenMLDB

casting to map data type

Aperta
#3,843 1 commento 0 reazioni 1 assegnatario Rivendicata da @aceforeverd Vedi su GitHub
enhancement execute-engine sql
Lingua principale
C++
Stelle
1.7k
Fork
331
Merge medio
12g 12h
PR unite (30g)
1

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
sql
Ambito
backend, databases
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.