mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 12:32:04 +00:00
Fix style
This commit is contained in:
parent
5fe594243a
commit
63303dd798
@ -50,6 +50,11 @@
|
|||||||
namespace DB
|
namespace DB
|
||||||
{
|
{
|
||||||
|
|
||||||
|
namespace ErrorCodes
|
||||||
|
{
|
||||||
|
extern const int ILLEGAL_TYPE_OF_ARGUMENT;
|
||||||
|
}
|
||||||
|
|
||||||
template <typename JSONParser>
|
template <typename JSONParser>
|
||||||
void jsonElementToString(const typename JSONParser::Element & element, WriteBuffer & buf, const FormatSettings & format_settings)
|
void jsonElementToString(const typename JSONParser::Element & element, WriteBuffer & buf, const FormatSettings & format_settings)
|
||||||
{
|
{
|
||||||
@ -207,7 +212,7 @@ namespace
|
|||||||
{
|
{
|
||||||
|
|
||||||
template <typename JSONParser>
|
template <typename JSONParser>
|
||||||
String jsonElementToString(const typename JSONParser::Element & element, const FormatSettings & format_settings)
|
String jsonElementToString(const typename JSONParser::Element & element, const FormatSettings & format_settings)
|
||||||
{
|
{
|
||||||
WriteBufferFromOwnString buf;
|
WriteBufferFromOwnString buf;
|
||||||
jsonElementToString<JSONParser>(element, buf, format_settings);
|
jsonElementToString<JSONParser>(element, buf, format_settings);
|
||||||
@ -1440,7 +1445,7 @@ std::unique_ptr<JSONExtractTreeNode<JSONParser>> buildJSONExtractTree(const Data
|
|||||||
case TypeIndex::Date:;
|
case TypeIndex::Date:;
|
||||||
return std::make_unique<DateNode<JSONParser, DayNum, UInt16>>();
|
return std::make_unique<DateNode<JSONParser, DayNum, UInt16>>();
|
||||||
case TypeIndex::Date32:
|
case TypeIndex::Date32:
|
||||||
return std::make_unique<DateNode<JSONParser, ExtendedDayNum , Int32>>();
|
return std::make_unique<DateNode<JSONParser, ExtendedDayNum, Int32>>();
|
||||||
case TypeIndex::DateTime:
|
case TypeIndex::DateTime:
|
||||||
return std::make_unique<DateTimeNode<JSONParser>>(assert_cast<const DataTypeDateTime &>(*type));
|
return std::make_unique<DateTimeNode<JSONParser>>(assert_cast<const DataTypeDateTime &>(*type));
|
||||||
case TypeIndex::DateTime64:
|
case TypeIndex::DateTime64:
|
||||||
|
Loading…
Reference in New Issue
Block a user