Skip to content

Cosmos oltp write - serialization options for fields with null values #22828

Closed

Description

When i write a spark dataframe using cosmos oltp as below

df.write.format("cosmos.oltp")
.options(cfg)
.mode("Append")
.save()

fields with null values are getting written (happens with latest 2.12 cosmos oltp only, previously these fields were ignored)

would be better if we have a feature to turn on / off this feature, so that we dont write back fields with nulls onto cosmos db

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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