4paradigm / 4paradigm/OpenMLDB

cli: print is unclear when a row is empty string

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

Descrizione

version v0.7.1
src csv:
```
c1,c2
,
"",""
```
load data to online in cluster load_mode, select * result is:
```
------ ------
c1 c2
------ ------
NULL NULL
------ ------

2 rows in set
```
2 rows in set, but seems like just one row.

The offline print sytle is more clear:
```
+----+----+
| c1| c2|
+----+----+
|null|null|
| | |
+----+----+
```

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Look at the CLI output formatting code, likely in a module handling result display. Compare offline and online print styles to understand the discrepancy. The fix involves adjusting the formatting logic to properly display empty string rows in the online cluster load_mode. Test by loading the provided CSV and verifying the output shows two distinct rows.

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

Valutazione

Stack tecnologico
cli
Ambito
cli, data-visualization
Tipo di issue
Bug
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
55/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.