-
Notifications
You must be signed in to change notification settings - Fork 4
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
Conversation
|
s: { a: [1, 2], b: "hello" } | ||
}; | ||
// Missing closing parenthesis | ||
const meta = [{ name: "s", type: "struct(a array(int), b text" }]; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
Implemented the logic for struct, including allowing columns with spaces.
Added tests for struct and geography since we support it.