File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ impl CreateViewBuilder<Option<()>> {
221
221
if version. default_namespace ( ) . is_empty ( ) {
222
222
version. default_namespace = namespace. to_vec ( )
223
223
}
224
- if version. default_catalog ( ) . is_none ( ) {
224
+ if version. default_catalog ( ) . is_none ( ) && !catalog . name ( ) . is_empty ( ) {
225
225
version. default_catalog = Some ( catalog. name ( ) . to_string ( ) )
226
226
}
227
227
}
@@ -349,7 +349,7 @@ impl CreateMaterializedViewBuilder {
349
349
if version. default_namespace ( ) . is_empty ( ) {
350
350
version. default_namespace = namespace. to_vec ( )
351
351
}
352
- if version. default_catalog ( ) . is_none ( ) {
352
+ if version. default_catalog ( ) . is_none ( ) && !catalog . name ( ) . is_empty ( ) {
353
353
version. default_catalog = Some ( catalog. name ( ) . to_string ( ) )
354
354
}
355
355
}
You can’t perform that action at this time.
0 commit comments