github-actions[bot] commented on code in PR #62439:
URL: https://github.com/apache/doris/pull/62439#discussion_r3090735957
##########
fe/fe-core/src/main/java/org/apache/doris/datasource/hive/HiveExternalMetaCache.java:
##########
@@ -956,6 +967,7 @@ public boolean equals(Object obj) {
}
return catalogId == ((FileCacheKey) obj).catalogId
Review Comment:
`FileCacheKey` now keys on `inputFormat`, but `invalidatePartitionCache()`
still does `new FileCacheKey(..., null, partition.getPartitionValues())`. After
this change, every partition-level refresh path
(`refreshAffectedPartitionsCache()`, `dropPartitionsCache()`,
`invalidatePartitions()`) stops evicting the cached file listing, because the
stored key has a non-null format and the invalidation key does not. The result
is stale file lists and stale `isSplittable` flags after modifying a partition.
This needs the invalidation path to pass through `partition.getInputFormat()`
as well, and it really wants a regression test around partition refresh.`
##########
fe/fe-core/src/main/java/org/apache/doris/datasource/hive/HMSExternalTable.java:
##########
@@ -158,6 +158,13 @@ public class HMSExternalTable extends ExternalTable
implements MTMVRelatedTableI
// So add to SUPPORTED_HIVE_FILE_FORMATS and treat is as a hive table.
// Then Doris will just list the files from location and read parquet
files directly.
SUPPORTED_HIVE_FILE_FORMATS.add("org.apache.hudi.hadoop.HoodieParquetInputFormatBase");
+ // LZO compressed text formats (hadoop-lzo / lzo-hadoop), treat as
text input and use LZOP decompressor.
+ // com.hadoop.compression.lzo.LzoTextInputFormat - twitter hadoop-lzo
(GPL)
+ // com.hadoop.mapreduce.LzoTextInputFormat - lzo-hadoop
mapreduce API (org.anarres)
+ // com.hadoop.mapred.DeprecatedLzoTextInputFormat - lzo-hadoop legacy
mapred API (org.anarres)
+
SUPPORTED_HIVE_FILE_FORMATS.add("com.hadoop.compression.lzo.LzoTextInputFormat");
Review Comment:
Whitelisting these formats also makes the table pass through the existing
Hive `INSERT INTO` path, but the sink side still cannot round-trip them safely.
`HiveTableSink` maps `LzoTextInputFormat` to plain text, `setCompressType()`
falls back to `hive_text_compression` (default `plain`), and
`VHivePartitionWriter::_get_file_extension()` therefore emits files without a
`.lzo` suffix. The new read path only keeps `*.lzo`, so rows written by Doris
become invisible on the next scan. If this PR is intentionally read-only, the
insert path needs to keep rejecting these tables (or the sink path needs full
LZO write 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]