You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "yohengyang (via GitHub)" <gi...@apache.org> on 2024/03/28 06:16:20 UTC
[I] [Bug] org.apache.paimon.trino.fileio.TrinoFileIO#listStatus recursive list path when use hdfs [paimon-trino]
yohengyang opened a new issue, #61:
URL: https://github.com/apache/paimon-trino/issues/61
this issuse https://github.com/apache/paimon-trino/pull/54,
I understand the semantics of the `org.apache.paimon.trino.fileio.TrinoFileIO#listStatus `method to be listing the first-level directories and files under the current path.
https://github.com/apache/paimon-trino/blob/86e972d58c5cf6c8edef36bdcfb6ea38540df507/paimon-trino-common/src/main/java/org/apache/paimon/trino/fileio/TrinoFileIO.java#L90-L110
However, when using HDFS, the implementation of `trinoFileSystem.listFiles` recursively traverses subdirectories, which can lead to unnecessary data scanning.
https://github.com/trinodb/trino/blob/a9c5719705614b3849f2e1a22b2a545da125bd32/lib/trino-hdfs/src/main/java/io/trino/filesystem/hdfs/HdfsFileSystem.java#L236
https://github.com/trinodb/trino/blob/a9c5719705614b3849f2e1a22b2a545da125bd32/lib/trino-hdfs/src/main/java/io/trino/filesystem/hdfs/HdfsFileSystem.java#L228-L246
A possible solution is to add a parameter to the `trinoFileSystem.listFiles` method to control the scanning depth or add an option to switch recursive/non-recursive modes.
--
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: issues-unsubscribe@paimon.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] org.apache.paimon.trino.fileio.TrinoFileIO#listStatus recursive list path when use hdfs [paimon-trino]
Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi commented on issue #61:
URL: https://github.com/apache/paimon-trino/issues/61#issuecomment-2051403384
@yohengyang Thanks for reporting this issue!
We will fix this in paimon side: https://github.com/apache/paimon/pull/3205
And implement this method in paimon-trino.
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] org.apache.paimon.trino.fileio.TrinoFileIO#listStatus recursive list path when use hdfs [paimon-trino]
Posted by "leaves12138 (via GitHub)" <gi...@apache.org>.
leaves12138 commented on issue #61:
URL: https://github.com/apache/paimon-trino/issues/61#issuecomment-2051529582
@yohengyang This pull request may resolve this question: https://github.com/apache/paimon-trino/pull/66
If you have any other issues long time no replied, you can contact me by DINGDING "1ec-yosuk4tft1"
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] org.apache.paimon.trino.fileio.TrinoFileIO#listStatus recursive list path when use hdfs [paimon-trino]
Posted by "yohengyang (via GitHub)" <gi...@apache.org>.
yohengyang commented on issue #61:
URL: https://github.com/apache/paimon-trino/issues/61#issuecomment-2024482891
@leaves12138 @JingsongLi Could you please help look into this issue
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] org.apache.paimon.trino.fileio.TrinoFileIO#listStatus recursive list path when use hdfs [paimon-trino]
Posted by "leaves12138 (via GitHub)" <gi...@apache.org>.
leaves12138 closed issue #61: [Bug] org.apache.paimon.trino.fileio.TrinoFileIO#listStatus recursive list path when use hdfs
URL: https://github.com/apache/paimon-trino/issues/61
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org