You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sources/google_sheets/README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,8 @@ When source detects any problems with headers or table layout **it will issue a
35
35
`dlt` normalizer will use first row of data to infer types and will try to coerce following rows - creating variant columns if that is not possible. This is a standard behavior.
36
36
**date time** and **date** types are also recognized and this happens via additional metadata that is retrieved for the first row.
37
37
38
+
> For **date time** or **date** columns, provide a type hint if the first row is empty to ensure values are serialized correctly.
39
+
38
40
## Passing the spreadsheet id/url and explicit range names
39
41
You can use both url of your spreadsheet that you can copy from the browser ie.
# handle null values properly. Null cell values are returned as empty strings, this will cause dlt to create new columns and fill them with empty strings
262
310
ifval=="":
263
311
fill_val=None
264
-
elifdata_typein ["timestamp", "date"]:
265
-
# the datetimes are inferred from first row of data. if next rows have inconsistent data types - pass the values to dlt to deal with them
0 commit comments