mattcasters commented on issue #2986:
URL: https://github.com/apache/hop/issues/2986#issuecomment-1813268169

   If you think about it, this is an incorrect usage of the constant values.  
It would only make sense for lists of exactly one constant value.  That's why 
this was written in the 
[documentation](https://hop.apache.org//manual/latest/pipeline/transforms/metainject.html#_inject_metadata_tab):
   
   ```
   When specifying constant values for grouped lists of values like fields or 
filenames please note that there isn’t a good solution for that. Best practice 
is to use a [Data 
Grid](https://hop.apache.org//manual/latest/pipeline/transforms/datagrid.html) 
transform to inject a complete set of constant values. You can map those in 
this metadata injection transform. It will do its best to accommodate you by 
allowing you to inject a single row in the group with the specified constant 
value.
   ```
   
   The way to solve this bug is then to throw an error I think, when 
incorrect/dangerous usage of the <const> values is made. 


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