<?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 schema default values in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/schema-default-values/m-p/2220319#M14770</link>
    <description>Hi 
&lt;BR /&gt;Under what conditions can I use the schema default values? 
&lt;BR /&gt;Here's what I have done so far:
&lt;BR /&gt;tRowGenerator: int and string variables
&lt;BR /&gt;tmap: same fields out, but set the values to null.
&lt;BR /&gt;In my tFileOutputDelimited I have set the default values to "10" and "default".
&lt;BR /&gt;This doesn't pick up the defaults.
&lt;BR /&gt;I have also tried to set the fields to nullable and non-nullable, I have tried to set the expressions in tMap to blank and have also set the values to 0 and "" but none of these pick up the defaults.
&lt;BR /&gt;I know that I can use the ternary operator to test for null and set a default, but I just want to find out if the default schema values do work and when?
&lt;BR /&gt;Thanks
&lt;BR /&gt;Rick</description>
    <pubDate>Sat, 16 Nov 2024 13:13:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T13:13:50Z</dc:date>
    <item>
      <title>schema default values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/schema-default-values/m-p/2220319#M14770</link>
      <description>Hi 
&lt;BR /&gt;Under what conditions can I use the schema default values? 
&lt;BR /&gt;Here's what I have done so far:
&lt;BR /&gt;tRowGenerator: int and string variables
&lt;BR /&gt;tmap: same fields out, but set the values to null.
&lt;BR /&gt;In my tFileOutputDelimited I have set the default values to "10" and "default".
&lt;BR /&gt;This doesn't pick up the defaults.
&lt;BR /&gt;I have also tried to set the fields to nullable and non-nullable, I have tried to set the expressions in tMap to blank and have also set the values to 0 and "" but none of these pick up the defaults.
&lt;BR /&gt;I know that I can use the ternary operator to test for null and set a default, but I just want to find out if the default schema values do work and when?
&lt;BR /&gt;Thanks
&lt;BR /&gt;Rick</description>
      <pubDate>Sat, 16 Nov 2024 13:13:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/schema-default-values/m-p/2220319#M14770</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: schema default values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/schema-default-values/m-p/2220320#M14771</link>
      <description>hi, 
&lt;BR /&gt;you have to put default value into the input flow field "default". 
&lt;BR /&gt;trowgenerator don't generate a null value so do your test for example with tfixedflowInput. 
&lt;BR /&gt; 
&lt;BR /&gt;but effectivly you cannot affect data with a default value into output row except with some filter or ternary method! 
&lt;BR /&gt;It sound a normal behavior ... change data with some default value when you write it, it's like prepare all your stuffs for "winter holidays" and drive to "miami beach" 
&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; (bad comparison's permited on Sunday !!!) 
&lt;BR /&gt;But one thing about those "null value" ... even (unfortunatly) if you have null value into your String field (!!!) with a rule "not nullable" you are able to write into some file without any alert or warning ....(see 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCqbACAS" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Archive/string-to-bigdecimal-conversion-error/td-p/175475&lt;/A&gt; ) 
&lt;BR /&gt;So manage your "possible" null value in all cases . 
&lt;BR /&gt;hope it enlighten you 
&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; 
&lt;BR /&gt;regards 
&lt;BR /&gt;laurent</description>
      <pubDate>Sun, 31 Oct 2010 08:42:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/schema-default-values/m-p/2220320#M14771</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-31T08:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: schema default values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/schema-default-values/m-p/2220321#M14772</link>
      <description>Thanks kzone,&lt;BR /&gt;Just to clafiry, the defaults are applied if a null is present in a non-nullable input, is that correct?&lt;BR /&gt;So does this apply to all input components?&lt;BR /&gt;Regards,&lt;BR /&gt;Rick</description>
      <pubDate>Mon, 01 Nov 2010 08:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/schema-default-values/m-p/2220321#M14772</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-01T08:26:18Z</dc:date>
    </item>
  </channel>
</rss>

