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

[Shims] Fix the code style issue of prepareWrite #8316

Merged
merged 1 commit into from
Dec 25, 2024

Conversation

rui-mo
Copy link
Contributor

@rui-mo rui-mo commented Dec 24, 2024

What changes were proposed in this pull request?

Fix the code style issue of 'prepareWrite' in Spark 3.2 and 3.3 shims.

How was this patch tested?

CI

@github-actions github-actions bot added the CORE works for Gluten Core label Dec 24, 2024
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 x86

Copy link
Contributor

@JkSelf JkSelf left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for your fix.

conf
.asInstanceOf[JobConf]
.setOutputFormat(classOf[org.apache.orc.mapred.OrcOutputFormat[OrcStruct]])

if ("true" == sparkSession.sparkContext.getLocalProperty("isNativeApplicable")) {
Copy link
Member

@zhztheplayer zhztheplayer Dec 24, 2024

Choose a reason for hiding this comment

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

This might be subjective though it's a bit weird to see these Yoda conditions in our Scala code base. Perhaps we could invert them (in future).

Copy link

Run Gluten Clickhouse CI on x86

Copy link

Run Gluten Clickhouse CI on x86

2 similar comments
@lwz9103
Copy link
Contributor

lwz9103 commented Dec 24, 2024

Run Gluten Clickhouse CI on x86

@lwz9103
Copy link
Contributor

lwz9103 commented Dec 24, 2024

Run Gluten Clickhouse CI on x86

Copy link

Run Gluten Clickhouse CI on x86

@rui-mo rui-mo changed the title [Shims] Clean up legacy conf in prepareWrite [Shims] Fix the code style issue of prepareWrite Dec 25, 2024
@rui-mo rui-mo merged commit 173de24 into apache:main Dec 25, 2024
48 checks passed
yikf pushed a commit to yikf/incubator-gluten that referenced this pull request Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CORE works for Gluten Core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants