Repository navigation
Step1: Paimon table function support - #84423
Conversation
|
@JiaQiTang98 Could we add a doc for Paimon support? and add a README in |
Great Idea, i will add it later |
8617300 to
88ebf6a
Compare
1e50625 to
c8ccb32
Compare
|
@hanfei1991 The user document and the document on how to generate Paimon format data have been completed |
|
And I think it would be better to place other features of Paimon in other PRs instead; the PR just implements table functions. |
67bfcbd to
4a5e236
Compare
|
@hanfei1991 It seems there are some flaky tests not related to the PR. And I think we could start the review? |
337899a to
d095548
Compare
| else if (real_type.starts_with("TIME") && !real_type.starts_with("TIMESTAMP")) | ||
| { | ||
| type.root_type = RootDataType::TIME_WITHOUT_TIME_ZONE; | ||
| type.clickhouse_data_type = std::make_shared<DataTypeInt64>(); |
There was a problem hiding this comment.
map time to Int64, like Iceberg
| namespace Paimon | ||
| { | ||
|
|
||
| inline UInt64 flipBytes(UInt64 value) |
There was a problem hiding this comment.
https://github.com/ClickHouse/ClickHouse/blob/master/base/poco/Foundation/include/Poco/Types.h#L39-L47
In Poco, it typedef unsigned long to UInt64, however ClickHouse always typedef uint64_t(unsigned long long) to UInt64.
Maybe we should perform a cast when calling Poco::ByteOrder::flipBytes instead of defining a new function?
| } | ||
| for (const auto & manifest_meta : delta_manifest_list) | ||
| { | ||
| delta_manifest.emplace_back(table_client_ptr->getDataManifest(manifest_meta.file_name, *table_schema, PARTITION_DEFAULT_NAME)); |
There was a problem hiding this comment.
Their format is the same, but they are two different logical parts in Paimon snapshot.
More details: https://paimon.apache.org/docs/1.1/learn-paimon/understand-files/#insert-records-into-table
| struct PaimonDefinition | ||
| { | ||
| static constexpr auto name = "paimon"; | ||
| static constexpr auto storage_engine_name = S3Definition::storage_engine_name; |
There was a problem hiding this comment.
Paimon Storage Engine is not implemented in this PR, so I use S3 as storage_engine_name to work around getSourceAccessObject
|
|
@JiaQiTang98 the interface of the rest LGTM |
|
Could we add this PR to merge queue? |
Introduce Paimon datalake support
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Add support for querying Apache Paimon in ClickHouse. This integration would enable ClickHouse users to directly interact with Paimon's data lake storage.
https://paimon.apache.org/
Apache Paimon is a data lake engine open-sourced by the Flink team. It has excellent compatibility with Flink and currently boasts numerous user cases worldwide.
Documentation entry for user-facing changes