Skip to content

Conversation

rkuo-danswer
Copy link
Contributor

@rkuo-danswer rkuo-danswer commented May 9, 2025

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.

  • This PR should be backported (make sure to check that the backport attempt succeeds)
  • [Optional] Override Linear Check

Copy link

vercel bot commented May 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
internal-search ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 9, 2025 5:47pm

@rkuo-danswer rkuo-danswer marked this pull request as ready for review May 9, 2025 04:44
@rkuo-danswer rkuo-danswer requested a review from a team as a code owner May 9, 2025 04:44
Copy link
Contributor

@greptile-apps greptile-apps bot left a 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

Copy link
Contributor

@raunakab raunakab left a 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?

@rkuo-danswer rkuo-danswer added this pull request to the merge queue May 9, 2025
Merged via the queue into main with commit 84566de May 9, 2025
11 of 12 checks passed
@rkuo-danswer rkuo-danswer deleted the bugfix/csv-size-limit branch May 9, 2025 23:42
ferdinandl007 pushed a commit to ferdinandl007/onyx that referenced this pull request May 19, 2025
* 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>
ZhipengHe pushed a commit to ZhipengHe/onyx that referenced this pull request Jun 6, 2025
* 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>
AnkitTukatek pushed a commit to TukaTek/onyx that referenced this pull request Sep 23, 2025
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants