Skip to content

Problem with creating external table file #63

@mschubert-postech

Description

@mschubert-postech

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions