Documentation
¶
Overview ¶
Package arrow_schemagen generates an Apache Arrow schema from an Apache Arrow schema or from a map[string]interface{}.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrowSchemaFromAvro ¶
ArrowSchemaFromAvro returns a new Arrow schema from an Avro schema JSON. If the top level is of record type, set includeTopLevel to either make its fields top level fields in the resulting schema or nested in a single field.
func ArrowSchemaFromMap ¶
ArrowSchemaFromMap returns a new Arrow schema from an arbitrary map[string]interface{}.
func AvroPrimitiveToArrowType ¶
AvroPrimitiveToArrowType returns the Arrow DataType equivalent to a Avro primitive type.
NOTE: Arrow Binary type is used as a catchall to avoid potential data loss.
func GoPrimitiveToArrowType ¶
GoPrimitiveToArrowType returns the Arrow DataType equivalent to a Go primitive type.
NOTE The intended use case is to support the generation of an Arrow schema from arbitrary JSON unmarshaled to a map[string]interface{}. The same schema would then be reused for other JSON using the same schema, the field containing nil in the map used as a schema template could be populated in the subsequent JSON messages, therefore the Go nil type is mapped to Arrow Binary type as a catchall to avoid losing data.
Types ¶
This section is empty.