-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Add issue numbers to some unimplemented feature errors #42847
Conversation
Thanks for 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.
I added the label to the issues that didn't have it. Thanks!
Reviewable status:
complete! 0 of 0 LGTMs obtained
👍 for the release note try this:
(We don't yet have |
pkg/sql/virtual_schema.go
Outdated
@@ -395,7 +395,7 @@ func (vs *VirtualSchemaHolder) getVirtualTableEntry(tn *tree.TableName) (virtual | |||
return t, nil | |||
} | |||
if _, ok := db.allTableNames[tableName]; ok { | |||
return virtualDefEntry{}, unimplemented.Newf(tn.Schema()+"."+tableName, | |||
return virtualDefEntry{}, unimplemented.NewWithIssuef(8675, |
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.
Ditto
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.
Are the rest okay?
@@ -156,7 +156,7 @@ var varGen = map[string]sessionVar{ | |||
case "utf8", "unicode", "cp65001": | |||
return nil | |||
default: | |||
return unimplemented.Newf("client_encoding "+encoding, |
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.
Wait a minute can you please extend this to preserve the telemetry.
pkg/sql/sqlbase/structured.go
Outdated
@@ -2634,11 +2634,11 @@ func (desc *MutableTableDescriptor) DropConstraint( | |||
|
|||
case ConstraintTypeFK: | |||
if detail.FK.Validity == ConstraintValidity_Validating { | |||
return unimplemented.Newf("drop-constraint-fk-mutation", | |||
return unimplemented.NewWithIssuef(42844, |
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.
can you use WithTelemetry
to differentiate the various FK operations so we get detailed usage telemetry.
3900c51
to
584aada
Compare
Partial fix for cockroachdb#42547 Release note (sql change): CockroachDB now provides a link to the relevant github issue when clients attempt to use certain features that are not yet implemented.
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.
top 👍
Very excited about this work! |
bors r+ |
42847: Add issue numbers to some unimplemented feature errors r=apantel a=apantel Partial fix for #42547 Release note (sql change): CockroachDB now provides a link to the relevant github issue when clients attempt to use certain features that are not yet implemented. Co-authored-by: Adam Pantel <adam@cockroachlabs.com>
Build succeeded |
Partial fix for #42547
Release note (sql change): CockroachDB now provides a link to the
relevant github issue when clients attempt to use certain features that
are not yet implemented.