phoenix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gjac...@apache.org
Subject phoenix git commit: PHOENIX-3954 Update error message to be more user friendly
Date Fri, 18 Aug 2017 23:02:14 GMT
Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.2 a59889a0b -> 97150aa21


PHOENIX-3954 Update error message to be more user friendly

Signed-off-by: gjacoby <gjacoby@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/97150aa2
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/97150aa2
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/97150aa2

Branch: refs/heads/4.x-HBase-1.2
Commit: 97150aa2147f88bfa64155a4d96d6ce9d4d7adb5
Parents: a59889a
Author: Biju Nair <gs.biju@gmail.com>
Authored: Sun Jun 18 23:04:19 2017 -0400
Committer: gjacoby <gjacoby@apache.org>
Committed: Fri Aug 18 15:58:35 2017 -0700

----------------------------------------------------------------------
 .../main/java/org/apache/phoenix/exception/SQLExceptionCode.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/97150aa2/phoenix-core/src/main/java/org/apache/phoenix/exception/SQLExceptionCode.java
----------------------------------------------------------------------
diff --git a/phoenix-core/src/main/java/org/apache/phoenix/exception/SQLExceptionCode.java
b/phoenix-core/src/main/java/org/apache/phoenix/exception/SQLExceptionCode.java
index 4744f69..ff4a35c 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/exception/SQLExceptionCode.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/exception/SQLExceptionCode.java
@@ -137,7 +137,7 @@ public enum SQLExceptionCode {
     ORDER_BY_NOT_IN_SELECT_DISTINCT(511, "42890", "All ORDER BY expressions must appear in
SELECT DISTINCT:"),
     INVALID_PRIMARY_KEY_CONSTRAINT(512, "42891", "Invalid column reference in primary key
constraint."),
     ARRAY_NOT_ALLOWED_IN_PRIMARY_KEY(513, "42892", "Array type not allowed as primary key
constraint."),
-    COLUMN_EXIST_IN_DEF(514, "42892", "A duplicate column name was detected in the object
definition or ALTER TABLE statement.", new Factory() {
+    COLUMN_EXIST_IN_DEF(514, "42892", "A duplicate column name was detected in the object
definition or ALTER TABLE/VIEW statement.", new Factory() {
         @Override
         public SQLException newException(SQLExceptionInfo info) {
             return new ColumnAlreadyExistsException(info.getSchemaName(), info.getTableName(),
info.getColumnName());


Mime
View raw message