Skip to content

Conversation

@andygrove
Copy link
Member

Which issue does this PR close?

Closes #2813

Rationale for this change

What changes are included in this PR?

How are these changes tested?

@andygrove andygrove marked this pull request as ready for review November 21, 2025 23:35
@andygrove andygrove requested a review from comphead November 21, 2025 23:35
@codecov-commenter
Copy link

codecov-commenter commented Nov 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.10%. Comparing base (f09f8af) to head (3163875).
⚠️ Report is 719 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2815      +/-   ##
============================================
+ Coverage     56.12%   59.10%   +2.97%     
- Complexity      976     1475     +499     
============================================
  Files           119      165      +46     
  Lines         11743    15068    +3325     
  Branches       2251     2508     +257     
============================================
+ Hits           6591     8906    +2315     
- Misses         4012     4895     +883     
- Partials       1140     1267     +127     

☔ 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.

}
let result_type = DataType::Decimal128(precision, scale);
ColumnarValue::Array(a) => match a.data_type() {
DataType::Int64 => {
Copy link
Contributor

Choose a reason for hiding this comment

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

should we also support Int32? 🤔

SQLConf.ANSI_ENABLED.key -> "false",
SQLConf.ADAPTIVE_EXECUTION_ENABLED.key -> "false",
CometConf.getExprAllowIncompatConfigKey(classOf[Sum]) -> "true",
CometConf.COMET_NATIVE_SCAN_IMPL.key -> CometConf.SCAN_NATIVE_ICEBERG_COMPAT,
Copy link
Member

Choose a reason for hiding this comment

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

Are all settings needed for this test ? E.g. Sum and Iceberg compat look unrelated ?


override def getSupportLevel(expr: MakeDecimal): SupportLevel = {
expr.child.dataType match {
case _: LongType => Compatible()
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
case _: LongType => Compatible()
case LongType => Compatible()

because LongType is an object/singleton

checkSparkAnswerAndFallbackReason(df1, "Unsupported input data type: IntegerType")
}
}
}
Copy link
Member

Choose a reason for hiding this comment

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

IMO it would be useful to add a positive test too - with LongType

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.

bug: Comet crashes on DataFrame API

4 participants