func (c *ColumnBool) ValueByIdx(idx int) (bool, error) {
	var r bool  
	if idx < 0 || idx >= c.Len() {
		return r, errors.New("index out of range")
	}
	return c.values[idx], nil
}
ValueByIdx returns value of the provided index
error occurs when index out of range
package entity 
import (
	"errors"
	"fmt"
	"github.com/milvus-io/milvus-sdk-go/v2/internal/proto/schema"
)
type ColumnBool struct {
	name   string
	values []bool
}
func (c *ColumnBool) Name() string {
	return c.name
}
func (c *ColumnBool) Type() FieldType {
	return FieldTypeBool
}
func (c *ColumnBool) Len() int {
	return len(c.values)
}
func (c *ColumnBool) FieldData() *schema.FieldData {
	fd := &schema.FieldData{
		Type: schema.DataType_Bool,
		FieldName: c.name,
	}
	data := make([]bool, 0, c.Len())
	for i := 0 ;i < c.Len(); i++ {
		data = append(data, bool(c.values[i]))
	}
	fd.Field = &schema.FieldData_Scalars{
		Scalars: &schema.ScalarField{
			Data: &schema.ScalarField_BoolData{
				BoolData: &schema.BoolArray{
					Data: data,
				},
			},
		},
	}
	return fd
}