You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kudu.apache.org by "Ram Mettu (JIRA)" <ji...@apache.org> on 2016/08/14 05:23:22 UTC

[jira] [Commented] (KUDU-1522) AlterTable Request Fails when adding TIMESTAMP Column with Default Value

    [ https://issues.apache.org/jira/browse/KUDU-1522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15420221#comment-15420221 ] 

Ram Mettu commented on KUDU-1522:
---------------------------------

http://gerrit.cloudera.org:8080/3970

> AlterTable Request Fails when adding TIMESTAMP Column with Default Value
> ------------------------------------------------------------------------
>
>                 Key: KUDU-1522
>                 URL: https://issues.apache.org/jira/browse/KUDU-1522
>             Project: Kudu
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>         Environment: See description - easily reproducible with a simple change to test scripts 
>            Reporter: Ram Mettu
>            Priority: Critical
>              Labels: newbie
>
> AlterTable Request Fails when adding TIMESTAMP Column with Default Value. It crashes Kudu server requiring a restart.  
> Adding a Nullable Timestamp column (without a default value) works fine.
> Quick way to reproduce - 
> In kudu/java/kudu-client/src/test/java/org/kududb/client/TestKuduTable.java 
> testAlterTable()  lines ~76 - 80
> Add a col with Timestamp and default value
>       ato = new AlterTableOptions()
>           .addColumn("testaddmulticolnotnull", Type.INT32, 4)
>           .addNullableColumn("testaddmulticolnull", Type.STRING)
>           //.addNullableColumn("testaddmulticolTimestampcol", Type.TIMESTAMP);
>           .addColumn("testaddmulticolTimestampcol", Type.TIMESTAMP, (System.currentTimeMillis() * 1000));
>       submitAlterAndCheck(ato, tableName);



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)