You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "peterxcli (via GitHub)" <gi...@apache.org> on 2026/08/02 17:58:44 UTC
[I] Deduplicate Throwable cause-chain traversal in Comet tests [datafusion-comet]
peterxcli opened a new issue, #5223:
URL: https://github.com/apache/datafusion-comet/issues/5223
## What is the problem the feature request solves?
Several Comet test suites independently implement the same full `Throwable.getCause` traversal:
- `CometTemporalExpressionSuite` defines `causeChain` for structured Spark exception checks added in #5167.
- `CometRegExpJvmSuite` walks the chain to inspect exception class names.
- `ParquetReadSuite` walks the chain to find `SchemaColumnConvertNotSupportedException`.
- `CometExecSuite` contains two copies that inspect exception messages.
This duplicates null termination, ordering, and diagnostic behavior across five call sites in four suites.
Related code in `CometExpressionSuite`, `CometDppFallbackRepro3949Suite`, `CometSQLQueryTestHelper`, and `CometCastSuite` intentionally uses bounded, root-only, or one-level unwrapping semantics and should not be changed automatically.
## Describe the potential solution
Add one protected `causeChain(error: Throwable): Seq[Throwable]` helper to `CometTestBase` and migrate the identical full-chain traversals to it.
Keep `deepestSparkThrowable` local to `CometTemporalExpressionSuite` because selecting the deepest structured Spark exception is currently unique policy; it can use the inherited `causeChain` helper. Do not introduce a universal structured-exception comparator or change tests that intentionally inspect only one cause level.
Validate that the migrated tests preserve outer-to-inner ordering and behavior across supported Spark versions.
## Additional context
Raised while addressing review feedback on #5167.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] Deduplicate Throwable cause-chain traversal in Comet tests [datafusion-comet]
Posted by "sunchao (via GitHub)" <gi...@apache.org>.
sunchao closed issue #5223: Deduplicate Throwable cause-chain traversal in Comet tests
URL: https://github.com/apache/datafusion-comet/issues/5223
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] Deduplicate Throwable cause-chain traversal in Comet tests [datafusion-comet]
Posted by "peterxcli (via GitHub)" <gi...@apache.org>.
peterxcli commented on issue #5223:
URL: https://github.com/apache/datafusion-comet/issues/5223#issuecomment-5159695436
take
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org