-
Notifications
You must be signed in to change notification settings - Fork 173
feat(csharp/src/Drivers/Databricks): Added support for connection param of maxBytesPerFetchRequest #3474
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
Conversation
CurtHagenlocher
left a comment
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.
Thanks! In addition to the two specific comments I left, there's also the need to mollify the linter by cleaning up some whitespace and the desire to keep readme.md up-to-date with added options. (And again, the latter could be done as a separate PR.)
|
If this is done, can you click "Ready for review"? |
| MaxBytes = 404857600 | ||
| }; | ||
|
|
||
| private const int DefaultMaxRowsPerFetchRequest = 1000; |
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.
Why we set this to 1000? That is too small.
The OSS JDBC driver set to 2million for max rows and 404857600 for max bytes.
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.
This was the default value being used earlier.
We'll hold this PR until we find the optimal default value based on perf analysis.
|
Change CloudFetch path as well? arrow-adbc/csharp/src/Drivers/Databricks/Reader/CloudFetch/CloudFetchResultFetcher.cs Line 281 in eaf4e07
|
CurtHagenlocher
left a comment
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.
Thanks! Changes look good. Let me know if you want to check-in as-is or if you want to follow up on Eric's comment and/or mine.
…e default value for maxBytesPerFetchRequest to 400MB. CloudFetch fetch request now uses maxBytesPerFetchRequest
|
Now that the changes are finalised, we can merge this PR. |
Description
Added support for the connection param of maxBytesPerFetchRequest. The parameter is used for direct results as well.
PECO-2734