We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18f1510 commit d8bd4b2Copy full SHA for d8bd4b2
gluten-substrait/src/main/scala/org/apache/hadoop/fs/viewfs/ViewFileSystemUtils.scala
@@ -31,10 +31,7 @@ object ViewFileSystemUtils {
31
val path = new Path(f)
32
FileSystem.get(path.toUri, hadoopConfig) match {
33
case vfs: ViewFileSystem =>
34
- val fsStateField = vfs.getClass.getDeclaredField("fsState")
35
- fsStateField.setAccessible(true)
36
- val fsState = fsStateField.get(vfs).asInstanceOf[InodeTree[FileSystem]]
37
- val res = fsState.resolve(f, true)
+ val res = vfs.fsState.resolve(f, true)
38
if (res.isInternalDir) {
39
f
40
} else {
0 commit comments