Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Import via script doesn't work correct

$
0
0

Hi all,

 

I am struggling with the data import of a huge csv file (20GB) for a partner presentation. I already tried the import via HANA Studio directly, but it probably will take 36hours for the whole import.

 

So I uploaded the file to the HANA server and tried the import via script.

 

The script:

import data into table "CS_PAL"."TASKS"

from '/usr/sap/A02/HDB00/d039240-0001/BIG_DATA_NEW.BIGDATA_TASKS.csv'

record delimited by '\n'

fields delimited by '\t'

optionally enclosed by '"'

error log '/usr/sap/A02/HDB00/d039240-0001/BIG_DATA.err'

 

No I get error messages, because in the source file '\n' is used within text fields and the script interpreter is interpreting this as the start of a new row!

 

Is there any option available to define ' " ' for text fields? I found only optionally enclosed, but it isn't optionally, it is definitly enclosed by ' " '

 

 

Thanks

 

Wolfgang


Viewing all articles
Browse latest Browse all 6412

Trending Articles