Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ import org.apache.spark.SparkConf
import org.apache.spark.sql.execution.{ArrowFileSourceScanExec, BaseArrowScanExec, ColumnarToRowExec}
import org.apache.spark.sql.types.{IntegerType, StringType, StructType}

class ArrowCsvScanSuiteV1 extends ArrowCsvScanSuite {
import org.scalatest.Ignore

class ArrowCsvScanSuiteV1 extends ArrowCsvScanSuiteBase {
override protected def sparkConf: SparkConf = {
super.sparkConf
.set("spark.sql.sources.useV1SourceList", "csv")
Expand Down Expand Up @@ -65,8 +67,13 @@ class ArrowCsvScanSuiteV2 extends ArrowCsvScanSuite {
super.sparkConf
.set("spark.sql.sources.useV1SourceList", "")
}

test("csv scan") {
runAndCompare("select * from student")()
}
}

@Ignore
class ArrowCsvScanWithTableCacheSuite extends ArrowCsvScanSuiteBase {
override protected def sparkConf: SparkConf = {
super.sparkConf
Expand All @@ -86,7 +93,9 @@ class ArrowCsvScanWithTableCacheSuite extends ArrowCsvScanSuiteBase {
}

/** Since https://github.com/apache/incubator-gluten/pull/5850. */
@Ignore
abstract class ArrowCsvScanSuite extends ArrowCsvScanSuiteBase {

test("csv scan with option string as null") {
val df = runAndCompare("select * from student_option_str")()
val plan = df.queryExecution.executedPlan
Expand Down Expand Up @@ -140,11 +149,6 @@ abstract class ArrowCsvScanSuite extends ArrowCsvScanSuiteBase {
}
}
}

test("count(1) on csv scan") {
val df = runAndCompare("select count(1) from student")()
checkLengthAndPlan(df, 1)
}
}

abstract class ArrowCsvScanSuiteBase extends VeloxWholeStageTransformerSuite {
Expand Down
Loading