Skip to content
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

fix: Mark JsPartitionedTable.getTable as nullable #5050

Merged
merged 3 commits into from
Mar 7, 2024

Conversation

mofojed
Copy link
Member

@mofojed mofojed commented Jan 18, 2024

  • JsPartitionedTable.getTable returns null if the key is not found, as the table may not exist yet.

@mofojed
Copy link
Member Author

mofojed commented Jan 18, 2024

@niloc132 is there a recommended way of throwing a specific error/error type so that I can react to this type of exception? In this case the client can easily just select a different key and recover.

- Returning a `null` instead of an actual table is weird. Throw to indicate the key could not be found.
@mofojed mofojed changed the title fix: Reject instead of returning a null table fix: Mark JsPartitionedTable.getTable as nullable Mar 6, 2024
@mofojed mofojed changed the title fix: Mark JsPartitionedTable.getTable as nullable fix: Mark JsPartitionedTable.getTable as nullable Mar 6, 2024
@mofojed mofojed merged commit ed1ba0b into deephaven:main Mar 7, 2024
19 checks passed
@mofojed mofojed deleted the partition-table-error branch March 7, 2024 14:51
@github-actions github-actions bot locked and limited conversation to collaborators Mar 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants