Skip to content

Commit 5f7c8f8

Browse files
Sandeep GottimukkalaSandeep Gottimukkala
authored andcommitted
revert: remove leftover includes and constants from json_serde_internal.h and json_serde.cc
1 parent 2ca9bb2 commit 5f7c8f8

2 files changed

Lines changed: 0 additions & 32 deletions

File tree

src/iceberg/json_serde.cc

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@
2727
#include <nlohmann/json.hpp>
2828

2929
#include "iceberg/constants.h"
30-
#include "iceberg/expression/json_serde_internal.h"
31-
#include "iceberg/file_format.h"
3230
#include "iceberg/json_serde_internal.h"
33-
#include "iceberg/manifest/manifest_entry.h"
3431
#include "iceberg/name_mapping.h"
3532
#include "iceberg/partition_field.h"
3633
#include "iceberg/partition_spec.h"
@@ -43,7 +40,6 @@
4340
#include "iceberg/table_metadata.h"
4441
#include "iceberg/table_properties.h"
4542
#include "iceberg/table_requirement.h"
46-
#include "iceberg/table_scan.h"
4743
#include "iceberg/table_update.h"
4844
#include "iceberg/transform.h"
4945
#include "iceberg/type.h"
@@ -229,30 +225,6 @@ constexpr std::string_view kRequirementAssertDefaultSortOrderID =
229225
constexpr std::string_view kLastAssignedFieldId = "last-assigned-field-id";
230226
constexpr std::string_view kLastAssignedPartitionId = "last-assigned-partition-id";
231227

232-
// FileScanTask / DataFile constants (kSpecId, kSortOrderId, and kFileSizeInBytes
233-
// are already defined above)
234-
constexpr std::string_view kDataFile = "data-file";
235-
constexpr std::string_view kDeleteFileReferences = "delete-file-references";
236-
constexpr std::string_view kResidualFilter = "residual-filter";
237-
constexpr std::string_view kContent = "content";
238-
constexpr std::string_view kFilePath = "file-path";
239-
constexpr std::string_view kFileFormat = "file-format";
240-
constexpr std::string_view kPartition = "partition";
241-
constexpr std::string_view kRecordCount = "record-count";
242-
constexpr std::string_view kColumnSizes = "column-sizes";
243-
constexpr std::string_view kValueCounts = "value-counts";
244-
constexpr std::string_view kNullValueCounts = "null-value-counts";
245-
constexpr std::string_view kNanValueCounts = "nan-value-counts";
246-
constexpr std::string_view kLowerBounds = "lower-bounds";
247-
constexpr std::string_view kUpperBounds = "upper-bounds";
248-
constexpr std::string_view kKeyMetadata = "key-metadata";
249-
constexpr std::string_view kSplitOffsets = "split-offsets";
250-
constexpr std::string_view kEqualityIds = "equality-ids";
251-
constexpr std::string_view kFirstRowId = "first-row-id";
252-
constexpr std::string_view kReferencedDataFile = "referenced-data-file";
253-
constexpr std::string_view kContentOffset = "content-offset";
254-
constexpr std::string_view kContentSizeInBytes = "content-size-in-bytes";
255-
256228
} // namespace
257229

258230
nlohmann::json ToJson(const SortField& sort_field) {

src/iceberg/json_serde_internal.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,9 @@
2828

2929
#include <nlohmann/json_fwd.hpp>
3030

31-
#include "iceberg/manifest/manifest_entry.h"
32-
#include "iceberg/partition_spec.h"
3331
#include "iceberg/result.h"
34-
#include "iceberg/schema.h"
3532
#include "iceberg/statistics_file.h"
3633
#include "iceberg/table_metadata.h"
37-
#include "iceberg/table_scan.h"
3834
#include "iceberg/type_fwd.h"
3935

4036
namespace iceberg {

0 commit comments

Comments
 (0)