-
Notifications
You must be signed in to change notification settings - Fork 439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GLUTEN-6067][CH] [Part 3-2] Basic support for Native Write in Spark 3.5 #6586
Conversation
Run Gluten Clickhouse CI |
1 similar comment
Run Gluten Clickhouse CI |
…tiveBlock::toColumnarBatch() to return ColumnarBatch 2. Extract a mew function SerializedPlanParser::buildPipeline, which used in the follow up PRs 3. Refactor File Wrapper, extract create_output_format_file for later use 4. Add GLUTEN_SOURCE_DIR, so that gtest can read java resource 5. Add SubstraitParserUtils.h, so that we can remove parseJson 6. Many litter refactor
084807c
to
f78ffb3
Compare
Run Gluten Clickhouse CI |
we run
|
@@ -496,8 +496,8 @@ std::map<std::string, std::string> BackendInitializerUtil::getBackendConfMap(con | |||
/// Parse backend configs from plan extensions | |||
do | |||
{ | |||
auto plan_ptr = std::make_unique<substrait::Plan>(); | |||
auto success = plan_ptr->ParseFromString(plan); | |||
substrait::Plan sPlan; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use the naming rule of clickhouse
@@ -151,7 +153,7 @@ class BackendInitializerUtil | |||
/// Initialize two kinds of resources | |||
/// 1. global level resources like global_context/shared_context, notice that they can only be initialized once in process lifetime | |||
/// 2. session level resources like settings/configs, they can be initialized multiple times following the lifetime of executor/driver | |||
static void init(const std::string & plan); | |||
static void init(const std::string_view plan); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why ?
What changes were proposed in this pull request?
(Fixes: #6067)
This PR implement baisc support for native write in spark 3.5. I first refactor codes, so that we can add sink transform after parsing substrait plan.
The main idea is using
PartitionedSink
, and the core of this pr is how to compute partition value, see following codesHow was this patch tested?
Using existed UTs