github-actions[bot] commented on code in PR #62439:
URL: https://github.com/apache/doris/pull/62439#discussion_r3090659005


##########
fe/fe-core/src/main/java/org/apache/doris/datasource/hive/HiveExternalMetaCache.java:
##########
@@ -403,9 +403,16 @@ private FileCacheValue getFileCache(HMSExternalCatalog 
catalog,
         try {
             RemoteIterator<FileEntry> iterator = directoryLister.listFiles(fs, 
isRecursiveDirectories,
                     table, path.getNormalizedLocation());
+            boolean isLzoInputFormat = HiveUtil.isLzoInputFormat(inputFormat);

Review Comment:
   This makes the cached `FileCacheValue` input-format-dependent, but 
`FileCacheKey` for non-dummy partitions still ignores `inputFormat` in 
`equals()` / `hashCode()`. `HiveScanNode` always goes through 
`getFilesByPartitions(..., withCache = true, ...)`, so two partitioned Hive 
tables in the same catalog that point at the same partition directory can now 
reuse the wrong cached listing depending on access order. A concrete case is 
one table declared as `TextInputFormat` and another declared as 
`LzoTextInputFormat` over the same partition path: if the text table populates 
the cache first, the LZO table reuses a splittable, unfiltered entry and can 
scan `.lzo.index` sidecars or split `.lzo` data incorrectly; if the LZO table 
wins first, the text table can inherit the filtered file set. Before this patch 
the cached value was effectively format-agnostic, but with the new LZO-specific 
behavior `inputFormat` needs to become part of the file-cache identity (or this 
path needs to bypass the s
 hared cache when file selection depends on format).



-- 
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]

Reply via email to