4paradigm / 4paradigm/OpenMLDB

deprecating legacy schema codec

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

Descrizione

The schema codec in https://github.com/4paradigm/OpenMLDB/blob/ff7e8acf21ead1f9734eef59ac3521adb05dff2e/hybridse/include/codec/fe_schema_codec.h#L34-L110

is not real serialization solution for schemas. It

1. Not extendable. complex data type like #3680 is not possible without breaking change, it can not represent map type in single byte.
2. Hardware dependent. Endianness and primitive type size vary on different platform
3. Lack of type safety check, and is error prone.

## Solution ?

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

The issue points to hybridse/include/codec/fe_schema_codec.h lines 34-110, which contains the legacy schema codec. First, examine the current codec implementation to understand its limitations. Then, look for any existing serialization solutions in the codebase that could replace it. The goal is to design a new, extensible, platform-independent, and type-safe schema serialization method, but the issue does not specify a concrete solution or next steps.

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

Valutazione

Stack tecnologico
cpp
Ambito
backend, databases
Tipo di issue
Refactoring
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.