datasource

package
v0.2.21 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataSource

type DataSource struct {
	Instances []*api_common.TDataSourceInstance
}

type Record

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

func (r *Record) MatchRecord(t *testing.T, record arrow.Record, schema *api_service_protos.TSchema)

type Table

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

func (*Table) MatchRecords

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

func (*Table) MatchSchema added in v0.1.2

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

type TableSchema added in v0.1.2

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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