Github user bhavya411 commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/1257#discussion_r134712614
--- Diff:
integration/presto/src/main/java/org/apache/carbondata/presto/CarbondataRecordSet.java
---
@@ -79,30 +81,27 @@ private Expression
parseConstraint2Expression(TupleDomain<ColumnHandle> constrai
@Override public RecordCursor cursor() {
List<TableBlockInfo> tableBlockInfoList = new
ArrayList<TableBlockInfo>();
- tableBlockInfoList.add(new
TableBlockInfo(split.getLocalInputSplit().getPath().toString(),
+ tableBlockInfoList.add(new
TableBlockInfo(split.getLocalInputSplit().getPath(),
split.getLocalInputSplit().getStart(),
split.getLocalInputSplit().getSegmentId(),
split.getLocalInputSplit().getLocations().toArray(new String[0]),
split.getLocalInputSplit().getLength(), new BlockletInfos(),
//blockletInfos,
ColumnarFormatVersion.valueOf(split.getLocalInputSplit().getVersion()), null));
- queryModel.setTableBlockInfos(tableBlockInfoList);
+ queryModel.setTableBlockInfos(tableBlockInfoList);
queryExecutor = QueryExecutorFactory.getQueryExecutor(queryModel);
- try {
+ CarbonProperties.getInstance().addProperty("carbon.detail.batch.size",
--- End diff --
Actually in DataBlockIteratoImpl we are using this property to create the
batches, we are setting this property here to ensure that the batchsize of
Presto and carbondata match so we have better efficiency
---
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 [email protected] or file a JIRA ticket
with INFRA.
---