[ 
https://issues.apache.org/jira/browse/DRILL-7325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul Rogers updated DRILL-7325:
-------------------------------
    Description: 
See DRILL-7324. The following are problems found because some operators fail to 
set the record count for their containers.

h4. Scan

TestComplexTypeReader, on cluster setup, using the PojoRecordReader:

ERROR o.a.d.e.p.i.validate.BatchValidator - Found one or more vector errors 
from ScanBatch
ScanBatch: Container record count not set

Reason: ScanBatch never sets the record count of its container (this is a 
generic issue, not specific to the PojoRecordReader).

h4. Filter

{{TestComplexTypeReader.testNonExistentFieldConverting()}}:

{noformat}
ERROR o.a.d.e.p.i.validate.BatchValidator - Found one or more vector errors 
from FilterRecordBatch
FilterRecordBatch: Container record count not set
{noformat}

h4. Hash Join

{{TestComplexTypeReader.test_array()}}:

{noformat}
ERROR o.a.d.e.p.i.validate.BatchValidator - Found one or more vector errors 
from HashJoinBatch
HashJoinBatch: Container record count not set
{noformat}

Occurs on the first batch in which the hash join returns {{OK_NEW_SCHEMA}} with 
no records.

h4. Project

TestCsvWithHeaders.testEmptyFile()}} (when the text reader returned empty, 
schema-only batches):

{noformat}
ERROR o.a.d.e.p.i.validate.BatchValidator - Found one or more vector errors 
from ProjectRecordBatch
ProjectRecordBatch: Container record count not set
{noformat}

Occurs in {{ProjectRecordBatch.handleNullInput()}}: it sets up the schema but 
does not set the value count to 0.

h4. Unordered Receiver

{{TestCsvWithSchema.testMultiFileSchema()}}:

{noformat}
ERROR o.a.d.e.p.i.validate.BatchValidator - Found one or more vector errors 
from UnorderedReceiverBatch
UnorderedReceiverBatch: Container record count not set
{noformat}

The problem is that {{RecordBatchLoader.load()}} does not set the container 
record count.

  was:
See DRILL-7324. The following are problems found because some operators fail to 
set the record count for their containers.

h4. Scan

TestComplexTypeReader, on cluster setup, using the PojoRecordReader:

ERROR o.a.d.e.p.i.validate.BatchValidator - Found one or more vector errors 
from ScanBatch
ScanBatch: Container record count not set

Reason: ScanBatch never sets the record count of its container (this is a 
generic issue, not specific to the PojoRecordReader).

h4. Filter

{{TestComplexTypeReader.testNonExistentFieldConverting()}}:

{noformat}
ERROR o.a.d.e.p.i.validate.BatchValidator - Found one or more vector errors 
from FilterRecordBatch
FilterRecordBatch: Container record count not set
{noformat}

h4. Hash Join

{{TestComplexTypeReader.test_array()}}:

{noformat}
ERROR o.a.d.e.p.i.validate.BatchValidator - Found one or more vector errors 
from HashJoinBatch
HashJoinBatch: Container record count not set
{noformat}

Occurs on the first batch in which the hash join returns {{OK_NEW_SCHEMA}} with 
no records.


> Scan, Project, Hash Join do not set container record count
> ----------------------------------------------------------
>
>                 Key: DRILL-7325
>                 URL: https://issues.apache.org/jira/browse/DRILL-7325
>             Project: Apache Drill
>          Issue Type: Bug
>    Affects Versions: 1.16.0
>            Reporter: Paul Rogers
>            Assignee: Paul Rogers
>            Priority: Major
>             Fix For: 1.17.0
>
>
> See DRILL-7324. The following are problems found because some operators fail 
> to set the record count for their containers.
> h4. Scan
> TestComplexTypeReader, on cluster setup, using the PojoRecordReader:
> ERROR o.a.d.e.p.i.validate.BatchValidator - Found one or more vector errors 
> from ScanBatch
> ScanBatch: Container record count not set
> Reason: ScanBatch never sets the record count of its container (this is a 
> generic issue, not specific to the PojoRecordReader).
> h4. Filter
> {{TestComplexTypeReader.testNonExistentFieldConverting()}}:
> {noformat}
> ERROR o.a.d.e.p.i.validate.BatchValidator - Found one or more vector errors 
> from FilterRecordBatch
> FilterRecordBatch: Container record count not set
> {noformat}
> h4. Hash Join
> {{TestComplexTypeReader.test_array()}}:
> {noformat}
> ERROR o.a.d.e.p.i.validate.BatchValidator - Found one or more vector errors 
> from HashJoinBatch
> HashJoinBatch: Container record count not set
> {noformat}
> Occurs on the first batch in which the hash join returns {{OK_NEW_SCHEMA}} 
> with no records.
> h4. Project
> TestCsvWithHeaders.testEmptyFile()}} (when the text reader returned empty, 
> schema-only batches):
> {noformat}
> ERROR o.a.d.e.p.i.validate.BatchValidator - Found one or more vector errors 
> from ProjectRecordBatch
> ProjectRecordBatch: Container record count not set
> {noformat}
> Occurs in {{ProjectRecordBatch.handleNullInput()}}: it sets up the schema but 
> does not set the value count to 0.
> h4. Unordered Receiver
> {{TestCsvWithSchema.testMultiFileSchema()}}:
> {noformat}
> ERROR o.a.d.e.p.i.validate.BatchValidator - Found one or more vector errors 
> from UnorderedReceiverBatch
> UnorderedReceiverBatch: Container record count not set
> {noformat}
> The problem is that {{RecordBatchLoader.load()}} does not set the container 
> record count.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to