Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6788935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:32:39+00:00 2026-05-26T17:32:39+00:00

Background: It’s common in Talend to use something like tSplitRow to map one row

  • 0

Background: It’s common in Talend to use something like tSplitRow to map one row with many fields into multiple rows. A row with fields:

Date | Name | MorningPhone | Day Phone | EveningPhone
…could be split into:

Date | Name | Phone … and you’ll always have 3 resulting rows from one row.


Question: What if I want number of rows from a variable number of fields?

I have a schema: UniqueID | FieldSet where FieldSet is a delimited field of columns divisible by nine. If there are 45 fields, in this delimited column, I want 5 rows. 81 fields => 9 rows.

I’m trying to use tJavaRow to parse the fields, but I don’t know how to combine that with tSplitRow to generate the appropriate number of fields.

Ideas? Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T17:32:39+00:00Added an answer on May 26, 2026 at 5:32 pm

    I used a custom tJavaRow — this turned a specially formatted string into a new table. Sort of a hack, but it worked.

    String input = "";
    String OUT = "";
    
    
    try {
          input = java.net.URLDecoder.decode(input_row.CustomField16, "ASCII");
    
    } catch (UnsupportedEncodingException e) {
          e.printStackTrace();
    }
    
    String[] pieces = input.split(";");
    
    /*for(int a=0; a<pieces.length; a++)
          System.out.println("Piece "+a+"\n"+pieces[a]);*/
    
    
    
    String[] allfields = pieces[0].split("\\|");
    
    //System.out.println("num_full_rows="+num_full_rows);
    
    
    int fieldnum=9;
    int totalrows=1;
    for (int i=0; i+8<allfields.length; i++) {
    
          String xrow = allfields[i];
          i++;
          for (int j=i; j<fieldnum*totalrows;j++){
                xrow=xrow+"\t"+allfields[j];
          }
          i+=fieldnum-2;
    
          totalrows++;
          OUT += (input_row.LoadTime + "\t"
                      + input_row.minutepart + "\t" + input_row.TXID
                      + "\t" + input_row.SessionString + "\t" + xrow + "\n");
    
    
    }
    
    output_row.BULK = OUT;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Background School Corp. has two databases with a common table, employees. These two databases
Background A lot of work has gone into optimizing database design, especially in the
Background We currently use OpenID for authentication of users, and use the Claimed Identity
Background Use Ajax to fire an event to the web server when a list
Background: One of the problems with using a local static variable in a function
Background I have a pair of functions I want to use to animate some
Background: I have a little video playing app with a UI inspired by the
Background: At my company we are developing a bunch applications that are using the
Background: Some time ago, I built a system for recording and categorizing application crashes
Background: I need to reserve an amount of memory below 0xA0000 prior to my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.