<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Filtering on boolean value (tMap / tFilterRow) - creating WHERE clause in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Filtering-on-boolean-value-tMap-tFilterRow-creating-WHERE-clause/m-p/2238731#M26751</link>
    <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;if the datatype is Boolean:&lt;BR /&gt;row1.deleted == true&lt;BR /&gt;if the datatype is Integer:&lt;BR /&gt;row1.deleted == 1&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Thanks, that is what I tried - the datatype is boolean. I actually tried all the options 1, true, "1" and "true" (with quotes).
&lt;BR /&gt;Then the next question to find the source of the errors is to understand where to write this. There seems to be many places to enter a filter expression. Basically I just want to have the same effect as a "where" clause, really!
&lt;BR /&gt;I have tried expression field at the end of the Main input flow, I have tried on the Output flow, I have tried adding a tFilterRow but to no avail. What basic Talend concept am I missing when it comes to emulating a "where" clause in the flow?</description>
    <pubDate>Tue, 25 Jan 2011 09:17:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-01-25T09:17:52Z</dc:date>
    <item>
      <title>Filtering on boolean value (tMap / tFilterRow) - creating WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filtering-on-boolean-value-tMap-tFilterRow-creating-WHERE-clause/m-p/2238729#M26749</link>
      <description>Hi,
&lt;BR /&gt;I can not seem to filter on a boolean value, every type of syntax I use renders error messages.
&lt;BR /&gt;What is the right syntax and where is the best place to write the filter expression?
&lt;BR /&gt;What I want to achieve is to only process the input rows that have the "deleted" field set to "1" (which I guess could also mean true?).</description>
      <pubDate>Sat, 16 Nov 2024 13:07:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filtering-on-boolean-value-tMap-tFilterRow-creating-WHERE-clause/m-p/2238729#M26749</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on boolean value (tMap / tFilterRow) - creating WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filtering-on-boolean-value-tMap-tFilterRow-creating-WHERE-clause/m-p/2238730#M26750</link>
      <description>if the datatype is Boolean:&lt;BR /&gt;row1.deleted == true&lt;BR /&gt;if the datatype is Integer:&lt;BR /&gt;row1.deleted == 1</description>
      <pubDate>Mon, 24 Jan 2011 21:39:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filtering-on-boolean-value-tMap-tFilterRow-creating-WHERE-clause/m-p/2238730#M26750</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-24T21:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on boolean value (tMap / tFilterRow) - creating WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filtering-on-boolean-value-tMap-tFilterRow-creating-WHERE-clause/m-p/2238731#M26751</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;if the datatype is Boolean:&lt;BR /&gt;row1.deleted == true&lt;BR /&gt;if the datatype is Integer:&lt;BR /&gt;row1.deleted == 1&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Thanks, that is what I tried - the datatype is boolean. I actually tried all the options 1, true, "1" and "true" (with quotes).
&lt;BR /&gt;Then the next question to find the source of the errors is to understand where to write this. There seems to be many places to enter a filter expression. Basically I just want to have the same effect as a "where" clause, really!
&lt;BR /&gt;I have tried expression field at the end of the Main input flow, I have tried on the Output flow, I have tried adding a tFilterRow but to no avail. What basic Talend concept am I missing when it comes to emulating a "where" clause in the flow?</description>
      <pubDate>Tue, 25 Jan 2011 09:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filtering-on-boolean-value-tMap-tFilterRow-creating-WHERE-clause/m-p/2238731#M26751</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-25T09:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on boolean value (tMap / tFilterRow) - creating WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filtering-on-boolean-value-tMap-tFilterRow-creating-WHERE-clause/m-p/2238732#M26752</link>
      <description>Actually, to help a bit more, the error I get is this:
&lt;BR /&gt;
&lt;PRE&gt;Exception in component tFilterRow_1&lt;BR /&gt;java.lang.NullPointerException&lt;BR /&gt;	at import_into_sugarcrm.sugartoexcel_0_1.SugarToExcel.tMysqlInput_1Process(SugarToExcel.java:4148)&lt;BR /&gt;	at import_into_sugarcrm.sugartoexcel_0_1.SugarToExcel.runJobInTOS(SugarToExcel.java:6116)&lt;BR /&gt;	at import_into_sugarcrm.sugartoexcel_0_1.SugarToExcel.main(SugarToExcel.java:5987)&lt;/PRE&gt;
&lt;BR /&gt;tFilterRow_1 just has one line in it:
&lt;BR /&gt;InputColumn: deleted --- Function: Empty --- Operator: Equals --- Value: false</description>
      <pubDate>Tue, 25 Jan 2011 10:19:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filtering-on-boolean-value-tMap-tFilterRow-creating-WHERE-clause/m-p/2238732#M26752</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-25T10:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on boolean value (tMap / tFilterRow) - creating WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filtering-on-boolean-value-tMap-tFilterRow-creating-WHERE-clause/m-p/2238733#M26753</link>
      <description>My 2 cents.... Maybe the column you're filtering is defined as not nullable (has the option "nullable" unchecked), and you're filter is encountering a null entry? Check the nullable option and add this possibility. For example use Advanced mode and type:
&lt;BR /&gt;
&lt;BR /&gt;input_row . deleted == null || input_row . deleted == true 
&lt;BR /&gt;I believe this should output Nulls and TRUEs..</description>
      <pubDate>Tue, 25 Jan 2011 12:12:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filtering-on-boolean-value-tMap-tFilterRow-creating-WHERE-clause/m-p/2238733#M26753</guid>
      <dc:creator>vladika</dc:creator>
      <dc:date>2011-01-25T12:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on boolean value (tMap / tFilterRow) - creating WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filtering-on-boolean-value-tMap-tFilterRow-creating-WHERE-clause/m-p/2238734#M26754</link>
      <description>Thank you. 
&lt;BR /&gt;Yes I already started thinking it would have to be NULL values playing tricks and this combination of null or true/false avoids the NullPointerException, however I still do not get any of the null values. 
&lt;BR /&gt;I am using the Expression Filter field of row1 (input) and can't seem to find any nullable settings for it?</description>
      <pubDate>Tue, 25 Jan 2011 13:34:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filtering-on-boolean-value-tMap-tFilterRow-creating-WHERE-clause/m-p/2238734#M26754</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-25T13:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on boolean value (tMap / tFilterRow) - creating WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filtering-on-boolean-value-tMap-tFilterRow-creating-WHERE-clause/m-p/2238735#M26755</link>
      <description>"Nullable" is a  field setting, not the component setting, so you will see it in "Edit schema" window.&lt;BR /&gt;Maybe this will work:&lt;BR /&gt;ISNULL(input_row . deleted)  || input_row . deleted == true &lt;BR /&gt;, but basically it is the same like previous one. You can see the definition of the ISNULL method if you go to: Repository/Code/Routines/System/Relational.</description>
      <pubDate>Tue, 25 Jan 2011 14:01:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filtering-on-boolean-value-tMap-tFilterRow-creating-WHERE-clause/m-p/2238735#M26755</guid>
      <dc:creator>vladika</dc:creator>
      <dc:date>2011-01-25T14:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on boolean value (tMap / tFilterRow) - creating WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filtering-on-boolean-value-tMap-tFilterRow-creating-WHERE-clause/m-p/2238736#M26756</link>
      <description>Ah, you mean if the SQL field is allowed to be NULL or not - yes the field "deleted" is marked as nullable in the schema, this was guessed automatically (and well done too) by the Talend schema wizard.&lt;BR /&gt;Still no luck, I simply cannot get the NULL values out into my Excel file, it is very peculiar.</description>
      <pubDate>Tue, 25 Jan 2011 15:53:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filtering-on-boolean-value-tMap-tFilterRow-creating-WHERE-clause/m-p/2238736#M26756</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-25T15:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on boolean value (tMap / tFilterRow) - creating WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filtering-on-boolean-value-tMap-tFilterRow-creating-WHERE-clause/m-p/2238737#M26757</link>
      <description>I had a slight revelation on this topic that I should probably share; it turned out that there was an exact match between another part of the logic and a lack of NULL values, so everytime I filtered on X it also showed no NULL values. The wonders of remembering to change 
&lt;I&gt;only one variable at the time&lt;/I&gt; when searching for the cause of a problem... 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 31 Jan 2011 10:22:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filtering-on-boolean-value-tMap-tFilterRow-creating-WHERE-clause/m-p/2238737#M26757</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-31T10:22:09Z</dc:date>
    </item>
  </channel>
</rss>

