-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSV Target assumes first record has same headers as the rest #3
Comments
I see two separate solutions here.
Note: No solution that requires buffering the entire resultset in PRs are very welcome for either or both of those solutions. |
Running into same issue. The main issue in my case, are nested fields which could have content, resulting in new keys resulting in : The first record do not have those fields. I made a nice work around, calling it option 3: Add missing fields to the end of the header. This solves my problem of shifted fields while reading the CSV. I was diving into the solution for hashing, but the SCHEMA is send only once, No need for schema housekeeping and hashing. I'll make a PR for my solution so you can check it out. |
This target uses the flattened keys from the first record as the headers for the entire spreadsheet. However, in some cases, a tap will produce records with varying keys (for example, this happens with many streams in the HubSpot tap). When this occurs, the data rows in the CSV will mismatch the headers.
The text was updated successfully, but these errors were encountered: