yihua opened a new pull request, #19161:
URL: https://github.com/apache/hudi/pull/19161

   ### Change Logs
   
   Adds unit/integration test coverage for Spark SQL stored procedures in the 
hudi-spark command/procedures package, which had large untested gaps.
   
   - New `TestHoodieProcedureFilterUtils`: direct tests for the procedure 
filter expression evaluator (expression parsing, the function-resolution table, 
numeric type coercion, complex-type conversion, validation and error paths). 
This class had no test file and was ~18% covered.
   - New `TestValidateHoodieSyncProcedure`: exercises `sync_validate`'s 
timeline comparison and catch-up-commit computation via a mode that bypasses 
the Hive/JDBC record count.
   - Extends existing suites for `export_instants` (desc / action filter / 
invalid folder), `copy_to_temp_view` (incremental / read_optimized / 
as_of_instant), `show_logfile_records` (merge + filter), 
`repair_clustering_plan` (validate_delete, unsupported op, allow_empty_plan 
guard) and `show_clean_plans` (input validation).
   
   All new tests assert output rows, state changes, or exceptions; no 
assertion-free runs and no timing-based waits.
   
   ### Impact
   
   Test-only change. No production code is modified.
   
   ### Risk level
   
   none
   
   ### Documentation Update
   
   None.
   
   ### Contributor's checklist
   - [x] Read through the contributor's guide
   - [x] Change is test-only and behavior-preserving
   - [x] Tests assert meaningful behavior
   


-- 
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]

Reply via email to