Daniel Vanko has posted comments on this change. ( http://gerrit.cloudera.org:8080/24636 )
Change subject: IMPALA-8523: Migrate hdfsOpen to builder-based openFile API ...................................................................... Patch Set 10: (3 comments) http://gerrit.cloudera.org:8080/#/c/24636/9/be/src/runtime/io/hdfs-monitored-ops.cc File be/src/runtime/io/hdfs-monitored-ops.cc: http://gerrit.cloudera.org:8080/#/c/24636/9/be/src/runtime/io/hdfs-monitored-ops.cc@92 PS9, Line 92: understand ar > typo Done http://gerrit.cloudera.org:8080/#/c/24636/9/be/src/util/open-file-options-util-test.cc File be/src/util/open-file-options-util-test.cc: http://gerrit.cloudera.org:8080/#/c/24636/9/be/src/util/open-file-options-util-test.cc@103 PS9, Line 103: > Is it intended to use TEXT here? Done http://gerrit.cloudera.org:8080/#/c/24636/9/be/src/util/open-file-options-util.cc File be/src/util/open-file-options-util.cc: http://gerrit.cloudera.org:8080/#/c/24636/9/be/src/util/open-file-options-util.cc@55 PS9, Line 55: io::OpenFileOptions BuildOpenFileOptions(const char* path, int64_t file_length) { : io::OpenFileOptions options; : // The read policy only affects S3A; other filesystems ignore it, but there is : // no reason to pay the string copy for them. : if (path != nullptr && IsS3APath(path)) { : options.emplace_back(FS_OPTION_OPENFILE_READ_POLICY, RANDOM_READ_POLICY); : } : // Passing the known length lets S3A skip the HEAD request on open. Harmless on : // other filesystems. Guard against a stale/zero length truncating reads. : if (file_length > 0) { : options.emplace_back(FS_OPTION_OPENFILE_LENGTH, std::to_string(file_length)); : } : return options; : } : : } : > This is only used by backend tests. Now that all formats return RANDOM, thi Removed and also simplified BuildOpenFileOptions, so it doesn't need the format anymore. -- To view, visit http://gerrit.cloudera.org:8080/24636 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I46d810b19fe7d4859e3c2bcd7568b61fe73408c1 Gerrit-Change-Number: 24636 Gerrit-PatchSet: 10 Gerrit-Owner: Daniel Vanko <[email protected]> Gerrit-Reviewer: Daniel Vanko <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]> Gerrit-Comment-Date: Thu, 29 Oct 2026 14:37:55 +0000 Gerrit-HasComments: Yes
