feat(csharp/src/Drivers/Databricks): Poll status to keep query alive - #2820
Merged
CurtHagenlocher merged 4 commits intoMay 19, 2025
Merged
Conversation
toddmeng-db
force-pushed
the
toddmeng-db/heartbeat-retrieval
branch
from
May 13, 2025 05:35
670f383 to
ef3bfc2
Compare
toddmeng-db
commented
May 15, 2025
| @@ -19,3 +19,4 @@ | |||
|
|
|||
| [assembly: InternalsVisibleTo("Apache.Arrow.Adbc.Drivers.Databricks, PublicKey=0024000004800000940000000602000000240000525341310004000001000100e504183f6d470d6b67b6d19212be3e1f598f70c246a120194bc38130101d0c1853e4a0f2232cb12e37a7a90e707aabd38511dac4f25fcb0d691b2aa265900bf42de7f70468fc997551a40e1e0679b605aa2088a4a69e07c117e988f5b1738c570ee66997fba02485e7856a49eca5fd0706d09899b8312577cbb9034599fc92d4")] | |||
| [assembly: InternalsVisibleTo("Apache.Arrow.Adbc.Tests.Drivers.Databricks, PublicKey=0024000004800000940000000602000000240000525341310004000001000100e504183f6d470d6b67b6d19212be3e1f598f70c246a120194bc38130101d0c1853e4a0f2232cb12e37a7a90e707aabd38511dac4f25fcb0d691b2aa265900bf42de7f70468fc997551a40e1e0679b605aa2088a4a69e07c117e988f5b1738c570ee66997fba02485e7856a49eca5fd0706d09899b8312577cbb9034599fc92d4")] | |||
Contributor
Author
There was a problem hiding this comment.
This is to expose some of the internal classes to Moq
toddmeng-db
force-pushed
the
toddmeng-db/heartbeat-retrieval
branch
2 times, most recently
from
May 15, 2025 22:59
d298d41 to
11f86ff
Compare
impl heartbeat
toddmeng-db
force-pushed
the
toddmeng-db/heartbeat-retrieval
branch
3 times, most recently
from
May 15, 2025 23:33
f50a47e to
7ed23e4
Compare
fixes
toddmeng-db
force-pushed
the
toddmeng-db/heartbeat-retrieval
branch
from
May 15, 2025 23:40
7ed23e4 to
1670878
Compare
toddmeng-db
force-pushed
the
toddmeng-db/heartbeat-retrieval
branch
from
May 16, 2025 21:59
0d52db3 to
62a35d4
Compare
toddmeng-db
force-pushed
the
toddmeng-db/heartbeat-retrieval
branch
from
May 16, 2025 22:07
62a35d4 to
055b723
Compare
toddmeng-db
marked this pull request as ready for review
May 16, 2025 22:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements automatic query keepalive polling to prevent Databricks queries from timing out while results are being
consumed.
When query execution completes but the client is still reading results (e.g., large CloudFetch downloads), Databricks
may terminate the operation due to inactivity. This PR adds background polling to continuously signal that the client is
still active.
Implemented automatic background polling that:
GetOperationStatusrequests every 60 secondsChanges
DatabricksOperationStatusPoller: Manages background polling lifecycleTesting
DatabricksOperationStatusPollerTests):cd csharp
dotnet test --filter "FullyQualifiedName~DatabricksOperationStatusPollerTests"