File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,6 @@ constexpr std::string_view kStatisticsPath = "statistics-path";
160160constexpr std::string_view kFileSizeInBytes = " file-size-in-bytes" ;
161161constexpr std::string_view kFileFooterSizeInBytes = " file-footer-size-in-bytes" ;
162162constexpr std::string_view kBlobMetadata = " blob-metadata" ;
163- constexpr int8_t kMinNullCurrentSnapshotVersion = 3 ;
164163
165164template <typename T>
166165void SetOptionalField (nlohmann::json& json, std::string_view key,
@@ -935,10 +934,8 @@ nlohmann::json ToJson(const TableMetadata& table_metadata) {
935934 return snapshot->snapshot_id == table_metadata.current_snapshot_id ;
936935 }) != table_metadata.snapshots .cend ()) {
937936 json[kCurrentSnapshotId ] = table_metadata.current_snapshot_id ;
938- } else if (table_metadata.format_version >= kMinNullCurrentSnapshotVersion ) {
939- json[kCurrentSnapshotId ] = nullptr ;
940937 } else {
941- json[kCurrentSnapshotId ] = TableMetadata:: kInvalidSnapshotId ;
938+ json[kCurrentSnapshotId ] = nlohmann::json:: value_t ::null ;
942939 }
943940
944941 if (table_metadata.format_version >= 3 ) {
You can’t perform that action at this time.
0 commit comments