Skip to content

Commit b01d585

Browse files
author
Innocent
committed
review comment
1 parent 52e2501 commit b01d585

File tree

4 files changed

+4
-17
lines changed

4 files changed

+4
-17
lines changed

src/iceberg/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ set(ICEBERG_SOURCES
3131
expression/expression.cc
3232
expression/expressions.cc
3333
expression/inclusive_metrics_evaluator.cc
34-
expression/json_internal.cc
34+
expression/json_serde.cc
3535
expression/literal.cc
3636
expression/manifest_evaluator.cc
3737
expression/predicate.cc
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
* under the License.
1818
*/
1919

20-
#include "iceberg/expression/json_internal.h"
21-
2220
#include <format>
2321
#include <string>
2422
#include <utility>
@@ -27,6 +25,7 @@
2725
#include <nlohmann/json.hpp>
2826

2927
#include "iceberg/expression/expressions.h"
28+
#include "iceberg/expression/json_serde_internal.h"
3029
#include "iceberg/expression/literal.h"
3130
#include "iceberg/util/json_util_internal.h"
3231
#include "iceberg/util/macros.h"
File renamed without changes.

src/iceberg/test/expression_json_test.cc

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,27 +26,15 @@
2626

2727
#include "iceberg/expression/expression.h"
2828
#include "iceberg/expression/expressions.h"
29-
#include "iceberg/expression/json_internal.h"
29+
#include "iceberg/expression/json_serde_internal.h"
3030
#include "iceberg/expression/literal.h"
3131
#include "iceberg/expression/predicate.h"
3232
#include "iceberg/expression/term.h"
3333
#include "iceberg/test/matchers.h"
3434

3535
namespace iceberg {
3636

37-
class ExpressionJsonTest : public ::testing::Test {
38-
protected:
39-
// Helper to test round-trip serialization
40-
// Uses string comparison since expressions may have different internal identity
41-
// but the same semantic meaning (i.e., ToString() output matches)
42-
void TestRoundTrip(const Expression& expr) {
43-
auto json = ToJson(expr);
44-
auto result = ExpressionFromJson(json);
45-
ASSERT_THAT(result, IsOk()) << "Failed to parse JSON: " << json.dump();
46-
EXPECT_EQ(expr.ToString(), result.value()->ToString())
47-
<< "Round-trip failed.\nJSON: " << json.dump();
48-
}
49-
};
37+
class ExpressionJsonTest : public ::testing::Test {};
5038

5139
// Test boolean constant expressions
5240
TEST_F(ExpressionJsonTest, TrueExpression) {

0 commit comments

Comments
 (0)