[GitHub] carbondata pull request #2822: [CARBONDATA-3014] Added support for inverted ...

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

[GitHub] carbondata issue #2822: [CARBONDATA-3014] Added support for inverted index a...

qiuchenjian-2
Github user ravipesala commented on the issue:

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


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

[GitHub] carbondata issue #2822: [CARBONDATA-3014] Added support for inverted index a...

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

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


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

[GitHub] carbondata issue #2822: [CARBONDATA-3014] Added support for inverted index a...

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

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


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

[GitHub] carbondata issue #2822: [CARBONDATA-3014] Added support for inverted index a...

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

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


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

[GitHub] carbondata issue #2822: [CARBONDATA-3014] Added support for inverted index a...

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

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


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

[GitHub] carbondata issue #2822: [CARBONDATA-3014] Added support for inverted index a...

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

    https://github.com/apache/carbondata/pull/2822
 
    Build Failed with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/1109/



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

[GitHub] carbondata issue #2822: [CARBONDATA-3014] Added support for inverted index a...

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

    https://github.com/apache/carbondata/pull/2822
 
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/909/



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

[GitHub] carbondata issue #2822: [CARBONDATA-3014] Added support for inverted index a...

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

    https://github.com/apache/carbondata/pull/2822
 
    Build Failed  with Spark 2.3.1, Please check CI http://136.243.101.176:8080/job/carbondataprbuilder2.3/9176/



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

[GitHub] carbondata issue #2822: [CARBONDATA-3014] Added support for inverted index a...

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

    https://github.com/apache/carbondata/pull/2822
 
    Build Failed with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/1116/



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

[GitHub] carbondata issue #2822: [CARBONDATA-3014] Added support for inverted index a...

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

    https://github.com/apache/carbondata/pull/2822
 
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/916/



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

[GitHub] carbondata issue #2822: [CARBONDATA-3014] Added support for inverted index a...

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

    https://github.com/apache/carbondata/pull/2822
 
    Build Failed with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/1126/



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

[GitHub] carbondata issue #2822: [CARBONDATA-3014] Added support for inverted index a...

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

    https://github.com/apache/carbondata/pull/2822
 
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/928/



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

[GitHub] carbondata pull request #2822: [CARBONDATA-3014] Added support for inverted ...

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

    https://github.com/apache/carbondata/pull/2822#discussion_r226973433
 
    --- Diff: core/src/main/java/org/apache/carbondata/core/scan/result/vector/impl/directread/ColumnarVectorWrapperDirectWithDeleteDeltaAndInvertedIndex.java ---
    @@ -0,0 +1,258 @@
    +/*
    + * 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.core.scan.result.vector.impl.directread;
    +
    +import java.math.BigDecimal;
    +import java.util.BitSet;
    +
    +import org.apache.carbondata.core.metadata.datatype.DataType;
    +import org.apache.carbondata.core.metadata.datatype.DataTypes;
    +import org.apache.carbondata.core.metadata.datatype.DecimalType;
    +import org.apache.carbondata.core.scan.result.vector.CarbonColumnVector;
    +import org.apache.carbondata.core.scan.result.vector.impl.CarbonColumnVectorImpl;
    +
    +/**
    + * Column vector for column pages which has delete delta and inverted index, so it uses delta biset
    + * to filter out data and use inverted index before filling to actual vector
    + */
    +class ColumnarVectorWrapperDirectWithDeleteDeltaAndInvertedIndex
    +    extends AbstractCarbonColumnarVector implements ConvertableVector {
    --- End diff --
   
    `AbstractCarbonColumnarVector` implements the` ConvertableVector`..no need to implement here


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

[GitHub] carbondata pull request #2822: [CARBONDATA-3014] Added support for inverted ...

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

    https://github.com/apache/carbondata/pull/2822#discussion_r226980856
 
    --- Diff: core/src/main/java/org/apache/carbondata/core/scan/result/vector/impl/directread/ColumnarVectorWrapperDirectWithDeleteDeltaAndInvertedIndex.java ---
    @@ -0,0 +1,258 @@
    +/*
    + * 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.core.scan.result.vector.impl.directread;
    +
    +import java.math.BigDecimal;
    +import java.util.BitSet;
    +
    +import org.apache.carbondata.core.metadata.datatype.DataType;
    +import org.apache.carbondata.core.metadata.datatype.DataTypes;
    +import org.apache.carbondata.core.metadata.datatype.DecimalType;
    +import org.apache.carbondata.core.scan.result.vector.CarbonColumnVector;
    +import org.apache.carbondata.core.scan.result.vector.impl.CarbonColumnVectorImpl;
    +
    +/**
    + * Column vector for column pages which has delete delta and inverted index, so it uses delta biset
    + * to filter out data and use inverted index before filling to actual vector
    + */
    +class ColumnarVectorWrapperDirectWithDeleteDeltaAndInvertedIndex
    +    extends AbstractCarbonColumnarVector implements ConvertableVector {
    +
    +  private BitSet deletedRows;
    +
    +  private int[] invertedIndex;
    +
    +  private CarbonColumnVectorImpl carbonColumnVector;
    +
    +  private CarbonColumnVector columnVector;
    +
    +  private int precision;
    +
    +  private BitSet nullBits;
    +
    +  private boolean isnullBitsExists;
    +
    +  public ColumnarVectorWrapperDirectWithDeleteDeltaAndInvertedIndex(
    +      CarbonColumnVector vectorWrapper, BitSet deletedRows, int[] invertedIndex, BitSet nullBits,
    +      boolean isnullBitsExists) {
    +    this.deletedRows = deletedRows;
    +    this.invertedIndex = invertedIndex;
    +    carbonColumnVector = new CarbonColumnVectorImpl(invertedIndex.length, vectorWrapper.getType());
    +    this.columnVector = vectorWrapper;
    +    this.nullBits = nullBits;
    +    this.isnullBitsExists = isnullBitsExists;
    +  }
    +
    +  @Override
    +  public void putBoolean(int rowId, boolean value) {
    +    carbonColumnVector.putBoolean(invertedIndex[rowId], value);
    +  }
    +
    +  @Override
    +  public void putFloat(int rowId, float value) {
    +    carbonColumnVector.putFloat(invertedIndex[rowId], value);
    +  }
    +
    +  @Override
    +  public void putShort(int rowId, short value) {
    +    carbonColumnVector.putShort(invertedIndex[rowId], value);
    +  }
    +
    +  @Override
    +  public void putInt(int rowId, int value) {
    +    carbonColumnVector.putInt(invertedIndex[rowId], value);
    +  }
    +
    +  @Override
    +  public void putLong(int rowId, long value) {
    +    carbonColumnVector.putLong(invertedIndex[rowId], value);
    +  }
    +
    +  @Override
    +  public void putDecimal(int rowId, BigDecimal value, int precision) {
    +    this.precision = precision;
    +    carbonColumnVector.putDecimal(invertedIndex[rowId], value, precision);
    +  }
    +
    +  @Override
    +  public void putDouble(int rowId, double value) {
    +    carbonColumnVector.putDouble(invertedIndex[rowId], value);
    +  }
    +
    +  @Override
    +  public void putByteArray(int rowId, byte[] value) {
    +    carbonColumnVector.putByteArray(invertedIndex[rowId], value);
    +  }
    +
    +  @Override
    +  public void putByteArray(int rowId, int offset, int length, byte[] value) {
    +    carbonColumnVector.putByteArray(invertedIndex[rowId], offset, length, value);
    +  }
    +
    +  @Override
    +  public void putByte(int rowId, byte value) {
    +    carbonColumnVector.putByte(invertedIndex[rowId], value);
    +  }
    +
    +  @Override
    +  public void putNull(int rowId) {
    +    if (isnullBitsExists) {
    +      nullBits.set(rowId);
    +    } else {
    +      nullBits.set(invertedIndex[rowId]);
    --- End diff --
   
    please add a comment to explain this if-else logic...flag `isnullBitsExists` is to distinguish between measure and dimension. When the flag is true that means it is a measure and for measures we do not have inverted index while the else case is for dimensions  for which inverted index exists. Is my understanding correct?


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

[GitHub] carbondata pull request #2822: [CARBONDATA-3014] Added support for inverted ...

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

    https://github.com/apache/carbondata/pull/2822#discussion_r226994945
 
    --- Diff: core/src/main/java/org/apache/carbondata/core/constants/CarbonV3DataFormatConstants.java ---
    @@ -63,6 +63,6 @@
       /**
        * number of rows per blocklet column page default value
        */
    -  short NUMBER_OF_ROWS_PER_BLOCKLET_COLUMN_PAGE_DEFAULT = 32000;
    +  short NUMBER_OF_ROWS_PER_BLOCKLET_COLUMN_PAGE_DEFAULT = 10240;
    --- End diff --
   
    are we going to fix page size to 10240??


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

[GitHub] carbondata pull request #2822: [CARBONDATA-3014] Added support for inverted ...

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

    https://github.com/apache/carbondata/pull/2822#discussion_r227000087
 
    --- Diff: core/src/main/java/org/apache/carbondata/core/scan/result/vector/impl/directread/ColumnarVectorWrapperDirectWithDeleteDeltaAndInvertedIndex.java ---
    @@ -0,0 +1,258 @@
    +/*
    + * 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.core.scan.result.vector.impl.directread;
    +
    +import java.math.BigDecimal;
    +import java.util.BitSet;
    +
    +import org.apache.carbondata.core.metadata.datatype.DataType;
    +import org.apache.carbondata.core.metadata.datatype.DataTypes;
    +import org.apache.carbondata.core.metadata.datatype.DecimalType;
    +import org.apache.carbondata.core.scan.result.vector.CarbonColumnVector;
    +import org.apache.carbondata.core.scan.result.vector.impl.CarbonColumnVectorImpl;
    +
    +/**
    + * Column vector for column pages which has delete delta and inverted index, so it uses delta biset
    + * to filter out data and use inverted index before filling to actual vector
    + */
    +class ColumnarVectorWrapperDirectWithDeleteDeltaAndInvertedIndex
    +    extends AbstractCarbonColumnarVector implements ConvertableVector {
    +
    +  private BitSet deletedRows;
    +
    +  private int[] invertedIndex;
    +
    +  private CarbonColumnVectorImpl carbonColumnVector;
    +
    +  private CarbonColumnVector columnVector;
    +
    +  private int precision;
    +
    +  private BitSet nullBits;
    +
    +  private boolean isnullBitsExists;
    +
    +  public ColumnarVectorWrapperDirectWithDeleteDeltaAndInvertedIndex(
    +      CarbonColumnVector vectorWrapper, BitSet deletedRows, int[] invertedIndex, BitSet nullBits,
    +      boolean isnullBitsExists) {
    +    this.deletedRows = deletedRows;
    +    this.invertedIndex = invertedIndex;
    +    carbonColumnVector = new CarbonColumnVectorImpl(invertedIndex.length, vectorWrapper.getType());
    --- End diff --
   
    If feasible try to merge this code with class `ColumnarVectorWrapperDirectWithInvertedIndex`. Either one can be extended from another or a flag can be used to distinguish. I think it is better to extend, that will keep the code clean


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

[GitHub] carbondata pull request #2822: [CARBONDATA-3014] Added support for inverted ...

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/2822#discussion_r227237844
 
    --- Diff: core/src/main/java/org/apache/carbondata/core/scan/result/vector/impl/directread/ColumnarVectorWrapperDirectWithDeleteDeltaAndInvertedIndex.java ---
    @@ -0,0 +1,258 @@
    +/*
    + * 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.core.scan.result.vector.impl.directread;
    +
    +import java.math.BigDecimal;
    +import java.util.BitSet;
    +
    +import org.apache.carbondata.core.metadata.datatype.DataType;
    +import org.apache.carbondata.core.metadata.datatype.DataTypes;
    +import org.apache.carbondata.core.metadata.datatype.DecimalType;
    +import org.apache.carbondata.core.scan.result.vector.CarbonColumnVector;
    +import org.apache.carbondata.core.scan.result.vector.impl.CarbonColumnVectorImpl;
    +
    +/**
    + * Column vector for column pages which has delete delta and inverted index, so it uses delta biset
    + * to filter out data and use inverted index before filling to actual vector
    + */
    +class ColumnarVectorWrapperDirectWithDeleteDeltaAndInvertedIndex
    +    extends AbstractCarbonColumnarVector implements ConvertableVector {
    +
    +  private BitSet deletedRows;
    +
    +  private int[] invertedIndex;
    +
    +  private CarbonColumnVectorImpl carbonColumnVector;
    +
    +  private CarbonColumnVector columnVector;
    +
    +  private int precision;
    +
    +  private BitSet nullBits;
    +
    +  private boolean isnullBitsExists;
    +
    +  public ColumnarVectorWrapperDirectWithDeleteDeltaAndInvertedIndex(
    +      CarbonColumnVector vectorWrapper, BitSet deletedRows, int[] invertedIndex, BitSet nullBits,
    +      boolean isnullBitsExists) {
    +    this.deletedRows = deletedRows;
    +    this.invertedIndex = invertedIndex;
    +    carbonColumnVector = new CarbonColumnVectorImpl(invertedIndex.length, vectorWrapper.getType());
    +    this.columnVector = vectorWrapper;
    +    this.nullBits = nullBits;
    +    this.isnullBitsExists = isnullBitsExists;
    +  }
    +
    +  @Override
    +  public void putBoolean(int rowId, boolean value) {
    +    carbonColumnVector.putBoolean(invertedIndex[rowId], value);
    +  }
    +
    +  @Override
    +  public void putFloat(int rowId, float value) {
    +    carbonColumnVector.putFloat(invertedIndex[rowId], value);
    +  }
    +
    +  @Override
    +  public void putShort(int rowId, short value) {
    +    carbonColumnVector.putShort(invertedIndex[rowId], value);
    +  }
    +
    +  @Override
    +  public void putInt(int rowId, int value) {
    +    carbonColumnVector.putInt(invertedIndex[rowId], value);
    +  }
    +
    +  @Override
    +  public void putLong(int rowId, long value) {
    +    carbonColumnVector.putLong(invertedIndex[rowId], value);
    +  }
    +
    +  @Override
    +  public void putDecimal(int rowId, BigDecimal value, int precision) {
    +    this.precision = precision;
    +    carbonColumnVector.putDecimal(invertedIndex[rowId], value, precision);
    +  }
    +
    +  @Override
    +  public void putDouble(int rowId, double value) {
    +    carbonColumnVector.putDouble(invertedIndex[rowId], value);
    +  }
    +
    +  @Override
    +  public void putByteArray(int rowId, byte[] value) {
    +    carbonColumnVector.putByteArray(invertedIndex[rowId], value);
    +  }
    +
    +  @Override
    +  public void putByteArray(int rowId, int offset, int length, byte[] value) {
    +    carbonColumnVector.putByteArray(invertedIndex[rowId], offset, length, value);
    +  }
    +
    +  @Override
    +  public void putByte(int rowId, byte value) {
    +    carbonColumnVector.putByte(invertedIndex[rowId], value);
    +  }
    +
    +  @Override
    +  public void putNull(int rowId) {
    +    if (isnullBitsExists) {
    +      nullBits.set(rowId);
    +    } else {
    +      nullBits.set(invertedIndex[rowId]);
    --- End diff --
   
    No, there is no differentiation between measure and dimension at this level.  we are having nullbitset even for dimensions also.  But some dimension columns still don't have nullbitset. So if null bitset does not exist then it should not inverted index while setting the null. Same will be updated in the comment.


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

[GitHub] carbondata pull request #2822: [CARBONDATA-3014] Added support for inverted ...

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/2822#discussion_r227241652
 
    --- Diff: core/src/main/java/org/apache/carbondata/core/constants/CarbonV3DataFormatConstants.java ---
    @@ -63,6 +63,6 @@
       /**
        * number of rows per blocklet column page default value
        */
    -  short NUMBER_OF_ROWS_PER_BLOCKLET_COLUMN_PAGE_DEFAULT = 32000;
    +  short NUMBER_OF_ROWS_PER_BLOCKLET_COLUMN_PAGE_DEFAULT = 10240;
    --- End diff --
   
    no, just for testing, going to be removed


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

[GitHub] carbondata pull request #2822: [CARBONDATA-3014] Added support for inverted ...

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/2822#discussion_r227242022
 
    --- Diff: core/src/main/java/org/apache/carbondata/core/scan/result/vector/impl/directread/ColumnarVectorWrapperDirectWithDeleteDeltaAndInvertedIndex.java ---
    @@ -0,0 +1,258 @@
    +/*
    + * 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.core.scan.result.vector.impl.directread;
    +
    +import java.math.BigDecimal;
    +import java.util.BitSet;
    +
    +import org.apache.carbondata.core.metadata.datatype.DataType;
    +import org.apache.carbondata.core.metadata.datatype.DataTypes;
    +import org.apache.carbondata.core.metadata.datatype.DecimalType;
    +import org.apache.carbondata.core.scan.result.vector.CarbonColumnVector;
    +import org.apache.carbondata.core.scan.result.vector.impl.CarbonColumnVectorImpl;
    +
    +/**
    + * Column vector for column pages which has delete delta and inverted index, so it uses delta biset
    + * to filter out data and use inverted index before filling to actual vector
    + */
    +class ColumnarVectorWrapperDirectWithDeleteDeltaAndInvertedIndex
    +    extends AbstractCarbonColumnarVector implements ConvertableVector {
    +
    +  private BitSet deletedRows;
    +
    +  private int[] invertedIndex;
    +
    +  private CarbonColumnVectorImpl carbonColumnVector;
    +
    +  private CarbonColumnVector columnVector;
    +
    +  private int precision;
    +
    +  private BitSet nullBits;
    +
    +  private boolean isnullBitsExists;
    +
    +  public ColumnarVectorWrapperDirectWithDeleteDeltaAndInvertedIndex(
    +      CarbonColumnVector vectorWrapper, BitSet deletedRows, int[] invertedIndex, BitSet nullBits,
    +      boolean isnullBitsExists) {
    +    this.deletedRows = deletedRows;
    +    this.invertedIndex = invertedIndex;
    +    carbonColumnVector = new CarbonColumnVectorImpl(invertedIndex.length, vectorWrapper.getType());
    --- End diff --
   
    Refactored, now extended with `ColumnarVectorWrapperDirectWithInvertedIndex` and removed duplicates


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

[GitHub] carbondata issue #2822: [CARBONDATA-3014] Added support for inverted index a...

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

    https://github.com/apache/carbondata/pull/2822
 
    Build Failed with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/1161/



---
1234