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

Update UpsertColumn to include an error response #963

Merged
merged 3 commits into from
Oct 16, 2024

Conversation

Tang8330
Copy link
Contributor

Adding this in so we can have an extra guardrail to address #955 (comment)

@Tang8330 Tang8330 marked this pull request as ready for review October 16, 2024 01:24
@Tang8330 Tang8330 requested a review from a team as a code owner October 16, 2024 01:24
Backfilled: typing.ToPtr(true),
})

if err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could inline this

Copy link
Contributor

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.

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++ {
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@Tang8330 Tang8330 merged commit e1c8285 into master Oct 16, 2024
3 checks passed
@Tang8330 Tang8330 deleted the update-upsert-column-sig branch October 16, 2024 02:55
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