Commit f54433a
[SPARK-43940][SQL] Test the error class: BATCH_METADATA_NOT_FOUND
### Summary
Adds coverage for the missing batch metadata error path.
### Change
`HDFSMetadataLog.applyFnToBatchByStream` now has a focused test that checks `BATCH_METADATA_NOT_FOUND`, the missing batch file parameter, and SQLSTATE `42K03`.
### Tests
`JAVA_HOME=/opt/homebrew/opt/openjdk17 PATH="/opt/homebrew/opt/openjdk17/bin:$PATH" ./build/sbt "sql/testOnly org.apache.spark.sql.errors.QueryExecutionErrorsSuite -- -z SPARK-43940"`
Fixes SPARK-43940
**JIRA assignee for credit:** deepujain
Closes #57926 from deepujain/SPARK-43940-cannot-find-batch-test.
Authored-by: Deepak Jain (DJ) <deepujain@gmail.com>
Signed-off-by: Uros Bojanic <221401595+uros-b@users.noreply.github.com>1 parent 6f4a41e commit f54433a
1 file changed
Lines changed: 19 additions & 1 deletion
Lines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
997 | 999 | | |
998 | 1000 | | |
999 | 1001 | | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
1000 | 1018 | | |
1001 | 1019 | | |
1002 | 1020 | | |
| |||
0 commit comments