Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/iceberg/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@ set(ICEBERG_SOURCES
util/type_util.cc
util/url_encoder.cc
util/uuid.cc
view/json_serde.cc
view/view_metadata.cc
view/view_properties.cc
view/view_version.cc)

set(ICEBERG_STATIC_BUILD_INTERFACE_LIBS)
Expand Down
1 change: 1 addition & 0 deletions src/iceberg/cpp20_compatibility_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@
#include "iceberg/util/visitor_generate.h"
#include "iceberg/view/type_fwd.h"
#include "iceberg/view/view_metadata.h"
#include "iceberg/view/view_properties.h"
#include "iceberg/view/view_version.h"

#ifdef ICEBERG_PUBLIC_HEADERS_BUNDLE
Expand Down
4 changes: 4 additions & 0 deletions src/iceberg/json_serde.cc
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,10 @@ namespace {

Result<std::unique_ptr<Type>> StructTypeFromJson(const nlohmann::json& json) {
ICEBERG_ASSIGN_OR_RAISE(auto json_fields, GetJsonValue<nlohmann::json>(json, kFields));
if (!json_fields.is_array()) {
return JsonParseError("'fields' must be an array, but is {}",
json_fields.type_name());
}

std::vector<SchemaField> fields;
for (const auto& field_json : json_fields) {
Expand Down
6 changes: 5 additions & 1 deletion src/iceberg/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,11 @@ endif()
add_iceberg_test(scheduled_executor_test SOURCES scheduled_executor_test.cc)
set_tests_properties(scheduled_executor_test PROPERTIES TIMEOUT 60)

add_iceberg_test(view_metadata_test SOURCES view_metadata_test.cc)
add_iceberg_test(view_metadata_test
SOURCES
view_metadata_test.cc
view_metadata_json_test.cc
view_properties_test.cc)

add_iceberg_test(util_test
USE_DATA
Expand Down
Loading
Loading