github-actions[bot] commented on code in PR #62439:
URL: https://github.com/apache/doris/pull/62439#discussion_r3089861626
##########
fe/fe-core/src/main/java/org/apache/doris/datasource/hive/HiveUtil.java:
##########
@@ -111,7 +111,12 @@ private HiveUtil() {
public static boolean isSplittable(FileSystem remoteFileSystem, String
inputFormat,
String location) throws UserException {
- // All supported hive input format are splittable
+ // LZO files are not splittable (unless .lzo.index exists, but Doris
does not support indexed split).
+ // Use contains("lzo") to cover LzoTextInputFormat,
DeprecatedLzoTextInputFormat, and future variants.
+ if (inputFormat.toLowerCase().contains("lzo")) {
Review Comment:
Supporting these input formats still is not enough for normal indexed LZO
tables. `HiveExternalMetaCache#getFileCache()` lists every visible file under
the partition location, while both Hive LZO input-format implementations filter
`listStatus()` down to the actual `*.lzo` data files and keep `*.lzo.index`
sidecars out of the scan set. After this whitelist lands, a directory
containing `part-0000.lzo` plus the usual `part-0000.lzo.index` will make Doris
try to scan the index file as `FORMAT_TEXT` with plain compression, which is
incorrect. We need to apply the same file filtering semantics here (at least
exclude `.lzo.index` and other non-`.lzo` files for these input formats) before
claiming support.
--
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]