Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Commit

Permalink
fix datasource unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
  • Loading branch information
zhouyuan committed Dec 1, 2021
1 parent dde79aa commit 3917c4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class ArrowDataSourceTest extends QueryTest with SharedSparkSession {

override protected def sparkConf: SparkConf = {
val conf = super.sparkConf
conf.set("spark.memory.offHeap.size", String.valueOf(10 * 1024 * 1024))
conf.set("spark.memory.offHeap.size", String.valueOf(100 * 1024 * 1024))
conf.set("spark.unsafe.exceptionOnMemoryLeak", "false")
conf.set(SPARK_SESSION_EXTENSIONS.key, classOf[ArrowWriteExtension].getCanonicalName)
conf
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ case class ColumnarLocalLimitExec(limit: Int, child: SparkPlan) extends LimitExe
var rowCount = 0
override def hasNext: Boolean = {
val hasNext = iter.hasNext
hasNext && (rowCount <= limit)
hasNext && (rowCount < limit)
}

override def next(): ColumnarBatch = {
Expand Down Expand Up @@ -417,7 +417,7 @@ case class ColumnarGlobalLimitExec(limit: Int, child: SparkPlan) extends LimitEx
var rowCount = 0
override def hasNext: Boolean = {
val hasNext = iter.hasNext
hasNext && (rowCount <= limit)
hasNext && (rowCount < limit)
}

override def next(): ColumnarBatch = {
Expand Down

0 comments on commit 3917c4f

Please sign in to comment.