Skip to content

Commit be3ceb3

Browse files
Merge 0d8c4b2 into e8eb65c
2 parents e8eb65c + 0d8c4b2 commit be3ceb3

File tree

2 files changed

+6
-1
lines changed
  • ydb
    • core/tx/columnshard/engines/insert_table
    • library/formats/arrow/modifier

2 files changed

+6
-1
lines changed

ydb/core/tx/columnshard/engines/insert_table/meta.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ class TInsertedDataMeta {
2525

2626
public:
2727
ui64 GetTxVolume() const {
28-
return 2 * sizeof(ui64) + sizeof(ui32) + sizeof(OriginalProto) + (SpecialKeysParsed ? SpecialKeysParsed->GetMemoryBytes() : 0);
28+
return 512 + 2 * sizeof(ui64) + sizeof(ui32) + sizeof(OriginalProto) + (SpecialKeysParsed ? SpecialKeysParsed->GetMemoryBytes() : 0) +
29+
SchemaSubset.GetTxVolume();
2930
}
3031

3132
TInsertedDataMeta(const NKikimrTxColumnShard::TLogicalMetadata& proto)

ydb/library/formats/arrow/modifier/subset.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ class TSchemaSubset {
1414
TSchemaSubset() = default;
1515
TSchemaSubset(const std::set<ui32>& fieldsIdx, const ui32 fieldsCount);
1616

17+
ui64 GetTxVolume() const {
18+
return FieldBits.size() + FieldIdx.size() * sizeof(ui32) + 1;
19+
}
20+
1721
static TSchemaSubset AllFieldsAccepted() {
1822
TSchemaSubset result;
1923
result.Exclude = true;

0 commit comments

Comments
 (0)