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

Python uri.resolve does not work against local python tables #2893

Closed
devinrsmith opened this issue Sep 21, 2022 · 0 comments · Fixed by #2927
Closed

Python uri.resolve does not work against local python tables #2893

devinrsmith opened this issue Sep 21, 2022 · 0 comments · Fixed by #2927
Assignees
Labels
bug Something isn't working python
Milestone

Comments

@devinrsmith
Copy link
Member

from deephaven import uri

my_table_via_uri = uri.resolve('dh:///scope/my_table')
Type: <class 'deephaven.dherror.DHError'>
Value: failed to resolve the URI. : ValueError: cannot convert a Python 'Table' to a Java 'java.lang.Object'
Traceback (most recent call last):
  File "/opt/deephaven/venv/lib/python3.10/site-packages/deephaven/uri.py", line 33, in resolve
    return wrap_j_object(_JResolveTools.resolve(uri))
  File "/opt/deephaven/venv/lib/python3.10/site-packages/deephaven/_wrapper.py", line 131, in wrap_j_object
    wc = _lookup_wrapped_class(j_obj)
  File "/opt/deephaven/venv/lib/python3.10/site-packages/deephaven/_wrapper.py", line 119, in _lookup_wrapped_class
    if j_clz.jclass.isInstance(j_obj):
ValueError: cannot convert a Python 'Table' to a Java 'java.lang.Object'

The wrapping logic should be able to properly handle this case...

@devinrsmith devinrsmith added bug Something isn't working python labels Sep 21, 2022
@devinrsmith devinrsmith added this to the Sept 2022 milestone Sep 21, 2022
@devinrsmith devinrsmith self-assigned this Sep 21, 2022
devinrsmith added a commit to devinrsmith/deephaven-core that referenced this issue Sep 29, 2022
devinrsmith added a commit to devinrsmith/deephaven-core that referenced this issue Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working python
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant