summaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Functions/JSONPath/Parsers/ParserJSONPath.cpp
diff options
context:
space:
mode:
authorAlexSm <[email protected]>2024-01-04 15:09:05 +0100
committerGitHub <[email protected]>2024-01-04 15:09:05 +0100
commitdab291146f6cd7d35684e3a1150e5bb1c412982c (patch)
tree36ef35f6cacb6432845a4a33f940c95871036b32 /contrib/clickhouse/src/Functions/JSONPath/Parsers/ParserJSONPath.cpp
parent63660ad5e7512029fd0218e7a636580695a24e1f (diff)
Library import 5, delete go dependencies (#832)
* Library import 5, delete go dependencies * Fix yt client
Diffstat (limited to 'contrib/clickhouse/src/Functions/JSONPath/Parsers/ParserJSONPath.cpp')
-rw-r--r--contrib/clickhouse/src/Functions/JSONPath/Parsers/ParserJSONPath.cpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/contrib/clickhouse/src/Functions/JSONPath/Parsers/ParserJSONPath.cpp b/contrib/clickhouse/src/Functions/JSONPath/Parsers/ParserJSONPath.cpp
deleted file mode 100644
index 003e97af38b..00000000000
--- a/contrib/clickhouse/src/Functions/JSONPath/Parsers/ParserJSONPath.cpp
+++ /dev/null
@@ -1,31 +0,0 @@
-#include <Functions/JSONPath/ASTs/ASTJSONPath.h>
-#include <Functions/JSONPath/ASTs/ASTJSONPathMemberAccess.h>
-#include <Functions/JSONPath/Parsers/ParserJSONPath.h>
-#include <Functions/JSONPath/Parsers/ParserJSONPathQuery.h>
-
-namespace DB
-{
-/**
- * Entry parser for JSONPath
- */
-bool ParserJSONPath::parseImpl(Pos & pos, ASTPtr & node, Expected & expected)
-{
- auto ast_jsonpath = std::make_shared<ASTJSONPath>();
- ParserJSONPathQuery parser_jsonpath_query;
-
- /// Push back dot AST and brackets AST to query->children
- ASTPtr query;
-
- bool res = parser_jsonpath_query.parse(pos, query, expected);
-
- if (res)
- {
- /// Set ASTJSONPathQuery of ASTJSONPath
- ast_jsonpath->set(ast_jsonpath->jsonpath_query, query);
- }
-
- node = ast_jsonpath;
- return res;
-}
-
-}