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

James Taylor resolved PHOENIX-964.
----------------------------------

    Resolution: Fixed

This was fixed, I believe in 3.0/4.0

> 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)

Reply via email to