Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixSchemaReferenceForEmptyArray #35746

Merged
merged 5 commits into from Jul 10, 2023
Merged

Conversation

xinlian12
Copy link
Member

Issue:
Currently, when infer schema is being used, for empty array, we are returning NullType. Which causes when the data being written to the destination, instead of Array type, it is being written as String type.

Source data:
"arrayData":[{"properties":[]}]

When written to destination:
"arrayData":[{"properties": ""}]

Fix:
using Array(NullType) instead of NullType for empty array

@github-actions github-actions bot added the Cosmos label Jul 5, 2023
Copy link
Member

@FabianMeiswinkel FabianMeiswinkel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - Thanks!

@xinlian12
Copy link
Member Author

/azp run java - cosmos - spark

@azure-pipelines
Copy link

No commit pushedDate could be found for PR 35746 in repo Azure/azure-sdk-for-java

@xinlian12
Copy link
Member Author

/azp run java - cosmos - spark

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@FabianMeiswinkel FabianMeiswinkel merged commit fabc9ca into Azure:main Jul 10, 2023
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants