Skip to content
This repository was archived by the owner on Jul 22, 2026. It is now read-only.
This repository was archived by the owner on Jul 22, 2026. It is now read-only.

cda-client taking long time to write to csv file #24

Description

@raj4j2ee

Hi team,
Scala writing to dataframe (9262) to csv taking 8.48 hours. We are seeing the process throwing OOO because of this long running and volume of the tables processed. Please let me know any way we can reduce performance for below line of code
here saveAsSingleFile=true

if (saveAsSingleFile) {
tableDF.coalesce(1).write.option("header", includeColumnNames).option("emptyValue",null).option("nullValue",null).mode(SaveMode.Overwrite).csv(pathToFolderWithCSV)
} else {

  tableDF.write.option("header", includeColumnNames).option("emptyValue","").option("nullValue",null).mode(SaveMode.Overwrite).csv(pathToFolderWithCSV)
}

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