Skip to content

feat: DH-21579: add allow_string parameter to python instant_val#7644

Merged
devinrsmith merged 1 commit intodeephaven:mainfrom
devinrsmith:python-instant-val-allow-string
Feb 3, 2026
Merged

feat: DH-21579: add allow_string parameter to python instant_val#7644
devinrsmith merged 1 commit intodeephaven:mainfrom
devinrsmith:python-instant-val-allow-string

Conversation

@devinrsmith
Copy link
Member

This allows python to properly configure a JSON value as a JSON string that encodes a number of temporal units (seconds, millis, micros, nanos) since the epoch. For example, the JSON string with number of seconds since the epoch

"1770051098"

can now be represented in python by

instant_val(number_format="s", allow_string=True)

This functionality is already present on the Java side via a "lenient" io.deephaven.json.InstantNumberValue, which already allows JSON string types.

This allows python to properly configure a JSON value as a JSON string that encodes a number of temporal units (seconds, millis, micros, nanos) since the epoch. For example, the JSON string with number of seconds since the epoch

```json
"1770051098"
```

can now be represented in python by

```python
instant_val(number_format="s", allow_string=True)
```

This functionality is already present on the Java side via a "lenient" `io.deephaven.json.InstantNumberValue`, which already allows JSON string types.
@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 2026

No docs changes detected for aeb9590

Copy link
Contributor

@jmao-denver jmao-denver left a comment

Choose a reason for hiding this comment

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

LGTM

@devinrsmith devinrsmith merged commit 97ddfa2 into deephaven:main Feb 3, 2026
26 of 36 checks passed
@devinrsmith devinrsmith deleted the python-instant-val-allow-string branch February 3, 2026 16:34
@github-actions github-actions bot locked and limited conversation to collaborators Feb 3, 2026
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.

2 participants