Skip to content

Commit

Permalink
Add a comment about the application of scheam deduction.
Browse files Browse the repository at this point in the history
  • Loading branch information
manishrjain committed Dec 3, 2019
1 parent 9200e62 commit f106396
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions worker/draft.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@ func (n *node) applyMutations(ctx context.Context, proposal *pb.Proposal) (rerr
ostats.Record(ctx, x.ActiveMutations.M(int64(-total)))
}()

// Go through all the predicates and their first observed schema type. If we are unable to find
// these predicates in the current schema state, add them to the schema state. Note that the
// schema deduction is done by RDF/JSON chunker.
for attr, storageType := range schemaMap {
if _, err := schema.State().TypeOf(attr); err != nil {
if err := createSchema(attr, storageType); err != nil {
Expand Down

0 comments on commit f106396

Please sign in to comment.