4paradigm / 4paradigm/OpenMLDB

cli: print is unclear when a row is empty string

Offen
#3,017 0 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @vagetablechicken Auf GitHub ansehen
bug enhancement
Vorherrschende Sprache
C++
Sterne
1.7k
Forks
331
Ø Merge
12 T. 12 Std.
Gemergte PRs (30 T.)
1

Beschreibung

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|
| | |
+----+----+
```

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
cli
Bereich
cli, data-visualization
Issue-Typ
Bug
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
55/100

Neue Issues direkt in Ihr Postfach

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