4paradigm / 4paradigm/OpenMLDB

casting to map data type

Offen
#3,843 1 Kommentar 0 Reaktionen 1 zugewiesene Person Beansprucht von @aceforeverd Auf GitHub ansehen
enhancement execute-engine sql
Vorherrschende Sprache
C++
Sterne
1.7k
Forks
331
Ø Merge
12 T. 12 Std.
Gemergte PRs (30 T.)
1

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
sql
Bereich
backend, databases
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.