Commit e0aac18
feat: add robust datetime parsing fallback to DatetimeBasedCursor
- Add ab_datetime_try_parse as fallback when expected formats fail
- Maintain backward compatibility by trying expected formats first
- Update schema documentation to reflect new fallback behavior
- Update test to use truly unparseable string for error case
- Preserve original cursor value format in state storage
- Eliminate parsing errors for ISO8601/RFC3339 compliant datetimes
Co-Authored-By: AJ Steers <[email protected]>1 parent eca065f commit e0aac18
File tree
3 files changed
+10
-2
lines changed- airbyte_cdk/sources/declarative
- incremental
- unit_tests/sources/declarative/incremental
3 files changed
+10
-2
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
944 | 944 | | |
945 | 945 | | |
946 | 946 | | |
947 | | - | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
948 | 950 | | |
949 | 951 | | |
950 | 952 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
313 | 314 | | |
314 | 315 | | |
315 | 316 | | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
316 | 322 | | |
317 | 323 | | |
318 | 324 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1021 | 1021 | | |
1022 | 1022 | | |
1023 | 1023 | | |
1024 | | - | |
| 1024 | + | |
1025 | 1025 | | |
1026 | 1026 | | |
1027 | 1027 | | |
| |||
0 commit comments