Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Take two simple csv files:
ID,Name,Lastname
9711942,name0,last0
9707867,name1,last1
ID,Case Number
9711942,HX362083
9707867,HX357851
Making a simple join on them with a star projection:
select * from dfs.`/path/to/t1.csv` t1, dfs.`/path/to/t2.csv` t2 where t1.columns[0] = t2.columns[0];
throws
java.lang.AssertionError: Unexpected project expression or reference.
at org.apache.drill.exec.physical.impl.project.ProjectRecordBatch.classifyExpr(ProjectRecordBatch.java:597)
at org.apache.drill.exec.physical.impl.project.ProjectRecordBatch.setupNewSchema(ProjectRecordBatch.java:260)
at org.apache.drill.exec.record.AbstractSingleRecordBatch.innerNext(AbstractSingleRecordBatch.java:66)
at org.apache.drill.exec.physical.impl.project.ProjectRecordBatch.innerNext(ProjectRecordBatch.java:120)
at org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:95)
at org.apache.drill.exec.physical.impl.validate.IteratorValidatorBatchIterator.next(IteratorValidatorBatchIterator.java:116)
at org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:75)
at org.apache.drill.exec.physical.impl.join.HashJoinBatch.executeBuildPhase(HashJoinBatch.java:307)
at org.apache.drill.exec.physical.impl.join.HashJoinBatch.innerNext(HashJoinBatch.java:196)
at org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:95)
at org.apache.drill.exec.physical.impl.validate.IteratorValidatorBatchIterator.next(IteratorValidatorBatchIterator.java:116)
at org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:75)
at org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:65)
at org.apache.drill.exec.record.AbstractSingleRecordBatch.innerNext(AbstractSingleRecordBatch.java:45)
at org.apache.drill.exec.physical.impl.project.ProjectRecordBatch.innerNext(ProjectRecordBatch.java:120)
at org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:95)
at org.apache.drill.exec.physical.impl.validate.IteratorValidatorBatchIterator.next(IteratorValidatorBatchIterator.java:116)
Attachments
Attachments
Issue Links
- duplicates
-
DRILL-1296 Star query fails with a nested select
- Resolved