PHILO-HE commented on code in PR #6672:
URL: https://github.com/apache/incubator-gluten/pull/6672#discussion_r1708804656
##########
backends-velox/src/test/scala/org/apache/gluten/execution/FallbackSuite.scala:
##########
@@ -263,4 +264,31 @@ class FallbackSuite extends
VeloxWholeStageTransformerSuite with AdaptiveSparkPl
}
}
}
+
+ test("fallback reader with unsupported filesystem") {
+ withTempPath {
+ path =>
+ withSQLConf(GlutenConfig.NATIVE_WRITER_ENABLED.key -> "false") {
+ spark
+ .range(100)
+ .selectExpr("cast(id % 9 as int) as c1")
+ .write
+ .format("parquet")
+ .save(path.getCanonicalPath)
+ runQueryAndCompare(s"SELECT count(*) FROM
`parquet`.`${path.getCanonicalPath}`") {
+ df =>
+ val plan = df.queryExecution.executedPlan
+ val fileScan = collect(plan) { case s:
FileSourceScanExecTransformer => s }
+ assert(fileScan.size == 1)
+ val rootPaths = fileScan(0).getRootPathsInternal
+ assert(rootPaths.length == 1)
+ assert(rootPaths(0).startsWith("file:/"))
Review Comment:
@zhli1142015, OK, let's keep it unchanged.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]