4paradigm / 4paradigm/OpenMLDB
duplicate `Put` code for inserting aggr_table
- Lingua principale
- C++
- Stelle
- 1.7k
- Fork
- 331
- Merge medio
- 12g 12h
- PR unite (30g)
- 1
Descrizione
**Describe the feature you'd like**
Now `aggregator` uses the `Table::Put` API to put the data, and manually calls the `replicator` APIs to write to the log. Duplicate logics with the `Tablet::Put`.
We have to extract a common function to achieve the same objective.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Look at the aggregator's use of Table::Put and replicator APIs, and compare with Tablet::Put in the codebase. Identify common logic for inserting into aggr_table and writing to the log. Focus on extracting a shared function to eliminate duplication. Check existing tests for Put operations to ensure refactoring doesn't break functionality.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- cpp
- Ambito
- backend, databases
- Tipo di issue
- Refactoring
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100