Dmitriy Fingerman created HIVE-28942:
----------------------------------------
Summary: Fix 'highest writeId' field in 'show compactions' command
Key: HIVE-28942
URL: https://issues.apache.org/jira/browse/HIVE-28942
Project: Hive
Issue Type: Improvement
Components: Hive
Reporter: Dmitriy Fingerman
Assignee: Dmitriy Fingerman
{{In the *SHOW COMPACTIONS*}} command, after executing compaction, the
*{{Highest WriteId}}* field is shown as "---" (null).
It is a bug in *{{{}ShowCompactHandler#extractData{}}}:*
it sets *{{highestTxnId}}* instead of
{*}{{highestWriteId}}{*}{{{}:{}}}{{{}{}}}{*}{{}}{*}
[hive/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/jdbc/queries/ShowCompactHandler.java|https://github.com/apache/hive/blob/208488089df71e8a0dafd95b2812e5e4864baed9/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/jdbc/queries/ShowCompactHandler.java#L174]
Line 174 in
[2084880|https://github.com/apache/hive/commit/208488089df71e8a0dafd95b2812e5e4864baed9]
||e.setHightestTxnId(rs.getLong(22));|
*{{highestWriteId}}* remains unset in *{{ShowCompactResponse}}* and is shown as
"---" in the *{{SHOW COMPACTIONS}}* output.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)