[airbyte-cdk] Increase the maximum parseable field size for CSV files - #36320
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
|
Brian Lai (@brianjlai) M. Marx (@marcosmarxm) here's another patch to the CSV logic in the CDK |
|
Thanks for the contribution. Natik Gadzhi (@natikgadzhi) can this be added to the next sprint? |
|
M. Marx (@marcosmarxm) Natik Gadzhi (@natikgadzhi) just checking in on the status for this PR |
|
Hey folks. Tobias Macey (@blarghmatey), sorry for the delay 🤦🏼 — my bad. And thank you for putting this together! Looking, give me a minute. |
Natik Gadzhi (natikgadzhi)
left a comment
There was a problem hiding this comment.
Okay, overall, I like this, but there's a mistake in the current implementation (SO says hello).
I don't like the whole loop thing, but it does look a lot like that would work. Hypothetically, we can avoid the loop and just set sys.maxsize as it's bound to be max possible int on the current runtime. But hey.
Fix the typo, then let's do a quick review from Alexandre Girard (@girarda) and merge.
|
Alexandre Girard (@girarda) Natik Gadzhi (@natikgadzhi) let me know if there are any other changes that you need me to make to get this merged. |
|
Tobias Macey (@blarghmatey) I'm going to coordinate with Natik and Alex about this change. Hope to get this merged soon. |
|
M. Marx (@marcosmarxm) Natik Gadzhi (@natikgadzhi) Alexandre Girard (@girarda) just checking in again on this. If we can get it merged and processed through into a new build of the S3 source this week that would be very helpful. |
|
Alexandre Girard (@girarda) Natik Gadzhi (@natikgadzhi) I think I resolved the lint failure that it was running into. Can you do another round of review so we can hopefully get this merged? |
|
Natik Gadzhi (@natikgadzhi) M. Marx (@marcosmarxm) just another ping before the weekend. If I could have this ready for next week that would be great because I'm currently blocked on ingesting a chunk of data due to this bug. |
|
The change looks fine to me. |
|
Thanks for the approval Natik Gadzhi (@natikgadzhi). M. Marx (@marcosmarxm) is there anything I can do to help merge this and publish the CDK? |
The Python CSV library defaults to a maximum allowed length of 128k for a given field. This can cause issues when loading files that contain fields exceeding that length. This updates the parser to register the maximum allowable field size based on the runtime system.
The Python CSV library defaults to a maximum allowed length of 128k for a given field. This can cause issues when loading files that contain fields exceeding that length. This updates the parser to register the maximum allowable field size based on the runtime system.
The Python CSV library defaults to a maximum allowed length of 128k for a given field. This can cause issues when loading files that contain fields exceeding that length. This updates the parser to register the maximum allowable field size based on the runtime system.
The Python CSV library defaults to a maximum allowed length of 128k for a given field. This can cause issues when loading files that contain fields exceeding that length. This updates the parser to register the maximum allowable field size based on the runtime system.
The Python CSV library defaults to a maximum allowed length of 128k for a given field. This can cause issues when loading files that contain fields exceeding that length. This updates the parser to register the maximum allowable field size based on the runtime system.
|
Thanks for your contribution Tobias Macey (@blarghmatey)! I kicked off a CDK publish https://github.com/airbytehq/airbyte/actions/runs/8994319435 |
The Python CSV library defaults to a maximum allowed length of 128k for a given field. This can cause issues when loading files that contain fields exceeding that length. This updates the parser to register the maximum allowable field size based on the runtime system.
Example error from an S3 source connector: