You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by kx...@apache.org on 2023/10/11 16:55:51 UTC
[doris] 34/47: [compile](simdjson reader) use `__AVX2__` macro to decide whether use simdjson to parse (#25165)
This is an automated email from the ASF dual-hosted git repository.
kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
commit 462c3f9dc5b71b5c2fd47a2db08c065a34b7ae6d
Author: lihangyu <15...@163.com>
AuthorDate: Wed Oct 11 10:50:13 2023 +0800
[compile](simdjson reader) use `__AVX2__` macro to decide whether use simdjson to parse (#25165)
---
be/src/vec/exec/format/json/new_json_reader.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/be/src/vec/exec/format/json/new_json_reader.cpp b/be/src/vec/exec/format/json/new_json_reader.cpp
index 3c9c19714c7..fdaf228b3d0 100644
--- a/be/src/vec/exec/format/json/new_json_reader.cpp
+++ b/be/src/vec/exec/format/json/new_json_reader.cpp
@@ -166,10 +166,13 @@ Status NewJsonReader::init_reader(
// generate _col_default_value_map
RETURN_IF_ERROR(_get_column_default_value(_file_slot_descs, col_default_value_ctx));
+#ifdef __AVX2__
if (config::enable_simdjson_reader) {
RETURN_IF_ERROR(_simdjson_init_reader());
return Status::OK();
}
+#endif
+
RETURN_IF_ERROR(_get_range_params());
RETURN_IF_ERROR(_open_file_reader());
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org