Skip to content

Commit a660606

Browse files
authored
Merge branch 'antalya-25.8' into backports/antalya-25.8/85128
2 parents a86bd0f + 7ef4fce commit a660606

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/Storages/ObjectStorage/DataLakes/Iceberg/IcebergMetadata.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,12 +990,16 @@ std::optional<size_t> IcebergMetadata::totalBytes(ContextPtr local_context) cons
990990
std::optional<String> IcebergMetadata::partitionKey(ContextPtr) const
991991
{
992992
SharedLockGuard lock(mutex);
993+
if (!relevant_snapshot)
994+
return {};
993995
return relevant_snapshot->partition_key;
994996
}
995997

996998
std::optional<String> IcebergMetadata::sortingKey(ContextPtr) const
997999
{
9981000
SharedLockGuard lock(mutex);
1001+
if (!relevant_snapshot)
1002+
return {};
9991003
return relevant_snapshot->sorting_key;
10001004
}
10011005

tests/queries/0_stateless/03644_object_storage_correlated_subqueries.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ WHERE n1.c1 > (
1313
FROM s3('http://localhost:11111/test/test-data-03644_object_storage.csv', 'test', 'testtest') AS n2
1414
WHERE n2.c1 < n1.c1
1515
)
16+
ORDER BY n1.c1
1617
SETTINGS allow_experimental_correlated_subqueries = 1;

0 commit comments

Comments
 (0)