Skip to content

Conversation

@CurtHagenlocher
Copy link
Contributor

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.

@github-actions github-actions bot added this to the ADBC Libraries 21 milestone Oct 30, 2025
_resultQueue = new BlockingCollection<IDownloadResult>(new ConcurrentQueue<IDownloadResult>(), 10);
_mockMemoryManager = new Mock<ICloudFetchMemoryBufferManager>();
_mockStatement = new Mock<IHiveServer2Statement>();
_mockStatement.SetupGet(x => x.Trace).Returns(new ActivityTrace());
Copy link
Contributor Author

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.

@CurtHagenlocher
Copy link
Contributor Author

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 CurtHagenlocher merged commit eae39dd into apache:main Oct 30, 2025
6 checks passed
@CurtHagenlocher CurtHagenlocher deleted the MemoryResult branch October 30, 2025 13:53
@eric-wang-1990
Copy link
Contributor

@CurtHagenlocher It seems this PR introduce a regression, I see this in the middle of a cloudfetch import:
Frown (Error)

Timestamp:
2025-10-30T15:19:38.4649362Z

Local Time:
2025-10-30T08:19:38.4649362-07:00

Session ID:
10423512-35fe-4714-af6b-d05dddbf2023

Release:
December 2025

Product Version:
2.150.0.0 (Main)+7c5552edc3b7e30ca4810aa7fea77f851cb4c03c (x64)

Error Message:
Corrupted IPC message. Received a continuation token at the end of the message.

Stack Trace:
Microsoft.Mashup.Host.Document.SerializedException
at Microsoft.Mashup.Evaluator.EvaluationHost.OnException(IEngineHost engineHost, IMessageChannel channel, ExceptionMessage message)
at Microsoft.Mashup.Evaluator.RemoteEvaluationContainerFactory.Container.OnException(IMessageChannel channel, ExceptionMessage message)
at Microsoft.Mashup.Evaluator.MessageHandlers.<>c__DisplayClass3_0`1.b__0(IMessageChannel channel, Message message)
at Microsoft.Mashup.Evaluator.MessageHandlers.TryDispatch(IMessageChannel channel, Message message)
at Microsoft.Mashup.Evaluator.MessageHandlers.Dispatch(IMessageChannel channel, Message message)
at Microsoft.Mashup.Evaluator.ChannelMessenger.ChannelMessageHandlers.TryDispatch(IMessageChannel channel, Message message)
at Microsoft.Mashup.Evaluator.MessageHandlers.Dispatch(IMessageChannel channel, Message message)

@CurtHagenlocher
Copy link
Contributor Author

@CurtHagenlocher It seems this PR introduce a regression,

That's odd, but I'll revert it.

CurtHagenlocher added a commit to CurtHagenlocher/arrow-adbc that referenced this pull request Oct 31, 2025
CurtHagenlocher added a commit that referenced this pull request Oct 31, 2025
…tion of cloud downloads" change (#3655)

Reverts #3652 as it seems to have caused a regression.
eric-wang-1990 added a commit to eric-wang-1990/arrow-adbc that referenced this pull request Oct 31, 2025
eric-wang-1990 added a commit to eric-wang-1990/arrow-adbc that referenced this pull request Oct 31, 2025
eric-wang-1990 added a commit to eric-wang-1990/arrow-adbc that referenced this pull request Nov 5, 2025
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.

2 participants