mirror of
https://github.com/apache/impala.git
synced 2026-01-27 06:10:53 -05:00
Lists ValidWriteIds for transactional tables in profile.
If a query does not trigger any transactional table loading,
the query profile will not have the "Loaded ValidWriteIdLists"
timeline.
Tests:
Manual tests.
Fixed StmtMetadataLoaderTest.
Added acid_profile test
Sample output:
Query Compilation: 3s525ms
- Metadata load started: 37.369ms (37.369ms)
- Metadata load finished. loaded-tables=1/1 ...
- Loaded ValidWriteIdLists for transactional tables:
functional.insert_only_transactional_table:0:9223372036854775807::
: 3s312ms (551.463us)
- Analysis finished: 3s370ms (58.110ms)
...
Change-Id: Ifcc31c7ddcfc471b0e5308f7e4aaadfa8189a905
Reviewed-on: http://gerrit.cloudera.org:8080/13736
Reviewed-by: Csaba Ringhofer <csringhofer@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
19 lines
405 B
Plaintext
19 lines
405 B
Plaintext
====
|
|
---- HIVE_QUERY
|
|
use $DATABASE;
|
|
create table tbl_ld (x int) tblproperties (
|
|
'transactional'='true',
|
|
'transactional_properties'='insert_only');
|
|
|
|
insert into tbl_ld values (1);
|
|
====
|
|
---- QUERY
|
|
invalidate metadata tbl_ld;
|
|
select * from tbl_ld
|
|
---- RESULTS
|
|
1
|
|
---- RUNTIME_PROFILE
|
|
# Verify that ValidWriteIdLists is in the profile
|
|
row_regex: .*Loaded ValidWriteIdLists for transactional tables:.*
|
|
====
|