File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed
Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,8 @@ impl CatalogBuilder for HmsCatalogBuilder {
8989 self . catalog_config ( ) . name = Some ( name. into ( ) ) ;
9090
9191 if props. contains_key ( HMS_CATALOG_PROP_URI ) {
92- self . catalog_config ( ) . address = props. get ( HMS_CATALOG_PROP_URI ) . cloned ( ) . unwrap_or_default ( ) ;
92+ self . catalog_config ( ) . address =
93+ props. get ( HMS_CATALOG_PROP_URI ) . cloned ( ) . unwrap_or_default ( ) ;
9394 }
9495
9596 if let Some ( tt) = props. get ( HMS_CATALOG_PROP_THRIFT_TRANSPORT ) {
Original file line number Diff line number Diff line change @@ -144,7 +144,8 @@ impl CatalogBuilder for S3TablesCatalogBuilder {
144144 }
145145
146146 if props. contains_key ( S3TABLES_CATALOG_PROP_ENDPOINT_URL ) {
147- self . catalog_config ( ) . endpoint_url = props. get ( S3TABLES_CATALOG_PROP_ENDPOINT_URL ) . cloned ( ) ;
147+ self . catalog_config ( ) . endpoint_url =
148+ props. get ( S3TABLES_CATALOG_PROP_ENDPOINT_URL ) . cloned ( ) ;
148149 }
149150
150151 // Collect other remaining properties
Original file line number Diff line number Diff line change @@ -155,12 +155,20 @@ impl CatalogBuilder for SqlCatalogBuilder {
155155 if let Some ( uri) = self . catalog_config ( ) . props . remove ( SQL_CATALOG_PROP_URI ) {
156156 self . catalog_config ( ) . uri = uri;
157157 }
158- if let Some ( warehouse_location) = self . catalog_config ( ) . props . remove ( SQL_CATALOG_PROP_WAREHOUSE ) {
158+ if let Some ( warehouse_location) = self
159+ . catalog_config ( )
160+ . props
161+ . remove ( SQL_CATALOG_PROP_WAREHOUSE )
162+ {
159163 self . catalog_config ( ) . warehouse_location = warehouse_location;
160164 }
161165
162166 let mut valid_sql_bind_style = true ;
163- if let Some ( sql_bind_style) = self . catalog_config ( ) . props . remove ( SQL_CATALOG_PROP_BIND_STYLE ) {
167+ if let Some ( sql_bind_style) = self
168+ . catalog_config ( )
169+ . props
170+ . remove ( SQL_CATALOG_PROP_BIND_STYLE )
171+ {
164172 if let Ok ( sql_bind_style) = SqlBindStyle :: from_str ( & sql_bind_style) {
165173 self . catalog_config ( ) . sql_bind_style = sql_bind_style;
166174 } else {
You can’t perform that action at this time.
0 commit comments