phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Taylor (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (PHOENIX-964) QueryServices.DROP_METADATA_ATTRIB set to false is ignored and HBase table is dropped
Date Fri, 02 May 2014 03:47:17 GMT

     [ https://issues.apache.org/jira/browse/PHOENIX-964?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

James Taylor updated PHOENIX-964:
---------------------------------

    Assignee: Samarth Jain

> QueryServices.DROP_METADATA_ATTRIB set to false is ignored and HBase table is dropped
> -------------------------------------------------------------------------------------
>
>                 Key: PHOENIX-964
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-964
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.0.0
>            Reporter: Cristian Armaselu
>            Assignee: Samarth Jain
>
> Executed the below code:
>             Properties connectionProperties = new Properties();
>             connection = DriverManager.getConnection("jdbc:phoenix:localhost:2181", connectionProperties);
>             statement = connection.createStatement();
>             statement.execute("create table to_be_dropped(pk_col varchar(128) primary
key,c1 varchar(12),c2 varchar(12))");
>             statement.execute("upsert into to_be_dropped(pk_col,c1,c2) values('AAA','bbbb','cccc')");
>             statement.execute("upsert into to_be_dropped(pk_col,c1,c2) values('AAA1','bbbb','cccc')");
>             connection.commit();
>             JdbcUtils.closeStatement(statement);
>             JdbcUtils.closeConnection(connection);
>             connectionProperties = new Properties();
>             connectionProperties.setProperty(QueryServices.DROP_METADATA_ATTRIB,"false");
>             connection = DriverManager.getConnection("jdbc:phoenix:localhost:2181", connectionProperties);
>             statement = connection.createStatement();
>             statement.execute("drop table to_be_dropped");
> Behavior:
> Table is dropped
> Expected:
> Table and data be retained



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message