Skip to content

Commit a790254

Browse files
authored
Merge pull request #941 from dolthub/james/partition
throw unsupported error for `PARTITION OF` statements
2 parents d54fd0c + d8fe1cd commit a790254

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/ast/create_table.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ func nodeCreateTable(ctx *Context, node *tree.CreateTable) (*vitess.DDL, error)
9191
Expr: vitess.NewColName(string(node.PartitionBy.Elems[0].Column)),
9292
}
9393
}
94-
94+
if node.PartitionOf.Table() != "" {
95+
return nil, fmt.Errorf("PARTITION OF is not yet supported")
96+
}
9597
return ddl, nil
9698
}

0 commit comments

Comments
 (0)