Skip to content

Commit 12390d2

Browse files
committed
Merge branch 'bugfix/antalya-25.8/filimonov_wipes_my_snot' into frontport/antalya-25.8/iceberg_features
2 parents 6a768f4 + a732f75 commit 12390d2

File tree

4 files changed

+28
-10
lines changed

4 files changed

+28
-10
lines changed

src/Storages/ObjectStorage/DataLakes/IDataLakeMetadata.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ void DataFileMetaInfo::serialize(WriteBuffer & out) const
141141
size_t field_mask = 0;
142142
if (column.second.rows_count.has_value())
143143
field_mask |= FIELD_MASK_ROWS;
144-
if (column.second.rows_count.has_value())
144+
if (column.second.nulls_count.has_value())
145145
field_mask |= FIELD_MASK_NULLS;
146-
if (column.second.rows_count.has_value())
146+
if (column.second.hyperrectangle.has_value())
147147
field_mask |= FIELD_MASK_RECT;
148148
writeIntBinary(field_mask, out);
149149

src/Storages/ObjectStorage/DataLakes/Iceberg/ManifestFile.h

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
#pragma once
22

33
#include "config.h"
4+
#include <Core/Range.h>
5+
#include <Core/Types.h>
6+
7+
#include <optional>
8+
9+
namespace DB::Iceberg
10+
{
11+
12+
struct ColumnInfo
13+
{
14+
std::optional<Int64> rows_count;
15+
std::optional<Int64> bytes_size;
16+
std::optional<Int64> nulls_count;
17+
std::optional<DB::Range> hyperrectangle;
18+
};
19+
20+
}
421

522
#if USE_AVRO
623

@@ -38,14 +55,6 @@ enum class ManifestFileContentType
3855

3956
String FileContentTypeToString(FileContentType type);
4057

41-
struct ColumnInfo
42-
{
43-
std::optional<Int64> rows_count;
44-
std::optional<Int64> bytes_size;
45-
std::optional<Int64> nulls_count;
46-
std::optional<DB::Range> hyperrectangle;
47-
};
48-
4958
struct PartitionSpecsEntry
5059
{
5160
Int32 source_id;

src/Storages/ObjectStorage/StorageObjectStorageCluster.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,4 +873,11 @@ void StorageObjectStorageCluster::onActionLockRemove(StorageActionBlockType acti
873873
IStorageCluster::onActionLockRemove(action_type);
874874
}
875875

876+
bool StorageObjectStorageCluster::prefersLargeBlocks() const
877+
{
878+
if (pure_storage)
879+
return pure_storage->prefersLargeBlocks();
880+
return IStorageCluster::prefersLargeBlocks();
881+
}
882+
876883
}

src/Storages/ObjectStorage/StorageObjectStorageCluster.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ class StorageObjectStorageCluster : public IStorageCluster
122122

123123
void onActionLockRemove(StorageActionBlockType action_type) override;
124124

125+
bool prefersLargeBlocks() const override;
126+
125127
private:
126128
void updateQueryToSendIfNeeded(
127129
ASTPtr & query,

0 commit comments

Comments
 (0)