Skip to content

Commit

Permalink
[GLUTEN-1632][CH]Daily Update Clickhouse Version (20240808) (#6755)
Browse files Browse the repository at this point in the history
* [GLUTEN-1632][CH]Daily Update Clickhouse Version (20240808)

* Fix build due to ClickHouse/ClickHouse#66279

* Revert "[GLUTEN-6262][CH]Json input format ignore key case #6263" due to ClickHouse/ClickHouse#67484 revert ClickHouse/ClickHouse#61750

This reverts commit 2be6c86.

* fix gtest due to #6722

---------

Co-authored-by: kyligence-git <[email protected]>
Co-authored-by: Chang Chen <[email protected]>
  • Loading branch information
3 people authored Aug 8, 2024
1 parent 1f982d3 commit 5410c83
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{"a":1,"b":2,"c":3}
{"a":"a5", "B":"b6", "c":7}
{"a":"4"}
{"t":{"ta":"cc","tb":100,"tc":1.234}}
{"t":{"ta":"cc","tb":100,"td":"ignore"}}
4 changes: 2 additions & 2 deletions cpp-ch/clickhouse.version
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CH_ORG=Kyligence
CH_BRANCH=rebase_ch/20240806
CH_COMMIT=c8a7d6e496d
CH_BRANCH=rebase_ch/20240808
CH_COMMIT=641bd1900cd

1 change: 0 additions & 1 deletion cpp-ch/local-engine/Common/CHUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,6 @@ void BackendInitializerUtil::initSettings(std::map<std::string, std::string> & b
settings.set("input_format_parquet_import_nested", true);
settings.set("input_format_json_read_numbers_as_strings", true);
settings.set("input_format_json_read_bools_as_numbers", false);
settings.set("input_format_json_case_insensitive_column_matching", true);
settings.set("input_format_csv_trim_whitespaces", false);
settings.set("input_format_csv_allow_cr_end_of_line", true);
settings.set("output_format_orc_string_as_string", true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ class VectorizedParquetBlockInputFormat final : public DB::IInputFormat
ColumnIndexFilterPtr column_index_filter_;

protected:
void onCancel() override { is_stopped = 1; }
void onCancel() noexcept override { is_stopped = 1; }

public:
VectorizedParquetBlockInputFormat(DB::ReadBuffer & in_, const DB::Block & header_, const DB::FormatSettings & format_settings);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ bool SubstraitFileSource::tryPrepareReader()
}


void SubstraitFileSource::onCancel()
void SubstraitFileSource::onCancel() noexcept
{
if (file_reader)
file_reader->cancel();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class SubstraitFileSource : public DB::SourceWithKeyCondition

private:
bool tryPrepareReader();
void onCancel() override;
void onCancel() noexcept override;

DB::ContextPtr context;
DB::Block output_header; /// Sample header may contains partitions keys
Expand Down
6 changes: 3 additions & 3 deletions cpp-ch/local-engine/tests/gtest_spark_row.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ TEST(SparkRow, GetArrayElementSize)
{std::make_shared<DataTypeUInt32>(), 4},
{std::make_shared<DataTypeFloat32>(), 4},
{std::make_shared<DataTypeDate32>(), 4},
{std::make_shared<DataTypeDecimal32>(9, 4), 4},
{std::make_shared<DataTypeDecimal32>(9, 4), 8},
{std::make_shared<DataTypeInt64>(), 8},
{std::make_shared<DataTypeUInt64>(), 8},
{std::make_shared<DataTypeFloat64>(), 8},
Expand All @@ -152,11 +152,11 @@ TEST(SparkRow, GetArrayElementSize)

for (const auto & [type, size] : type_to_size)
{
EXPECT_TRUE(BackingDataLengthCalculator::getArrayElementSize(type) == size);
EXPECT_EQ(size, BackingDataLengthCalculator::getArrayElementSize(type));
if (type->canBeInsideNullable())
{
const auto type_with_nullable = std::make_shared<DataTypeNullable>(type);
EXPECT_TRUE(BackingDataLengthCalculator::getArrayElementSize(type_with_nullable) == size);
EXPECT_EQ(size, BackingDataLengthCalculator::getArrayElementSize(type_with_nullable));
}
}
}
Expand Down

0 comments on commit 5410c83

Please sign in to comment.