Skip to content

Commit f525803

Browse files
authored
feat: add suggestions for datetime based cursor fields (#721)
1 parent 56ab9b5 commit f525803

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

airbyte_cdk/sources/declarative/declarative_component_schema.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -987,6 +987,18 @@ definitions:
987987
- "%Y-%m-%d %H:%M:%S.%f+00:00"
988988
- "%s"
989989
- "%ms"
990+
suggestions:
991+
- "%Y-%m-%d"
992+
- "%Y-%m-%d %H:%M:%S"
993+
- "%Y-%m-%dT%H:%M:%S"
994+
- "%Y-%m-%dT%H:%M:%SZ"
995+
- "%Y-%m-%dT%H:%M:%S%z"
996+
- "%Y-%m-%dT%H:%M:%S.%fZ"
997+
- "%Y-%m-%dT%H:%M:%S.%f%z"
998+
- "%Y-%m-%d %H:%M:%S.%f+00:00"
999+
- "%s"
1000+
- "%ms"
1001+
- "%s_as_float"
9901002
start_datetime:
9911003
title: Start Datetime
9921004
description: The datetime that determines the earliest record that should be synced.
@@ -1061,6 +1073,18 @@ definitions:
10611073
- "%s"
10621074
- "%ms"
10631075
- "%s_as_float"
1076+
suggestions:
1077+
- "%Y-%m-%d"
1078+
- "%Y-%m-%d %H:%M:%S"
1079+
- "%Y-%m-%dT%H:%M:%S"
1080+
- "%Y-%m-%dT%H:%M:%SZ"
1081+
- "%Y-%m-%dT%H:%M:%S%z"
1082+
- "%Y-%m-%dT%H:%M:%S.%fZ"
1083+
- "%Y-%m-%dT%H:%M:%S.%f%z"
1084+
- "%Y-%m-%d %H:%M:%S.%f+00:00"
1085+
- "%s"
1086+
- "%ms"
1087+
- "%s_as_float"
10641088
cursor_granularity:
10651089
title: Cursor Granularity
10661090
description: |
@@ -1075,6 +1099,13 @@ definitions:
10751099
type: string
10761100
examples:
10771101
- "PT1S"
1102+
suggestions:
1103+
- "PT0.000001S"
1104+
- "PT0.001S"
1105+
- "PT1S"
1106+
- "PT1M"
1107+
- "PT1H"
1108+
- "P1D"
10781109
is_data_feed:
10791110
title: Data Feed API
10801111
description: A data feed API is an API that does not allow filtering and paginates the content from the most recent to the least recent. Given this, the CDK needs to know when to stop paginating and this field will generate a stop condition for pagination.
@@ -1133,6 +1164,12 @@ definitions:
11331164
examples:
11341165
- "P1W"
11351166
- "{{ config['step_increment'] }}"
1167+
suggestions:
1168+
- "PT1H"
1169+
- "P1D"
1170+
- "P1W"
1171+
- "P1M"
1172+
- "P1Y"
11361173
$parameters:
11371174
type: object
11381175
additionalProperties: true
@@ -2804,6 +2841,18 @@ definitions:
28042841
- "%Y-%m-%dT%H:%M:%S.%f%z"
28052842
- "%Y-%m-%d"
28062843
- "%s"
2844+
suggestions:
2845+
- "%Y-%m-%d"
2846+
- "%Y-%m-%d %H:%M:%S"
2847+
- "%Y-%m-%dT%H:%M:%S"
2848+
- "%Y-%m-%dT%H:%M:%SZ"
2849+
- "%Y-%m-%dT%H:%M:%S%z"
2850+
- "%Y-%m-%dT%H:%M:%S.%fZ"
2851+
- "%Y-%m-%dT%H:%M:%S.%f%z"
2852+
- "%Y-%m-%d %H:%M:%S.%f+00:00"
2853+
- "%s"
2854+
- "%ms"
2855+
- "%s_as_float"
28072856
max_datetime:
28082857
title: Max Datetime
28092858
description: Ceiling applied on the datetime value. Must be formatted with the datetime_format field.

0 commit comments

Comments
 (0)