Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
wienleung committed Mar 15, 2024
1 parent 83df0e2 commit 2d36090
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions rai/results.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ type Tabular interface {
Strings(int) []string
}

// TabularSlice is an interface for columns that contain array data that can
// be sliced into sub-arrays, combining the sub-array's values to represent
// values such as int128
type TabularSlice interface {
Tabular
ColumnSlice(int, int) Column
Expand Down Expand Up @@ -1640,7 +1643,8 @@ func newSimpleValueColumn(vt ValueType, c Column, nrows int) Column {
return valueColumn{cols}
}

// get the corresponding width of an Arrow array column for this part of a Signature
// getSliceWidth gets the corresponding width of an Arrow array column for
// a `t` that is one of the parts of a Signature
func getSliceWidth(t any) int {
switch tt := t.(type) {
case reflect.Type:
Expand Down Expand Up @@ -1693,7 +1697,7 @@ func newTabularValueColumn(vt ValueType, c Tabular, nrows int) Column {
cc = newRelationColumn(tt, c.Column(ncol), nrows)
ncol++
case ValueType:
cc = newValueColumn(tt, c.Column(ncol) /* listCol */, nrows)
cc = newValueColumn(tt, c.Column(ncol), nrows)
ncol++
case string:
cc = newSymbolColumn(tt, nrows)
Expand Down

0 comments on commit 2d36090

Please sign in to comment.