Commit 27f1735
feat: add skip_rows_before_header and skip_rows_after_header to CsvDecoder
Add skip_rows_before_header and skip_rows_after_header optional integer
properties (default: 0) to the declarative CsvDecoder schema and parser.
This enables Connector Builder users to parse CSV/TSV responses that
contain metadata lines before or after the header row.
The implementation follows the same pattern already used by file-based
connectors (CsvFormat in csv_format.py) and mirrors the approach used
when set_values_to_none was added to CsvDecoder.
Co-Authored-By: bot_apk <apk@cognition.ai>1 parent 7f41401 commit 27f1735
File tree
4 files changed
+125
-66
lines changed- airbyte_cdk/sources/declarative
- decoders
- models
- parsers
4 files changed
+125
-66
lines changedLines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3886 | 3886 | | |
3887 | 3887 | | |
3888 | 3888 | | |
| 3889 | + | |
| 3890 | + | |
| 3891 | + | |
| 3892 | + | |
| 3893 | + | |
| 3894 | + | |
| 3895 | + | |
| 3896 | + | |
| 3897 | + | |
| 3898 | + | |
3889 | 3899 | | |
3890 | 3900 | | |
3891 | 3901 | | |
| |||
Lines changed: 17 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
107 | 109 | | |
108 | 110 | | |
109 | | - | |
110 | | - | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
118 | 124 | | |
119 | | - | |
120 | | - | |
121 | | - | |
| 125 | + | |
122 | 126 | | |
| 127 | + | |
123 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
124 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
125 | 136 | | |
126 | 137 | | |
127 | 138 | | |
| |||
0 commit comments