Skip to content

Commit cbc7935

Browse files
committed
Adding record type inference documentation
1 parent 4c96560 commit cbc7935

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

docs/9.0/reader/record-type-inference.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ id,name,active,amount
2020

2121
schema inference can determine that:
2222

23-
* `id` is numeric;
24-
* `name` is a string;
25-
* `active` is boolean;
26-
* `amount` is numeric.
23+
-`id` is numeric;
24+
-`name` is a string;
25+
-`active` is boolean;
26+
-`amount` is numeric.
2727

2828
The feature is available through `Reader::inferSchema()` and `Reader::inferRecords()`.
2929

@@ -262,9 +262,9 @@ In both cases, schema inference is performed from a sample of the CSV and the re
262262

263263
A Tabular data provides three ways to iterate over its records:
264264

265-
* `getRecords()` reads the values as they appear in the CSV;
266-
* `getRecordsAsObject()` converts each record into a specific object;
267-
* `inferRecords()` infers the types of the columns and parses the records accordingly.
265+
-`getRecords()` reads the values as they appear in the CSV;
266+
-`getRecordsAsObject()` converts each record into a specific object;
267+
-`inferRecords()` infers the types of the columns and parses the records accordingly.
268268

269269
The differences become clearer when the same data is read using each method.
270270

@@ -428,8 +428,8 @@ typed records
428428

429429
In short:
430430

431-
* **`inferSchema()`** tells you *what the CSV is understood to contain*.
432-
* **`inferRecords()`** gives you the records *according to that understanding*.
431+
- **`inferSchema()`** tells you *what the CSV is understood to contain*.
432+
- **`inferRecords()`** gives you the records *according to that understanding*.
433433

434434
### `inferRecords()` with a custom inspector
435435

@@ -543,4 +543,3 @@ Use **`getRecordsAsObject()`** when you have a known object model and want the C
543543
In summary:
544544

545545
> **`getRecords()` preserves the input, `inferRecords()` interprets the input, and `getRecordsAsObject()` validates the input against an explicit object model.**
546-

0 commit comments

Comments
 (0)