Skip to content

[PECO-910] Implement chunk downloader to fetch chunk links - #8

Merged
gopalldb merged 8 commits into
developmentfrom
arrow-fetch
Aug 9, 2023
Merged

gopalldb merged 8 commits into
developmentfrom
arrow-fetch

Conversation

@gopalldb

@gopalldb gopalldb commented Aug 7, 2023

Copy link
Copy Markdown
Collaborator

This PR adds following changes:

  1. Download chunk links
  2. Initialize chunk downloader after getting successful execution result
  3. Initialize executor service for session and statement

@gopalldb gopalldb self-assigned this Aug 7, 2023
}

boolean isChunkLinkExpired() {
return expiryTime != null && expiryTime.isAfter(Instant.now());

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

expiryTime == null || expiryTime.isAfter(Instant.now()); is better maybe?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah sure. Was thinking if we should include only cases when Url is provided. But even null link is invalid. Changed the method signature as well.

@vikrantpuppala vikrantpuppala left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@gopalldb
gopalldb merged commit 6e28821 into development Aug 9, 2023
@madhav-db
madhav-db deleted the arrow-fetch branch September 6, 2023 08:16
gopalldb added a commit to gopalldb/databricks-jdbc that referenced this pull request May 12, 2026
New tests:
- cancel() is no-op after proactive close (cancel + close interaction)
- getExecutionResult() returns cached result after proactive close
- Statement is reusable for re-execution after proactive close
- Error swallowed test verifies flag NOT set on failure (retry behavior)

Covers review feedback databricks#8-databricks#13 (wiring tests, reuse, cancel interaction,
getExecutionResult guard, error retry semantics).

Co-authored-by: Isaac
Signed-off-by: Gopal Lal <[email protected]>
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