Skip to content

Commit

Permalink
Add comment to clarify
Browse files Browse the repository at this point in the history
  • Loading branch information
kanitw authored and domoritz committed Apr 29, 2018
1 parent 2b50edf commit e40978e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/compile/data/formatparse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ export class ParseNode extends DataFlowNode {
}
parse[fieldDef.field] = 'number';
} else if (accessPathDepth(fieldDef.field) > 1) {
// For non-date/non-number (strings and booleans), derive a flattened field for a referenced nested field.
// (Parsing numbers / dates already flattens numeric and temporal fields.)
parse[fieldDef.field] = 'flatten';
}
});
Expand Down

0 comments on commit e40978e

Please sign in to comment.