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

FlightMessageRoundTripTest: Inner List Type Should not Have Deephaven Type Metadata #5504

Merged

Conversation

nbauernfeind
Copy link
Member

No description provided.

@nbauernfeind nbauernfeind added core Core development tasks test NoDocumentationNeeded NoReleaseNotesNeeded No release notes are needed. labels May 17, 2024
@nbauernfeind nbauernfeind self-assigned this May 17, 2024
Comment on lines +1305 to +1308
final Field payload = new Field("", new FieldType(false, Types.MinorType.FLOAT8.getType(), null), null);

final FieldType innerFieldType = new FieldType(true, Types.MinorType.LIST.getType(), null);
final Field inner = new Field("", innerFieldType, Collections.singletonList(payload));
Copy link
Member

Choose a reason for hiding this comment

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

As part of #5497, I'd hoping we can consolidate this sort of building logic into a common place.

For example, should we have innerFieldType with deephaven:type "double[]"? Should payload have type deephaven:type "double"? It might be extraneous today, but may be helpful in the future?

Copy link
Member Author

Choose a reason for hiding this comment

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

For this particular test, I would like to remove the type metadata once the barrage reader/writer has access to the Schema during decoding. Right now we can't actually support array types without the deephaven type annotation because we would only know that it's a list and not the type of list. Maybe I could split the test into two and make sure both inferred types and explicit types work happily together.

I would be fine if these were defined some place accessible to both java-client impl and the barrage tests. (but, do eventually think we should support the implicit decoding without type metadata)

@nbauernfeind nbauernfeind merged commit d498a8e into deephaven:main May 17, 2024
23 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators May 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
core Core development tasks NoDocumentationNeeded NoReleaseNotesNeeded No release notes are needed. test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants