Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Fix for PDI-6475: SwitchCase Step fails to test null value when fieldis a binary-string

  1. #1
    jccote Guest

    Default Fix for PDI-6475: SwitchCase Step fails to test null value when fieldis a binary-string

    Index: src/org/pentaho/di/trans/steps/switchcase/SwitchCase.java
    ===================================================================
    --- src/org/pentaho/di/trans/steps/switchcase/SwitchCase.java
    (revision 15704)
    +++ src/org/pentaho/di/trans/steps/switchcase/SwitchCase.java (working
    copy)
    @@ -131,7 +131,7 @@
    // Determine the output rowset to use...
    //
    RowSet rowSet = null;
    - if (data.inputValueMeta.isNull(lookupData)) {
    + if (lookupData==null) {
    rowSet = data.nullRowSet;
    } else {
    rowSet = data.outputMap.get(lookupData);

    --
    You received this message because you are subscribed to the Google Groups "kettle-developers" group.
    To post to this group, send email to kettle-developers (AT) googlegroups (DOT) com.
    To unsubscribe from this group, send email to kettle-developers+unsubscribe (AT) g...oups (DOT) com.
    For more options, visit this group at http://groups.google.com/group/kettle-developers?hl=en.

  2. #2
    Matt Casters Guest

    Default Re: Fix for PDI-6475: SwitchCase Step fails to test null value whenfield is a binary-string

    Hi Jean-Claude,

    Can you please attach the patch to the JIRA case?

    Thanks in advance!

    Matt


    2011/8/30 jccote <jccote (AT) gmail (DOT) com>

    > Index: src/org/pentaho/di/trans/steps/switchcase/SwitchCase.java
    > ===================================================================
    > --- src/org/pentaho/di/trans/steps/switchcase/SwitchCase.java
    > (revision 15704)
    > +++ src/org/pentaho/di/trans/steps/switchcase/SwitchCase.java (working
    > copy)
    > @@ -131,7 +131,7 @@
    > // Determine the output rowset to use...
    > //
    > RowSet rowSet = null;
    > - if (data.inputValueMeta.isNull(lookupData)) {
    > + if (lookupData==null) {
    > rowSet = data.nullRowSet;
    > } else {
    > rowSet = data.outputMap.get(lookupData);
    >
    > --
    > You received this message because you are subscribed to the Google Groups
    > "kettle-developers" group.
    > To post to this group, send email to kettle-developers (AT) googlegroups (DOT) com.
    > To unsubscribe from this group, send email to
    > kettle-developers+unsubscribe (AT) g...oups (DOT) com.
    > For more options, visit this group at
    > http://groups.google.com/group/kettle-developers?hl=en.
    >
    >



    --
    Matt Casters <mcasters (AT) pentaho (DOT) org>
    Chief Data Integration, Kettle founder, Author of Pentaho Kettle
    Solutions<http://www.amazon.com/Pentaho-Kettle-Solutions-Building-Integration/dp/0470635177>
    (Wiley <http://eu.wiley.com/WileyCDA/WileyTitle/productCd-0470635177.html>)
    Fonteinstraat 70, 9400 OKEGEM - Belgium - Cell : +32 486 97 29 37
    Pentaho : The Commercial Open Source Alternative for Business Intelligence

    --
    You received this message because you are subscribed to the Google Groups "kettle-developers" group.
    To post to this group, send email to kettle-developers (AT) googlegroups (DOT) com.
    To unsubscribe from this group, send email to kettle-developers+unsubscribe (AT) g...oups (DOT) com.
    For more options, visit this group at http://groups.google.com/group/kettle-developers?hl=en.

  3. #3
    jccote Guest

    Default Re: Fix for PDI-6475: SwitchCase Step fails to test null value whenfield is a binary-string

    Sorry about that. I've attached it to the Jira task.

    thank you.

    On Aug 30, 3:28

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 - 2017 Pentaho Corporation. All Rights Reserved.