1212// See the License for the specific language governing permissions and
1313// limitations under the License.
1414
15+ use std:: str:: FromStr ;
1516use std:: sync:: Arc ;
1617
1718use chrono:: Utc ;
@@ -40,6 +41,7 @@ use databend_common_pipeline_core::ExecutionInfo;
4041use databend_common_sql:: field_default_value;
4142use databend_common_sql:: plans:: CreateTablePlan ;
4243use databend_common_storages_fuse:: io:: MetaReaders ;
44+ use databend_common_storages_fuse:: FuseStorageFormat ;
4345use databend_common_users:: RoleCacheManager ;
4446use databend_common_users:: UserApiProvider ;
4547use databend_enterprise_attach_table:: get_attach_table_handler;
@@ -48,6 +50,7 @@ use databend_storages_common_table_meta::meta::TableSnapshot;
4850use databend_storages_common_table_meta:: meta:: Versioned ;
4951use databend_storages_common_table_meta:: table:: OPT_KEY_COMMENT ;
5052use databend_storages_common_table_meta:: table:: OPT_KEY_SNAPSHOT_LOCATION ;
53+ use databend_storages_common_table_meta:: table:: OPT_KEY_STORAGE_FORMAT ;
5154use databend_storages_common_table_meta:: table:: OPT_KEY_STORAGE_PREFIX ;
5255use databend_storages_common_table_meta:: table:: OPT_KEY_TEMP_PREFIX ;
5356use log:: error;
@@ -367,6 +370,9 @@ impl CreateTableInterpreter {
367370 } ;
368371 let schema = TableSchemaRefExt :: create ( fields) ;
369372 let mut options = self . plan . options . clone ( ) ;
373+ if let Some ( storage_format) = options. get ( OPT_KEY_STORAGE_FORMAT ) {
374+ FuseStorageFormat :: from_str ( storage_format) ?;
375+ }
370376 let comment = options. remove ( OPT_KEY_COMMENT ) ;
371377
372378 let mut table_meta = TableMeta {
0 commit comments