Skip to content

Commit

Permalink
Merge pull request #262 from tigrisdata/main
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
efirs committed May 13, 2023
2 parents badb537 + 1f1d50f commit b60543d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schema/inference.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ func traverseFields(sch map[string]*schema.Field, fields map[string]any, autoGen
continue
}

if t == typeNumber && ReplaceNumber {
if sch != nil && sch[name] != nil && sch[name].Type == typeNumber && ReplaceNumber {
fields[name] = 1.1
}

Expand Down

0 comments on commit b60543d

Please sign in to comment.