-
Notifications
You must be signed in to change notification settings - Fork 236
feat: [branch-0.10] Add dynamic enabled
and allowIncompat
configs for all supported expressions (#2329)
#2385
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
Conversation
…rted expressions (apache#2329)
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.
Assuming this is the same as #2329
Yes, I used |
Codecov Report❌ Patch coverage is
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. 🚀 New features to boost your workflow:
|
} else { | ||
checkSparkAnswer(s"SELECT initcap(name) FROM $table") | ||
} | ||
checkSparkAnswer(s"SELECT initcap(name) FROM $table") |
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.
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 = { |
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.
Is this really incompatible?
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.
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]
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?