You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2019/09/30 09:27:58 UTC

[GitHub] [incubator-doris] HangyuanLiu opened a new issue #1920: Alter column to null throw exception "Cannot shorten string length"

HangyuanLiu opened a new issue #1920: Alter column to null throw exception "Cannot shorten string length"
URL: https://github.com/apache/incubator-doris/issues/1920
 
 
   **Describe the bug**
   When I was doing the schema change operation, I wanted to change the non-null type to the nullable type, but I received an exception "Cannot shorten string length"
   
   **To Reproduce**
   **1、**
   CREATE TABLE `test_uv_21` (
     `pin_id` bigint(20) NOT NULL COMMENT "",
     `pin` varchar(20) NOT NULL COMMENT "",
     `user_log_acct` hll HLL_UNION NOT NULL COMMENT ""
   ) ENGINE=OLAP
   AGGREGATE KEY(`pin_id`, `pin`)
   DISTRIBUTED BY HASH(`pin_id`) BUCKETS 16
   PROPERTIES (
   "storage_type" = "COLUMN"
   )
   
   **2、**
   alter table test_uv_21 modify column pin VARCHAR(20) null;
   
   3、
   ERROR 1064 (HY000): Cannot shorten string length
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org