Skip to content

Commit bdee2b8

Browse files
committed
apacheGH-50859: [C++][Parquet] Build ObjectParser with simdjson utilities
1 parent 4d93dff commit bdee2b8

6 files changed

Lines changed: 9 additions & 8 deletions

File tree

‎cpp/cmake_modules/DefineOptions.cmake‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -599,8 +599,7 @@ takes precedence over ccache if a storage backend is configured" ON)
599599
"Build support for encryption. Fail if OpenSSL is not found"
600600
OFF
601601
DEPENDS
602-
ARROW_FILESYSTEM
603-
ARROW_JSON)
602+
ARROW_FILESYSTEM)
604603

605604
#----------------------------------------------------------------------
606605
set_option_category("Gandiva")

‎cpp/cmake_modules/ThirdpartyToolchain.cmake‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,6 @@ if(ARROW_WITH_OPENTELEMETRY)
383383
endif()
384384

385385
if(ARROW_PARQUET)
386-
set(ARROW_WITH_RAPIDJSON ON)
387386
set(ARROW_WITH_SIMDJSON ON)
388387
set(ARROW_WITH_THRIFT ON)
389388
endif()

‎cpp/src/arrow/CMakeLists.txt‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,11 @@ if(ARROW_WITH_OPENTELEMETRY)
645645
list(APPEND ARROW_UTIL_SRCS util/tracing_internal.cc)
646646
endif()
647647
if(ARROW_WITH_SIMDJSON)
648-
list(APPEND ARROW_UTIL_SRCS util/json_writer_internal.cc util/simdjson_internal.cc)
648+
list(APPEND
649+
ARROW_UTIL_SRCS
650+
json/object_parser.cc
651+
util/json_writer_internal.cc
652+
util/simdjson_internal.cc)
649653
endif()
650654
if(ARROW_WITH_SNAPPY)
651655
list(APPEND ARROW_UTIL_SRCS util/compression_snappy.cc)
@@ -1097,7 +1101,6 @@ if(ARROW_JSON)
10971101
json/chunker.cc
10981102
json/converter.cc
10991103
json/from_string.cc
1100-
json/object_parser.cc
11011104
json/parser.cc
11021105
json/reader.cc)
11031106
foreach(ARROW_JSON_TARGET ${ARROW_JSON_TARGETS})

‎cpp/src/arrow/json/object_parser.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace json {
2929
namespace internal {
3030

3131
/// This class is a helper to parse a json object from a string.
32-
/// It uses rapidjson::Document in implementation.
32+
/// It uses simdjson in the implementation.
3333
class ARROW_EXPORT ObjectParser {
3434
public:
3535
ObjectParser();

‎cpp/src/arrow/meson.build‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ arrow_util_deps = [threads_dep]
242242

243243
if needs_simdjson
244244
arrow_util_srcs += [
245+
'json/object_parser.cc',
245246
'util/json_writer_internal.cc',
246247
'util/simdjson_internal.cc',
247248
]
@@ -538,7 +539,6 @@ if needs_json
538539
'json/chunker.cc',
539540
'json/converter.cc',
540541
'json/from_string.cc',
541-
'json/object_parser.cc',
542542
'json/options.cc',
543543
'json/parser.cc',
544544
'json/reader.cc',

‎cpp/src/arrow/util/CMakeLists.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ if(ARROW_WITH_SIMDJSON)
9292
SOURCES
9393
json_writer_internal_test.cc
9494
EXTRA_LINK_LIBS
95-
simdjson::simdjson)
95+
arrow::simdjson)
9696
endif()
9797

9898
add_arrow_test(async-utility-test

0 commit comments

Comments
 (0)