[GitHub] carbondata pull request #1749: [CARBONDATA-1968] Add external table support

classic Classic list List threaded Threaded
44 messages Options
123
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #1749: [CARBONDATA-1968] Add external table support

qiuchenjian-2
GitHub user jackylk opened a pull request:

    https://github.com/apache/carbondata/pull/1749

    [CARBONDATA-1968] Add external table support

    This PR adds support for creating external table with existing carbondata files, using Hive syntax.
    CREATE EXTERNAL TABLE tableName STORED BY 'carbondata' LOCATION 'path'
   
     - [X] Any interfaces changed?
     No
     - [X] Any backward compatibility impacted?
     No
     - [X] Document update required?
    Yes
     - [X] Testing done
    Testcase added
     - [X] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.
    NA

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

    $ git pull https://github.com/jackylk/incubator-carbondata external_table

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

    https://github.com/apache/carbondata/pull/1749.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 #1749
   
----
commit 5d4376bdf7bfd99ff72da355cea0103b568f78c0
Author: Jacky Li <jacky.likun@...>
Date:   2018-01-02T15:46:14Z

    add external table support

----


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #1749: [CARBONDATA-1968] Add external table support

qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1749
 
    Build Failed  with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/2488/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #1749: [CARBONDATA-1968] Add external table support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1749
 
    Build Failed with Spark 2.2.0, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/1263/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #1749: [CARBONDATA-1968] Add external table support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user ravipesala commented on the issue:

    https://github.com/apache/carbondata/pull/1749
 
    SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/2660/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #1749: [CARBONDATA-1968] Add external table support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user jackylk commented on the issue:

    https://github.com/apache/carbondata/pull/1749
 
    retest this please


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #1749: [CARBONDATA-1968] Add external table support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user ravipesala commented on the issue:

    https://github.com/apache/carbondata/pull/1749
 
    SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/2863/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #1749: [CARBONDATA-1968] Add external table support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1749
 
    Build Failed  with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/2738/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #1749: [CARBONDATA-1968] Add external table support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1749
 
    Build Failed with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/1506/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #1749: [CARBONDATA-1968] Add external table support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1749
 
    Build Failed  with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/2749/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #1749: [CARBONDATA-1968] Add external table support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1749
 
    Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/1517/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #1749: [CARBONDATA-1968] Add external table support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1749
 
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/2750/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #1749: [CARBONDATA-1968] Add external table support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1749
 
    Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/1518/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #1749: [CARBONDATA-1968] Add external table support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user mohammadshahidkhan commented on the issue:

    https://github.com/apache/carbondata/pull/1749
 
    @jackylk
    I have couple of Queries.
    For carbon external table, how to identify the table is external table?
    What would be drop table behaviour for external carbon table?
    As per hive For an external table, dropping the table only involves changes to metadata in the metastore database.
    The data in the table will NOT be deleted from the file system.


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #1749: [CARBONDATA-1968] Add external table support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user jackylk commented on the issue:

    https://github.com/apache/carbondata/pull/1749
 
    @mohammadshahidkhan Yes, that is correct. Drop table should not delete data. I have modify the testcase to verify it.
    I have added a internal table property ("_external"), it will be set to true during table creation in `createCarbonTable`


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #1749: [CARBONDATA-1968] Add external table support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1749
 
    Build Failed with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/1520/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #1749: [CARBONDATA-1968] Add external table support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1749
 
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/2752/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #1749: [CARBONDATA-1968] Add external table support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user ravipesala commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/1749#discussion_r161400186
 
    --- Diff: integration/spark2/src/main/scala/org/apache/spark/sql/hive/CarbonFileMetastore.scala ---
    @@ -571,4 +572,22 @@ class CarbonFileMetastore extends CarbonMetaStore {
           case _ => throw new NoSuchTableException(tableIdentifier.database.get, tableIdentifier.table)
         }
       }
    +
    +  override def getTableInfo(identifier: AbsoluteTableIdentifier)
    --- End diff --
   
    All ready API exists in SchemReader , better use from there. As this API is only for filebased schema


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #1749: [CARBONDATA-1968] Add external table support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user ravipesala commented on the issue:

    https://github.com/apache/carbondata/pull/1749
 
    @jackylk How the external table feature works for enabling carbon hive metastore option. Schema will not be stored in file if hive metastore is enabled so we cannot create external table from it.


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #1749: [CARBONDATA-1968] Add external table support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1749
 
    Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/1525/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #1749: [CARBONDATA-1968] Add external table support

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/1749
 
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/2759/



---
123