carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cenyuhai <>
Subject [GitHub] carbondata pull request #1286: [CARBONDATA-1404] Added Unit test cases for H...
Date Wed, 30 Aug 2017 14:11:50 GMT
Github user cenyuhai commented on a diff in the pull request:
    --- Diff: integration/hive/src/test/java/org/apache/carbondata/hive/
    @@ -0,0 +1,232 @@
    + * 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
    + *
    + *
    + *
    + * 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.hive;
    +import junit.framework.TestCase;
    +import mockit.Mock;
    +import mockit.MockUp;
    +import org.apache.carbondata.common.CarbonIterator;
    +import org.apache.carbondata.core.metadata.AbsoluteTableIdentifier;
    +import org.apache.carbondata.core.metadata.CarbonTableIdentifier;
    +import org.apache.carbondata.core.metadata.ColumnarFormatVersion;
    +import org.apache.carbondata.core.scan.executor.exception.QueryExecutionException;
    +import org.apache.carbondata.core.scan.executor.impl.DetailQueryExecutor;
    +import org.apache.carbondata.core.scan.executor.infos.BlockExecutionInfo;
    +import org.apache.carbondata.core.scan.model.QueryModel;
    +import org.apache.carbondata.core.scan.result.BatchResult;
    +import org.apache.carbondata.core.scan.result.iterator.AbstractDetailQueryResultIterator;
    +import org.apache.carbondata.core.scan.result.iterator.ChunkRowIterator;
    +import org.apache.carbondata.core.scan.result.iterator.DetailQueryResultIterator;
    +import org.apache.hadoop.hive.serde.serdeConstants;
    +import org.apache.hadoop.mapred.InputSplit;
    +import org.apache.hadoop.mapred.JobConf;
    +import org.apache.carbondata.hadoop.readsupport.CarbonReadSupport;
    +import org.apache.hadoop.fs.Path;
    +import org.junit.BeforeClass;
    +import org.junit.Test;
    +import java.util.ArrayList;
    +import java.util.List;
    +import java.util.concurrent.ExecutorService;
    +import java.util.concurrent.ForkJoinPool;
    +public class TestCarbonHiveRecordReader extends TestCase {
    +    private CarbonHiveRecordReader carbonHiveRecordReaderObj;
    +    private AbsoluteTableIdentifier absoluteTableIdentifier ;
    +    private QueryModel queryModel = new QueryModel();
    +    private CarbonReadSupport<ArrayWritable> readSupport = new CarbonDictionaryDecodeReadSupport<>();
    +    private JobConf jobConf = new JobConf();
    +    private InputSplit inputSplitNotInstanceOfHiveInputSplit, inputSplitInstanceOfHiveInputSplit;
    +    private BatchResult batchResult = new BatchResult();
    +    private Writable writable;
    +    private CarbonIterator carbonIteratorObject ;
    +    @BeforeClass
    +    public void setUp() throws Exception{
    --- End diff --
    please add a whitespace after Exception

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 or file a JIRA ticket
with INFRA.

View raw message