From 01b905a38385ca514c2d9c07cc44a8f9a48ce762 Mon Sep 17 00:00:00 2001 From: Abhi Vaidyanatha Date: Fri, 27 Aug 2021 18:36:49 -0700 Subject: [PATCH] Add note to source-file about changing the parsed data type(s) (#5690) Co-authored-by: Abhi Vaidyanatha --- docs/integrations/sources/file.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/integrations/sources/file.md b/docs/integrations/sources/file.md index 231157f107ec81..972e666abac99e 100644 --- a/docs/integrations/sources/file.md +++ b/docs/integrations/sources/file.md @@ -113,6 +113,10 @@ In case you select `JSON` format, then options from the [read\_json](https://pan For example, you can use the `{"orient" : "records"}` to change how orientation of data is loaded \(if data is `[{column -> value}, … , {column -> value}]`\) +#### Changing data types of source columns + +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"}}`. + ### Examples Here are a list of examples of possible file inputs: