```[sql] insert into starrocks_native_table select...
# questions-and-troubleshooting
u
Copy code
[sql]
insert into starrocks_native_table
select *
from hive_external_catalog.dbname.tablename
where a= '~~~'
The above query works without any issues in version 3.4.2. It inserts about 3 million rows at a time. It worked without any issues before. However, after upgrading to version 3.5.6, the query seems to be stuck. Is this a version difference?
Should I consider downgrading to version 3.4.5?
Copy code
show transaction from db_name where id = 178940868
If you look at it this way, the status is always in the prepare state. I think the query is stuck
Is it because the logic for collecting statistical information and estimating cardinality for external data sources such as \*\*Delta Lake changed when upgrading from StarRocks 3.4.2 to 3.5.6?
Copy code
[asis]
    0:DeltaLakeScanNode
     TABLE: integrated_mert_fee_view
"     PARTITION PREDICATES: 39: partkey_day >= '2022-05-01', 39: partkey_day <= '2022-05-30'"
     cardinality=250000000
     avgRowSize=8.0

    
[tobe]    
    0:DeltaLakeScanNode
     TABLE: integrated_mert_fee_view
"     PARTITION PREDICATES: 39: partkey_day >= '2022-05-01', 39: partkey_day <= '2022-05-30'"
"     NON-PARTITION PREDICATES: 5: settlement_date >= '2022-05-01', 5: settlement_date <= '2022-05-30'"
"     MIN/MAX PREDICATES: 5: settlement_date >= '2022-05-01', 5: settlement_date <= '2022-05-30'"
     cardinality=62500000
     avgRowSize=8.0
The above is a query explain . I changed the hive query from asis to tobe, but there were cases where it failed.
r
For the insert query that's failing, do you have the profile? If so can you share it?