Skip to content

Commit

Permalink
vec-396 move vector records index list output out of verbose and into…
Browse files Browse the repository at this point in the history
… default
  • Loading branch information
dwelch-spike committed Oct 25, 2024
1 parent 622fdd2 commit 9ac655d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions cmd/writers/indexList.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ func NewIndexTableWriter(writer io.Writer, verbose bool, logger *slog.Logger) *I
"Dimensions",
"Distance Metric",
"Unmerged",
"Vector Records",
}
verboseHeadings := append(table.Row{}, headings...)
verboseHeadings = append(
verboseHeadings,
"Vector Records",
"Vertices",
"Labels*",
"Storage",
Expand Down Expand Up @@ -79,11 +79,11 @@ func (itw *IndexTableWriter) AppendIndexRow(
index.Dimensions,
index.VectorDistanceMetric,
status.GetUnmergedRecordCount(),
status.GetIndexHealerVectorRecordsIndexed(),
}

if itw.verbose {
row = append(row,
status.GetIndexHealerVectorRecordsIndexed(),
status.GetIndexHealerVerticesValid(),
index.Labels,
)
Expand Down
10 changes: 5 additions & 5 deletions e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -751,8 +751,8 @@ func (suite *CmdTestSuite) TestSuccessfulListIndexCmd() {
},
cmd: "index list --no-color --format 1",
expectedTable: `Indexes
,Name,Namespace,Field,Dimensions,Distance Metric,Unmerged
1,list,test,vector,256,COSINE,0
,Name,Namespace,Field,Dimensions,Distance Metric,Unmerged,Vector Records
1,list,test,vector,256,COSINE,0,0
`,
},
{
Expand All @@ -767,9 +767,9 @@ func (suite *CmdTestSuite) TestSuccessfulListIndexCmd() {
},
cmd: "index list --no-color --format 1",
expectedTable: `Indexes
,Name,Namespace,Set,Field,Dimensions,Distance Metric,Unmerged
1,list2,bar,barset,vector,256,HAMMING,0
2,list1,test,,vector,256,COSINE,0
,Name,Namespace,Set,Field,Dimensions,Distance Metric,Unmerged,Vector Records
1,list2,bar,barset,vector,256,HAMMING,0,0
2,list1,test,,vector,256,COSINE,0,0
`,
},
{
Expand Down

0 comments on commit 9ac655d

Please sign in to comment.