Github user twdsilva commented on a diff in the pull request:

    https://github.com/apache/phoenix/pull/355#discussion_r224636783
  
    --- Diff: 
phoenix-core/src/main/java/org/apache/phoenix/exception/SQLExceptionCode.java 
---
    @@ -392,6 +375,13 @@ public SQLException newException(SQLExceptionInfo 
info) {
         INVALID_IMMUTABLE_STORAGE_SCHEME_AND_COLUMN_QUALIFIER_BYTES(1137, 
"XCL37", "If IMMUTABLE_STORAGE_SCHEME property is not set to 
ONE_CELL_PER_COLUMN COLUMN_ENCODED_BYTES cannot be 0"),
         INVALID_IMMUTABLE_STORAGE_SCHEME_CHANGE(1138, "XCL38", 
"IMMUTABLE_STORAGE_SCHEME property cannot be changed from/to 
ONE_CELL_PER_COLUMN "),
         CANNOT_SET_GUIDE_POST_WIDTH(1139, "XCL39", "Guide post width can only 
be set on base data tables"),
    +
    +    INVALID_DATA_TYPE_CAST(1141, "XCL41", "Can't modify column because of 
invalid data type cast"),
    +    DISALLOW_MODIFY_TABLE_TYPE(1142, "XCL42", "Only common table or view 
can be modified!"),
    +    DISALLOW_MODIFY_TIMESTAMP_OR_PK_COLUMN(1143, "XCL43", "Timestamp 
column or PK column can not be modified!"),
    +    DISALLOW_MODIFY_CHILD_TABLE(1144, "XCL44", "This table have a parent 
table which can not be modified!"),
    +    DISALLOW_DECREASE_CHAR_LENGTH(1145, "XCL45", "Can't decrease length of 
char type which less than the old data type"),
    --- End diff --
    
    We should prevent decreasing the length of any data type.


---

Reply via email to