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

Include column name in errors when creating InputColumn #4979

Merged
merged 1 commit into from
Dec 22, 2023

Conversation

jmao-denver
Copy link
Contributor

@jmao-denver jmao-denver commented Dec 22, 2023

Fixes #4392

from deephaven import new_table
from deephaven.column import *

source = new_table([
   string_col("StringVal", ["Alpha", "Bravo", "Charlie"]),
   char_col("CharVal", ["A", "B", "C"]),
   byte_col("ByteVal", [10, 20, 30]),
   short_col("ShortVal", [100, 200, 300]),
   int_col("IntVal", [1_000_000, 2_000_000, 3_000_000]),
   long_col("LongVal", [4_000_000_000, 5_000_000_000, 6_000_000_000]),
   float_col("FloatVal", [1.1, 1.2, 1.3]),
   double_col("DoubleVal", [2.1, 2.2, 2.3])
])

now produces:

-Scheduler-Serial-1 | .c.ConsoleServiceGrpcImpl | Error running script: java.lang.RuntimeException: Error in Python interpreter:
Type: <class 'deephaven.dherror.DHError'>
Value: failed to create an InputColumn (CharVal). : TypeError: 'str' object cannot be interpreted as an integer
Traceback (most recent call last):
  File "/opt/deephaven/venv/lib/python3.10/site-packages/deephaven/dtypes.py", line 300, in array
    return jpy.array(dtype.j_type, seq)
TypeError: 'str' object cannot be interpreted as an integer

The above exception was the direct cause of the following exception:

@jmao-denver jmao-denver merged commit 62be1d0 into deephaven:main Dec 22, 2023
25 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Dec 22, 2023
@jmao-denver jmao-denver deleted the 4392-column-name-in-error branch March 4, 2024 14:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

deephaven.column functions should include name in errors
3 participants