[GitHub] carbondata pull request #2384: [CARBONDATA-2608] SDK Support JSON data loadi...

classic Classic list List threaded Threaded
62 messages Options
1234
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2384: [CARBONDATA-2608] SDK Support JSON data loading dire...

qiuchenjian-2
Github user CarbonDataQA commented on the issue:

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



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

[GitHub] carbondata issue #2384: [CARBONDATA-2608] SDK Support JSON data loading dire...

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

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



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

[GitHub] carbondata issue #2384: [CARBONDATA-2608] SDK Support JSON data loading dire...

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

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



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

[GitHub] carbondata issue #2384: [CARBONDATA-2608] SDK Support JSON data loading dire...

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

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



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

[GitHub] carbondata issue #2384: [CARBONDATA-2608] SDK Support JSON data loading dire...

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

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



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

[GitHub] carbondata issue #2384: [CARBONDATA-2608] SDK Support JSON data loading dire...

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

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


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

[GitHub] carbondata issue #2384: [CARBONDATA-2608] SDK Support JSON data loading dire...

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

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



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

[GitHub] carbondata issue #2384: [CARBONDATA-2608] SDK Support JSON data loading dire...

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

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



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

[GitHub] carbondata issue #2384: [CARBONDATA-2608] SDK Support JSON data loading dire...

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

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



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

[GitHub] carbondata issue #2384: [CARBONDATA-2608] SDK Support JSON data loading dire...

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

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



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

[GitHub] carbondata pull request #2384: [CARBONDATA-2608] SDK Support JSON data loadi...

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/2384#discussion_r197716607
 
    --- Diff: processing/src/main/java/org/apache/carbondata/processing/loading/steps/InputProcessorStepWithJsonConverterImpl.java ---
    @@ -0,0 +1,331 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *    http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +package org.apache.carbondata.processing.loading.steps;
    +
    +import java.io.IOException;
    +import java.util.ArrayList;
    +import java.util.Iterator;
    +import java.util.List;
    +import java.util.Map;
    +import java.util.concurrent.atomic.AtomicLong;
    +
    +import org.apache.carbondata.common.CarbonIterator;
    +import org.apache.carbondata.common.logging.LogService;
    +import org.apache.carbondata.common.logging.LogServiceFactory;
    +import org.apache.carbondata.core.datastore.row.CarbonRow;
    +import org.apache.carbondata.core.metadata.datatype.DataType;
    +import org.apache.carbondata.core.metadata.datatype.DataTypes;
    +import org.apache.carbondata.core.metadata.schema.table.column.CarbonColumn;
    +import org.apache.carbondata.core.metadata.schema.table.column.CarbonDimension;
    +import org.apache.carbondata.core.util.CarbonProperties;
    +import org.apache.carbondata.processing.loading.AbstractDataLoadProcessorStep;
    +import org.apache.carbondata.processing.loading.BadRecordsLogger;
    +import org.apache.carbondata.processing.loading.BadRecordsLoggerProvider;
    +import org.apache.carbondata.processing.loading.CarbonDataLoadConfiguration;
    +import org.apache.carbondata.processing.loading.DataField;
    +import org.apache.carbondata.processing.loading.complexobjects.ArrayObject;
    +import org.apache.carbondata.processing.loading.complexobjects.StructObject;
    +import org.apache.carbondata.processing.loading.converter.impl.RowConverterImpl;
    +import org.apache.carbondata.processing.loading.row.CarbonRowBatch;
    +import org.apache.carbondata.processing.util.CarbonBadRecordUtil;
    +
    +import org.apache.htrace.fasterxml.jackson.core.type.TypeReference;
    +import org.apache.htrace.fasterxml.jackson.databind.ObjectMapper;
    +
    +/**
    + * It reads data from record reader and sends data to next step.
    + */
    +public class InputProcessorStepWithJsonConverterImpl extends AbstractDataLoadProcessorStep {
    --- End diff --
   
    Why is it needed? why is again json parsing done here?


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

[GitHub] carbondata pull request #2384: [CARBONDATA-2608] SDK Support JSON data loadi...

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

    https://github.com/apache/carbondata/pull/2384#discussion_r197720526
 
    --- Diff: processing/src/main/java/org/apache/carbondata/processing/loading/steps/InputProcessorStepWithJsonConverterImpl.java ---
    @@ -0,0 +1,331 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *    http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +package org.apache.carbondata.processing.loading.steps;
    +
    +import java.io.IOException;
    +import java.util.ArrayList;
    +import java.util.Iterator;
    +import java.util.List;
    +import java.util.Map;
    +import java.util.concurrent.atomic.AtomicLong;
    +
    +import org.apache.carbondata.common.CarbonIterator;
    +import org.apache.carbondata.common.logging.LogService;
    +import org.apache.carbondata.common.logging.LogServiceFactory;
    +import org.apache.carbondata.core.datastore.row.CarbonRow;
    +import org.apache.carbondata.core.metadata.datatype.DataType;
    +import org.apache.carbondata.core.metadata.datatype.DataTypes;
    +import org.apache.carbondata.core.metadata.schema.table.column.CarbonColumn;
    +import org.apache.carbondata.core.metadata.schema.table.column.CarbonDimension;
    +import org.apache.carbondata.core.util.CarbonProperties;
    +import org.apache.carbondata.processing.loading.AbstractDataLoadProcessorStep;
    +import org.apache.carbondata.processing.loading.BadRecordsLogger;
    +import org.apache.carbondata.processing.loading.BadRecordsLoggerProvider;
    +import org.apache.carbondata.processing.loading.CarbonDataLoadConfiguration;
    +import org.apache.carbondata.processing.loading.DataField;
    +import org.apache.carbondata.processing.loading.complexobjects.ArrayObject;
    +import org.apache.carbondata.processing.loading.complexobjects.StructObject;
    +import org.apache.carbondata.processing.loading.converter.impl.RowConverterImpl;
    +import org.apache.carbondata.processing.loading.row.CarbonRowBatch;
    +import org.apache.carbondata.processing.util.CarbonBadRecordUtil;
    +
    +import org.apache.htrace.fasterxml.jackson.core.type.TypeReference;
    +import org.apache.htrace.fasterxml.jackson.databind.ObjectMapper;
    +
    +/**
    + * It reads data from record reader and sends data to next step.
    + */
    +public class InputProcessorStepWithJsonConverterImpl extends AbstractDataLoadProcessorStep {
    --- End diff --
   
    This is to create a carbonRow from JsonString.


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

[GitHub] carbondata pull request #2384: [CARBONDATA-2608] SDK Support JSON data loadi...

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/2384#discussion_r197721012
 
    --- Diff: store/sdk/src/main/java/org/apache/carbondata/sdk/file/JsonReaderBuilder.java ---
    @@ -0,0 +1,187 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *    http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +
    +package org.apache.carbondata.sdk.file;
    +
    +import java.io.IOException;
    +import java.util.ArrayList;
    +import java.util.List;
    +import java.util.Objects;
    +
    +import org.apache.carbondata.common.annotations.InterfaceAudience;
    +import org.apache.carbondata.common.annotations.InterfaceStability;
    +import org.apache.carbondata.core.datastore.impl.FileFactory;
    +import org.apache.carbondata.processing.loading.jsoninput.JsonInputFormat;
    +
    +import org.apache.hadoop.conf.Configuration;
    +import org.apache.hadoop.fs.s3a.Constants;
    +import org.apache.hadoop.mapreduce.InputSplit;
    +import org.apache.hadoop.mapreduce.Job;
    +import org.apache.hadoop.mapreduce.RecordReader;
    +import org.apache.hadoop.mapreduce.TaskAttemptID;
    +import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;
    +import org.apache.hadoop.mapreduce.lib.input.FileSplit;
    +import org.apache.hadoop.mapreduce.task.TaskAttemptContextImpl;
    +
    +@InterfaceAudience.User
    +@InterfaceStability.Evolving
    +public class JsonReaderBuilder {
    --- End diff --
   
    It should not be new class,  should have single builder


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

[GitHub] carbondata pull request #2384: [CARBONDATA-2608] SDK Support JSON data loadi...

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

    https://github.com/apache/carbondata/pull/2384#discussion_r197781951
 
    --- Diff: store/sdk/src/main/java/org/apache/carbondata/sdk/file/JsonReaderBuilder.java ---
    @@ -0,0 +1,187 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *    http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +
    +package org.apache.carbondata.sdk.file;
    +
    +import java.io.IOException;
    +import java.util.ArrayList;
    +import java.util.List;
    +import java.util.Objects;
    +
    +import org.apache.carbondata.common.annotations.InterfaceAudience;
    +import org.apache.carbondata.common.annotations.InterfaceStability;
    +import org.apache.carbondata.core.datastore.impl.FileFactory;
    +import org.apache.carbondata.processing.loading.jsoninput.JsonInputFormat;
    +
    +import org.apache.hadoop.conf.Configuration;
    +import org.apache.hadoop.fs.s3a.Constants;
    +import org.apache.hadoop.mapreduce.InputSplit;
    +import org.apache.hadoop.mapreduce.Job;
    +import org.apache.hadoop.mapreduce.RecordReader;
    +import org.apache.hadoop.mapreduce.TaskAttemptID;
    +import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;
    +import org.apache.hadoop.mapreduce.lib.input.FileSplit;
    +import org.apache.hadoop.mapreduce.task.TaskAttemptContextImpl;
    +
    +@InterfaceAudience.User
    +@InterfaceStability.Evolving
    +public class JsonReaderBuilder {
    --- End diff --
   
    ok. Removed this file and Integrated with existing builder itself.


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

[GitHub] carbondata issue #2384: [CARBONDATA-2608] SDK Support JSON data loading dire...

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

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



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

[GitHub] carbondata issue #2384: [CARBONDATA-2608] SDK Support JSON data loading dire...

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

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



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

[GitHub] carbondata issue #2384: [CARBONDATA-2608] SDK Support JSON data loading dire...

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

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



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

[GitHub] carbondata issue #2384: [CARBONDATA-2608] SDK Support JSON data loading dire...

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

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



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

[GitHub] carbondata issue #2384: [CARBONDATA-2608] SDK Support JSON data loading dire...

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

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



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

[GitHub] carbondata issue #2384: [CARBONDATA-2608] SDK Support JSON data loading dire...

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

    https://github.com/apache/carbondata/pull/2384
 
    @ravipesala : PR is ready and build is success. Please check


---
1234