Skip to content

Commit ae1ebec

Browse files
committed
improve err msg
1 parent 162fbf0 commit ae1ebec

File tree

1 file changed

+2
-1
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser

1 file changed

+2
-1
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2533,7 +2533,8 @@ class AstBuilder(conf: SQLConf) extends SqlBaseBaseVisitor[AnyRef] with Logging
25332533
throw new ParseException(s"$PROP_COMMENT is a reserved namespace property, please use" +
25342534
s" the COMMENT clause to specify it.", ctx)
25352535
case (ownership, _) if ownership == PROP_OWNER_NAME || ownership == PROP_OWNER_TYPE =>
2536-
throw new ParseException(s"$ownership is a reserved namespace property", ctx)
2536+
throw new ParseException(s"$ownership is a reserved namespace property , please use" +
2537+
" ALTER NAMESPACE ... SET OWNER ... to specify it.", ctx)
25372538
case _ =>
25382539
}
25392540
properties

0 commit comments

Comments
 (0)