Files
doris/regression-test/data/insert_p0/txn_insert.out
Mingyu Chen 7b4c2cabb4 [feature](new-scan) support transactional insert in new scan framework (#13858)
Support running transactional insert operation with new scan framework. eg:

admin set frontend config("enable_new_load_scan_node" = "true");
begin;
insert into tbl1 values(1,2);
insert into tbl1 values(3,4);
insert into tbl1 values(5,6);
commit;
Add some limitation to transactional insert

Do not support non-literal value in insert stmt
Fix some issue about array type:

Forbid cast other non-array type to NESTED array type, it may cause BE crash.
Add getStringValueForArray() method for Expr, to get valid string-formatted array type value.
Add useLocalSessionState=true in regression-test jdbc url
without this config, the jdbc driver will send some init cmd each time it connect to server, such as
select @@session.tx_read_only.
But when we use transactional insert, after begin command, Doris do not support any other type of
stmt except for insert, commit or rollback.
So adding this config to let the jdbc NOT send cmd when connecting.
2022-11-03 08:36:07 +08:00

30 lines
559 B
Plaintext

-- This file is automatically generated. You should know what you did if you want to edit this
-- !select1 --
\N \N \N [NULL] [NULL, 0]
1 2.2 abc [] []
2 3.3 xyz [1] [1, 0]
-- !select2 --
\N \N \N [NULL] [NULL, 0]
1 2.2 abc [] []
2 3.3 xyz [1] [1, 0]
-- !select3 --
\N \N \N [NULL] [NULL, 0]
1 2.2 abc [] []
1 2.2 abc [] []
1 2.2 abc [] []
2 3.3 xyz [1] [1, 0]
2 3.3 xyz [1] [1, 0]
2 3.3 xyz [1] [1, 0]
-- !select4 --
\N \N \N [NULL] [NULL, 0]
1 2.2 abc [] []
1 2.2 abc [] []
1 2.2 abc [] []
2 3.3 xyz [1] [1, 0]
2 3.3 xyz [1] [1, 0]
2 3.3 xyz [1] [1, 0]