Irvin Tang
09/19/2025, 8:38 PMCREATE MATERIALIZED VIEW `big_commerce_placed_order_mv` (`activity_time`, `actor_id`, `owner_id`, `activity_id`, `activity_stream_type_id`, `order_id`, `currency`, `discount`, `products`)
COMMENT "MATERIALIZED_VIEW"
DISTRIBUTED BY HASH(`owner_id`, `activity_id`)
ORDER BY (owner_id,activity_time)
REFRESH MANUAL
PROPERTIES (
"replicated_storage" = "true",
"replication_num" = "1",
"query_rewrite_consistency" = "LOOSE",
"session.insert_timeout" = "60000",
"session.enable_lake_tablet_internal_parallel" = "true",
"session.use_compute_nodes" = "8",
"datacache.enable" = "true",
"enable_async_write_back" = "false",
"storage_volume" = "s3_express_volume",
"warehouse" = "default_warehouse"
) AS
< query here>
Then we manually refresh the MV using REFRESH MATERIALIZED VIEW big_commerce_placed_order_mv;. I got the task_name for the MV creation through:
select * from information_schema.tasks order by create_time desc limit 5\G;
and then viewing the task runs:
select * from information_schema.task_runs where task_name='mv-3796659' order by create_time\G;
We're seeing a failed state for the refresh tasks with the error message being Fe abort the task. However, when we select count(*) from big_commerce_placed_order_mv; the row count we get matches the row count when we query directly from the Iceberg table.
Looking at the frontend logs didn't seem to yield much information either. We're wondering if there's anywhere else we should look to see why the state is failed rather than succeeded. Is this an erroneous end state? Because it seems the task succeeded even though it says failed.
Thanks!Robert Raharjo
09/19/2025, 10:36 PMJeff Yang
09/20/2025, 2:06 PMIrvin Tang
09/22/2025, 2:32 PMselect * from information_schema.task_runs where task_name='mv-3796659' order by create_time\G;
returns two task runs, one of which is the refresh task and the other is the MV creation. So MV creation spawns a task to load the data the first time, but that task also seems to indicate a failure.
We're planning on upgrading to 4.0 but there are some bugs that a teammate opened an issue for that needs to be fixed before we can