**Describe the issue**
We have to set macro or to pass explicitly shard and replica name to create table in DatabaseReplicated

}
        else
            throw Exception("Expected two string literal arguments: zookeeper_path and replica_name", ErrorCodes::BAD_ARGUMENTS);
        
        bool is_on_cluster = args.getLocalContext()->getClientInfo().query_kind == ClientInfo::QueryKind::SECONDARY_QUERY;
        bool is_replicated_database = args.getLocalContext()->getClientInfo().query_kind == ClientInfo::QueryKind::SECONDARY_QUERY &&
                                      DatabaseCatalog::instance().getDatabase(args.table_id.database_name)->getEngineName() == "Replicated";
        bool allow_uuid_macro = is_on_cluster || is_replicated_database || args.query.attach;
        
        
        if (!args.attach)
        {
            if (is_replicated_database && !is_extended_storage_def)
                throw Exception(ErrorCodes::BAD_ARGUMENTS, "Old syntax is not allowed for ReplicatedMergeTree tables in Replicated databases");
            Macros::MacroExpansionInfo info;
            
            info.expand_special_macros_only = true;
            info.table_id = args.table_id;
            if (!allow_uuid_macro)
                info.table_id.uuid = UUIDHelpers::Nil;
            zookeeper_path = args.getContext()->getMacros()->expand(zookeeper_path, info);
            info.level = 0;
            info.table_id.uuid = UUIDHelpers::Nil;
            replica_name = args.getContext()->getMacros()->expand(replica_name, info);
        }
        ast_zk_path->value = zookeeper_path;
        ast_replica_name->value = replica_name;
        
        
        Macros::MacroExpansionInfo info;