You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hop.apache.org by "rbrenchley (via GitHub)" <gi...@apache.org> on 2026/06/10 14:07:11 UTC

[I] [Bug]: Run Script ignores switch case/filter rows (hop)

rbrenchley opened a new issue, #7260:
URL: https://github.com/apache/hop/issues/7260

   ### Apache Hop version?
   
   2.17
   
   ### Java version?
   
   1.8 
   
   ### Operating system
   
   Windows
   
   ### What happened?
   
   When executing a conditionally (python) run script using switch case or filter rows, hop ignores the conditions and runs any scripts in the pipeline. The issue also happens in sub pipelines.
   
   ### Issue Priority
   
   Priority: 3
   
   ### Issue Component
   
   Component: Pipelines


-- 
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: issues-unsubscribe@hop.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: Run Script ignores switch case/filter rows (hop)

Posted by "bamaer (via GitHub)" <gi...@apache.org>.
bamaer commented on issue #7260:
URL: https://github.com/apache/hop/issues/7260#issuecomment-4671520995

   All transforms are initialized when a pipeline starts. If your script performs tasks even without receiving any data, that might be what you're seeing, but like @hansva already said: an example or reproduction case would help. 


-- 
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: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: Run Script ignores switch case/filter rows (hop)

Posted by "hansva (via GitHub)" <gi...@apache.org>.
hansva closed issue #7260: [Bug]: Run Script ignores switch case/filter rows
URL: https://github.com/apache/hop/issues/7260


-- 
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: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: Run Script ignores switch case/filter rows (hop)

Posted by "rbrenchley (via GitHub)" <gi...@apache.org>.
rbrenchley commented on issue #7260:
URL: https://github.com/apache/hop/issues/7260#issuecomment-4671415071

   It  doesn't look like it is the same issue. I just don't want to execute a script based on a condition . Ex If A execute script 1, if B execute script 2. Instead it just executes script 1 and script 2 regardless of the condition.


-- 
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: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: Run Script ignores switch case/filter rows (hop)

Posted by "rbrenchley (via GitHub)" <gi...@apache.org>.
rbrenchley commented on issue #7260:
URL: https://github.com/apache/hop/issues/7260#issuecomment-4671748795

   [ConditionalIssue.hpl.txt](https://github.com/user-attachments/files/28801128/ConditionalIssue.hpl.txt)
   


-- 
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: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: Run Script ignores switch case/filter rows (hop)

Posted by "hansva (via GitHub)" <gi...@apache.org>.
hansva commented on issue #7260:
URL: https://github.com/apache/hop/issues/7260#issuecomment-4671254428

   could be a duplicate of https://github.com/apache/hop/issues/6875
   Is this the situation you are trying to explain? Script transform running even when not receiving any rows?
   Please note that there is a 2.18.1 on the way to fix some other issues, so you could test this fix, but I would wait for 2.18.1 before moving production workloads


-- 
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: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: Run Script ignores switch case/filter rows (hop)

Posted by "hansva (via GitHub)" <gi...@apache.org>.
hansva commented on issue #7260:
URL: https://github.com/apache/hop/issues/7260#issuecomment-4671449209

   Then I will need a sample pipeline to further investigate. You can add one by changing the extension to txt.


-- 
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: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: Run Script ignores switch case/filter rows (hop)

Posted by "hansva (via GitHub)" <gi...@apache.org>.
hansva commented on issue #7260:
URL: https://github.com/apache/hop/issues/7260#issuecomment-4679743314

   so yes, it was exactly releated to that ticket, this is the log you are getting in 2.18
   
   ```
   2026/06/11 12:46:56 - Hop - Pipeline opened.
   2026/06/11 12:46:56 - Hop - Launching pipeline [ConditionalIssue]...
   2026/06/11 12:46:56 - Hop - Started executing pipeline 'ConditionalIssue'.
   2026/06/11 12:46:57 - ConditionalIssue - Executing this pipeline using the Local Pipeline Engine with run configuration 'local'
   2026/06/11 12:46:57 - ConditionalIssue - Execution started for pipeline [ConditionalIssue]
   2026/06/11 12:46:57 - Generate rows.0 - Finished processing (I=0, O=0, R=0, W=1, U=0, E=0)
   2026/06/11 12:46:57 - Write to log.0 -
   2026/06/11 12:46:57 - Write to log.0 - ------------> Linenr 1------------------------------
   2026/06/11 12:46:57 - Write to log.0 - True Results
   2026/06/11 12:46:57 - Write to log.0 -
   2026/06/11 12:46:57 - Write to log.0 - sample = path1
   2026/06/11 12:46:57 - Write to log.0 -
   2026/06/11 12:46:57 - Write to log.0 - ====================
   2026/06/11 12:46:57 - Filter rows.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
   2026/06/11 12:46:57 - Write to log.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
   #################################### True results execution if fine #################################
   2026/06/11 12:46:57 - TrueScript.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0)
   2026/06/11 12:46:57 - ConditionalIssue - Pipeline duration : 0.453 seconds [  0.453" ]
   2026/06/11 12:46:57 - Hop - Pipeline 'ConditionalIssue' completed.
   2026/06/11 12:46:57 - ConditionalIssue - Execution finished on a local pipeline engine with run configuration 'local'
   ```


-- 
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: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org