-
Notifications
You must be signed in to change notification settings - Fork 173
feat(csharp/src/Drivers/Databricks): Improve memory utilization of cloud downloads #3652
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
| _resultQueue = new BlockingCollection<IDownloadResult>(new ConcurrentQueue<IDownloadResult>(), 10); | ||
| _mockMemoryManager = new Mock<ICloudFetchMemoryBufferManager>(); | ||
| _mockStatement = new Mock<IHiveServer2Statement>(); | ||
| _mockStatement.SetupGet(x => x.Trace).Returns(new ActivityTrace()); |
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.
A null value for Trace was preventing these tests from running correctly.
|
This turns out not to make much of a change other than reducing the number of garbage collections -- but that's worthwhile, and I think we can find other ways to further reduce that number. |
|
@CurtHagenlocher It seems this PR introduce a regression, I see this in the middle of a cloudfetch import: Timestamp: Local Time: Session ID: Release: Product Version: Error Message: Stack Trace: |
That's odd, but I'll revert it. |
…on of cloud downloads (apache#3652)" This reverts commit eae39dd.
…on of cloud downloads (apache#3652)" This reverts commit eae39dd.
…ion of cloud downloads (apache#3652)" This reverts commit dae9c27.
…on of cloud downloads (apache#3652)" This reverts commit eae39dd.
Improves memory utilization of cloud downloads by casting the downloaded and/or decompressed cloud data sets directly into Arrow data rather than having to deserialize them through a stream.
NOTE: I have not benchmarked this change.