Skip to content
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

[CORE-8569][CH] Support DeltaOptimizedWriterTransformer #8570

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

loneylee
Copy link
Member

What changes were proposed in this pull request?

In spark3.5, delta write support optimize write. This pr offload DeltaOptimizedWriterExec to gluten

(Fixes: #8569)

How was this patch tested?

Test by ut

@github-actions github-actions bot added CORE works for Gluten Core CLICKHOUSE DATA_LAKE labels Jan 20, 2025
Copy link

Thanks for opening a pull request!

Could you open an issue for this pull request on Github Issues?

https://github.com/apache/incubator-gluten/issues

Then could you also rename commit message and pull request title in the following format?

[GLUTEN-${ISSUES_ID}][COMPONENT]feat/fix: ${detailed message}

See also:

Copy link

Run Gluten ClickHouse CI on ARM

1 similar comment
Copy link

Run Gluten ClickHouse CI on ARM

Copy link

Run Gluten ClickHouse CI on ARM

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this class related to this PR?

@transient private var cachedShuffleRDD: ShuffledColumnarBatchRDD = _

@transient override def outputPartitioning: Partitioning = {
val resolver = org.apache.spark.sql.catalyst.analysis.caseInsensitiveResolution
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

109 ~ 116 duplicated with 124 ~131

@@ -270,15 +270,15 @@ class ClickhouseOptimisticTransaction(
// TODO: DeltaOptimizedWriterExec
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove TODO

!isOptimize &&
shouldOptimizeWrite(writeOptions, spark.sessionState.conf)
) {
DeltaOptimizedWriterExec(checkInvariants, metadata.partitionColumns, deltaLog)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is better to not chagne unrelated codes

else {
committer.addedStatuses
})
committer.addedStatuses.map {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is better to not chagne unrelated codes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLICKHOUSE CORE works for Gluten Core DATA_LAKE
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CORE][CH] Support columnar exec of DeltaOptimizedWriterExec
2 participants