Skip to content

Commit

Permalink
Revert "Optimize get_json_object Spark function using simdjson (5179)"
Browse files Browse the repository at this point in the history
This reverts commit 1c90fc1.
  • Loading branch information
marin-ma committed Jul 3, 2024
1 parent 1c90fc1 commit 7487845
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 370 deletions.
35 changes: 0 additions & 35 deletions velox/docs/functions/spark/json.rst

This file was deleted.

3 changes: 1 addition & 2 deletions velox/functions/sparksql/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ target_link_libraries(
velox_functions_spark_specialforms
velox_is_null_functions
velox_functions_util
Folly::folly
simdjson)
Folly::folly)

set_property(TARGET velox_functions_spark PROPERTY JOB_POOL_COMPILE
high_memory_pool)
Expand Down
205 changes: 0 additions & 205 deletions velox/functions/sparksql/JsonFunctions.h

This file was deleted.

4 changes: 0 additions & 4 deletions velox/functions/sparksql/Register.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#include "velox/functions/sparksql/DateTimeFunctions.h"
#include "velox/functions/sparksql/Hash.h"
#include "velox/functions/sparksql/In.h"
#include "velox/functions/sparksql/JsonFunctions.h"
#include "velox/functions/sparksql/LeastGreatest.h"
#include "velox/functions/sparksql/MightContain.h"
#include "velox/functions/sparksql/MonotonicallyIncreasingId.h"
Expand Down Expand Up @@ -175,9 +174,6 @@ void registerFunctions(const std::string& prefix) {

registerRegexpReplace(prefix);

registerFunction<GetJsonObjectFunction, Varchar, Varchar, Varchar>(
{prefix + "get_json_object"});

// Register string functions.
registerFunction<sparksql::ChrFunction, Varchar, int64_t>({prefix + "chr"});
registerFunction<AsciiFunction, int32_t, Varchar>({prefix + "ascii"});
Expand Down
1 change: 0 additions & 1 deletion velox/functions/sparksql/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ add_executable(
ElementAtTest.cpp
HashTest.cpp
InTest.cpp
JsonFunctionsTest.cpp
LeastGreatestTest.cpp
MakeDecimalTest.cpp
MakeTimestampTest.cpp
Expand Down
Loading

0 comments on commit 7487845

Please sign in to comment.