Skip to content

Conversation

andygrove
Copy link
Member

@andygrove andygrove commented Sep 11, 2025

Which issue does this PR close?

N/A

Rationale for this change

Backport of #2329

What changes are included in this PR?

How are these changes tested?

@andygrove andygrove added this to the 0.10.0 milestone Sep 11, 2025
Copy link
Contributor

@parthchandra parthchandra left a comment

Choose a reason for hiding this comment

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

Assuming this is the same as #2329

@andygrove
Copy link
Member Author

Assuming this is the same as #2329

Yes, I used git cherry-pick.

@codecov-commenter
Copy link

codecov-commenter commented Sep 11, 2025

Codecov Report

❌ Patch coverage is 66.66667% with 8 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (branch-0.10@68c1d33). Learn more about missing BASE report.

Files with missing lines Patch % Lines
...on/src/main/scala/org/apache/comet/CometConf.scala 12.50% 7 Missing ⚠️
.../scala/org/apache/comet/serde/QueryPlanSerde.scala 93.33% 1 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff               @@
##             branch-0.10    #2385   +/-   ##
==============================================
  Coverage               ?   57.62%           
  Complexity             ?     1297           
==============================================
  Files                  ?      147           
  Lines                  ?    13507           
  Branches               ?     2391           
==============================================
  Hits                   ?     7783           
  Misses                 ?     4457           
  Partials               ?     1267           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

} else {
checkSparkAnswer(s"SELECT initcap(name) FROM $table")
}
checkSparkAnswer(s"SELECT initcap(name) FROM $table")
Copy link
Contributor

Choose a reason for hiding this comment

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

Is #1052
resolved?
If so we should use checkSparkAnswerAndOperator

@@ -68,15 +68,14 @@ object CometLower extends CometCaseConversionBase[Lower]("lower")

object CometInitCap extends CometScalarFunction[InitCap]("initcap") {

override def getSupportLevel(expr: InitCap): SupportLevel = {
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 really incompatible?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes:

!== Correct Answer - 7 ==       == Spark Answer - 7 ==
 struct<initcap(name):string>   struct<initcap(name):string>
 [James Smith]                  [James Smith]
 [James Smith]                  [James Smith]
 [James Ähtäri]                 [James Ähtäri]
 [Michael Rose]                 [Michael Rose]
 [Rames Rose]                   [Rames Rose]
![Robert Rose-smith]            [Robert Rose-Smith]
 [Robert Williams]              [Robert Williams]

@andygrove andygrove merged commit 9cb0cc4 into apache:branch-0.10 Sep 12, 2025
98 checks passed
@andygrove andygrove deleted the backport-2329 branch September 12, 2025 01:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants