You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+----------+|L_ORDERKEY|+----------+|499683||499683||499684||499684||499684||499684||499685||499685||499685||499685||499686||499686||499686||499686||499686||499687||499687||499687||499712||499713|+----------+
only showing top 20 rows
Plan:
spark.sql("select L_ORDERKEY from lineitem where L_ORDERKEY < 10000000 order by l_orderkey").explain
==PhysicalPlan==*Sort [l_orderkey#18LASCNULLSFIRST], true, 0+-Exchange rangepartitioning(l_orderkey#18LASCNULLSFIRST, 200)
+-TiDBCoprocessorRDD{[table: lineitem] [Index: primary] , Ranges:Start:[1], End: [1], Columns: [L_ORDERKEY], Filter:UnaryNot(IntIsNull([L_ORDERKEY]))}
Seems rowIterator cannot retrieve all the result from completionService since rowIterator = completionService.take().get(); may not execute when data in first not null iterator ended.
The text was updated successfully, but these errors were encountered:
overridedefhasNext:Boolean= {
defproceedNextBatchTask():Boolean= {
// For each batch fetch job, we get the first rowIterator with row datawhile (batchCount >0) {
rowIterator = completionService.take().get()
batchCount -=1// If current rowIterator has any data, return trueif (rowIterator.hasNext) {
returntrue
}
}
// No rowIterator in any remaining batch fetch jobs contains data, return falsefalse
}
// RowIter has not been initializedif (rowIterator ==null) {
proceedNextBatchTask()
} else {
if (rowIterator.hasNext) {
returntrue
}
proceedNextBatchTask()
}
}
Sun Dec 17 03:15:50 2017
Originally opened as pingcap/tikv-client-lib-java#201
Seems there's some issue in
IndexScanIterator.java
.The below sql
should print result as
But we got this:
Plan:
Code in
IndexScanIterator.java
Seems
rowIterator
cannot retrieve all the result fromcompletionService
sincerowIterator = completionService.take().get();
may not execute when data in first not null iterator ended.The text was updated successfully, but these errors were encountered: