-
Notifications
You must be signed in to change notification settings - Fork 30
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
Update UpsertColumn to include an error response #963
Conversation
Backfilled: typing.ToPtr(true), | ||
}) | ||
|
||
if err != nil { |
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.
Could inline this
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.
Although with the multiple lines that could make it hard to read, so I'm also good with leaving it as is.
lib/typing/columns/columns_test.go
Outdated
ToastCol: typing.ToPtr(true), | ||
PrimaryKey: typing.ToPtr(true), | ||
}) | ||
})) | ||
aaaCol, _ := cols.GetColumn("aaa") | ||
assert.True(t, aaaCol.ToastColumn) | ||
assert.True(t, aaaCol.primaryKey) | ||
assert.Equal(t, aaaCol.KindDetails, typing.Invalid) | ||
|
||
length := len(cols.columns) | ||
for i := 0; i < 500; i++ { |
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.
How come we're doing this 500 times?
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.
Lol, I was testing it to be idempotent. It's not needed though, I'll remove.
Adding this in so we can have an extra guardrail to address #955 (comment)