diff --git a/src/frontend/src/binder/expr/mod.rs b/src/frontend/src/binder/expr/mod.rs index 2f315f6491673..8a3018d2c2b3c 100644 --- a/src/frontend/src/binder/expr/mod.rs +++ b/src/frontend/src/binder/expr/mod.rs @@ -512,6 +512,13 @@ pub fn bind_data_type(data_type: &AstDataType) -> Result { "float8" => DataType::Float64, "timestamptz" => DataType::Timestamptz, "jsonb" => DataType::Jsonb, + "serial" => { + return Err(ErrorCode::NotSupported( + "Column type SERIAL is not supported".into(), + "Please remove the SERIAL column".into(), + ) + .into()) + } _ => return Err(new_err().into()), } }