You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@carbondata.apache.org by Zhangshunyu <gi...@git.apache.org> on 2016/08/25 03:53:33 UTC

[GitHub] incubator-carbondata pull request #94: Fix bug that table not exist when exe...

GitHub user Zhangshunyu opened a pull request:

    https://github.com/apache/incubator-carbondata/pull/94

    Fix bug that table not exist when execute show segments using spark-sql and beeline the same time.

    ## Why raise this pr:
    1 When using beeline and sparksql the same time, if create a table and load data into it by sparksql, beeline and sparksql would see the same table by show tables, but if execute show segments by beeline, it would throws exception that this table is not exists.
    2. But if restart beeline or select the table before show segements, it is OK.
    
    ## How to solve this:
    The problem is that beeline and sparksql using different process, they have different tableInfoMap and beeline will not get the table from his own map, althouh sparksql put his table into the tableInfoMap.
    So, we can use tableExists to check, checkSchemasModifiedTimeAndReloadTables in tableExists would check the "modifiedTime.mdt", if it is change by different process(here is spark sql), the other process(here is beeline) should reload the metadata firstly.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/Zhangshunyu/incubator-carbondata showloadbug

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-carbondata/pull/94.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #94
    
----
commit 9e1a4d918e355aed17643b9d4e97bee81147b774
Author: Zhangshunyu <zh...@huawei.com>
Date:   2016-08-25T03:40:35Z

    Fix the bug that table not exist exception occured when using sparksql and beeline the same time

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-carbondata pull request #94: [CARBONDATA-178]Fix bug that table no...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/incubator-carbondata/pull/94


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---