-
Notifications
You must be signed in to change notification settings - Fork 18
Description
When we're trying to export a table to an external file, the file that will be created is overwritten with every chunk size
cursor.execute("""create external table 'aaaaa.txt' using ( remotesource 'python' delimiter '|' socketbufsize 20983886080) as select * from aaaaa""")
We set the socketbuffsize as high as possible, but for large tables even this sockerbuffsize is not high enough.
To make it maybe a little clearer: when we're using the standard socketbuffsize (which is I think ~ 8mb) the created file has only the entries of the last chunk and has a maximum size of 8mb (the socketbuffsize). So the problem here is, that the created file is overwritten with every chunks instead of adding the chunk to the entries.
Does anyone has a solution for that?
Thank you in advance,
Max