<?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: How to achieve schema (columns and types)  using @DiscoverSchema annotation in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-achieve-schema-columns-and-types-using-DiscoverSchema/m-p/2247599#M148338</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LP9EAAW"&gt;@Venkat_C&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This guess schema will work only if your dataset is named "&lt;SPAN&gt;guessSchema", is it the case?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Mar 2019 05:56:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-03-25T05:56:07Z</dc:date>
    <item>
      <title>How to achieve schema (columns and types)  using @DiscoverSchema annotation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-achieve-schema-columns-and-types-using-DiscoverSchema/m-p/2247598#M148337</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt; 
&lt;P&gt;I am not able to get schema columns names for my input component as per module name using&amp;nbsp; @DiscoverSchema,Please help me with code. I have written code like below in service class .I need to write any thing in dataset class.&lt;/P&gt; 
&lt;P&gt;thanks,&lt;/P&gt; 
&lt;P&gt;venkat.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;@DiscoverSchema("guessSchema")&lt;BR /&gt;public Schema guessSchema(@Option("dataset") final VtigercrmComponentsDataSet dataset ,final RecordBuilderFactory factory)&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;final Schema.Entry.Builder entryBuilder = factory.newEntryBuilder();&lt;BR /&gt;final Schema.Builder schemaBuilder = factory.newSchemaBuilder(org.talend.sdk.component.api.record.Schema.Type.RECORD);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Schema.Type type = Schema.Type.STRING;&lt;BR /&gt;//return (Schema) schemaBuilder.withEntry(entryBuilder.withName("name").withType(type).withNullable(false).build());&lt;BR /&gt;&lt;BR /&gt;return factory.newSchemaBuilder(Schema.Type.RECORD)&lt;BR /&gt;.withEntry(factory.newEntryBuilder().withName("ResponseContent").withType(Schema.Type.LONG).build()).build();&lt;BR /&gt;}&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jan 2026 14:45:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-achieve-schema-columns-and-types-using-DiscoverSchema/m-p/2247598#M148337</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2026-01-02T14:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve schema (columns and types)  using @DiscoverSchema annotation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-achieve-schema-columns-and-types-using-DiscoverSchema/m-p/2247599#M148338</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LP9EAAW"&gt;@Venkat_C&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This guess schema will work only if your dataset is named "&lt;SPAN&gt;guessSchema", is it the case?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 05:56:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-achieve-schema-columns-and-types-using-DiscoverSchema/m-p/2247599#M148338</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-25T05:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve schema (columns and types)  using @DiscoverSchema annotation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-achieve-schema-columns-and-types-using-DiscoverSchema/m-p/2247600#M148339</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LP9EAAW"&gt;@Venkat_C&lt;/A&gt;&amp;nbsp;did you get it working?&lt;/P&gt; 
&lt;P&gt;My team had same problem see thread:&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCmZACA0#M339" target="_blank"&gt;https://community.talend.com/t5/Component-Development/Producer-and-DiscoverScheme/m-p/149874#M339&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;P&gt;If you got it working what TS version you work with and which API version you use to develop your components?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 14:43:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-achieve-schema-columns-and-types-using-DiscoverSchema/m-p/2247600#M148339</guid>
      <dc:creator>igorbeslic</dc:creator>
      <dc:date>2019-03-28T14:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve schema (columns and types)  using @DiscoverSchema annotation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-achieve-schema-columns-and-types-using-DiscoverSchema/m-p/2247601#M148340</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPOuAAO"&gt;@igorbeslic&lt;/A&gt;&amp;nbsp;,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Yah,its working perfectly&amp;nbsp;'&lt;SPAN&gt;@DiscoverSchema,i have declare List instance&amp;nbsp; in my dataset class as like below and written&amp;nbsp;@DiscoverSchema in service class.please find below link,it will use for create schema.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://talend.github.io/component-runtime/main/1.1.3/record-types.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://talend.github.io/component-runtime/main/1.1.3/record-types.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;@Option&lt;BR /&gt;@Structure(discoverSchema = "guessTableSchema",type=Type.IN)&lt;BR /&gt;@Documentation(value = "List of field names to return in the response.")&lt;BR /&gt;private List&amp;lt;String&amp;gt; fields = new ArrayList&amp;lt;&amp;gt;();&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;regards,&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;venkat&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 06:00:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-achieve-schema-columns-and-types-using-DiscoverSchema/m-p/2247601#M148340</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-29T06:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve schema (columns and types)  using @DiscoverSchema annotation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-achieve-schema-columns-and-types-using-DiscoverSchema/m-p/2247602#M148341</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LP9EAAW"&gt;@Venkat_C&lt;/A&gt;&amp;nbsp;thank you for your hints! Still for me documentation links are worthless. In link you provided there is no any note about:&lt;/P&gt; 
&lt;PRE&gt;@Option
@Structure(discoverSchema = "guessTableSchema",type=Type.IN)
@Documentation(value = "List of field names to return in the response.")
private List&amp;lt;String&amp;gt; fields = new ArrayList&amp;lt;&amp;gt;();&lt;/PRE&gt; 
&lt;P&gt;Do you have your component code available at GitHub? I sound desperate, but I think it would help more than all Telned documentation links people share in this forum. Or if you can share in this thread all important parts?&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;I used your hints with "@Structure" annotation but it does not trigger "@DiscoverSchema" method in "@Service" class. I put Talend Studio 7.2.1 M3 in debug mode and it does not track any interaction with service class. The "Discover schema" button in TS UI triggers "@Producer" method in my mapper's source class (invoked by "org.talend.sdk.component.runtime.di.schema.TaCoKitGuessSchema#guessSchemaThroughResult(java.lang.Object)").&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Are you sure schema you get in your UI really comes from service annotated method "@DiscoverSchema"?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 20:10:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-achieve-schema-columns-and-types-using-DiscoverSchema/m-p/2247602#M148341</guid>
      <dc:creator>igorbeslic</dc:creator>
      <dc:date>2019-03-29T20:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve schema (columns and types)  using @DiscoverSchema annotation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-achieve-schema-columns-and-types-using-DiscoverSchema/m-p/2247603#M148342</link>
      <description>Hi Igor 
&lt;BR /&gt; 
&lt;BR /&gt;Please dont mix two API - both use the same action. 
&lt;BR /&gt; 
&lt;BR /&gt;1. @Structure is to have completion on a configuration field, 
&lt;BR /&gt;2. Guess Schema button is to initialize the struct associated to the component. For inputs, it tries to match a discover schema action based on the dataset used in the input configuration, if none is found it runs the producer method to get data. 
&lt;BR /&gt; 
&lt;BR /&gt;I suspect something is fishy in the second case for you - was your action name originally if I recall correctly. Did you fix it, redeployed the component and restarted the studio or used the reload feature? 
&lt;BR /&gt; 
&lt;BR /&gt;If still an issue please share your current/updated code to let us check what is missing. 
&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Mar 2019 21:39:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-achieve-schema-columns-and-types-using-DiscoverSchema/m-p/2247603#M148342</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-29T21:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve schema (columns and types)  using @DiscoverSchema annotation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-achieve-schema-columns-and-types-using-DiscoverSchema/m-p/2247604#M148343</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LMHOAA4"&gt;@rmannibucau&lt;/A&gt;&amp;nbsp;my component project is here&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://github.com/igorbeslic/talend-poc" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;https://github.com/igorbeslic/talend-poc&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Service implementation:&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://github.com/igorbeslic/talend-poc/blob/master/src/main/java/com/liferay/ebus/service/EBusService.java" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;https://github.com/igorbeslic/talend-poc/blob/master/src/main/java/com/liferay/ebus/service/EBusService.java&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Once deployed Talend Studio never invokes:&lt;/P&gt; 
&lt;PRE&gt;@DiscoverSchema(value = "Dataset")
public Schema discoverSchema(
	@Option("dataset") Dataset dataset,
	final RecordBuilderFactory recordBuilderFactory) {&lt;BR /&gt;//...&lt;BR /&gt;}&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you very much!!!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;UPDATE:&lt;/P&gt; 
&lt;P&gt;I debug GuessSchema:&lt;/P&gt; 
&lt;PRE&gt;public TaCoKitGuessSchema(final PrintStream out, final Map&amp;lt;String, String&amp;gt; configuration, final String plugin,
            final String family, final String componentName, final String action)&lt;/PRE&gt; 
&lt;P&gt;last argument, "action" passed to TaCoKitGuessSchema is null. What could be reason for it?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 11:33:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-achieve-schema-columns-and-types-using-DiscoverSchema/m-p/2247604#M148343</guid>
      <dc:creator>igorbeslic</dc:creator>
      <dc:date>2019-04-01T11:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve schema (columns and types)  using @DiscoverSchema annotation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-achieve-schema-columns-and-types-using-DiscoverSchema/m-p/2247605#M148344</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;someone is facing this problem with the @DiscoverSchema ? &lt;/P&gt;&lt;P&gt;The method in my service class is triggered and my schema is created but the button never respects the order and never returning the same order. &lt;/P&gt;&lt;P&gt;It's all-time random : &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;﻿&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000BWrzlAAD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156338i84CA912879D12720/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000BWrzlAAD.png" alt="0693p00000BWrzlAAD.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000BWrzWAAT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146880i91AE37F7A36F939B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000BWrzWAAT.png" alt="0693p00000BWrzWAAT.png" /&gt;&lt;/span&gt;Any Help ? &lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 11:58:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-achieve-schema-columns-and-types-using-DiscoverSchema/m-p/2247605#M148344</guid>
      <dc:creator>Safus</dc:creator>
      <dc:date>2021-02-05T11:58:54Z</dc:date>
    </item>
  </channel>
</rss>

