Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions arrow/array/fixed_size_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ type FixedSizeList struct {

var _ ListLike = (*FixedSizeList)(nil)

func (a *FixedSizeList) Validate() error { return validateFixedSizeListArray(a) }
func (a *FixedSizeList) ValidateFull() error { return validateFixedSizeListArray(a) }

// NewFixedSizeListData returns a new List array value, from data.
func NewFixedSizeListData(data arrow.ArrayData) *FixedSizeList {
a := &FixedSizeList{}
Expand Down
6 changes: 6 additions & 0 deletions arrow/array/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ func (a *List) GetOneForMarshal(i int) interface{} {
return json.RawMessage(v)
}

func (a *List) Validate() error { return validateListArray(a, false) }
func (a *List) ValidateFull() error { return validateListArray(a, true) }

func (a *List) MarshalJSON() ([]byte, error) {
var buf bytes.Buffer
enc := json.NewEncoder(&buf)
Expand Down Expand Up @@ -244,6 +247,9 @@ func (a *LargeList) GetOneForMarshal(i int) interface{} {
return json.RawMessage(v)
}

func (a *LargeList) Validate() error { return validateLargeListArray(a, false) }
func (a *LargeList) ValidateFull() error { return validateLargeListArray(a, true) }

func (a *LargeList) MarshalJSON() ([]byte, error) {
var buf bytes.Buffer
enc := json.NewEncoder(&buf)
Expand Down
Loading