Skip to content

Commit

Permalink
[ntuple] remove RClusterSummary::fColumnGroupID
Browse files Browse the repository at this point in the history
  • Loading branch information
jblomer committed Sep 24, 2024
1 parent 5cfe091 commit 02cd078
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
2 changes: 0 additions & 2 deletions tree/ntuple/v7/inc/ROOT/RNTupleSerialize.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ public:
std::uint64_t fFirstEntry = 0;
std::uint64_t fNEntries = 0;
std::uint8_t fFlags = 0;
/// -1 for "all columns"
std::int32_t fColumnGroupID = -1;
};

struct RClusterGroup {
Expand Down
5 changes: 1 addition & 4 deletions tree/ntuple/v7/src/RNTupleSerialize.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,6 @@ ROOT::Experimental::Internal::RNTupleSerializer::DeserializeClusterSummary(const

clusterSummary.fNEntries = nEntries;
clusterSummary.fFlags = flags;
clusterSummary.fColumnGroupID = -1;

return frameSize;
}
Expand Down Expand Up @@ -1512,7 +1511,7 @@ ROOT::Experimental::Internal::RNTupleSerializer::SerializePageList(void *buffer,
pos += SerializeListFramePreamble(nClusters, *where);
for (auto clusterId : physClusterIDs) {
const auto &clusterDesc = desc.GetClusterDescriptor(context.GetMemClusterId(clusterId));
RClusterSummary summary{clusterDesc.GetFirstEntryIndex(), clusterDesc.GetNEntries(), 0, -1};
RClusterSummary summary{clusterDesc.GetFirstEntryIndex(), clusterDesc.GetNEntries(), 0};
pos += SerializeClusterSummary(summary, *where);
}
pos += SerializeFramePostscript(buffer ? clusterSummaryFrame : nullptr, pos - clusterSummaryFrame);
Expand Down Expand Up @@ -1794,8 +1793,6 @@ ROOT::Experimental::Internal::RNTupleSerializer::DeserializePageList(const void
if (!result)
return R__FORWARD_ERROR(result);
bytes += result.Unwrap();
if (clusterSummary.fColumnGroupID >= 0)
return R__FAIL("sharded clusters are still unsupported");

RClusterDescriptorBuilder builder;
builder.ClusterId(clusterId).FirstEntryIndex(clusterSummary.fFirstEntry).NEntries(clusterSummary.fNEntries);
Expand Down
1 change: 0 additions & 1 deletion tree/ntuple/v7/test/ntuple_serialize.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,6 @@ TEST(RNTuple, SerializeClusterSummary)
EXPECT_EQ(summary.fFirstEntry, reco.fFirstEntry);
EXPECT_EQ(summary.fNEntries, reco.fNEntries);
EXPECT_EQ(summary.fFlags, reco.fFlags);
EXPECT_EQ(summary.fColumnGroupID, reco.fColumnGroupID);

summary.fFlags |= 0x01;
EXPECT_EQ(24u, RNTupleSerializer::SerializeClusterSummary(summary, buffer));
Expand Down

0 comments on commit 02cd078

Please sign in to comment.