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

refactor!: Rearrange TypeUtils and ArrayTypeUtils so they can be shared with JS API #5780

Merged
merged 6 commits into from
Jul 19, 2024

Conversation

niloc132
Copy link
Member

Removed some unused methods, rewrote some implementations to avoid reflection where unnecessary, removed ObjectInputStream/ObjectOutputStream usage.

BREAKING CHANGES: Moved isBoxedNumeric, isNumeric, isBigNumeric to NumericTypeUtils, removed @IsDateTime, removed other reflective methods from TypeUtils and ArrayTypeUtils.
Partial #188

@niloc132 niloc132 added this to the 0.36.0 milestone Jul 16, 2024
Copy link
Member

@devinrsmith devinrsmith left a comment

Choose a reason for hiding this comment

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

Couple changes in behavior noted.

devinrsmith
devinrsmith previously approved these changes Jul 17, 2024
columnSource = ReinterpretUtils.instantToLongSource(table.getColumnSource(columnName));
} else if (type == ZonedDateTime.class) {
statsFunc = new DateTimeChunkedStats();
columnSource = ReinterpretUtils.zonedDateTimeToLongSource(table.getColumnSource(columnName));
Copy link
Member

Choose a reason for hiding this comment

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

Fun fact, this is going to work, but it has implications. That is, it assumes that all ZDTs that map to the same Instant are equal, which isn't so according to ZDT.equals(). Not a thing to address here, now, but certainly a concern.

@niloc132 niloc132 merged commit d99fa11 into deephaven:main Jul 19, 2024
16 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jul 19, 2024
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.

3 participants