infvg commented on code in PR #11373:
URL: 
https://github.com/apache/incubator-gluten/pull/11373#discussion_r2695384138


##########
tools/gluten-it/common/src/main/scala/org/apache/gluten/integration/QueryRunner.scala:
##########
@@ -63,6 +65,13 @@ class QueryRunner(val source: String, val dataPath: String) {
         Failure(query.id, e)
     }
   }
+
+  private def fileExists(datapath: String): Boolean = {
+    if (datapath.startsWith("hdfs:")) {
+      val uri = URI.create(datapath)
+      FileSystem.get(uri, new Configuration()).exists(new Path(uri.getPath))
+    } else new File(datapath).exists()

Review Comment:
   I can look for a better way to do this, especially since eventually we are 
gonna add S3 too 



-- 
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]

Reply via email to