Skip to content

Commit

Permalink
sql: link issue to unimplemented mutations in udfs
Browse files Browse the repository at this point in the history
Links an issue to the unimplemented errors for mutations in UDFs.

Epic: None
Informs: #87289
Fixes: #99715

Release note: None
  • Loading branch information
rharding6373 committed Apr 10, 2023
1 parent 843b120 commit 03915f8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/sql/opt/optbuilder/builder.go
Expand Up @@ -313,6 +313,12 @@ func (b *Builder) buildStmt(
switch stmt := stmt.(type) {
case *tree.Select:
case tree.SelectStatement:
case *tree.Delete:
panic(unimplemented.NewWithIssuef(87289, "%s usage inside a function definition", stmt.StatementTag()))
case *tree.Insert:
panic(unimplemented.NewWithIssuef(87289, "%s usage inside a function definition", stmt.StatementTag()))
case *tree.Update:
panic(unimplemented.NewWithIssuef(87289, "%s usage inside a function definition", stmt.StatementTag()))
default:
panic(unimplemented.Newf("user-defined functions", "%s usage inside a function definition", stmt.StatementTag()))
}
Expand Down

0 comments on commit 03915f8

Please sign in to comment.