
Anonymous
Not applicable
2009-03-03
08:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Column names with spaces
I need to create an excel output file that uses column headers with spaces, it doesnt look like this is possible is there any work around? I need to you spaces I cannot use _
thanks
thanks
1,022 Views
- « Previous Replies
-
- 1
- 2
- Next Replies »
10 Replies

Anonymous
Not applicable
2009-03-04
12:11 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
Column name can't contain spaces. You can use underline '_'.
Best regards
shong
Column name can't contain spaces. You can use underline '_'.
Best regards
shong
870 Views

Anonymous
Not applicable
2009-03-04
02:22 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A little more information, I
870 Views

Contributor
2013-01-24
05:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
why? Excel give the possibility to use space in column name
870 Views

Anonymous
Not applicable
2013-01-24
05:32 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
why? Excel give the possibility to use space in column name
Talend Studio is a Java code generator, a Talend job will be translated to a Java Class, a column on the schema will be a variable in the class, a variable with space or special character is not allowed in Java.
Shong
870 Views

Contributor
2013-01-24
06:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
any workaround??
870 Views

Anonymous
Not applicable
2013-01-24
06:56 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
any workaround??
Column name can't contain spaces. You can use underline '_' or Talend will replace automatically space with "_" when retrieve schema.
Shong
870 Views

Anonymous
Not applicable
2013-01-24
03:04 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You cannot specify column names in Excel. You can write anything you want in the first line and decide to call it header line. That's why it looks like Excel allow spaces in column names but actually there are no column names other than the build in name like "A" or "AB"
870 Views

Specialist III
2013-01-24
05:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi,
you can generate the 1st line with a tFixedFlowInput and complete your excel file without column titles.
you can generate the 1st line with a tFixedFlowInput and complete your excel file without column titles.
870 Views

Anonymous
Not applicable
2013-07-10
12:23 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We have a hard requirement to create output columns with spaces. I wrote this to a co-worker - any better alternatives? We try to stay Talend only, no external utilities like sed.
It will be ugly: You'll have to do 3 things:
1) write out the header to a temp file with tokens like +++SPACE+++ where there should be spaces (make the column name First+SPACE+Name).
2) rewrite the header out to the real output location, using java, String.replace " " for the token - you can write it out as a one column schema and tFileOutputDelimited for example, using some delimeter that will never come up
3) append to the header file with the real data
So that is a terrible solution but I think what we'll end up with.
It will be ugly: You'll have to do 3 things:
1) write out the header to a temp file with tokens like +++SPACE+++ where there should be spaces (make the column name First+SPACE+Name).
2) rewrite the header out to the real output location, using java, String.replace " " for the token - you can write it out as a one column schema and tFileOutputDelimited for example, using some delimeter that will never come up
3) append to the header file with the real data
So that is a terrible solution but I think what we'll end up with.
870 Views

- « Previous Replies
-
- 1
- 2
- Next Replies »