Hitachi Vantara Pentaho Community Forums
Results 1 to 4 of 4

Thread: Constants in the field values?

  1. #1

    Default Constants in the field values?

    Hi,

    Its been few days since I started using PDI - I (intuitively) tend to put the constants (built in java data type values) such as 1 or "string" etc in the places where it asks for a field. e.g. In calculator step A+B and I just want to add 1 to the value of A. Currently in order to do this, I have to create a constant with value of 1 and then use it where the fields are required. Imagine a complex transformation requiring so many values. Wondering why constant values cant be accepted in the fields directly? Or am I missing something?

  2. #2
    Join Date
    May 2006
    Posts
    4,882

    Default

    It's something of the person who wrote the step ... if you would mix types "fields" and "constants" validation would get very hairy and complex.

    Regards,
    Sven

  3. #3

    Default

    Hi ritesht,

    I was wondering, too.
    No solution, only a hint: you can delete the constants immediately (column remove=Y).

    Regards,
    Christoph
    21 is only half the truth

  4. #4
    Join Date
    May 2006
    Posts
    4,882

    Default

    Just curious... how would you make a difference between a fieldname and a "constant string" e.g. in 100% of the cases

    Regards,
    Sven

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.