utils

package
v0.4.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakePredicateIsNotNullColumn

func MakePredicateIsNotNullColumn(columnName string) *api_service_protos.TPredicate_IsNotNull

func MakePredicateIsNullColumn

func MakePredicateIsNullColumn(columnName string) *api_service_protos.TPredicate_IsNull

func MustProtobufDifference

func MustProtobufDifference(expected, actual proto.Message) string

func ProtobufDifference

func ProtobufDifference(expected, actual proto.Message) (string, error)

Types

type Record added in v0.4.0

type Record struct {
	Columns map[string]any
}

Record is somewhat equivalent to arrow.Record. Store columns in map because order of columns in some datasource is undefined. (i.e. in YDB - https://st.yandex-team.ru/KIKIMR-20836)

func (*Record) MatchRecord added in v0.4.0

func (r *Record) MatchRecord(t *testing.T, receivedRecord arrow.Record, receivedSchema *api_service_protos.TSchema)

type Table added in v0.4.0

type Table struct {
	Name    string
	Schema  *TableSchema
	Records []*Record // Large tables may consist of multiple records
}

func (*Table) MatchRecords added in v0.4.0

func (tb *Table) MatchRecords(t *testing.T, records []arrow.Record, schema *api_service_protos.TSchema)

func (*Table) MatchSchema added in v0.4.0

func (tb *Table) MatchSchema(t *testing.T, schema *api_service_protos.TSchema)

type TableSchema added in v0.4.0

type TableSchema struct {
	Columns map[string]*Ydb.Type
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL