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

Damien Carol updated HIVE-8231:
-------------------------------
    Description: 
Steps to show the bug :
1. create table 
{code}
create table encaissement_1b_64m like encaissement_1b;
{code}
2. check table 
{code}
desc encaissement_1b_64m;
dfs -ls hdfs://nc-h04/user/hive/warehouse/casino.db/encaissement_1b_64m;
{code}
everything is ok:
{noformat}
0: jdbc:hive2://nc-h04:10000/casino> desc encaissement_1b_64m;                  
                                                                                
            +------------+------------+----------+--+
|  col_name  | data_type  | comment  |
+------------+------------+----------+--+
| id         | int        |          |
| idmagasin  | int        |          |
| zibzin     | string     |          |
| cheque     | int        |          |
| montant    | double     |          |
| date       | timestamp  |          |
| col_6      | string     |          |
| col_7      | string     |          |
| col_8      | string     |          |
+------------+------------+----------+--+
9 rows selected (0.158 seconds)
0: jdbc:hive2://nc-h04:10000/casino> dfs -ls 
hdfs://nc-h04/user/hive/warehouse/casino.db/encaissement_1b_64m/;
+-------------+--+
| DFS Output  |
+-------------+--+
+-------------+--+
No rows selected (0.01 seconds)

{noformat}

3. Insert values into the new table
{code}
insert into table encaissement_1b_64m VALUES (1, 1, '800000000909000000000000', 
1, 12.5, '12/05/2014', '','','');
{code}



  was:
Steps to show the bug :
1. create table 
{code}
create table encaissement_1b_64m like encaissement_1b;
{code}
2. check table 
{code}
desc encaissement_1b_64m;
dfs -ls hdfs://nc-h04/user/hive/warehouse/casino.db/encaissement_1b_64m;
{code}
everything is ok:
{noformat}
0: jdbc:hive2://nc-h04:10000/casino> desc encaissement_1b_64m;                  
                                                                                
            +------------+------------+----------+--+
|  col_name  | data_type  | comment  |
+------------+------------+----------+--+
| id         | int        |          |
| idmagasin  | int        |          |
| zibzin     | string     |          |
| cheque     | int        |          |
| montant    | double     |          |
| date       | timestamp  |          |
| col_6      | string     |          |
| col_7      | string     |          |
| col_8      | string     |          |
+------------+------------+----------+--+
9 rows selected (0.158 seconds)
0: jdbc:hive2://nc-h04:10000/casino> dfs -ls 
hdfs://nc-h04/user/hive/warehouse/casino.db/encaissement_1b_64m/;
+-------------+--+
| DFS Output  |
+-------------+--+
+-------------+--+
No rows selected (0.01 seconds)

{noformat}

3. Insert values into the new table
{code}

{code}




> Error in directory layer when insert into empty table with ACID
> ---------------------------------------------------------------
>
>                 Key: HIVE-8231
>                 URL: https://issues.apache.org/jira/browse/HIVE-8231
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.14.0
>            Reporter: Damien Carol
>
> Steps to show the bug :
> 1. create table 
> {code}
> create table encaissement_1b_64m like encaissement_1b;
> {code}
> 2. check table 
> {code}
> desc encaissement_1b_64m;
> dfs -ls hdfs://nc-h04/user/hive/warehouse/casino.db/encaissement_1b_64m;
> {code}
> everything is ok:
> {noformat}
> 0: jdbc:hive2://nc-h04:10000/casino> desc encaissement_1b_64m;                
>                                                                               
>                 +------------+------------+----------+--+
> |  col_name  | data_type  | comment  |
> +------------+------------+----------+--+
> | id         | int        |          |
> | idmagasin  | int        |          |
> | zibzin     | string     |          |
> | cheque     | int        |          |
> | montant    | double     |          |
> | date       | timestamp  |          |
> | col_6      | string     |          |
> | col_7      | string     |          |
> | col_8      | string     |          |
> +------------+------------+----------+--+
> 9 rows selected (0.158 seconds)
> 0: jdbc:hive2://nc-h04:10000/casino> dfs -ls 
> hdfs://nc-h04/user/hive/warehouse/casino.db/encaissement_1b_64m/;
> +-------------+--+
> | DFS Output  |
> +-------------+--+
> +-------------+--+
> No rows selected (0.01 seconds)
> {noformat}
> 3. Insert values into the new table
> {code}
> insert into table encaissement_1b_64m VALUES (1, 1, 
> '800000000909000000000000', 1, 12.5, '12/05/2014', '','','');
> {code}



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

Reply via email to