Skip to content

Conversation

@stefankandic
Copy link
Contributor

What changes were proposed in this pull request?

When deserializing map/array that is not part of the struct field, the key in collation map should just be {"element": collation} instead of {".element": collation}.

Why are the changes needed?

To be consistent with the behavior on the pyspark side (#46737).

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Unit tests.

Was this patch authored or co-authored using generative AI tooling?

No.

@github-actions github-actions bot added the SQL label Jul 26, 2024
@stefankandic
Copy link
Contributor Author

@HyukjinKwon Please take a look if you can as you have the context from the same pyspark change.

@HyukjinKwon
Copy link
Member

Merged to master.

ilicmarkodb pushed a commit to ilicmarkodb/spark that referenced this pull request Jul 29, 2024
…scala

### What changes were proposed in this pull request?

When deserializing map/array that is not part of the struct field, the key in collation map should just be `{"element": collation}` instead of `{".element": collation}`.

### Why are the changes needed?

To be consistent with the behavior on the pyspark side (apache#46737).

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Unit tests.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes apache#47497 from stefankandic/complexTypeDeSer.

Authored-by: Stefan Kandic <stefan.kandic@databricks.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
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.

2 participants