Copilot commented on code in PR #12583:
URL: https://github.com/apache/gluten/pull/12583#discussion_r3619327262
##########
cpp-ch/local-engine/Storages/SubstraitSource/ReadBufferBuilder.cpp:
##########
@@ -326,8 +326,9 @@ class HDFSFileReadBufferBuilder : public ReadBufferBuilder
{
if (!file_size.has_value())
{
- // only for spark3.2 file partition not contained file size
- // so first compute file size first
+ // Fallback for callers whose Substrait LocalFilesNode was
built without a
+ // fileSize list (e.g. some Iceberg producers). Compute the
size by opening
+ // the HDFS file first.
Review Comment:
The updated comment says "fileSize list", but the producing side uses a
`fileSizes` list (plural) to decide whether to set `fileProperties.fileSize`
(see `LocalFilesNode.java`). To avoid reintroducing a misleading term, consider
wording this in terms of missing file size information / missing `fileSizes`
input rather than a "fileSize list".
--
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]