Skip to content

Commit

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

* fix build due to ClickHouse/ClickHouse#65751

* Fix build due to #6558

---------

Co-authored-by: kyligence-git <[email protected]>
Co-authored-by: Chang Chen <[email protected]>
  • Loading branch information
3 people authored Aug 3, 2024
1 parent 90c25fb commit cb0ad20
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
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/20240801
CH_COMMIT=768e193bd4d
CH_BRANCH=rebase_ch/20240803
CH_COMMIT=b3cfc38f967

Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ void CompactObjectStorageDiskTransaction::commit()
std::filesystem::path meta_path = std::filesystem::path(prefix_path) / "meta.bin";

auto object_storage = disk.getObjectStorage();
auto data_key = object_storage->generateObjectKeyForPath(data_path);
auto meta_key = object_storage->generateObjectKeyForPath(meta_path);
auto data_key = object_storage->generateObjectKeyForPath(data_path, std::nullopt);
auto meta_key = object_storage->generateObjectKeyForPath(meta_path, std::nullopt);

disk.createDirectories(prefix_path);
auto data_write_buffer = object_storage->writeObject(DB::StoredObject(data_key.serialize(), data_path), DB::WriteMode::Rewrite);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ std::unique_ptr<ReadBufferFromFileBase> GlutenHDFSObjectStorage::readObject( ///
return std::make_unique<ReadBufferFromHDFS>(hdfs_uri, hdfs_path, config, HDFSObjectStorage::patchSettings(read_settings));
}

DB::ObjectStorageKey local_engine::GlutenHDFSObjectStorage::generateObjectKeyForPath(const std::string & path) const
DB::ObjectStorageKey local_engine::GlutenHDFSObjectStorage::generateObjectKeyForPath(const std::string & path, const std::optional<std::string> & key_prefix) const
{
initializeHDFSFS();
/// what ever data_source_description.description value is, consider that key as relative key
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class GlutenHDFSObjectStorage final : public DB::HDFSObjectStorage
const DB::ReadSettings & read_settings = DB::ReadSettings{},
std::optional<size_t> read_hint = {},
std::optional<size_t> file_size = {}) const override;
DB::ObjectStorageKey generateObjectKeyForPath(const std::string & path) const override;
DB::ObjectStorageKey generateObjectKeyForPath(const std::string & path, const std::optional<std::string> & key_prefix) const override;
hdfsFS getHDFSFS() const { return hdfs_fs.get(); }
};
#endif
Expand Down
2 changes: 1 addition & 1 deletion cpp-ch/local-engine/Storages/Mergetree/MetaDataHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ void restoreMetaData(CustomStorageMergeTreePtr & storage, const MergeTreeTable &
return;
else
metadata_disk->createDirectories(part_path);
auto key = s3->generateObjectKeyForPath(metadata_file_path.generic_string());
auto key = s3->generateObjectKeyForPath(metadata_file_path.generic_string(), std::nullopt);
StoredObject metadata_object(key.serialize());
auto part_metadata = extractPartMetaData(*s3->readObject(metadata_object));
for (const auto & item : part_metadata)
Expand Down
2 changes: 1 addition & 1 deletion cpp-ch/local-engine/tests/benchmark_local_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include <Processors/QueryPlan/Optimizations/QueryPlanOptimizationSettings.h>
#include <QueryPipeline/QueryPipelineBuilder.h>
#include <Shuffle/ShuffleReader.h>
#include <Shuffle/ShuffleSplitter.h>

#include <Storages/CustomMergeTreeSink.h>
#include <Storages/CustomStorageMergeTree.h>
#include <Storages/MergeTree/MergeTreeData.h>
Expand Down

0 comments on commit cb0ad20

Please sign in to comment.