You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by "Jacky Li (JIRA)" <ji...@apache.org> on 2018/07/24 07:01:00 UTC

[jira] [Resolved] (CARBONDATA-2560) [MV] Exception in console during MV creation but MV registered successfully

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

Jacky Li resolved CARBONDATA-2560.
----------------------------------
       Resolution: Fixed
         Assignee: Ravindra Pesala
    Fix Version/s: 1.4.1
                   1.5.0

> [MV] Exception in console during MV creation but MV registered successfully
> ---------------------------------------------------------------------------
>
>                 Key: CARBONDATA-2560
>                 URL: https://issues.apache.org/jira/browse/CARBONDATA-2560
>             Project: CarbonData
>          Issue Type: Bug
>            Reporter: Babulal
>            Assignee: Ravindra Pesala
>            Priority: Minor
>             Fix For: 1.5.0, 1.4.1
>
>
> 0: jdbc:hive2://10.18.222.231:23040> create table mvtest4(unit int,y_year int,country int,b_country int,imei int,salary double) stored by 'carbondata' TBLPROPERTIES('sort_columns'='y_year,country,imei,b_country,unit');
> +---------+--+
> | Result |
> +---------+--+
> +---------+--+
> No rows selected (0.45 seconds)
> 0: jdbc:hive2://10.18.222.231:23040> create datamap map1mvtest4 using 'mv' as select unit,sum(salary) from mvtest4 group by unit;
> +---------+--+
> | Result |
> +---------+--+
> +---------+--+
> No rows selected (0.505 seconds)
> 0: jdbc:hive2://10.18.222.231
> 0: jdbc:hive2://10.18.222.231:23040> create datamap map2mvtest4 using 'mv' as select unit,sum(salary) from mvtest4 group by unit;
> Error: java.lang.RuntimeException: Asked to register already registered. (state=,code=0)
> 0: jdbc:hive2://10.18.222.231:23040> show datamap on table mvtest4;
> +--------------+------------+----------------------------+--+
> | DataMapName | ClassName | Associated Table |
> +--------------+------------+----------------------------+--+
> | map1mvtest4 | mv | default.map1mvtest4_table |
> | map2mvtest4 | mv | default.map2mvtest4_table |
> +--------------+------------+----------------------------+--+
> 2 rows selected (0.338 seconds)
>  
> So even we got error in data map creation but datamap is registered.
> _system folder is also have datamap file.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)