Skip to content

Commit 01b905a

Browse files
avaidyanathaAbhi Vaidyanatha
andauthored
Add note to source-file about changing the parsed data type(s) (#5690)
Co-authored-by: Abhi Vaidyanatha <abhivaidyanatha@Abhis-MacBook-Pro.local>
1 parent 516d276 commit 01b905a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/integrations/sources/file.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ In case you select `JSON` format, then options from the [read\_json](https://pan
113113

114114
For example, you can use the `{"orient" : "records"}` to change how orientation of data is loaded \(if data is `[{column -> value}, … , {column -> value}]`\)
115115

116+
#### Changing data types of source columns
117+
118+
Normally, Airbyte tries to infer the data type from the source, but you can use `reader_options` to force specific data types. If you input `{"dtype":"string"}`, all columns will be forced to be parsed as strings. If you only want a specific column to be parsed as a string, simply use `{"dtype" : {"column name": "string"}}`.
119+
116120
### Examples
117121

118122
Here are a list of examples of possible file inputs:

0 commit comments

Comments
 (0)