-
Notifications
You must be signed in to change notification settings - Fork 2k
set field size limit #4683
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
set field size limit #4683
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
This PR modifies the CSV field size limit in the Salesforce connector to handle larger data fields from Salesforce exports.
- Added
sys.maxsize
as CSV field size limit in/backend/onyx/connectors/salesforce/sqlite_functions.py
to prevent field size errors - Consider adding memory usage monitoring or a more conservative limit to prevent potential memory issues
1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this affect any performance or cause any potential OOMs?
* set field size limit * don't use sys.maxsize --------- Co-authored-by: Richard Kuo <rkuo@rkuo.com> Co-authored-by: Richard Kuo (Onyx) <rkuo@onyx.app>
* set field size limit * don't use sys.maxsize --------- Co-authored-by: Richard Kuo <rkuo@rkuo.com> Co-authored-by: Richard Kuo (Onyx) <rkuo@onyx.app>
* set field size limit * don't use sys.maxsize --------- Co-authored-by: Richard Kuo <rkuo@rkuo.com> Co-authored-by: Richard Kuo (Onyx) <rkuo@onyx.app>
Description
Fixes https://linear.app/danswer/issue/DAN-1958/csv-field-size-limit-fix
How Has This Been Tested?
[Describe the tests you ran to verify your changes]
Backporting (check the box to trigger backport action)
Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.