python - DataError: unterminated CSV quoted field -


i'm trying import huge (~2 gb) csv file postgres. below query wrote (in python) this:

q= ("copy {db} '{d}\\{file}' (format csv, null 'null', header)  ;").format(d = directory, db = db_name, file =fname) 

now somewhere on line 17632150there integer field starts quotation, not closed:

 "2195961,12855,628,no 

i wonder options @ point? constraint should possible psycopg2.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -