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

100 views
Skip to first unread message

jccote

unread,
Aug 29, 2011, 10:09:10 PM8/29/11
to kettle-developers
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);

Matt Casters

unread,
Aug 30, 2011, 3:28:21 AM8/30/11
to kettle-d...@googlegroups.com
Hi Jean-Claude,

Can you please attach the patch to the JIRA case?

Thanks in advance!

Matt


2011/8/30 jccote <jcc...@gmail.com>

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




--
Matt Casters <mcas...@pentaho.org>
Chief Data Integration, Kettle founder, Author of Pentaho Kettle Solutions (Wiley)
Fonteinstraat 70, 9400 OKEGEM - Belgium - Cell : +32 486 97 29 37
Pentaho : The Commercial Open Source Alternative for Business Intelligence


jccote

unread,
Aug 30, 2011, 6:42:51 AM8/30/11
to kettle-developers
Sorry about that. I've attached it to the Jira task.

thank you.
> Matt Casters <mcast...@pentaho.org>
> Chief Data Integration, Kettle founder, Author of Pentaho Kettle
> Solutions<http://www.amazon.com/Pentaho-Kettle-Solutions-Building-Integration/d...>
>  (Wiley <http://eu.wiley.com/WileyCDA/WileyTitle/productCd-0470635177.html>)
Reply all
Reply to author
Forward
0 new messages