Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: xxchan <xxchan22f@gmail.com>
  • Loading branch information
xxchan committed Feb 26, 2025
1 parent e8401a3 commit ee0b289
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/frontend/src/handler/alter_parallelism.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ pub async fn handle_alter_parallelism(
reader.get_source_by_name(db_name, schema_path, &real_table_name)?;

if !source.info.is_shared() {
return Err(ErrorCode::InvalidInputSyntax(format!(
"cannot alter parallelism of non-shared source.\nUse `ALTER MATERIALIZED VIEW SET PARALLELISM` to alter the materialized view using the source instead.",
))
return Err(ErrorCode::InvalidInputSyntax(
"cannot alter parallelism of non-shared source.\nUse `ALTER MATERIALIZED VIEW SET PARALLELISM` to alter the materialized view using the source instead."
.to_owned()
)
.into());
}

Expand Down

0 comments on commit ee0b289

Please sign in to comment.