diff --git a/src/frontend/src/handler/create_source.rs b/src/frontend/src/handler/create_source.rs index dc4dca1a424dd..af47c7e8fc900 100644 --- a/src/frontend/src/handler/create_source.rs +++ b/src/frontend/src/handler/create_source.rs @@ -285,16 +285,6 @@ fn get_name_strategy_or_default(name_strategy: Option) -> Result 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 for more information. /// return `(columns, source info)` pub(crate) async fn bind_columns_from_source(