-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
GH-34966: [Go] Add InsertField and FieldIndex to Schema object #34967
Conversation
|
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.
where's the InsertField method? 😄
@@ -197,6 +197,16 @@ func (sc *Schema) FieldIndices(n string) []int { | |||
return sc.index[n] | |||
} | |||
|
|||
// FieldIndex return index of the unique field with the given name. |
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.
typo: returns the index
Also, is there a reason to have this in addition to the existing FieldIndices
method? A consumer could just do the same length check and use index 0 themselves.
@zeroshade I also took a look at the PR and built locally too. |
No activity since April, I'm going to close this for now. Feel free to reopen if this is still needed. Thanks! |
|
Rationale for this change
What changes are included in this PR?
Are these changes tested?
Are there any user-facing changes?