Skip to content

Commit

Permalink
remove code path introduce by mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
st1page committed May 16, 2024
1 parent aeb3ec6 commit d2fb42f
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/frontend/src/handler/create_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,16 +285,6 @@ fn get_name_strategy_or_default(name_strategy: Option<AstString>) -> Result<Opti
}
}

pub fn schema_has_schema_registry(schema: &ConnectorSchema) -> bool {
match schema.row_encode {
Encode::Avro | Encode::Protobuf => true,
Encode::Json => {
let mut options: WithOptions = WithOptions::try_from(schema.row_options()).unwrap();
matches!(get_json_schema_location(options.inner_mut()), Ok(Some(_)))
}
_ => false,
}
}
/// resolve the schema of the source from external schema file, return the relation's columns. see <https://www.risingwave.dev/docs/current/sql-create-source> for more information.
/// return `(columns, source info)`
pub(crate) async fn bind_columns_from_source(
Expand Down

0 comments on commit d2fb42f

Please sign in to comment.