Uh oh!
There was an error while loading. Please reload this page.
[feature](hive)Support read hive4 transaction tables. - #44001
Conversation
doris-robot
commented
Nov 15, 2024
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
clang-tidy review says "All clean, LGTM! 👍" |
7669f81 to
2dec82fCompare| //Since the hive3 library cannot read the hive4 transaction table normally, and there are many problems | ||
| // when using the Hive 4 library directly, this method is implemented. | ||
| //Ref: hive/ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java#getAcidState | ||
| public static FileCacheValue getAcidState(RemoteFileSystem fileSystem, HivePartition partition, |
aacbf79 to
2a523cfCompareclang-tidy review says "All clean, LGTM! 👍" |
1 similar comment
clang-tidy review says "All clean, LGTM! 👍" |
hubgeter
commented
Dec 16, 2024
run buildall |
1 similar comment
hubgeter
commented
Dec 16, 2024
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
doris-robot
commented
Dec 16, 2024
TeamCity be ut coverage result: |
| } else { | ||
| throw new RuntimeException(status.getErrMsg()); | ||
| } | ||
| fileCacheValues.add(AcidUtil.getAcidState( |
| } catch (Exception e) { | ||
| // Release shared load (getValidWriteIds acquire Lock). | ||
| // If no exception is throw, the lock will be released when `finalizeQuery()`. | ||
| Env.getCurrentHiveTransactionMgr().deregister(hiveTransaction.getQueryId()); |
There was a problem hiding this comment.
It is not a good design to deregister transaction here.
Looks like it is very error prone
hubgeter
commented
Dec 19, 2024
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
doris-robot
commented
Dec 19, 2024
TeamCity be ut coverage result: |
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
hubgeter
commented
Dec 20, 2024
run buildall |
doris-robot
commented
Dec 20, 2024
TeamCity be ut coverage result: |
doris-robot
commented
Dec 20, 2024
TPC-H: Total hot run time: 39528 ms |
doris-robot
commented
Dec 20, 2024
TPC-DS: Total hot run time: 196848 ms |
doris-robot
commented
Dec 26, 2024
TPC-H: Total hot run time: 32510 ms |
doris-robot
commented
Dec 26, 2024
TPC-DS: Total hot run time: 197590 ms |
doris-robot
commented
Dec 26, 2024
ClickBench: Total hot run time: 31.52 s |
453bd6a to
dbf1765Comparemorningman
commented
Dec 30, 2024
run buildall |
doris-robot
commented
Dec 30, 2024
TPC-H: Total hot run time: 32289 ms |
doris-robot
commented
Dec 30, 2024
TeamCity be ut coverage result: |
doris-robot
commented
Dec 30, 2024
TPC-DS: Total hot run time: 197273 ms |
doris-robot
commented
Dec 30, 2024
ClickBench: Total hot run time: 31.11 s |
PR approved by at least one committer and no changes requested. |
bp apache#44001 , but no hive4 acid table. Problem Summary: 1. Fixed the issue that when reading insert translaction only tables, there was no acid check, which caused multiple data reads (i.e., reading data from the previous base_n). 2. Forbidden to create, insert data, and delete aicd tables.
bp apache#44001 , but no hive4 acid table. Problem Summary: 1. Fixed the issue that when reading insert translaction only tables, there was no acid check, which caused multiple data reads (i.e., reading data from the previous base_n). 2. Forbidden to create, insert data, and delete aicd tables.
Problem Summary: Support read hive4 transaction tables. 1. Since there are compilation problems when directly using hive4 API to get the file need to read, a function called `ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java#getAcidState` is implemented. 2. At the same time, it is forbidden to create, insert data, and delete aicd tables. 3. fix `'transactional_properties' = 'insert_only'` table read Incorrect data read. TODO : merge HMSTransaction ,HiveTransaction class merge HiveTransactionMgr, HiveTransactionManager class [feature](hive)Support read hive4 transaction tables
What problem does this PR solve?
Problem Summary:
Support read hive4 transaction tables.
Since there are compilation problems when directly using hive4 API to get the file need to read, a function called
ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java#getAcidStateis implemented.At the same time, it is forbidden to create, insert data, and delete aicd tables.
fix
'transactional_properties' = 'insert_only'table read Incorrect data read.TODO : mege HMSTransaction ,HiveTransaction class
mege HiveTransactionMgr, HiveTransactionManager class
Release note
Support read hive4 transaction tables.
Fixed the problem that the result of reading insert only transaction table in Hive catalog is incorrect.
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)