@@ -370,15 +370,15 @@ class StorageIcebergConfiguration : public StorageObjectStorage::Configuration,
370
370
371
371
protected:
372
372
void fromNamedCollection (const NamedCollection & collection, ContextPtr context) override
373
- { return getImpl ().fromNamedCollection (collection, context); }
373
+ { getImpl ().fromNamedCollection (collection, context); }
374
374
void fromAST (ASTs & args, ContextPtr context, bool with_structure) override
375
- { return getImpl ().fromAST (args, context, with_structure); }
375
+ { getImpl ().fromAST (args, context, with_structure); }
376
376
377
377
// / Find storage_type argument and remove it from args if exists.
378
378
// / Return storage type.
379
379
ObjectStorageType extractDynamicStorageType (ASTs & args, ContextPtr context, ASTPtr * type_arg) const override
380
380
{
381
- static const auto storage_type_name = " storage_type" ;
381
+ static const auto * const storage_type_name = " storage_type" ;
382
382
383
383
if (auto named_collection = tryGetNamedCollectionWithOverrides (args, context))
384
384
{
@@ -388,20 +388,20 @@ class StorageIcebergConfiguration : public StorageObjectStorage::Configuration,
388
388
}
389
389
}
390
390
391
- auto type_it = args.end ();
391
+ auto * type_it = args.end ();
392
392
393
393
// / S3 by default for backward compatibility
394
394
// / Iceberg without storage_type == IcebergS3
395
395
ObjectStorageType type = ObjectStorageType::S3;
396
396
397
- for (auto arg_it = args.begin (); arg_it != args.end (); ++arg_it)
397
+ for (auto * arg_it = args.begin (); arg_it != args.end (); ++arg_it)
398
398
{
399
399
const auto * type_ast_function = (*arg_it)->as <ASTFunction>();
400
400
401
401
if (type_ast_function && type_ast_function->name == " equals"
402
402
&& type_ast_function->arguments && type_ast_function->arguments ->children .size () == 2 )
403
403
{
404
- auto name = type_ast_function->arguments ->children [0 ]->as <ASTIdentifier>();
404
+ auto * name = type_ast_function->arguments ->children [0 ]->as <ASTIdentifier>();
405
405
406
406
if (name && name->name () == storage_type_name)
407
407
{
@@ -412,7 +412,7 @@ class StorageIcebergConfiguration : public StorageObjectStorage::Configuration,
412
412
" DataLake can have only one key-value argument: storage_type='type'." );
413
413
}
414
414
415
- auto value = type_ast_function->arguments ->children [1 ]->as <ASTLiteral>();
415
+ auto * value = type_ast_function->arguments ->children [1 ]->as <ASTLiteral>();
416
416
417
417
if (!value)
418
418
{
@@ -451,7 +451,7 @@ class StorageIcebergConfiguration : public StorageObjectStorage::Configuration,
451
451
createDynamicStorage (type);
452
452
}
453
453
454
- void assertInitialized () const override { return getImpl ().assertInitialized (); }
454
+ void assertInitialized () const override { getImpl ().assertInitialized (); }
455
455
456
456
private:
457
457
inline StorageObjectStorage::Configuration & getImpl () const
0 commit comments