[File Connector] Not delimited Files
Posted: Wed Feb 06, 2019 1:27 am
Hi everybody.
I am using 'File Connector' object to read txt files from HDFS. but some of them are not delimited, fields are positionals.
Example:
JoyceRecacho34 years oldBrasil
In other words, it would be like:
Field1: Row[1,12]
Field2: Row[13,12]
Field1: Row[25,6]
=======
I noticed that using the File Format like 'Implicit', some of the rows are split correctly however the majority of rows are disaligned, being droped.
Has anybody already passed through this issue?
As a workaround I read the file as it was a delimited one, and cut the fields like:
Field1: Row[1,12]
Field2: Row[13,12]
Field1: Row[25,6]
It worked fine, but the customer prefer the fields delimited conforming its definition at the sheet 'Column'.
Is there any way?
It reminds me the 'Sequential File' that we just inform "Record Length = Fixed" and "Delimiter = None" and it works.
Thanks in advance.
Best regards,
I am using 'File Connector' object to read txt files from HDFS. but some of them are not delimited, fields are positionals.
Example:
JoyceRecacho34 years oldBrasil
In other words, it would be like:
Field1: Row[1,12]
Field2: Row[13,12]
Field1: Row[25,6]
=======
I noticed that using the File Format like 'Implicit', some of the rows are split correctly however the majority of rows are disaligned, being droped.
Has anybody already passed through this issue?
As a workaround I read the file as it was a delimited one, and cut the fields like:
Field1: Row[1,12]
Field2: Row[13,12]
Field1: Row[25,6]
It worked fine, but the customer prefer the fields delimited conforming its definition at the sheet 'Column'.
Is there any way?
It reminds me the 'Sequential File' that we just inform "Record Length = Fixed" and "Delimiter = None" and it works.
Thanks in advance.
Best regards,