Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
git.commit.id.abbrev=309e1be
If query the same field twice, with different case, Drill will throw memory assertion error.
select employee_id, Employee_id from cp.`employee.json` limit 2;
-------------
employee_id |
-------------
1 |
2 |
Query failed: Query failed: Failure while running fragment., Attempted to close accountor with 2 buffer(s) still allocatedfor QueryId: 2b5cc8eb-2817-aadb-e0fa-49272796592a, MajorFragmentId: 0, MinorFragmentId: 0.
Total 1 allocation(s) of byte size(s): 4096, at stack location:
org.apache.drill.exec.memory.TopLevelAllocator$ChildAllocator.buffer(TopLevelAllocator.java:212)
org.apache.drill.exec.vector.UInt1Vector.allocateNewSafe(UInt1Vector.java:137)
org.apache.drill.exec.vector.NullableBigIntVector.allocateNewSafe(NullableBigIntVector.java:173)
org.apache.drill.exec.physical.impl.project.ProjectRecordBatch.doAlloc(ProjectRecordBatch.java:229)
org.apache.drill.exec.physical.impl.project.ProjectRecordBatch.doWork(ProjectRecordBatch.java:167)
org.apache.drill.exec.record.AbstractSingleRecordBatch.innerNext(AbstractSingleRecordBatch.java:93)
org.apache.drill.exec.physical.impl.project.ProjectRecordBatch.innerNext(ProjectRecordBatch.java:132)
org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:142)
org.apache.drill.exec.physical.impl.validate.IteratorValidatorBatchIterator.next(IteratorValidatorBatchIterator.java:118)
org.apache.drill.exec.physical.impl.BaseRootExec.next(BaseRootExec.java:67)
org.apache.drill.exec.physical.impl.ScreenCreator$ScreenRoot.innerNext(ScreenCreator.java:97)
org.apache.drill.exec.physical.impl.BaseRootExec.next(BaseRootExec.java:57)
org.apache.drill.exec.work.fragment.FragmentExecutor.run(FragmentExecutor.java:114)
org.apache.drill.exec.work.WorkManager$RunnableWrapper.run(WorkManager.java:254)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
java.lang.Thread.run(Thread.java:744)
Also, notice that the query result only contains one field; the second field is missing.
The plan looks fine.
Drill Physical :
00-00 Screen: rowcount = 463.0, cumulative cost =
, id = 103
00-01 Project(employee_id=[$0], Employee_id=[$1]): rowcount = 463.0, cumulative cost =
, id = 102
00-02 SelectionVectorRemover: rowcount = 463.0, cumulative cost =
, id = 101
00-03 Limit(fetch=[2]): rowcount = 463.0, cumulative cost =
, id = 100
00-04 Project(employee_id=[$0], Employee_id=[$0]): rowcount = 463.0, cumulative cost =
, id = 99
00-05 Scan(groupscan=[EasyGroupScan [selectionRoot=/employee.json, numFiles=1, columns=[`employee_id`], files=[/employee.json]]]): rowcount = 463.0, cumulative cost =
, id = 98
Attachments
Issue Links
- depends upon
-
DRILL-2311 Create table with same columns of different case results in a java.lang.IllegalStateException
- Resolved
- duplicates
-
DRILL-2298 Selecting same column multiple times with different case from a parquet file results in just one column returned
- Resolved