Fix clickhouse-format

This commit is contained in:
avogar 2024-07-12 20:16:47 +00:00
parent b77cfc2724
commit 11d56a08cd
2 changed files with 6 additions and 1 deletions

View File

@ -4,7 +4,7 @@ sidebar_position: 63
sidebar_label: JSON
---
# JSON`
# JSON
Stores JavaScript Object Notation (JSON) documents in a single column.

View File

@ -175,6 +175,11 @@ int mainEntryClickHouseFormat(int argc, char ** argv)
hash_func.update(options["seed"].as<std::string>());
}
SharedContextHolder shared_context = Context::createShared();
auto context = Context::createGlobal(shared_context.get());
auto context_const = WithContext(context).getContext();
context->makeGlobalContext();
registerInterpreters();
registerFunctions();
registerAggregateFunctions();