the-other-tim-brown commented on code in PR #13402:
URL: https://github.com/apache/hudi/pull/13402#discussion_r2149981873
##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/hudi/functional/TestPartitionStatsIndex.scala:
##########
@@ -72,11 +71,13 @@ class TestPartitionStatsIndex extends
PartitionStatsIndexTestBase {
// remove column stats enable key from commonOpts
val hudiOpts = commonOpts +
(HoodieMetadataConfig.ENABLE_METADATA_INDEX_COLUMN_STATS.key -> "false")
// should throw an exception as column stats is required for partition
stats
- assertThrows[IllegalStateException] {
- doWriteAndValidateDataAndPartitionStats(
- hudiOpts,
+ try {
Review Comment:
You can use junit's assertThrows library to do this, it will return the
exception that is caught so you can further inspect it
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]