Skip to content

write.target-file-size-bytes isn't respected when writing data #8729

@paulpaul1076

Description

@paulpaul1076

Apache Iceberg version

None

Query engine

None

Please describe the bug 🐞

I have a job that reads orc files and writes them to an iceberg table, the files that are getting created are around 100MB, not 512MB, which is the default value of write.target-file-size-bytes. I tried setting write.target-file-size-bytes to 512MB manually, too, but still, the files are around 100MB.

  val df = spark.read.orc("s3://hdp-temp/arch/csv3_2023")
  df.writeTo("db.batch_iceberg_test3")
    .tableProperty("write.target-file-size-bytes", "536870912")
    .createOrReplace()
image

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