[GitHub] carbondata pull request #2649: [WIP] Add support for Avro Map data type supp...

classic Classic list List threaded Threaded
29 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #2649: [WIP] Add support for Avro Map data type supp...

qiuchenjian-2
GitHub user manishgupta88 opened a pull request:

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

    [WIP] Add support for Avro Map data type support for SDK

    Be sure to do all of the following checklist to help us incorporate
    your contribution quickly and easily:
   
     - [ ] Any interfaces changed?
     
     - [ ] Any backward compatibility impacted?
     
     - [ ] Document update required?
   
     - [ ] Testing done
            Please provide details on
            - Whether new unit test cases have been added or why no new tests are required?
            - How it is tested? Please attach test report.
            - Is it a performance related change? Please attach the performance test report.
            - Any additional information to help reviewers in testing this change.
           
     - [ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.
   


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

    $ git pull https://github.com/manishgupta88/carbondata sdk_map_support

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

    https://github.com/apache/carbondata/pull/2649.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 #2649
   
----
commit 40c678fe7b5892ccb6fe30b5b484fe612c1fda54
Author: manishgupta88 <tomanishgupta18@...>
Date:   2018-08-20T04:59:29Z

    changes for supporting map complex type for SDK

----


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

[GitHub] carbondata issue #2649: [WIP] Add support for Avro Map data type support for...

qiuchenjian-2
Github user ravipesala commented on the issue:

    https://github.com/apache/carbondata/pull/2649
 
    SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/6330/



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

[GitHub] carbondata issue #2649: [WIP] Add support for Avro Map data type support for...

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

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



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

[GitHub] carbondata issue #2649: [WIP] Add support for Avro Map data type support for...

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

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



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

[GitHub] carbondata issue #2649: [WIP] Add support for Avro Map data type support for...

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

    https://github.com/apache/carbondata/pull/2649
 
    Is this only for SDK or can be support in SQL also?


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

[GitHub] carbondata issue #2649: [WIP] Add support for Avro Map data type support for...

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

    https://github.com/apache/carbondata/pull/2649
 
    Is map implemented as an array of struct<key, value>?


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

[GitHub] carbondata issue #2649: [WIP] Add support for Avro Map data type support for...

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

    https://github.com/apache/carbondata/pull/2649
 
    @jackylk
    1. This PR is only for SDK support
    2. Yes map is implemented as an array of struct<key, value>. For more details you can check the design document
    https://docs.google.com/document/d/1HHe2fdkIh3Jyz1y3494_2kGRSc4muTWuilAmwg5lpVw/edit?usp=sharing


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

[GitHub] carbondata issue #2649: [WIP] Add support for Avro Map data type support for...

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

    https://github.com/apache/carbondata/pull/2649
 
    SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/6355/



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

[GitHub] carbondata issue #2649: [WIP] Add support for Avro Map data type support for...

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

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



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

[GitHub] carbondata issue #2649: [WIP] Add support for Avro Map data type support for...

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

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



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

[GitHub] carbondata issue #2649: [CARBONDATA-2869] Add support for Avro Map data type...

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

    https://github.com/apache/carbondata/pull/2649
 
    SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/6386/



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

[GitHub] carbondata issue #2649: [CARBONDATA-2869] Add support for Avro Map data type...

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

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



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

[GitHub] carbondata issue #2649: [CARBONDATA-2869] Add support for Avro Map data type...

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

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



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

[GitHub] carbondata issue #2649: [CARBONDATA-2869] Add support for Avro Map data type...

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

    https://github.com/apache/carbondata/pull/2649
 
    SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/6395/



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

[GitHub] carbondata issue #2649: [CARBONDATA-2869] Add support for Avro Map data type...

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

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



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

[GitHub] carbondata issue #2649: [CARBONDATA-2869] Add support for Avro Map data type...

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

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



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

[GitHub] carbondata issue #2649: [CARBONDATA-2869] Add support for Avro Map data type...

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

    https://github.com/apache/carbondata/pull/2649
 
    SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/6417/



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

[GitHub] carbondata issue #2649: [CARBONDATA-2869] Add support for Avro Map data type...

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

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



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

[GitHub] carbondata issue #2649: [CARBONDATA-2869] Add support for Avro Map data type...

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

    https://github.com/apache/carbondata/pull/2649
 
    Build Success with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/21/



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

[GitHub] carbondata pull request #2649: [CARBONDATA-2869] Add support for Avro Map da...

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/2649#discussion_r213557677
 
    --- Diff: core/src/main/java/org/apache/carbondata/core/metadata/schema/table/TableSchemaBuilder.java ---
    @@ -232,6 +235,10 @@ private ColumnSchema addColumn(StructField field, String parentName, AtomicInteg
             for (int i = 0; i < fields.size(); i++) {
               addColumn(fields.get(i), parentFieldName, valIndex, false, true);
             }
    +      } else if (field.getDataType().getName().equalsIgnoreCase("MAP")) {
    --- End diff --
   
    Please use `DataTypes.isMapType(field.getDataType())`


---
12