Skip to content

feat: support DataFrameWriter path option #811

@keen85

Description

@keen85

This works fine in PySpark but does not in Sail:
df.write.format("parquet").option("path", some_path).save()
Sail fails with error IllegalArgumentException: missing argument: save type

Workaround:
df.write.format("parquet").save(path=some_path)

path option is also important for creating external hive tables (where physical location deviates from spark.sql.warehouse.dir:
df.write.format("parquet").option("path", some_path).saveAsTable("foo")
When executing this in Sail, path option is ignored and table is saved with location spark.sql.warehouse.dir.

See

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