We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b69dde6 commit 4619924Copy full SHA for 4619924
src/Storages/ObjectStorage/DataLakes/Iceberg/IcebergMetadata.cpp
@@ -990,12 +990,16 @@ std::optional<size_t> IcebergMetadata::totalBytes(ContextPtr local_context) cons
990
std::optional<String> IcebergMetadata::partitionKey(ContextPtr) const
991
{
992
SharedLockGuard lock(mutex);
993
+ if (!relevant_snapshot)
994
+ return {};
995
return relevant_snapshot->partition_key;
996
}
997
998
std::optional<String> IcebergMetadata::sortingKey(ContextPtr) const
999
1000
1001
1002
1003
return relevant_snapshot->sorting_key;
1004
1005
0 commit comments