Skip to content

Commit

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

* Fix build due to ClickHouse/ClickHouse#70806

* set 'tmp_path' related to spark version for avoiding conflict

---------

Co-authored-by: kyligence-git <[email protected]>
Co-authored-by: Chang Chen <[email protected]>
  • Loading branch information
3 people authored Nov 6, 2024
1 parent 49e1ca5 commit b19cbd1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ class GlutenClickHouseWholeStageTransformerSuite extends WholeStageTransformerSu
.set("spark.sql.warehouse.dir", warehouse)
.setCHConfig("user_defined_path", "/tmp/user_defined")
.setCHConfig("path", UTSystemParameters.diskOutputDataPath)
.setCHConfig("tmp_path", s"/tmp/libch/$SPARK_DIR_NAME")
if (UTSystemParameters.testMergeTreeOnObjectStorage) {
conf
.set("spark.hadoop.fs.s3a.access.key", S3_ACCESS_KEY)
Expand Down
4 changes: 2 additions & 2 deletions cpp-ch/clickhouse.version
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
CH_ORG=Kyligence
CH_BRANCH=rebase_ch/20241105
CH_COMMIT=500e1e35c0b
CH_BRANCH=rebase_ch/20241106
CH_COMMIT=32ca18ed214
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,10 @@ MergeTreeData::LoadPartResult SparkStorageMergeTree::loadDataPart(

try
{
res.part = getDataPartBuilder(part_name, single_disk_volume, part_name).withPartInfo(part_info).withPartFormatFromDisk().build();
res.part = getDataPartBuilder(part_name, single_disk_volume, part_name, getContext()->getReadSettings())
.withPartInfo(part_info)
.withPartFormatFromDisk()
.build();
}
catch (...)
{
Expand Down Expand Up @@ -439,7 +442,7 @@ MergeTreeDataWriter::TemporaryPart SparkMergeTreeDataWriter::writeTempPart(

VolumePtr volume = data.getStoragePolicy()->getVolume(0);
VolumePtr data_part_volume = std::make_shared<SingleDiskVolume>(volume->getName(), volume->getDisk(), volume->max_data_part_size);
auto new_data_part = data.getDataPartBuilder(part_dir, data_part_volume, part_dir)
auto new_data_part = data.getDataPartBuilder(part_dir, data_part_volume, part_dir, context->getReadSettings())
.withPartFormat(data.choosePartFormat(expected_size, block.rows()))
.withPartInfo(new_part_info)
.build();
Expand Down

0 comments on commit b19cbd1

Please sign in to comment.