Skip to content

Warn on incomplete queries#283

Merged
eddelbuettel merged 2 commits intomasterfrom
de/ch9673/warn_incomplete
Aug 16, 2021
Merged

Warn on incomplete queries#283
eddelbuettel merged 2 commits intomasterfrom
de/ch9673/warn_incomplete

Conversation

@eddelbuettel
Copy link
Copy Markdown
Contributor

This PR adds a missing check for query status to the [ accessor function most commonly used. This does the right thing for an R user by wrapping warning() as local configuration can then be used in both directions: turning warnings into errors (i.e. halting) or ignoring warning, or, of course, doing nothing and getting them displayed.

@shortcut-integration
Copy link
Copy Markdown

This pull request has been linked to Clubhouse Story #9673: Communicate in array accessor when query may be incomplete.

Copy link
Copy Markdown
Member

@ihnorton ihnorton left a comment

Choose a reason for hiding this comment

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

LGTM, but please get Aaron's sign-off too since this impacts UX.

@aaronwolen the motivation here is that we currently don't indicate when a query is incomplete, so a user could get partial results from their query and proceed without realizing. We are hoping to incorporate a default "run to completion" mode (possibly via libtiledb core) in the future.

@aaronwolen
Copy link
Copy Markdown
Member

Thanks for the helpful context, @ihnorton. I think issuing a warning in the event of an incomplete query is the way to go.

@eddelbuettel eddelbuettel merged commit 404c178 into master Aug 16, 2021
@eddelbuettel eddelbuettel deleted the de/ch9673/warn_incomplete branch August 16, 2021 18:11
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.

3 participants