schema

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 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