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

feat(FIR-38127): Add struct support #125

Merged
merged 6 commits into from
Dec 19, 2024
Merged

Conversation

ptiurin
Copy link
Collaborator

@ptiurin ptiurin commented Dec 13, 2024

Implemented the logic for struct, including allowing columns with spaces.
Added tests for struct and geography since we support it.

@ptiurin ptiurin requested a review from a team as a code owner December 13, 2024 11:52
@ptiurin ptiurin changed the title test(FIR-38127): Add struct and geography tests test(FIR-38127): Add struct support Dec 17, 2024
s: { a: [1, 2], b: "hello" }
};
// Missing closing parenthesis
const meta = [{ name: "s", type: "struct(a array(int), b text" }];
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe we should fail here. This is something that's not expected to be received from the backend and we should fail to avoid unexpected results for customers

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

As discussed offline this leads to uncertainty, is this a new type and we default to string or is this a malformed existing type. I suppose we can check the prefix - if it's correct but we're not able to parse the rest then we're malformed. But it's a little arbitrary IMO.

@ptiurin ptiurin changed the title test(FIR-38127): Add struct support feat(FIR-38127): Add struct support Dec 19, 2024
@ptiurin ptiurin merged commit b405435 into main Dec 19, 2024
4 checks passed
@ptiurin ptiurin deleted the test-add-geography-and-struct branch December 19, 2024 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants