Skip to content

Commit

Permalink
temp table uses fuse engine if cluster mode
Browse files Browse the repository at this point in the history
  • Loading branch information
xudong963 committed Nov 27, 2024
1 parent d8ec530 commit 9df1f02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/query/sql/src/planner/binder/bind_query/bind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@ impl Binder {
}

fn m_cte_to_temp_table(&self, cte: &CTE) -> Result<()> {
let engine = if self.ctx.get_settings().get_persist_materialized_cte()? {
let engine = if self.ctx.get_settings().get_persist_materialized_cte()?
|| !self.ctx.get_cluster().is_empty()
{
Engine::Fuse
} else {
Engine::Memory
Expand Down

0 comments on commit 9df1f02

Please sign in to comment.