Uploaded image for project: 'Talend Component Kit'
  1. Talend Component Kit
  2. TCOMP-2859

Guess schema executes extra code not needed

Apply templateInsert Lucidchart Diagram
    XMLWordPrintable

Details

    • All
    • Small

    Description

      When running guess schema mock job for processors, some extra code is generated to trigger the guess schema call. This boilerplate code adds extra execution time for no effective use.

      Example

      try {		
      	tacokitGuessSchema.guessComponentSchema(schema_tDataPrepRun_1, "FLOW", false);
      } finally {
      	tacokitGuessSchema.close();
      }
      /**
       * [tDataPrepRun_1 begin ] stop
       */
      
      // ^^^^^
      // we should STOP above !!!
      // 
      
      /**
       * [tFileInputDelimited_1 begin ] start
       */
      ...
      	while (fid_tFileInputDelimited_1 != null && fid_tFileInputDelimited_1.nextRecord()) {
      		rowstate_tFileInputDelimited_1.reset();
      ...
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            emmanuel_g emmanuel gallois
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: