File fix-simdjson.h.patch of Package milvus
From 472621909705cc8f0a9dac11d69612d1b193f9e2 Mon Sep 17 00:00:00 2001
From: Christian Goll <cgoll@suse.com>
Date: Fri, 24 Jan 2025 16:47:47 +0100
Subject: [PATCH] fix-simdjson.h
Signed-off-by: Christian Goll <cgoll@suse.com>
---
internal/core/src/common/Chunk.h | 4 ++--
internal/core/src/common/ChunkWriter.cpp | 5 ++---
internal/core/src/common/FieldData.cpp | 2 +-
internal/core/src/common/Json.h | 6 ------
4 files changed, 5 insertions(+), 12 deletions(-)
diff --git a/internal/core/src/common/Chunk.h b/internal/core/src/common/Chunk.h
index 7c26bdeb..60574569 100644
--- a/internal/core/src/common/Chunk.h
+++ b/internal/core/src/common/Chunk.h
@@ -26,7 +26,7 @@
#include "common/Json.h"
#include "common/Span.h"
#include "knowhere/sparse_utils.h"
-#include "simdjson/common_defs.h"
+#include "simdjson.h"
#include "sys/mman.h"
#include "common/Types.h"
namespace milvus {
@@ -275,4 +275,4 @@ class SparseFloatVectorChunk : public Chunk {
int64_t dim_ = 0;
std::vector<knowhere::sparse::SparseRow<float>> vec_;
};
-} // namespace milvus
\ No newline at end of file
+} // namespace milvus
diff --git a/internal/core/src/common/ChunkWriter.cpp b/internal/core/src/common/ChunkWriter.cpp
index dc2d9e4b..5f5b09bd 100644
--- a/internal/core/src/common/ChunkWriter.cpp
+++ b/internal/core/src/common/ChunkWriter.cpp
@@ -22,8 +22,7 @@
#include "common/FieldDataInterface.h"
#include "common/Types.h"
#include "common/VectorTrait.h"
-#include "simdjson/common_defs.h"
-#include "simdjson/padded_string.h"
+#include "simdjson.h"
namespace milvus {
void
@@ -498,4 +497,4 @@ create_chunk(const FieldMeta& field_meta,
return w->finish();
}
-} // namespace milvus
\ No newline at end of file
+} // namespace milvus
diff --git a/internal/core/src/common/FieldData.cpp b/internal/core/src/common/FieldData.cpp
index 69015dd2..2136a5a6 100644
--- a/internal/core/src/common/FieldData.cpp
+++ b/internal/core/src/common/FieldData.cpp
@@ -22,7 +22,7 @@
#include "common/Exception.h"
#include "common/FieldDataInterface.h"
#include "common/Json.h"
-#include "simdjson/padded_string.h"
+#include "simdjson.h"
namespace milvus {
diff --git a/internal/core/src/common/Json.h b/internal/core/src/common/Json.h
index 0570bdb5..9a39b461 100644
--- a/internal/core/src/common/Json.h
+++ b/internal/core/src/common/Json.h
@@ -28,12 +28,6 @@
#include "common/EasyAssert.h"
#include "simdjson.h"
#include "fmt/core.h"
-#include "simdjson/common_defs.h"
-#include "simdjson/dom/array.h"
-#include "simdjson/dom/document.h"
-#include "simdjson/dom/element.h"
-#include "simdjson/error.h"
-#include "simdjson/padded_string.h"
#include "rapidjson/document.h"
#include "rapidjson/error/en.h"
#include "rapidjson/writer.h"
--
2.43.0