Skip to content

Commit

Permalink
derivedType
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Simonneau committed Apr 10, 2019
1 parent 2845755 commit 40cab8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion derivedprimitive.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type DerivedPrimitiveSchema struct {

// TypeName -
func (t *DerivedPrimitiveSchema) TypeName() Type {
return t.Type
return Type(t.LogicalType)
}

func translateValue2DerivedPrimitiveSchema(typeName Type, value *fastjson.Value) (Schema, error) {
Expand Down
2 changes: 1 addition & 1 deletion type.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const (
)

// LogicalType decorates primitive and complex types to represent a derived type
type LogicalType string
type LogicalType Type

const (
// LogicalTypeDecimal -
Expand Down

0 comments on commit 40cab8d

Please sign in to comment.