mattcasters opened a new pull request, #7701:
URL: https://github.com/apache/hop/pull/7701

   ## Summary
   - Adds **Truncate table** and **Only when rows are received** options to the 
Snowflake Bulk Loader (analogous to Table Output).
   - Truncates via `Database.truncateTable` before load; only transform copy 0 
(or partitioned copies) performs the truncate.
   - When both options are enabled, the table is truncated only if at least one 
input row arrives; when truncate is on and the second option is off, empty 
streams still truncate.
   - Updates dialog enablement, English messages, user docs, and unit tests.
   
   ## Test plan
   - [x] Unit tests: `SnowflakeBulkLoaderMetaTest`, `SnowflakeBulkLoaderTest` 
(12 tests)
   - [ ] Open Snowflake Bulk Loader dialog and confirm both truncate widgets 
are visible and correctly laid out
   - [ ] Confirm "Only when rows are received" is disabled until "Truncate 
table" is checked
   - [ ] Run a load with truncate on and rows present; verify table is emptied 
then loaded
   - [ ] Run with truncate on, "only when rows" on, and empty input; verify 
table is not truncated
   - [ ] Run with truncate on, "only when rows" off, and empty input; verify 
table is truncated
   
   Fixes #3245


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