Skip to content

Commit 30320bd

Browse files
author
xiao.dong
committed
fix windows build
1 parent 8fb60aa commit 30320bd

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/iceberg/manifest_adapter.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
#include "iceberg/util/macros.h"
2727
#include "nanoarrow/nanoarrow.h"
2828

29+
namespace {
30+
static constexpr int64_t kBlockSizeInBytes = 64 * 1024 * 1024L;
31+
}
32+
2933
namespace iceberg {
3034

3135
Status ManifestAdapter::StartAppending() {
@@ -264,7 +268,6 @@ Status ManifestEntryAdapter::AppendDataFile(
264268
break;
265269
case 105: // block_size_in_bytes (compatible in v1)
266270
// always 64MB for v1
267-
static const int64_t kBlockSizeInBytes = 64 * 1024 * 1024L;
268271
ICEBERG_RETURN_UNEXPECTED(AppendField(array, kBlockSizeInBytes));
269272
break;
270273
case 108: // column_sizes (optional map)

src/iceberg/manifest_adapter.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
#include <map>
2626
#include <memory>
27+
#include <optional>
2728
#include <unordered_map>
2829
#include <unordered_set>
2930
#include <vector>

0 commit comments

Comments
 (0)