3333#include " iceberg/util/json_util_internal.h"
3434#include " iceberg/util/macros.h"
3535#include " iceberg/util/string_util.h"
36+ #include " iceberg/util/temporal_util.h"
3637#include " iceberg/util/transform_util.h"
3738
3839namespace iceberg {
@@ -363,7 +364,7 @@ Result<Literal> LiteralFromJson(const nlohmann::json& json, const Type* type) {
363364 return JsonParseError (" Cannot parse {} as a date value" , SafeDumpJson (json));
364365 }
365366 ICEBERG_ASSIGN_OR_RAISE (auto days,
366- TransformUtil ::ParseDay (json.get <std::string>()));
367+ TemporalUtils ::ParseDay (json.get <std::string>()));
367368 return Literal::Date (days);
368369 }
369370
@@ -372,7 +373,7 @@ Result<Literal> LiteralFromJson(const nlohmann::json& json, const Type* type) {
372373 return JsonParseError (" Cannot parse {} as a time value" , SafeDumpJson (json));
373374 }
374375 ICEBERG_ASSIGN_OR_RAISE (auto micros,
375- TransformUtil ::ParseTime (json.get <std::string>()));
376+ TemporalUtils ::ParseTime (json.get <std::string>()));
376377 return Literal::Time (micros);
377378 }
378379
@@ -381,7 +382,7 @@ Result<Literal> LiteralFromJson(const nlohmann::json& json, const Type* type) {
381382 return JsonParseError (" Cannot parse {} as a timestamp value" , SafeDumpJson (json));
382383 }
383384 ICEBERG_ASSIGN_OR_RAISE (auto micros,
384- TransformUtil ::ParseTimestamp (json.get <std::string>()));
385+ TemporalUtils ::ParseTimestamp (json.get <std::string>()));
385386 return Literal::Timestamp (micros);
386387 }
387388
@@ -391,7 +392,7 @@ Result<Literal> LiteralFromJson(const nlohmann::json& json, const Type* type) {
391392 SafeDumpJson (json));
392393 }
393394 ICEBERG_ASSIGN_OR_RAISE (
394- auto micros, TransformUtil ::ParseTimestampWithZone (json.get <std::string>()));
395+ auto micros, TemporalUtils ::ParseTimestampWithZone (json.get <std::string>()));
395396 return Literal::TimestampTz (micros);
396397 }
397398
@@ -401,7 +402,7 @@ Result<Literal> LiteralFromJson(const nlohmann::json& json, const Type* type) {
401402 SafeDumpJson (json));
402403 }
403404 ICEBERG_ASSIGN_OR_RAISE (auto nanos,
404- TransformUtil ::ParseTimestampNs (json.get <std::string>()));
405+ TemporalUtils ::ParseTimestampNs (json.get <std::string>()));
405406 return Literal::TimestampNs (nanos);
406407 }
407408
@@ -411,7 +412,7 @@ Result<Literal> LiteralFromJson(const nlohmann::json& json, const Type* type) {
411412 SafeDumpJson (json));
412413 }
413414 ICEBERG_ASSIGN_OR_RAISE (
414- auto nanos, TransformUtil ::ParseTimestampNsWithZone (json.get <std::string>()));
415+ auto nanos, TemporalUtils ::ParseTimestampNsWithZone (json.get <std::string>()));
415416 return Literal::TimestampTzNs (nanos);
416417 }
417418
0 commit comments