schema

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SchemaTypeAvro     = "avro"
	SchemaTypeBigquery = "bigquery"
)

Variables

View Source
var (
	ErrUnsupportedSchema   = errors.New("unsupported schema")
	ErrInvalidSchema       = errors.New("invalid schema")
	ErrUnconvertibleSchema = errors.New("input schema is unable to convert")
)

Functions

func NewSchemaHandlerFromArrow

func NewSchemaHandlerFromArrow(s IntermediateSchema) (*schema.SchemaHandler, error)

NewSchemaHandlerFromArrow converts intermediate schema to parquet-go schema handler.

Types

type IntermediateSchema

type IntermediateSchema struct {
	ArrowSchema *arrow.Schema
	Name        string
}

func GetSchema

func GetSchema(content []byte, schemaType string) (*IntermediateSchema, error)

GetSchema converts input schema intermediate schema.

func NewIntermediateSchema

func NewIntermediateSchema(s *arrow.Schema, name string) *IntermediateSchema

func NewSchemaFromAvroSchema

func NewSchemaFromAvroSchema(schemaContent []byte) (*IntermediateSchema, error)

func NewSchemaFromBigQuerySchema

func NewSchemaFromBigQuerySchema(schemaContent []byte) (*IntermediateSchema, error)

Jump to

Keyboard shortcuts

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